Jump to content
thedubl

Saving mission state for server reboot

Recommended Posts

Hello, I was wondering if it is possible to save the mission before rebooting the server, so that after the reboot the mission is in the same state? If so how? The mission is an insurgency using EOS, COS and some other scripts. I do have saving set to false and auto save, but I just want to know if it is possible to even load a save mission on the server. We spend time taking sectors and then reboot and all progress is gone. Not the end of the world, but it would awesome to actually beat the mission.

 

init:

// Disable saving
enableSaving [false, false];

 

https://community.bistudio.com/wiki/enableSaving

Ideas?

 

Thanks,

Travis

aka dubl

Share this post


Link to post
Share on other sites

That setting only affects SP games - for MP saving you'll need to use a database setup like this:

 

https://forums.bistudio.com/topic/169723-extdb-arma3-extension-linuxwindows/

 

Then you mission will have to be coded to support the db.

 

Would it not be potentially possible to save certain data to the server's profileNamespace and then handle reading those variables at the relaunch of the mission? Ultimately this would bloat the <username>.vars file very rapidly if used with a lot of missions, but saving a single frequently played mission to profileNamespace *could* work...

Share this post


Link to post
Share on other sites

Thanks, for the replies. I will look into both. Tyger, do you by chance know of an example MP mission?

 

Thanks,

Travis

Share this post


Link to post
Share on other sites

I'm not aware of any specifically.

 

It's just the normal getVariable/setVariable methods where the <object> parameter is profileNamespace. You would have to build your framework to load these variables from the profileNamespace at mission start if they are set, and then admin scripts to save what ever data you need before shutdown.

 

Again, you'll have to test if this is feasible as I haven't tested in game.

Share this post


Link to post
Share on other sites

Yes that would work for some stuff... I believe script like VAS use this to save your loadouts.  Not sure how reliable it is for a mission saving / restoring feature.

Share this post


Link to post
Share on other sites

My group uses the servers profileNamespace to save a bunch of stuff for our persistent mission, works great, haven't had any trouble with it.

Share this post


Link to post
Share on other sites

My group uses the servers profileNamespace to save a bunch of stuff for our persistent mission, works great, haven't had any trouble with it.

 Do you mind explaining with some examples please austin_medic? I am just not grasping how the this is handled on a reboot.

 

dubl

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

×