Jump to content
LoOni3r

Multiplayer mission Savgame without extdb3

Recommended Posts

Hello everybody,

 

I googled for a long time but found nothing..

 

I've created a multiplayer mission and need a savegame for a daily server restart.

 

Player data and vehicles do not need to be saved.

 

I have to save team points and captured cities (sector modul, already triggered..).

 

 

Is anyone aware of a possibility?

I once played the mission overthrow. There was a way to save "Persistent Save" and "Load Persistent Save"

something would be nice.

 

best regards

Share this post


Link to post
Share on other sites

Thank you very much, that looks very interesting.

 

to save so could i profileNamespace setVariable ["sector_name_1",_side]; in the sector modul.

 

 

after restarting a sqf perform with

_sectorname1 = profileNamespace getVariable "sector_name_1";

....

 

 

how do I set "sector_name_1" to side "west" if it was conquered before the reboot of west?

Share this post


Link to post
Share on other sites

push

 

 

I hope someone can tell us that I can change the owner of the trigger after rebooting the server..

Share this post


Link to post
Share on other sites

@LoOni3r Sorry I don't understand what you are asking but maybe you need the setTriggerActivation command?

 

_trigger setTriggerActivation ["WEST", "EAST D", true]

 

Share this post


Link to post
Share on other sites

Unfortunately it was not the right one.

I am looking for a possibility to change the owner of a sectors

via command.

 

save:

_savesector46 = sector_46 getVariable "owner";
profileNameSpace setVariable [_savesector46,sector_46];
saveProfileNamespace;

 

 

edit:

_loadsector47 = profileNamespace getVariable "sector_47";
_loadtest = sector_47 setvariable["owner",_loadsector47,true];

 

I'm still testing

Share this post


Link to post
Share on other sites

changing the owner and reading works.

 

If I save a sector, restart the server and read the saved data, nothing happens.

 

Saving:

_savesector47 = sector_47 getVariable "owner"; 
profileNameSpace setVariable [_savesector47,sector_47];
saveProfileNamespace;

after restart load and change:

_loadsector47 = profileNamespace getVariable "sector_47"; 
_loadtest = sector_47 setvariable["owner",_loadsector47,true];

 

Unfortunately it will not be changed.

 

server profile after save new file: server.vars.Arma3Profile

 

I can not detect a mistake

 

Share this post


Link to post
Share on other sites

You are saving sector_47 into a variable by the name of the owner variable.
And then you are trying to take a variable by the name of sector_47 and store that as the owner variable.
Looks like you are mixing up variableName and variableValue here.

 

Let's say

sector_47 getVariable "owner"

returns "x".
Now you are setting the profileNamespace variable "x" to sector_47.
When you call

profileNamespace getVariable "sector_47"

That will return nil. As you never saved a "sector_47" named variable. The variable you saved was named "x".

Share this post


Link to post
Share on other sites

Hello and thank you for your answer.

your post is confusing for me.

 

the reading works well:

if ((sector_1 getVariable "owner" == west) && (sector_2 getVariable "owner" == west)....

 

 

save with (#post) also (a file in the profile is created when saving).

 

the query does not work after server reboot.

_loadsector47 = profileNamespace getVariable "sector_47"; 

 

Unfortunately I do not understand where the error is.

 

Share this post


Link to post
Share on other sites
18 hours ago, LoOni3r said:

Unfortunately I do not understand where the error is.

You are saving a variable named "west" and put sector_47 inside it. then try to load variable named "sector_47" and expect it to contain "west".
You are mixing up variable name and value.
Also you cannot save objects into profileNamespace.
If you don't understand that then I don't know how else I could help you.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×