Page 1 of 1

Script Question

Posted: Mon Dec 16, 2019 11:20 pm
by Michael T
@Alvaro

If a game begins under 1.04 does it look at the script in the scenario folder each successive turn OR is the script copied in to the save game file and that copied script is then looked at by the game as it progresses?

So for example. The Soviet Arm/Mech bug I found in the script for 1.04. Lets say players began a game under 1.04. If you correct the script for version 1.04.01 does that game saved under 1.04 now look at the new script (1.04.01) or is it locked in to what was written in the script the game started in (1.04).

I hope you can decipher this and clarify for me as it will help me understand what can be fixed in ongoing games and what cannot be fixed.




RE: Script Question

Posted: Mon Dec 16, 2019 11:38 pm
by Journier
good question about to test and find out!

RE: Script Question

Posted: Mon Dec 16, 2019 11:59 pm
by Journier
Looks like the events are meaningless after scenario generation? none of my changes to the scenario event files changed anything that fired when the event fired.

unless for some reason the different scenario's are reading outside of their folder for event data. Alvaro will need to clarify.

RE: Script Question

Posted: Tue Dec 17, 2019 12:05 am
by Michael T
If it works as you say that is a good thing. As it prevents tampering with scripts after a game has begun. But it also means any game started under 1.04 is dead unless the Allied player wants to play with very weak Arm/Mech units from 42 on.


RE: Script Question

Posted: Tue Dec 17, 2019 12:20 am
by Journier
yea fiddling with it now, in the editor there is a load scripts button tried it still not getting any effect...

confused now on how to create a change in the scripts that then relays to in game... ^_^

RE: Script Question

Posted: Tue Dec 17, 2019 12:54 am
by AlvaroSousa
Scripts are read into the data in the editor. Once a game starts those scripts are locked in there and can't be changed.

RE: Script Question

Posted: Tue Dec 17, 2019 12:57 am
by Journier
yup just got it to work by deleting my scenario, and resaving it after loading the scripts in. all fixed

RE: Script Question

Posted: Tue Dec 17, 2019 1:09 am
by Michael T
Ok thanks. I understand a little more now how it all works.