Script Question

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
User avatar
Michael T
Posts: 4445
Joined: Sat Oct 21, 2006 9:35 pm
Location: Queensland, Australia.

Script Question

Post 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.



Journier
Posts: 350
Joined: Sun Mar 28, 2010 3:41 pm

RE: Script Question

Post by Journier »

good question about to test and find out!
Journier
Posts: 350
Joined: Sun Mar 28, 2010 3:41 pm

RE: Script Question

Post 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.
User avatar
Michael T
Posts: 4445
Joined: Sat Oct 21, 2006 9:35 pm
Location: Queensland, Australia.

RE: Script Question

Post 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.

Journier
Posts: 350
Joined: Sun Mar 28, 2010 3:41 pm

RE: Script Question

Post 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... ^_^
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Script Question

Post 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.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Journier
Posts: 350
Joined: Sun Mar 28, 2010 3:41 pm

RE: Script Question

Post by Journier »

yup just got it to work by deleting my scenario, and resaving it after loading the scripts in. all fixed
User avatar
Michael T
Posts: 4445
Joined: Sat Oct 21, 2006 9:35 pm
Location: Queensland, Australia.

RE: Script Question

Post by Michael T »

Ok thanks. I understand a little more now how it all works.
Post Reply

Return to “WarPlan”