Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[info] Editor questions II

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Desert War 1940 - 1942 >> Mods and Scenarios >> [info] Editor questions II Page: [1]
Login
Message << Older Topic   Newer Topic >>
[info] Editor questions II - 7/25/2018 2:57:27 PM   
laska2k8


Posts: 556
Joined: 11/18/2005
From: Italy
Status: offline
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]




Attachment (1)

_____________________________

"Sa vida pro sa Patria"
Post #: 1
RE: [info] Editor questions II - 7/26/2018 8:23:15 AM   
laska2k8


Posts: 556
Joined: 11/18/2005
From: Italy
Status: offline
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






Attachment (1)

_____________________________

"Sa vida pro sa Patria"

(in reply to laska2k8)
Post #: 2
RE: [info] Editor questions II - 7/26/2018 8:30:45 AM   
laska2k8


Posts: 556
Joined: 11/18/2005
From: Italy
Status: offline
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

< Message edited by laska2k8 -- 7/26/2018 8:32:24 AM >


_____________________________

"Sa vida pro sa Patria"

(in reply to laska2k8)
Post #: 3
RE: [info] Editor questions II - 7/26/2018 3:27:06 PM   
Saint Ruth


Posts: 731
Joined: 12/16/2009
Status: offline
Ah, good catch. Will fix, thanks.

(in reply to laska2k8)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Desert War 1940 - 1942 >> Mods and Scenarios >> [info] Editor questions II Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.098