[info] Editor questions II (Full Version)

All Forums >> [New Releases from Matrix Games] >> Desert War 1940 - 1942 >> Mods and Scenarios



Message


laska2k8 -> [info] Editor questions II (7/25/2018 2:57:27 PM)

trying to do some AI test .... why is the script executed for side 0 ?

1) unit 3rd Inf Div XX (HQ) defined in side 1
2) AI tags for side 1



\Documents\My Games\DesertWar\save\autosave_turn1_side1.gm
2018-07-25 16:31:40,797 | INFO | AiFirstMovePhase | Enter Phase: AiFirstMovePhase
2018-07-25 16:31:42,521 | INFO | ScriptExecutor | ------------ TURN = 1. AI executeScripts for side: 0 -------------
2018-07-25 16:31:42,539 | INFO | ScriptExecutor | ----------- AI executeScripts for side: 0 -----------
2018-07-25 16:31:45,116 | INFO | ScriptExecutor | AI time taken: 2595
2018-07-25 16:31:45,245 | INFO | PhaseStateMachine | Set Next Phase: Planning
2018-07-25 16:31:45,854 | INFO | Zip | Zipped :C:\Users\massimo\Documents\My Games\DesertWar\save\tempX1Y to C:\Users\massimo\Documents\My Games\DesertWar\save\autosave_turn1_side0.gm
2018-07-25 16:31:45,864 | INFO | AiFirstMovePhase | Enter Phase: AiFirstMovePhase
2018-07-25 16:31:47,336 | ERROR | GeneratedScriptCreator | Script: id=(1) Unit Unit: 3rd Inf Div XX (HQ) does not exist
2018-07-25 16:31:47,343 | ERROR | ReponseValidator | Script id=(1) MOVE_ATTACK is invalid. No Response Unit/Org specified
2018-07-25 16:31:47,344 | ERROR | GeneratedScriptCreator | Script: id=(2) Unit Unit: 3rd Inf Div XX (HQ) does not exist
2018-07-25 16:31:47,344 | ERROR | GeneratedScriptCreator | Script: id=(2) Unit Unit: 3rd Inf Div XX (HQ) does not exist
2018-07-25 16:31:47,345 | ERROR | TriggerValidator | Script id=(2) INHEX is invalid. No Trigger Unit/Org or side specified
2018-07-25 16:31:47,346 | ERROR | GeneratedScriptCreator | Script: id=(3) Unit Unit: 3rd Inf Div XX (HQ) does not exist
2018-07-25 16:31:47,346 | ERROR | GeneratedScriptCreator | Script: id=(3) Unit Unit: 3rd Inf Div XX (HQ) does not exist
2018-07-25 16:31:47,347 | ERROR | TriggerValidator | Script id=(3) INHEX is invalid. No Trigger Unit/Org or side specified
2018-07-25 16:31:47,347 | INFO | ScriptExecutor | ------------ TURN = 1. AI executeScripts for side: 1 -------------
2018-07-25 16:31:47,347 | INFO | ScriptExecutor | ----------- AI executeScripts for side: 1 -----------
2018-07-25 16:31:47,366 | INFO | StartTurnBattlesCreator | Create battle at: java.awt.Point[x=77,y=66]
2018-07-25 16:31:47,853 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 24th Field Arty Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,858 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 70th Medium Regt, RA (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,862 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 11th Medium Regt, RA (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,867 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 2nd RC Rgt (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,877 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 66th Medium Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,909 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 74 Field Regiment RA (ARTILLERY) attack to hex Hex (77, 65) DesertPlain_1. Contents = Unit: 146.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,915 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 80th Medium Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,926 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 1st RC Rgt (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,933 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 111th Field Arty Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,943 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 98th Field Arty Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,961 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 124 Field Regiment RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,969 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 57th Field Arty Regt, RA (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,978 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 92 Field Regiment RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:47,987 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 75th Medium Regt, RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:48,000 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 64th Medium Regt, RA (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-25 16:31:48,000 | INFO | AutoAirGroundSupportAssigner | Adding Auto (non-scripted) Ground Support 3rd Sqdn SAAF -> java.awt.Point[x=77,y=65]

[image]local://upfiles/18806/016CA839A8A44269A18A938FD7D11F81.jpg[/image]




laska2k8 -> RE: [info] Editor questions II (7/26/2018 8:23:15 AM)

there's a problem with the editor.
Take a look at my images above, when you select the "resp org" the editor adds the prefix "unit:" and "(hq)" in the end.
So when you run the scenario the AI look for "Unit: 3rd Inf Div XX (HQ)" and it doesn't exist.

I exported my AI list of instructions, then I wrote the unit name as it appears in the army list.
that's the correct result

2018-07-26 10:07:13,357 | INFO | ScriptExecutor | ------------ TURN = 1. AI executeScripts for side: 0 -------------
2018-07-26 10:07:13,412 | INFO | ScriptExecutor | ----------- AI executeScripts for side: 0 -----------
2018-07-26 10:07:15,732 | INFO | ScriptExecutor | AI time taken: 2375
2018-07-26 10:07:15,855 | INFO | PhaseStateMachine | Set Next Phase: Planning
2018-07-26 10:07:16,522 | INFO | Zip | Zipped :C:\Users\massimo\Documents\My Games\DesertWar\save\tempX1Y to C:\Users\massimo\Documents\My Games\DesertWar\save\autosave_turn1_side0.gm
2018-07-26 10:07:16,536 | INFO | AiFirstMovePhase | Enter Phase: AiFirstMovePhase
2018-07-26 10:07:17,823 | INFO | GeneratedScriptCreator | Loaded: Script: id=(1) -> RESPONSE = Response{Type=MOVE_ATTACK, hex=(33,45), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:17,824 | INFO | GeneratedScriptCreator | Loaded: Script: id=(2) INHEX Trigger on UNITS. HEX: (33,45) -> RESPONSE = Response{Type=MOVE_ATTACK, hex=(18,37), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:17,825 | INFO | GeneratedScriptCreator | Loaded: Script: id=(3) INHEX Trigger on UNITS. HEX: (18,37) -> RESPONSE = Response{Type=MOVE_ATTACK, hex=(8,30), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:17,825 | INFO | ScriptExecutor | ------------ TURN = 1. AI executeScripts for side: 1 -------------
2018-07-26 10:07:17,826 | INFO | TriggerResponseFactory | Triggered Script: id=(1) -> RESPONSE = Response{Type=MOVE_ATTACK, hex=(33,45), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:17,827 | INFO | ScriptExecutor | ----------- AI executeScripts for side: 1 -----------
2018-07-26 10:07:17,827 | INFO | TriggerResponseFactory | Triggered Script: id=(1) -> RESPONSE = Response{Type=MOVE_ATTACK, hex=(33,45), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:17,887 | INFO | StartTurnBattlesCreator | Create battle at: java.awt.Point[x=77,y=66]
2018-07-26 10:07:18,179 | INFO | ScriptExecutor | Executing: TriggeredResponse (Id=1) Response{Type=MOVE_ATTACK, hex=(33,45), OrgUnit=Unit: 3rd Inf Div XX (HQ)}
2018-07-26 10:07:18,383 | INFO | BreachMinefieldOrderCreator | Order to clear mines: Unit: 10th Engineer Btn (ENGINEER)
2018-07-26 10:07:19,076 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 11th Medium Regt, RA (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-26 10:07:19,082 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 66th Medium Regt, RA (ARTILLERY) attack to hex Hex (79, 64) WoodsDesert_345_0. Contents = Unit: 206 Coastal XX (HQ),
2018-07-26 10:07:19,089 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 2nd RC Rgt (ARTILLERY) attack to hex Hex (77, 66) DesertPlain_1. Contents = Unit: 123.Regt/206 Coastal Div (HQ),
2018-07-26 10:07:19,096 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 92 Field Regiment RA (ARTILLERY) attack to hex Hex (79, 61) WoodsDesert_34_0. Contents = Unit: 122.Regt/206 Coastal Div (HQ),
2018-07-26 10:07:19,101 | INFO | AutoArtyAssigner | Added Auto (non-scripted) artillery Unit: 98th Field Arty Regt, RA (ARTILLERY) attack to hex Hex (79, 64) WoodsDesert_345_0. Contents = Unit: 206 Coastal XX (HQ),


AI panel with modified file imported



[image]local://upfiles/18806/B36F0D31BD3D4F15B57F4D73963D77D5.jpg[/image]




laska2k8 -> RE: [info] Editor questions II (7/26/2018 8:30:45 AM)

maybe not so clear in my above post, but to remove the error that's what I've done:

1) added instruction in the editor, selected the response unit (the editor add "unit:" as prefix and "(hq)" at the end
2) exported the list of instructions
3) file editing, changed the unit name from "Unit: 3rd Inf Div XX (HQ)" to "3rd Inf Div XX"
4) import in the editor

now it works




Saint Ruth -> RE: [info] Editor questions II (7/26/2018 3:27:06 PM)

Ah, good catch. Will fix, thanks.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.101563E-02