Page 1 of 1
Import core army into new campaign
Posted: Sun Sep 13, 2020 9:52 am
by Draculea
Hello,
just finished AO SCW and 39 and left me longing for more action. I was also looking in the campaign tree and came with the ideea i could import my core from AO 39 into a new 39 campaign or Barbarossa '41. Currently this is not possible and maybe is a good idea for Slitherine to give us the possibility in order to ease our waiting time until AO 40.
But that takes time, if ever available. To the point: saw some remarks on the forum of someone modding an early save with his '45 core. Would like to do the same.
Kind thanks for the people who can point me in the right direction.
Re: Import core army into new campaign
Posted: Mon Sep 14, 2020 5:28 pm
by dalfrede
To handle Core transfers between campaigns you have to edit two LUA files.
Looking at the AO39 campaign folder, two lines stand out:
From: campaign.lua
"core_sets": ["end_of_001AODLCscw"],
This line says what core[s] to import.
From script.lua
SaveCore("end_of_002AODLC1939")
So to use you AO39 Core to in a new campaign you must add the line:
"core_sets": ["end_of_001AODLC1939"],
To the campaign.lua file of the new campaign you want to play.
I am too lazy to go into more detail, but the above is enough info to modify a campaign to either save a Core or to use a Core
Note: LUA scripts are locked in when a new campaign is started.
So if you want to play with your final core from the Base campaign, you most add the SaveCore line, and replay the campaign.
Note2: I doubt that anyone has done this yet.
Re: Import core army into new campaign
Posted: Tue Sep 15, 2020 10:06 am
by Draculea
Yup, this works very well. Only addition is "campaign.lua" is a .json. You also need to click on the custom army in order for this to work properly.
The other thing i might try to do is get the corps composition from the .sav files. Will look at one to see if i can pinpoint the location of the core.
Thank and regards.
dalfrede wrote: ↑Mon Sep 14, 2020 5:28 pm
To handle Core transfers between campaigns you have to edit two LUA files.
Looking at the AO39 campaign folder, two lines stand out:
From: campaign.lua
"core_sets": ["end_of_001AODLCscw"],
This line says what core[s] to import.
From script.lua
SaveCore("end_of_002AODLC1939")
So to use you AO39 Core to in a new campaign you must add the line:
"core_sets": ["end_of_001AODLC1939"],
To the campaign.lua file of the new campaign you want to play.
I am too lazy to go into more detail, but the above is enough info to modify a campaign to either save a Core or to use a Core
Note: LUA scripts are locked in when a new campaign is started.
So if you want to play with your final core from the Base campaign, you most add the SaveCore line, and replay the campaign.
Note2: I doubt that anyone has done this yet.