Discussion:
Double "while praying" in leaderboard?
(too old to reply)
g***@archmage.me
2018-03-01 01:49:09 UTC
Permalink
Hey all,

I recently encountered death, and noticed something strange when calling nethack with the -s flag:

Loading Image...

2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while
praying, while praying.

I've not seen "while praying, while praying." before - is this a known bug or should I report it?
Janis Papanagnou
2018-03-01 06:21:55 UTC
Permalink
Post by g***@archmage.me
2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while
praying, while praying.
I've not seen "while praying, while praying." before - is this a known bug or should I report it?
You can inspect known bugs at nethack.org (http://nethack.org/v360/bugs.html
and http://nethack.org/v360/spoiler.html). If it's not listed you should
report it; for details see http://nethack.org/common/contact.html.

Janis
Jukka Lahtinen
2018-03-01 15:20:24 UTC
Permalink
Post by Janis Papanagnou
Post by g***@archmage.me
2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while
praying, while praying.
I've not seen "while praying, while praying." before - is this a known bug or should I report it?
You can inspect known bugs at nethack.org (http://nethack.org/v360/bugs.html
and http://nethack.org/v360/spoiler.html). If it's not listed you should
report it; for details see http://nethack.org/common/contact.html.
This is probably caused by the known bug C360-25.
BTW, is there a patch for this?
--
Jukka Lahtinen
Pat Rankin
2018-03-01 22:16:54 UTC
Permalink
Post by g***@archmage.me
2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while praying, while praying.
I've not seen "while praying, while praying." before - is this a known bug or should I report it?
This is bug C360-25 on the known bugs list. 'record' can have entries get
"while helpless" reasons carried over from one entry to another when new
high scores are added. 'logfile', if present, will contain the uncorrupted
entries. "If present" because normal installation creates an empty logfile
that gets appended to at each end-of-game, but if it has been deleted it
won't be recreated by nethack.

A couple of years ago I posted an awk script which can be used to repair
the 'record' file from the corresponding 'logfile'. It's been so long that I'd
forgotten that this issue ever existed....
Yosemite Sam
2018-03-05 22:22:14 UTC
Permalink
Post by Pat Rankin
Post by g***@archmage.me
2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while praying, while praying.
I've not seen "while praying, while praying." before - is this a known bug or should I report it?
This is bug C360-25 on the known bugs list. 'record' can have entries get
"while helpless" reasons carried over from one entry to another when new
high scores are added. 'logfile', if present, will contain the uncorrupted
entries. "If present" because normal installation creates an empty logfile
that gets appended to at each end-of-game, but if it has been deleted it
won't be recreated by nethack.
A couple of years ago I posted an awk script which can be used to repair
the 'record' file from the corresponding 'logfile'. It's been so long that I'd
forgotten that this issue ever existed....
C360-25 on a titanic scale to come up C360-25 on amateur muscle klen glass in a glass, pot. never boils!
spectralballoons
2018-03-11 08:58:38 UTC
Permalink
Post by g***@archmage.me
Hey all,
https://cdn.discordapp.com/attachments/215289892404461569/418574094389477386/unknown.png
2 830 Kara-Val-Dwa-Fem-Law died in The Dungeons of Doom on
level 3 [max 4]. Killed by a black pudding, while
praying, while praying.
I've not seen "while praying, while praying." before - is this a known bug or should I report it?
It's pretty obvious that the black pudding prayed to the gods for aid in killing you, and did so while you were praying.
n***@gmail.com
2018-03-18 22:57:01 UTC
Permalink
I've seen double "while praying" as well as double "while fainted from lack of food".

In fact, I tend to get crazy chains of death reasons that over-run the allowed space: e.g. "killed by a giant bat, while fainted from lack of food, while fainted from lack of food, while froze" and "killed by a small mimic, while praying, while frozen by a potion, while fainted from lack of food, w"
Pat Rankin
2018-03-19 23:35:55 UTC
Permalink
Post by n***@gmail.com
I've seen double "while praying" as well as double "while fainted from lack of food".
NetHack 3.4.3 only had "while helpless" but the version playable at nethack.alt.org
included a patch to provide a more specified reason for "helpless". NetHack 3.6.0
includes that patch but when it was incorporated, a bug was introduced. (Or maybe
the NAO version has the same bug and nobody ever noticed. NAO reportedly doesn't
use 'record' when displaying high scores so nobody ever sees its contents. Plus
the high score list is bound to be all ascensions, so any corrupted "while helpless"
deaths that ever made the list were pushed off the bottom long ago. It was
probably already all ascensions even before the helpless-reason patch was added.)
Post by n***@gmail.com
In fact, I tend to get crazy chains of death reasons that over-run the allowed
space: e.g. "killed by a giant bat, while fainted from lack of food, while fainted
from lack of food, while froze" and "killed by a small mimic, while praying, while
frozen by a potion, while fainted from lack of food, w"
When a new death has a high enough score to make the list, if it occurred while
helpless then its "while <helpless reason>" will be appended to all the lower
scored entries following it when 'record' gets updated. So stop getting new higher
scores, or at least do so without being helpless at the time. :-}

The repair script ought to work correctly even when entries have been truncated.
It should to be present in the Google Groups archives for rec.games.roguelike.nethack
(but I don't have a specific URL). 'awk' comes with Unix systems and look-likes such
as linux, NetBSD, and Mac OSX. For others, 'gawk' (GNU awk) is available for most
or all of the platforms that nethack runs on. ('gawk.exe' prebuilt for Windows exists
but I don't have a URL for that either.)

After 'record' has been repaired, it will still be subject to new entries reintroducing
the "while helpless" corruption. But they won't be magnifying the old corrupted
entries so there'll be fewer "while <this>, while <that>" entries, plus the repair can
be repeated whenever that's warranted.

Loading...