The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Reddog785 on February 06, 2010, 05:00:00 pm

Title: I've overwritten savefile and want the old one back
Post by: Reddog785 on February 06, 2010, 05:00:00 pm
Please, I accidentally over written it and want it back.
Title: Re: I've overwritten savefile and want the old one back
Post by: Spike on February 06, 2010, 05:19:12 pm
That is bad luck. The old contents have been overwritten by new data, and unless you use automatic backups or a staging file system, they are lost.
Title: Re: I've overwritten savefile and want the old one back
Post by: Zeno on February 06, 2010, 05:20:37 pm
Maybe you should check if any auto-save file was generated during gameplay. That's the only chance to get your savefile back I can imagine right now.
Title: Re: I've overwritten savefile and want the old one back
Post by: Pati on February 08, 2010, 05:27:49 pm
Maybe there should be a warning like this:
"WARNING If you overwrite the savefile, the old one will be deleted."
Title: Re: I've overwritten savefile and want the old one back
Post by: Reddog785 on February 08, 2010, 09:01:45 pm
Maybe there should be a warning like this:
"WARNING If you overwrite the savefile, the old one will be deleted."

You, my friend, are a genius. I support your idea.
Title: Re: I've overwritten savefile and want the old one back
Post by: Combuijs on February 08, 2010, 10:12:09 pm
Well in general you press OK before you read the warning...
Title: Re: I've overwritten savefile and want the old one back
Post by: prissi on February 08, 2010, 11:04:05 pm
Also in simutrans, you have to press a button/enter a name before any saving is done ...
Title: Re: I've overwritten savefile and want the old one back
Post by: z9999+ on February 09, 2010, 05:37:26 am
Confirm window is not the only one to avoid human error.
People often click 'Yes', without thinking.
I think we need to investigate why plyers often overwrite savefile by accident.

In next version, button works as normal window system, it will require mouse down and up on the same button. So, ability to hit the wrong button should be less than current version.

But in the case player mistake 'save dialogue' and 'load dialog', we need to use different approach.
For example, remove 'Load' button from 'Options' window, and player must access to 'Load' dialogue via 'Create a new game' window might help.
Title: Re: I've overwritten savefile and want the old one back
Post by: wipi35 on February 09, 2010, 01:04:52 pm
Another suggestion: when you exit Simutrans let the program ask: do you want to save the changes, Yes/No. That's what most programs in Windows do.
Title: Re: I've overwritten savefile and want the old one back
Post by: Spike on February 09, 2010, 01:16:10 pm
Quote
Unix people: "I know what I do, dear program do not bother me with silly questions!

Quote
Windows people: "Uh oh, I don't know what I do, please, dear program warn me every step and ask twice!

Unresolvable conflict of views and traditions.

I like the unix style. If I click "Quit", just quit. I know what I do, the button label is clear and distinct, no need to bother me with questions.

Title: Re: I've overwritten savefile and want the old one back
Post by: IgorEliezer on February 09, 2010, 01:18:16 pm
Quote
Human being: "Sometimes I do mistakes. Help me to avoid at least major ones."
=P
Title: Re: I've overwritten savefile and want the old one back
Post by: VS on February 09, 2010, 04:14:56 pm
Hypothetically... one could have a setting for no overwriting of saves. Why would one want to overwrite previous save? There is a conceptual leap from "updated" to "versioned" and once on the other side, you never look back.
Title: Re: I've overwritten savefile and want the old one back
Post by: jonasbb on February 09, 2010, 04:21:53 pm
How about this solution:
We save two files game.sve and game.sve.backup.
game.sve.backup is always the last save without error.

The gui wil remain as it is.
Title: Re: I've overwritten savefile and want the old one back
Post by: Reddog785 on February 09, 2010, 04:55:13 pm
Unresolvable conflict of views and traditions.

I like the unix style. If I click "Quit", just quit. I know what I do, the button label is clear and distinct, no need to bother me with questions.


So, you're saying that those using Windows Are stupid for needing warnings? SELF OPINIONATIVE that was, and when EITHER of you two make a mistake like this, which you claim to have never done because you feel to have a higher IQ than the coders of Windows, then you'll want to sue Unix for making sure that human errors increase. Of course, of which, they won't do anything as that quote is evidence that you actually support the error happening to Windows users worldwide.
Title: Re: I've overwritten savefile and want the old one back
Post by: Pati on February 09, 2010, 05:13:51 pm
Unresolvable conflict of views and traditions.
[...]
I've got antother "great":) idea: there could be an option like: ask_overwrite = 1 in simuconf.tab...
I think it's clear, but for persons who don't understand it:
1 means asking before overwriting
0 means no asking before overwriting
But mayby maybe it's a bit complicated for this little problem
Title: Re: I've overwritten savefile and want the old one back
Post by: prissi on February 09, 2010, 08:25:02 pm
The simutrans UI cannot have are you sure boxes, they are really a pain to do and will kill the reasonable from of time.

