Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old January 17, 2010, 03:53   #1
grassy
Rookie
 
Join Date: Dec 2009
Posts: 21
grassy is on a distinguished road
broken save file

Save file breaks when computer bombs (e.g. overheats) while playing. This happens on 3.1.2.dev. Anyway to recover these?
grassy is offline   Reply With Quote
Old January 17, 2010, 05:33   #2
flechette
Scout
 
Join Date: Sep 2008
Posts: 40
flechette is on a distinguished road
You aren't overclocking to play angband are you? ^^
flechette is offline   Reply With Quote
Old January 17, 2010, 05:44   #3
grassy
Rookie
 
Join Date: Dec 2009
Posts: 21
grassy is on a distinguished road
crappy laptop
grassy is offline   Reply With Quote
Old January 17, 2010, 08:04   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,932
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by grassy View Post
Save file breaks when computer bombs (e.g. overheats) while playing. This happens on 3.1.2.dev. Anyway to recover these?
Email me one at takkaria@gmail.com and I'll have a look, but no promises.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old January 17, 2010, 12:11   #5
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,345
Donated: $40
Pete Mack is on a distinguished road
This should never happen. A few questions:
1. What OS?
2. Does it happen always, or only sometimes?
3. Are you sure that it is angband that is pegging the CPU? (On *NIX, top; on Windows, task manager.)
Pete Mack is offline   Reply With Quote
Old January 19, 2010, 06:23   #6
grassy
Rookie
 
Join Date: Dec 2009
Posts: 21
grassy is on a distinguished road
+ The save file after the crash is reduced to 0 bytes (angband indicates it's broken - but it's essentially deleted) - thus it wouldn't make sense posting.
+ I compiled using my home directory as the install target.
+ I'm playing the game on ubuntu karmic (x86) running through sun virtuallbox on win7 x64.
+ Happen always? So far every time the computer bombed (2x). Lost 2 nifty 35+ level female warriors
+ no, angband is not hogging the cpu, win processes are.
grassy is offline   Reply With Quote
Old January 19, 2010, 08:25   #7
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
You sound ept enough to set up a daemon to copy the savefile once every 10 minutes [only] while you are playing. Versioning would be a pain, but even if you always copy to the same location you'd only lose if the system crashed while the copy was happening.

The game currently autosaves on level change [I don't know what revision that got in], so a crash would cost the max of the current dLevel or 10 minutes [or whatever] if you use sufficiently recent code.
PowerDiver is offline   Reply With Quote
Old January 19, 2010, 10:44   #8
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,345
Donated: $40
Pete Mack is on a distinguished road
What windows process is pinning it?
And why play on linux, when you can just as well play on the host OS?
EDIT:
since you're on Linux, can you run it under gdb (compiled -g) and see what causes the fault?
Pete Mack is offline   Reply With Quote
Old January 19, 2010, 14:18   #9
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 39
Posts: 1,516
d_m is on a distinguished road
Quote:
Originally Posted by grassy View Post
+ The save file after the crash is reduced to 0 bytes (angband indicates it's broken - but it's essentially deleted) - thus it wouldn't make sense posting.
+ I compiled using my home directory as the install target.
+ I'm playing the game on ubuntu karmic (x86) running through sun virtuallbox on win7 x64.
+ Happen always? So far every time the computer bombed (2x). Lost 2 nifty 35+ level female warriors
+ no, angband is not hogging the cpu, win processes are.
Had you saved your game at all before the crash, or were you playing a new character straight through?

My understanding is that Angband doesn't change the savefile until you die, save, quit, or until it gets sent a signal to be killed that it can handle. I think things like "kill -9" or overheating might not allow it to write anything before the process dies. So if you hadn't saved yet, there would be no "old version" of the savefile present when you reload.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old January 19, 2010, 18:22   #10
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by d_m View Post
My understanding is that Angband doesn't change the savefile until you die, save, quit, or until it gets sent a signal to be killed that it can handle.
As I indicated above, the savefile is currently written over after each dLevel change. At least, it was the last time I checked a couple months ago playing nightlies.
PowerDiver is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save File Debugger Sirridan Development 13 August 25, 2011 13:42
Save File Compatibility dhegler Vanilla 2 September 25, 2009 14:33
Save file recovery buzzkill Vanilla 14 August 20, 2009 06:14
import save file daddyrat Vanilla 5 July 9, 2009 13:29
lost both my characters to broken save file? leopena Variants 1 June 21, 2009 11:44


All times are GMT +1. The time now is 23:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.