[info] Editor questions II

Post new mods and scenarios here
Post Reply
User avatar
laska2k8
Posts: 556
Joined: Fri Nov 18, 2005 8:17 am
Location: Italy

[info] Editor questions II

Post by laska2k8 »

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
Attachments
husky2All.jpg
husky2All.jpg (122.45 KiB) Viewed 191 times
"Sa vida pro sa Patria"
User avatar
laska2k8
Posts: 556
Joined: Fri Nov 18, 2005 8:17 am
Location: Italy

RE: [info] Editor questions II

Post by laska2k8 »

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
Attachments
husky3All.jpg
husky3All.jpg (90.51 KiB) Viewed 191 times
"Sa vida pro sa Patria"
User avatar
laska2k8
Posts: 556
Joined: Fri Nov 18, 2005 8:17 am
Location: Italy

RE: [info] Editor questions II

Post by laska2k8 »

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
"Sa vida pro sa Patria"
User avatar
Saint Ruth
Posts: 1385
Joined: Wed Dec 16, 2009 1:39 pm

RE: [info] Editor questions II

Post by Saint Ruth »

Ah, good catch. Will fix, thanks.
Post Reply

Return to “Mods and Scenarios”