But a setting that any game is overwritten after remaning any exisiting file into xxx.bak is simple to implement. If it helps ...
Title: Re: I've overwritten savefile and want the old one back
Post by: Spike on February 09, 2010, 08:48:55 pm
So, you're saying that those using Windows Are stupid for needing warnings? SELF OPINIONATIVE that was, and when EITHER of you two make a mistake like this, which you claim to have never done because you feel to have a higher IQ than the coders of Windows, then you'll want to sue Unix for making sure that human errors increase. Of course, of which, they won't do anything as that quote is evidence that you actually support the error happening to Windows users worldwide.

It was half a joke, but if you really think you must attack me this way, well it's now quoted for even more attention. Readers can read my message up there and see themselves what they want to read from it.

Edit: If it is on any solace, I have lost work, too, since most of my tools do not ask for deleting, quitting or overwriting things. But that is my fault, if I do not think carefully.

Edit 2: I'm sorry that my message hurt you so much. It seemed like a funny idea when I wrote it, but I see that windows users (which I am too since many years) can feel offended. I just played the cliché card without thinking. I want to apologize for having hurt you, but I want to stand to my words that I think there are too many unneeded confirmation boxes in many programs.

Title: Re: I've overwritten savefile and want the old one back
Post by: Fabio on February 10, 2010, 07:42:05 am
But a setting that any game is overwritten after remaning any exisiting file into xxx.bak is simple to implement. If it helps ...

Very reasonable indeed! I support this.
Title: Re: I've overwritten savefile and want the old one back
Post by: Zeno on February 10, 2010, 08:23:21 am
IMHO, I really can't see any need for it. I would definetly cl****ify this case as a feature for the read my mind button. I already type in a name when I click the save button; I also can accidentaly overwrite a wanted file and loose it, of course, but it will be that: just an accident.
Title: Re: I've overwritten savefile and want the old one back
Post by: VS on February 10, 2010, 11:55:40 am
Accidents are usually bad, not good...
Title: Re: I've overwritten savefile and want the old one back
Post by: jamespetts on March 03, 2010, 12:02:07 pm
The simutrans UI cannot have are you sure boxes, they are really a pain to do and will kill the reasonable from of time.

But a setting that any game is overwritten after remaning any exisiting file into xxx.bak is simple to implement. If it helps ...

That is an excellent idea. Also a good idea is permitting saved games to be automatically backed up to a different directory so that the saves are present in two locations. For example, in Windows, if one's ordinary save game folder is C:/My Documents/Simutrans/save, one could set so that a copy is saved there and a further copy saved into (for example) F:/Backup/Simutrans/save. The backup location could be specified in simuconf.tab.
Title: Re: I've overwritten savefile and want the old one back
Post by: PatrickN on March 04, 2010, 03:25:50 pm
Quote
Unix people: "I know what I do, dear program do not bother me with silly questions!
Quote
Windows people: "Uh oh, I don't know what I do, please, dear program warn me every step and ask twice!

Unresolvable conflict of views and traditions.

I like the unix style. If I click "Quit", just quit. I know what I do, the button label is clear and distinct, no need to bother me with questions.

I'm a windows user.  I have to have help just turning on a Mac, and I've never even seen the penguin's os.  Still, I often find warning messages annoying.  I turned off UAC the day after I brought my Vista computer home from Wally World.  I have overwritten saved games before, but a warning box wouldn't have stopped me.
Title: Re: I've overwritten savefile and want the old one back
Post by: sdog on March 08, 2010, 03:47:44 am
i've also killed a lot of hours of work by cautionless rm ...

but if i count them, it is by far not as much time as i wasted in windows with having to confirm everything. wich also did not prevent me at all from errors. the frequent query causes an automatism with confirming, so usually most people notice the mistake only AFTER hitting ok.

my solution in linux was twofold first to >touch -i  in all dirs with important files, and second to backup my work on a regular basis (i'm bziping sourcecode and tex with every make, with a dead time of 10 min)
the result is that i'm much safer in the seemingly less safe gui environment, as i took precautions to prevent failure instead of relying on an ilusionary safeguard.

my suggestion for simutrans, as default backup overwritten savegames, and make them visible in the load dialogue. delete the backup after a new savegame is saved or overwrite it if the savegame is overwritten again.

@Hajo & Reddog
maybe rephrase it that way:
Quote
Windows devs: "Uh oh, they don't know what they do, please, dear program warn 'em every step and ask twice!
btw. i absolutely sure half of the dialogues are also a practical joke of microsoft's devs