Jump to content
Sign in to follow this  
meatball

Make a MP/Co-Op Missions 'Saveable'

Recommended Posts

I've been digging around without much luck. Has anyone come up with a way to allow players to play longer missions across multiple sessions? Some sort of 'Save' and then 'Load' type functionality?

Share this post


Link to post
Share on other sites

Are you looking for the save/load or a persistent battlefield?

Share this post


Link to post
Share on other sites

Save/Load in particular, but either would be nice.

Share this post


Link to post
Share on other sites

Well I know that for save/load, there is the standard Arma save/load system, but I'm sure that isn't exactly what your looking for. As far as other save/load systems I think they use database systems, which is out of my scope of knowledge. For persistence that is more about how the mission is built and making sure you have a server that won't crash, but if you wanted to have the persistence + the ability to restart the server, the databases would come into play once again.

But this may help you out a bit:

http://forums.bistudio.com/showthread.php?150293-iniDB-Save-and-Load-data-to-the-server-or-your-local-computer-without-databases!

Share this post


Link to post
Share on other sites

Yeah, see in my case, a Save/Load feature would work best. Many of my missions have lot's of objectives/side missions to do, and it's hard to get them all done in one session. If players could save after playing for a few hours, and then reload and play a few more hours with their friends another day, that'd work well.

Persistence I don't think really fits well since if the whole team gets wiped out, the missions should end and I don't really see how to handle persistence/leaving a server up after everyone drops with that type of scenario.

Share this post


Link to post
Share on other sites

Yeah, other than iniDB I'm not sure of any other means by which to do what you need to, and iniDB might not even do what you need. Hopefully someone else can give some input.

Share this post


Link to post
Share on other sites
I don't really see how to handle persistence/leaving a server up after everyone drops with that type of scenario.

If its just you and friends then lock the server and comeback to it.

When you set the server's server.cfg to

persistent = 0; // If 1, mission keeps running even after the last player has exited the game

then the map will stay on running til the server restarts, or shuts off, unless you have

a timer in the mission that ends the mission then it should work other then that only change would be the day/night cycle still going so it may be

day or night when you get back on, i do this all the time with a mission my buddy and I frequently play on our server.

Share this post


Link to post
Share on other sites

Yeah, I've done a bunch of research, and unfortunately, I don't believe saving/loading is doable at this point. I haven't been able to find any way to allow players to 'save' a mission state, and then reload that mission state without using some sort of database mod/addon. Since the mission files are simply pbo's, there's no way to save files into that pbo so they can be loaded later, and there's no way that you can save/load an external file into the players missions directory with the current command set/engine. If there was, I'm pretty sure I could save out an array that has the list of objectives completed/failed and the teams location at the save point, and then have the mission 'load' that state on startup, but I just don't think it can be done with A3 at this point.

Share this post


Link to post
Share on other sites

Hmm, looks interesting and I'll check into it. Though at first pass, really looks like it requires specific server side setting/installs and isn't something that could just be scripted/embedded into a standalone pbo and just work regardless. Thanks for the heads up though.

Share this post


Link to post
Share on other sites

If you want full access to what you want to save and how you want to save it, extdb is another choice. Takes a while to learn from scratch but its working pretty well for me.

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
Sign in to follow this  

×