Page 1 of 1
Dying just leads to game restarting from beginning of floor?
Posted:
Thursday, 22nd November 2012, 19:28
by Link
So basically whenever I die, my game auto-saves or something and just lets me begin from the start of the floor again. It's cool, but not fun and ruins the game experience. Whats wrong?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Thursday, 22nd November 2012, 19:39
by edlothiol
The game is crashing. Does your morgue directory contain any files? (I'm not sure where it is on Windows, I think AppData\crawl\morgue.)
Re: Dying just leads to game restarting from beginning of fl
Posted:
Thursday, 22nd November 2012, 21:10
by Link
Yes, it contains a quite a bit of files. Oh and i'm using linux.
Re: Dying just leads to game restarting from beginning of fl
Posted:
Thursday, 22nd November 2012, 21:59
by edlothiol
Oh, ok. So are there any named crash-(something)? How did you install the game?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Thursday, 22nd November 2012, 23:28
by Link
Nope, and i compiled it from the source for .11
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 09:24
by palin
Link wrote:Nope, and i compiled it from the source for .11
Check if you run of of space (df -h) or of inodes (df -i) where you're saving your files, and check if you are saving them on a linux partition (ie. not FAT32 or NTFS).
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 19:28
by Link
@palin, nope not running out of space, and yes, using ext4
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 20:19
by palin
Link wrote:@palin, nope not running out of space, and yes, using ext4
If you're playing tiles, you can try to start crawl with strace and see if the last lines contains something useful. Of course it will do a mess with a console game.
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 22:32
by edlothiol
... or even run with gdb and report the backtrace. (And with both, you can attach to an existing process, so you could also do it with console.)
But really, there should be some crash logs if the morgue directory is writable, so maybe you're looking in the wrong place? What happens if you do a chardump (#) from the game?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 22:52
by Link
Well I'm using console: Here is a char dunp:
- Code:
Dungeon Crawl Stone Soup version 0.11.0 (console) character file.
Fiolr the Ruinous (Deep Elf Conjurer) Turns: 2844, Time: 00:12:11
HP 28/28 AC 2 Str 5 XL: 5 Next: 2%
MP 15/15 EV 13 Int 21 God:
Gold 102 SH 0 Dex 15 Spells: 2 memorised, 6 levels left
Res.Fire : . . . See Invis. : . m - +0,+1 quarterstaff
Res.Cold : . . . Warding : . a - +0 elf robe
Life Prot.: . . . Conserve : . (no shield)
Res.Poison: . Res.Corr. : . (no helmet)
Res.Elec. : . Clarity : . (no cloak)
Sust.Abil.: . . Spirit.Shd : . (no gloves)
Res.Mut. : . Stasis : . (no boots)
Res.Rott. : . Ctrl.Telep.: . (no amulet)
Saprovore : . . . Levitation : . (no ring)
Ctrl.Flight: . (no ring)
@: slightly resistant to hostile enchantments, fairly stealthy
A: no striking features
a: no special abilities
You are on level 4 of the Dungeon.
You are completely stuffed.
You have visited 1 branch of the dungeon, and seen 4 of its levels.
You have collected 82 gold pieces.
Inventory:
Hand weapons
e - a +0,+0 elven dagger (quivered)
f - a +0,+0 short sword
g - a +0,+0 whip
j - an uncursed dagger
m - a +0,+1 quarterstaff (weapon)
Armour
a - a +0 elven robe (worn)
Comestibles
b - a bread ration
Scrolls
d - 4 scrolls of amnesia
q - a scroll of remove curse
Potions
k - 3 brown potions
o - a glowing cyan potion
r - a bubbling inky potion
Books
c - a book of Conjurations
Spells Type Level
*Magic Dart Conjuration 1
Throw Frost Conjuration/Ice 2
*Mephitic Cloud Conjuration/Poison/Air 3
Lightning Bolt Conjuration/Air 5
Bolt of Cold Conjuration/Ice 6
Freezing Cloud Conjuration/Ice/Air 6
Skills:
- Level 2.4 Dodging
- Level 2.4 Stealth
+ Level 3.1 Spellcasting
* Level 6.5 Conjurations
You have 6 spell levels left.
You know the following spells:
Your Spells Type Power Failure Level Hunger
a - Magic Dart Conj ##### 1% 1 None
b - Mephitic Cloud Conj/Pois/Air ###...... 21% 3 ###....
Dungeon Overview and Level Annotations
Branches:
Dungeon (4/27)
Temple: D:4-7
Altars:
Message History
Eat which item? (? for menu, Esc to quit)
You continue eating.
You finish eating. Mmm...Sheep cheese.
Eat which item? (? for menu, Esc to quit)
You continue eating.
You finish eating. Mmmm... Yummy apple.
Eat which item? (? for menu, Esc to quit)
You continue eating.
You finish eating.
That lemon was rather sour... but delicious nonetheless!
Eat which item? (? for menu, Esc to quit)
You continue eating.
You finish eating. That meat ration really hit the spot!
You're too full to eat anything.
Save game and exit?
Welcome back, Fiolr the Deep Elf Conjurer.
Press ? for a list of commands and other information.
Save game and exit?
Welcome back, Fiolr the Deep Elf Conjurer.
Press ? for a list of commands and other information.
#.#
##%#
. ...
#.. .!#
... ...
#.# #.#
#.# #.#
#.# #.#
#.# #@#
#######.####.###)###
....................).
##..........####.###.###
##..........# #.#
##..........# #.#
##..........# #.#
##..........# #.#
##..........# #.#
##..........# #.#
##..........## .
There are no monsters in sight!
Vanquished Creatures
2 worker ants
3 adders (D:2)
2 worms (D:3)
2 giant geckos (D:2)
An orc (D:3)
8 goblins
7 hobgoblins
8 kobolds
A quokka (D:4)
A ball python (D:1)
6 bats
5 giant cockroaches
A giant newt (D:2)
4 rats
51 creatures vanquished.
Vanquished Creatures (others)
2 toadstools (D:1)
2 creatures vanquished.
Grand Total: 53 creatures vanquished
Notes
Turn | Place | Note
--------------------------------------------------------------
0 | D:1 | Fiolr, the Deep Elf Conjurer, began the quest for the Orb.
0 | D:1 | Reached XP level 1. HP: 10/10 MP: 4/4
504 | D:1 | Reached XP level 2. HP: 15/15 MP: 4/6
633 | D:1 | Reached skill level 5 in Conjurations
1452 | D:2 | Reached XP level 3. HP: 19/19 MP: 3/9
1517 | D:2 | Learned a level 3 spell: Mephitic Cloud
2278 | D:3 | Reached XP level 4. HP: 24/24 MP: 12/12
2298 | D:3 | Reached skill level 6 in Conjurations
2757 | D:4 | Reached XP level 5. HP: 28/28 MP: 5/15
How do i do the backtrace?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 23:03
by edlothiol
1. Update to 0.11.1, your problem may already be fixed (though I don't recall anything of the sort).
2. Install gdb, if you don't have it already.
3. Run crawl.
4. In another terminal, run:
- Code:
gdb --batch --pid=$(pidof crawl) --eval-command="c" --eval-command="bt" --eval-command="c"
5. Back in crawl, die so that the game crashes.
6. Post what got printed in the other terminal.
Re: Dying just leads to game restarting from beginning of fl
Posted:
Friday, 23rd November 2012, 23:54
by Link
On crawl: failed to open score file for writing: No such file or directory
Other terminal:
- Code:
Traceback (most recent call last):
File "/home/xkcd/.crawlfiles/source/crawl-gdb.py", line 3, in <module>
import gdb.printing
ImportError: No module named printing
[Thread debugging using libthread_db enabled]
0xb77ca424 in __kernel_vsyscall ()
Program exited with code 01.
No stack.
The program is not being run.
Re: Dying just leads to game restarting from beginning of fl
Posted:
Saturday, 24th November 2012, 03:35
by BlackSheep
That's weird, the score file lives in the same folder as saved games. Did you change your .rcfile/init.txt to use different paths?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Saturday, 24th November 2012, 17:44
by Link
Well, yea? Is that a problem? I have my saves directed to .saves and morgue to .morgue.
Re: Dying just leads to game restarting from beginning of fl
Posted:
Saturday, 24th November 2012, 19:08
by BlackSheep
For some reason, crawl doesn't put the scores and logfile files in the redirected saves path, instead putting them in a folder with the default name of 'saves'. On my system, it creates its own saves folder. Maybe on your system it doesn't have permission to create the folder?
Re: Dying just leads to game restarting from beginning of fl
Posted:
Saturday, 24th November 2012, 19:22
by Link
Hm, just recompiled it and changed the directories in the code, it works now! thanks guys!