-
-
Notifications
You must be signed in to change notification settings - Fork 307
EN_SavegamePort
With these instructions you will be able to move or copy a Liberation save from one user profile to another. It will work between local and dedicated hosts in any direction and there is no need to mess with files in any way. All you do need is the ability to log in as an admin on your server (you are automatically an admin on your own local host) so that you can access the debug console.
This top line (marked by the red “1”) is for writing down small codes that will return a direct values or values, in this case those values make up your save data - this is what we’re after right now.
First you have to start your Liberation game on your local (client) or dedicated (server) host. Once you're in-game, you need to login as admin and hit the “ESC” key to see the debug console in the usual “Menu” screen.
In the line marked with number 1 you should enter:
profileNamespace getVariable GRLIB_save_key;
In the line marked with number 1 you should enter:
mySavegame
In the box marked with number 3 you should enter:
mySavegame = profileNamespace getVariable GRLIB_save_key;
publicVariable "mySavegame";
And then press execute on server (button marked with 4)
Now you've the data in the line under mySavegame
, like you would have it if you do it like the way for receiving the local save data.
You'll then see the return value of your previous code input. It'll be a very long, multidimensional array (depending on how long you have been playing that save for).
Click within the line (marked by the red “2” and hit Ctrl+A to highlight everything, then hit Ctrl+C to copy it to your clipboard. Maybe you should paste it, with Ctrl+V, inside a text document or something safe, so that you won't lose it during the next steps.
That's your save data and it should look like this example:
[["capture_2","factory","factory_2","factory_4","factory_1"],[[21373.4,8434.31,0]],[["B_MBT_01_arty_F",[21278.3,8504.31,0.0306664],292.372,true,[]],["Land_LampAirport_F",[21354.3,8427.48,-0.000733376],299.535,false,[0,0,1]],["Land_HelipadCircle_F",[21355.3,8437.57,0],1.38423,false,[0,0,1]],["Land_CarService_F",[21371.5,8409.5,0.0104733],175.809,false,[]],["Land_HelipadCircle_F",[21374.1,8451.62,0],354.256,false,[0,0,1]],["Land_Cargo_HQ_V1_F",[21387.6,8435.53,0.00529766],0,false,[0,0,1]]],9,32,[["ContainmentArea_01_sand_F",[21388.8,8419.94,0.000324249],94.2737,125,400,250,[0,0,1]]],[["Charkia Mine","factory_2",1,[[18417.5,14220.3,0.00133514],44.0183,[0,0,1]],true,true,true,1,27,0,200,0],["Kalochori Powerplant","factory_4",1,[[20703.2,15704.3,2.86102e-005],52.1317,[0,0,1]],true,true,true,2,43,0,0,200],["Panagia","capture_2",0,[[20439.4,8861.28,0.000434875],47.5575,[0,0,1]],false,false,false,3,24,0,0,0],["Panagia Factory","factory",1,[],true,true,true,0,30,0,0,0],["Pyrgos Quarry","factory_1",1,[[17040.7,11307.9,5.14984e-005],239.01,[0,0,1]],true,true,true,0,43,200,0,0]],[["Alpha",0,[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],0,-1,0]],[74,0,2,2,3,0,0,0,0,0,0,5,5125,0,0,0,0,266,39,0,0,0,2,0,0,1,0,32],[100,0,0],[["B_MBT_01_TUSK_F","military_11"],["I_Plane_Fighter_04_F","military_9"],["B_MBT_01_arty_F","military_22"],["B_T_UAV_03_dynamicLoadout_F","military_7"],["B_Heli_Attack_01_dynamicLoadout_F","military_10"],["B_Plane_Fighter_01_Stealth_F","military_16"],["B_MBT_01_mlrs_F","military_17"],["B_T_VTOL_01_armed_F","military_8"],["B_UAV_05_F","military_14"],["B_Plane_CAS_01_dynamicLoadout_F","military_6"],["B_UAV_02_dynamicLoadout_F","military_20"],["B_Plane_Fighter_01_F","military_4"]],[["Default",[true,true,true,true,true,true]],["76561198043",[true,true,true,true,true,true]]],[],0,[]]
Now you can disconnect from your game and you need to start a local or dedicated hosted game wherever it is you want to move or copy your save data to. So to move it to your local host, you want to open a mission on your client server (local LAN). To move it to your dedicated server, you want to open a mission there on your dedicated server. This can be an empty mission or any other, as long as you have access to the debug console (some missions have it disabled even for admin - you could create a blank mission with access by putting down a playable unit on any map in editor and clicking “Attributes” > “States” > “Debug Console:” > “Available for everyone” or “Available for the host or logged in-admin”). Warning: It is very important that you don't start Liberation.
After you are in-game you need to login as admin again (you are automatically an admin on your own local host) and paste the following into the area (marked by the red “3”) of the debug console:
profileNamespace setVariable ["KP_LIBERATION_ALTIS_SAVEGAME", SAVEGAMEDATA]; saveProfileNamespace;
Replace “ALTIS” with the map your save data is originally from. So for example “CHERNARUS” or “TANOA” or “PJA310”. Basically you have to enter in capital letters the map name of the Liberation mission folder that comes after the full stop. If you play kp_liberation.Takistan.pbo
for example, you need to write “TAKISTAN” (without the “”).
Next you need to replace “SAVEGAMEDATA” with your previously copied save data from the previous step, either paste over or remove the placeholder and then paste your save data between the ",
and the ];
.
It'll look very messy but if you followed the instructions exactly it's all fine.
After you’ve entered the code in the box above, you'll have to click on this button (marked by the red “4”), to execute the code on the server (not global or client, it must be server).
And that's it! You're done and have ported your save data from one user profile to another. You can close the mission and load your Liberation mission again on the new user profile, which will directly load from the new save data.
Please ensure that you've the same edits in the mission folder (or even better the exact same mission folder) on both machines and also the same mods loaded.