Chaosforge Forum

  • March 28, 2024, 05:59
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Game saved after death, restarts with zero/negative life  (Read 4307 times)

Zarin

  • Sergeant
  • *
  • Offline Offline
  • Posts: 71
    • View Profile

Hello,
my installation went into a crazy mode where each death is followed by a crash, the game is saved, and then restarted with a negative life.  For some reason, when I check properties of DoomRL installation directory I see a gray check in "read only" box, but even when I uncheck it and apply change (to all files and subfolders, mind you) the same crash happens again next time.
<Edit>  This is the latest release - 0.9.8.5, Windows, with sound. </Edit>

This bug prevented me from reaching Lieutenant rank - I did reach level 10 in Angel of Impatience challenge (who ever said it was MEDIUM?  AoB is easier than that, at least for me!) but the death did not register properly.

Here is the information printed out during my latest crash:

$0041D93A  TPLAYER__WRITEMEMORIAL,  line 1551 of dfplayer.pas
$0044A926  TBEING__KILL,  line 891 of dfbeing.pas
$0044C38C  TBEING__APPLYDAMAGE,  line 1113 of dfbeing.pas
$0044EBBA  TAFFECTS__RUN,  line 155 of dfaffect.pas
$0044E8E3  TAFFECTS__TIME,  line 125 of dfaffect.pas
$004494F1  TBEING__ACTION,  line 737 of dfbeing.pas
$004495C8  TBEING__CALL,  line 744 of dfbeing.pas
$0043E029  TLEVEL__TICK,  line 544 of dflevel.pas
$00403C82  TDOOM__RUN,  line 266 of doombase.pas
$00401097  main,  line 21 of doomrl.pas

Hope that helps,
Zarin.
« Last Edit: March 28, 2007, 09:54 by Zarin »
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Game saved after death, restarts with zero/negative life
« Reply #1 on: March 28, 2007, 11:40 »

Delete your savefile, remove readonly and try again.
Logged
at your service,
Kornel Kisielewicz

Zarin

  • Sergeant
  • *
  • Offline Offline
  • Posts: 71
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #2 on: March 28, 2007, 12:10 »

Didn't help - I deleted save, removed readonly flag (tried it several times, even with chmod 777 * */* . from cygwin) to no avail.  So it is not readonly - or at least not just that.

Besides, by using ls -l I found that all files have -rwx------ permissions, giving access to owner only - and I'm their owner.  In fact, the only two files which changed permissions after I ran chmod were player.dat and score.dat - I guess those two are modified each time I play :).

If you find a quick workaround please post it - I really want to become Lieutenant.

By the way, will there be any problem if I save my player.dat, remove and reinstall the game and then copy it over the new (empty) one?

Regards,
    Zarin.
Logged

Zarin

  • Sergeant
  • *
  • Offline Offline
  • Posts: 71
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #3 on: March 28, 2007, 12:43 »

An additional information which I somehow skipped the first time.

Before all those line numbers and file names, there was the following:
An unhandled exception occurred at $0041D93A : ERamgeError : Range check error

I hope you kept symbol maps for the latest release :)

Hope that helps,
    Zarin.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Game saved after death, restarts with zero/negative life
« Reply #4 on: March 28, 2007, 12:58 »

Please send me your player.dat. I have an itch that the problem is there ;]
Logged
at your service,
Kornel Kisielewicz

Styro

  • Elder
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 166
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #5 on: March 28, 2007, 18:28 »

This is the same problem that happens to me. I can play another game by deleting the save, but it crashes at the end of the next game I play.
Logged
Arch-Vile Mjr General
[19/19/12/7/3]

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Game saved after death, restarts with zero/negative life
« Reply #6 on: March 29, 2007, 03:32 »

Styro, can you send me your player dat too?
Logged
at your service,
Kornel Kisielewicz

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Game saved after death, restarts with zero/negative life
« Reply #7 on: April 03, 2007, 09:47 »

Duh! Fixed! The problem was that the Killed characters went over 255, and they were handled by a function that accepted only bytes [0..255] range. You guys can either delete score.dat, or wait for the next beta/release. :D
Logged
at your service,
Kornel Kisielewicz

Zarin

  • Sergeant
  • *
  • Offline Offline
  • Posts: 71
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #8 on: April 03, 2007, 10:01 »

Great!  Only this morning I thought "I played so many characters that died young (only the first 6 were "too young to die", though :) and that quantity might have gone too far".  The number 256(=28) hasn't occurred to me yet, but I was close to realizing it :)
Logged

Malek Deneith

  • Grand Inquisitor Emeritus
  • Grand Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1256
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #9 on: April 03, 2007, 10:34 »

Hmmm... that means I've still got 79 character left to play before next beta... must choose wisely not to waste those xD
Logged
Inquisition - saving your soul, one bolter shell at a time.
Spoiler: "Hackmaster Kills" (click to show/hide)

DaEezT

  • Greater Elder
  • Colonel
  • *
  • *
  • Offline Offline
  • Posts: 565
    • View Profile
Re: Game saved after death, restarts with zero/negative life
« Reply #10 on: April 03, 2007, 12:25 »

Hmmm... that means I've still got 79 character left to play before next beta... must choose wisely not to waste those xD
haha, I was just thinking along the same lines :p
My last mortem says:

Before him 207 brave souls have ventured into Phobos
Logged
"Morality is merely a convention with which men mutually agree to delude themselves. There are no moral facts, just preferences, and one is no better than any other."
Pages: [1]