autosave

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
Post Reply
pabs
New user
Posts: 5
Joined: 22 Feb 2008, 13:03
Contact:

autosave

Post by pabs » 03 Jul 2010, 11:51

Forwarding http://bugs.debian.org/587530

A Debian/warzone2100 user noticed that there is no autosave feature. They think it would be nice if the game is automatically saved every 10 or 30 minutes so that when it does crash one doesn't loose everything. They were using 2.2.4 and experienced a crash.

KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: autosave

Post by KukY » 03 Jul 2010, 13:00

pabs wrote:Forwarding http://bugs.debian.org/587530

A Debian/warzone2100 user noticed that there is no autosave feature. They think it would be nice if the game is automatically saved every 10 or 30 minutes so that when it does crash one doesn't loose everything. They were using 2.2.4 and experienced a crash.
That feature has been introduced in 2.3.

pabs
New user
Posts: 5
Joined: 22 Feb 2008, 13:03
Contact:

Re: autosave

Post by pabs » 03 Jul 2010, 14:06

Hmmm, seems like the autosave happens just at the end of the mission rather than every X minutes like the Debian reporter suggested.

User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: autosave

Post by JDW » 03 Jul 2010, 15:43

pabs wrote: They think it would be nice if the game is automatically saved every 10 or 30 minutes so that when it does crash one doesn't loose everything.
Excellent idea. Although my WZ2100 build has never crashed even once. Nevertheless, a useful feature even in case of no crashes maybe?

I prefer 5 mins (or even less) of autosave interval, because a lot can happen in 5 mins.

But would regular saves cause the gamer to encounter a noticeable freeze (in seconds or milliseconds) during gameplay?
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce

User avatar
Powzone
Trained
Trained
Posts: 332
Joined: 17 Feb 2008, 17:25
Location: Germany

Re: autosave

Post by Powzone » 03 Jul 2010, 18:49

j0shdrunk0nwar wrote:But would regular saves cause the gamer to encounter a noticeable freeze (in seconds or milliseconds) during gameplay?
Possibly. I got the game stopped for around a half second when I save manually. But mostly I'm on my Eee! Didn't check this on my custom system.
Manjaro XFCE / Intel Core i7 6700 / 32GB RAM / NVidia GTX1050Ti

pabs
New user
Posts: 5
Joined: 22 Feb 2008, 13:03
Contact:

Re: autosave

Post by pabs » 03 Jul 2010, 19:01

The reporter was on 2.2 which was a bit more crashy than 2.3.

Any slowdown could be minimised by first quickly making a copy of the save in memory and then lazily/slowly writing it out to the disk in the background.

One other nice thing about regular autosaves would be that you could autosave skirmishes, which aren't autosaved at the moment.

User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: autosave

Post by JDW » 03 Jul 2010, 19:13

pabs wrote:Any slowdown could be minimised by first quickly making a copy of the save in memory and then lazily/slowly writing it out to the disk in the background.
Asynchronous Writes to disk? :hmm: Where is Zarel when you need him? :D
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce

User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland
Contact:

Re: autosave

Post by Emdek » 03 Jul 2010, 21:48

Yeah, current autosave mechanism needs more work for sure.
I would like to see an option to set interval in minutes with possibility to disable it at all.
I don't remember if it was fixed already (as far as I remember ticked was closed, but I don't remember reason...) but there was bug that lead to lost of one of savegames if there were no empty slots and entry used for autosave was reused for regular save, then autosave just overwrote one of regular saves.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: autosave

Post by Zarel » 03 Jul 2010, 22:02

j0shdrunk0nwar wrote:Asynchronous Writes to disk? :hmm: Where is Zarel when you need him? :D
Erm, why do we need me?

I'm not an I/O guy. Go look at someone else. >_<

User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: autosave

Post by JDW » 03 Jul 2010, 22:24

Zarel wrote:
j0shdrunk0nwar wrote:Asynchronous Writes to disk? :hmm: Where is Zarel when you need him? :D
Erm, why do we need me?

I'm not an I/O guy. Go look at someone else. >_<

:lol2: Alright, don't sweat it! I mentioned you because, well, how do I put this, if Warzone2100 were a soccer match, then you would be the referee XD

And you're probably the only developer who is most active in this section of the forum. :wink:

Anyway, do you think autosave is a bad idea? How about pressing a function key like 'F5' to autosave instead of regular interval saving? Like how many other games do it.
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: autosave

Post by Zarel » 03 Jul 2010, 23:33

Autosave is a good idea, but like we said, saves freeze the game. Threading the save might work, though.

User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: autosave

Post by JDW » 04 Jul 2010, 00:22

Zarel wrote:Threading the save might work, though.
Ok, one last question (hopefully). By threading, did you mean this concept?
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: autosave

Post by Zarel » 04 Jul 2010, 00:46

Yes.

Heneiser
New user
Posts: 1
Joined: 24 Apr 2020, 20:28

Re: autosave

Post by Heneiser » 24 Apr 2020, 20:42

I have the most current version (3.3) and there is still no autosave feature in campaign mode. It doesn't save at the end of a completed mission or even prompt you to manually save after completing a mission. I've lost hours of progress due to forgetting to save and then failing the next mission. Am I missing something?

aliswe
Trained
Trained
Posts: 62
Joined: 01 Apr 2020, 22:11

Re: autosave

Post by aliswe » 25 Apr 2020, 15:01

Hey, talk about necroposting. 10 years!

From what I can see (just searched the code for "autosave", it was implemented in 2.3 beta 8, but got pulled in 3.1 because the savegames were unloadable.

The changelog names another release, 3.3.1, which should implement it.

If you want to, you can try building from the source yourself (or perhaps we have "nightly builds") and see if its working.

Post Reply