Autosave?

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Message
Author
Frumple
Sher'Tul Godslayer
Posts: 1517
Joined: Sat May 15, 2010 9:17 pm

Autosave?

#1 Post by Frumple »

Would be nice. Thing that gets me the most nowadays is odd one-off crashes that either send a character back to level 1 or eat up a few hours of effort. Not having to remember to esc->f every level or so would be pleasing, if it's possible.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Autosave?

#2 Post by darkgod »

Humm, the thing is saveing can be a tad long sometimes.
Maybe only at zone change ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Frumple
Sher'Tul Godslayer
Posts: 1517
Joined: Sat May 15, 2010 9:17 pm

Re: Autosave?

#3 Post by Frumple »

Anything would be better than nothing, yah. Saving can be a little lengthy, but even with a processor throttled down to about a gig's power it's not particularly terrible. I've certainly seen longer ones, ayuh. Just having it as a config option or somethin' would be wonderful, though, 'specially if increment or trigger (zone change, level gain, X # of turns, etc) could be modified.

Though I do notice save process's time increases as you go along. First level save's pretty short, yeah, but getting one off at the bottom of the sand pit whatsit takes a noticeably longer period... which I guess isn't much of a surprise, heh.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Autosave?

#4 Post by darkgod »

Yes to avoid load/save on level change I keep all levels of the current zone in memory, they are written to disk only when leaving. The more you exlpore the more there is to save, but it's never more than one zone.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

forkbomb
Archmage
Posts: 332
Joined: Mon Jun 04, 2007 6:32 pm

Re: Autosave?

#5 Post by forkbomb »

darkgod wrote:Humm, the thing is saveing can be a tad long sometimes.
Maybe only at zone change ?
Is that a limitation of the new engine? SDL or lua limitation or something? Seems like not providing an autosave function because of slow saves is like putting a bandaid two inches away from the wound. Can save speed be improved? I hope so - complexity of the engine and module is likely to increase with time and I'd only expect saves to get slow, but I'm only hazarding a guess.

Either way, an autosave wouldn't have to be mandatory, right? Could be an option. Those who want to manually save or save only upon exit wouldn't need to be shoehorned into using autosave.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Autosave?

#6 Post by Canderel »

Admittedly, getting an autosave is also like a bandaid... if we can get the game to not have the odd crash... That'd be much cooler.

But I think autosave on gaining a level... that sounds like a good event to do it on. Or a prompted autosave... Like you've gained a level, want to save?

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Autosave?

#7 Post by darkgod »

Possibly yes :)
If the only known crash is the music one then it's fine.

And savefile times wont get much bigger, they are mostly only dependent on level size & number of levels per zone.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

MistMage
Posts: 1
Joined: Tue Jun 15, 2010 8:43 pm

Re: Autosave?

#8 Post by MistMage »

Hi. This is my first post here so I just thought I'd say hi first. :)

Anyway, I just thought I'd say that I think that an autosave feature would be a good thing. I just lost a bunch of work on an operating system failure, so as you see a stable game is no guarantee for avoiding crashes. :|

Gwai
Sher'Tul
Posts: 1091
Joined: Wed Apr 27, 2005 1:55 pm

Re: Autosave?

#9 Post by Gwai »

Just to echo what's been said, I'd be happy to wait to have the confidence of an auto-save.

registeringislame
Halfling
Posts: 85
Joined: Sun May 23, 2010 5:25 am

Re: Autosave?

#10 Post by registeringislame »

You know if you pad parts of the savefile to take constant amounts of space, you can just write those parts using fseek(), or even just write changes as the differences.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Autosave?

#11 Post by darkgod »

You say taht because you do not know how TE4 savefiles work ;)
They are zipped directories of files, each being a serialization of a lua object :)
They are not binaries at all just zipped text, this is needed so that module authors dont have to fiddle with savefiles at all it's all nearly automatic !
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

FACM
Higher
Posts: 65
Joined: Sun Jan 24, 2010 5:54 pm

Re: Autosave?

#12 Post by FACM »

darkgod wrote:You say taht because you do not know how TE4 savefiles work ;)
They are zipped directories of files, each being a serialization of a lua object :)
They are not binaries at all just zipped text, this is needed so that module authors dont have to fiddle with savefiles at all it's all nearly automatic !
I discovered this working on my module, and it was somewhat helpful in debugging one or two issues so far ("What do you mean that property was null? Lemme check my character and... oh, I misspelled it.")

Vanguard
Higher
Posts: 68
Joined: Wed Jun 02, 2010 8:51 am

Re: Autosave?

#13 Post by Vanguard »

I would recommend having everything save when you save zones, because if the game crashes after one thing was saved and the rest isn't, you get wacky (and gamebreaking) results.

Final Master
Sher'Tul
Posts: 1022
Joined: Fri May 21, 2010 8:16 pm
Location: Inside the minds of all
Contact:

Re: Autosave?

#14 Post by Final Master »

Is the auto save still necessary? There have been very few crash reports in the last few betas and they seem to be getting fixed and reported very soon after each new beta release.
Final Master's Character Guides
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Autosave?

#15 Post by darkgod »

Yes it is due to the multi-files nature of the saves.

However that problem of desync'ed files should not happen anymore as all fileshave a unique id and the main file knows which it can load and ignores the rest
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply