[ian-reeds-games] Re: script trouble

  • From: Monkey <murtagh69.monkeys@xxxxxxxxx>
  • To: ian-reeds-games@xxxxxxxxxxxxx
  • Date: Fri, 8 Jan 2016 06:00:36 -0700

Hi,

On Craig's, I believe you're making a typo in the flag. He has defence
with a c, not an s.

And in mine, I actually removed random damage from effects until I can
be bothered to add start and/or end turn flags. I forgot to remove it
from the documentation, didn't I? If so, oops, 'my bad.

On 1/8/16, Allan Thompson <allan1.thompson@xxxxxxx> wrote:

I am having trouble with three different scripts.

The first two are craig's:
Critical_hit_defense_chance.this I have on a template
Critical_hit_defense_chance_mod.this is on an effect

Map pack settings have the script nmes. I am not really sure what the
trouble is

The last one is Monkey's:
Random_damage.I have this in an effect

Below are the errors that it threw at me:

Didn't find a script flag critical_hit_defense_chance_mod for file type
effect
at Ian.CoreLogic.AnnounceStackTrace() in
C:\Data\Recent\Games\Core\CoreLogic.cs:line 54
at Ian.GameParserLogic.GetSFD(IHaveParserStuff ent, String fileType,
String sfdName, FileAndLine fal) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 141
at Ian.GameParserLogic.SetValueFromScriptFlag(IHaveParserStuff ent,
IHaveScriptFlags obj, String fileType, Flag flag) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 84
at Ian.GameParserLogic.ParseScriptFlag(IHaveParserStuff ent,
IHaveScriptFlags obj, ParsedList pl, String fileType) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 76
at Ian.GameParserLogic.ParseScriptFlagList(IHaveParserStuff ent,
IHaveScriptFlags obj, ParsedList pl, String fileType) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 58
at Ian.Effect.HandleList(IHaveParserStuff ent, Effect obj, ParsedList
pl)
in C:\Data\Recent\Games\TacticalBattle\Effect.cs:line 98
at Ian.Effect.Parse10(IHaveParserStuff ent, ParsedList pl, String name,
Dictionary`2 defaultFlags) in
C:\Data\Recent\Games\TacticalBattle\Effect.cs:line 87
at Ian.Effect.Parse(MyParserStreamReader sr, String name) in
C:\Data\Recent\Games\TacticalBattle\Effect.cs:line 49
at Ian.TBHM.LoadMap(String mapPath, String basePath, MapPackInfo mpi,
Boolean& success) in
C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 228
at Ian.TBHM.LoadMapFromKey(String packName, String mapName) in
C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 94
at Ian.MapMenu.Process(TBClientWorld ent) in
C:\Data\Recent\Games\TacticalBattle\TBStates\MapMenu.cs:line 66
at Ian.SceneMachine`1.Process(T ent) in
C:\Data\Recent\Games\GameEngine\SceneMachine.cs:line 66
at Ian.TBGameLoop.InnerSingleLoop(TBClientWorld ent, QueuedGameInput
formInput) in C:\Data\Recent\Games\TacticalBattle\TBGameLoop.cs:line 57
at Ian.GameLoopLogic.RunLoops[TWorld](TWorld ent, QueuedGameInput
formInput, Action`2 runSingleLoop, Double totalElapsedSeconds, Double
fixedTimeStep) in C:\Data\Recent\Games\GameEngine\GameLoopLogic.cs:line 31
at Ian.TBGameLoop.RunLoops(TBClientWorld ent, QueuedGameInput formInput)
in C:\Data\Recent\Games\TacticalBattle\TBGameLoop.cs:line 23
at Ian.GameWindow`1.RunGameLoop() in
C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 135
at Ian.GameWindow`1.GameLoopTimer_Tick(Object sender, EventArgs e) in
C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 182
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsaf
eNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID,
Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Ian.TBStartup.RunMainLogic() in
C:\Data\Recent\Games\TacticalBattle\TBStartup.cs:line 76
at Ian.TBStartup.PerformStandardStartup() in
C:\Data\Recent\Games\TacticalBattle\TBStartup.cs:line 22
at Ian.Stub.TB()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at AssemblyLoader.AssemblyLoader.CallMethod(String dllName, String
typeName, String methodName) in
C:\Data\Dev\Mine\New\2010\AssemblyLoader\AssemblyLoader\AssemblyLoader.cs:li
ne 65

critical_hit_defense_chance_mod is not a valid script_flag name in Data for
TB\Map Packs\starship battles elite\Effects\shield nudge.txt on line 12
random_damage is not a valid script_flag in this type of file in Data for
TB\Map Packs\starship battles elite\Effects\system damage.txt on line 10
random_damage is not a valid script_flag name in Data for TB\Map
Packs\starship battles elite\Effects\system damage.txt on line 10

Didn't find a script flag critical_hit_defense_chance for file type unit
at Ian.CoreLogic.AnnounceStackTrace() in
C:\Data\Recent\Games\Core\CoreLogic.cs:line 54
at Ian.GameParserLogic.GetSFD(IHaveParserStuff ent, String fileType,
String sfdName, FileAndLine fal) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 141
at Ian.GameParserLogic.SetValueFromScriptFlag(IHaveParserStuff ent,
IHaveScriptFlags obj, String fileType, Flag flag) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 84
at Ian.GameParserLogic.ParseScriptFlag(IHaveParserStuff ent,
IHaveScriptFlags obj, ParsedList pl, String fileType) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 76
at Ian.GameParserLogic.ParseScriptFlagList(IHaveParserStuff ent,
IHaveScriptFlags obj, ParsedList pl, String fileType) in
C:\Data\Recent\Games\GameEngine\GameParserLogic.cs:line 58
at Ian.UnitParser.HandleList(Unit obj, ParsedList pl) in
C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 920
at Ian.UnitParser.Parse(ParsedList pl, String typeName, Dictionary`2
defaultFlags) in C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 911
at Ian.ParserBase`3.RunParser(IEnumerable`1 files) in
C:\Data\Recent\Games\Parser\ParserBase.cs:line 61
at Ian.ParserWithFlags`3.ParseParent(String parentName) in
C:\Data\Recent\Games\Parser\ParserBase.cs:line 144
at Ian.ParserWithFlags`3.CommonPerformInheritance(T obj, Flag flag, T&
parent) in C:\Data\Recent\Games\Parser\ParserBase.cs:line 123
at Ian.ParserWithScript`2.PerformInheritanceWithScriptFlags(T obj, Flag
flag) in C:\Data\Recent\Games\GameEngine\ParserWithScript.cs:line 11
at Ian.UnitParser.SetPropertyFromFlag(Unit obj, Flag flag) in
C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 931
at Ian.ParserWithFlags`3.SetPropertiesUsingFlagList(T obj, ParsedList
pl,
ConstList`1 priorityFlags) in
C:\Data\Recent\Games\Parser\ParserBase.cs:line
102
at Ian.UnitParser.HandleList(Unit obj, ParsedList pl) in
C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 918
at Ian.UnitParser.Parse(ParsedList pl, String typeName, Dictionary`2
defaultFlags) in C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 911
at Ian.ParserBase`3.RunParser(IEnumerable`1 files) in
C:\Data\Recent\Games\Parser\ParserBase.cs:line 61
at Ian.ParserBase`3.RunParserOnAllFiles() in
C:\Data\Recent\Games\Parser\ParserBase.cs:line 30
at Ian.UnitParser.Run(ITBSimWorld world, IEnumerable`1 files,
Dictionary`2 defaultFlags) in
C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 891
at Ian.TBHM.LoadMap(String mapPath, String basePath, MapPackInfo mpi,
Boolean& success) in
C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 270
at Ian.TBHM.LoadMapFromKey(String packName, String mapName) in
C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 94
at Ian.MapMenu.Process(TBClientWorld ent) in
C:\Data\Recent\Games\TacticalBattle\TBStates\MapMenu.cs:line 66
at Ian.SceneMachine`1.Process(T ent) in
C:\Data\Recent\Games\GameEngine\SceneMachine.cs:line 66
at Ian.TBGameLoop.InnerSingleLoop(TBClientWorld ent, QueuedGameInput
formInput) in C:\Data\Recent\Games\TacticalBattle\TBGameLoop.cs:line 57
at Ian.GameLoopLogic.RunLoops[TWorld](TWorld ent, QueuedGameInput
formInput, Action`2 runSingleLoop, Double totalElapsedSeconds, Double
fixedTimeStep) in C:\Data\Recent\Games\GameEngine\GameLoopLogic.cs:line 31
at Ian.TBGameLoop.RunLoops(TBClientWorld ent, QueuedGameInput formInput)
in C:\Data\Recent\Games\TacticalBattle\TBGameLoop.cs:line 23
at Ian.GameWindow`1.RunGameLoop() in
C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 135
at Ian.GameWindow`1.GameLoopTimer_Tick(Object sender, EventArgs e) in
C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 182
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsaf
eNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID,
Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Ian.TBStartup.RunMainLogic() in
C:\Data\Recent\Games\TacticalBattle\TBStartup.cs:line 76
at Ian.TBStartup.PerformStandardStartup() in
C:\Data\Recent\Games\TacticalBattle\TBStartup.cs:line 22
at Ian.Stub.TB()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at AssemblyLoader.AssemblyLoader.CallMethod(String dllName, String
typeName, String methodName) in
C:\Data\Dev\Mine\New\2010\AssemblyLoader\AssemblyLoader\AssemblyLoader.cs:li
ne 65

critical_hit_defense_chance is not a valid script_flag name in Data for
TB\Map Packs\starship battles elite\Units\template federation.txt on line
20





"The truth will make you free"
Jesus Christ of Nazareth 33AD




-----
You can unsubscribe from this list by sending email to
ian-reeds-games-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject
field.
Or by visiting the list page at
//www.freelists.org/list/ian-reeds-games

Download the latest dev version of Tactical Battle here:
http://blindaudiogames.com/downloads/Tactical%20Battle%20Dev.zip




--
-Mew
__________
http://www.savethefrogs.com/

-----
You can unsubscribe from this list by sending email to
ian-reeds-games-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field.
Or by visiting the list page at //www.freelists.org/list/ian-reeds-games

Download the latest dev version of Tactical Battle here:
http://blindaudiogames.com/downloads/Tactical%20Battle%20Dev.zip

Other related posts: