Forum:Funny nutrition related error message

From NetHackWiki
Jump to navigation Jump to search

Playing in wizard mode just now, I wished for a partly-eaten wraith corpse. Upon consuming it, the game told me:

||This wraith corpse tastes terrible! partly eaten food (1) more nutritious than untouched food (0) Program in disorder - perhaps you'd better #quit. You feel more experienced. Welcome to experience level 12.

Word for word, including the the missing period between (0) and "Program," including the uncapitalized "partly". The dev team didn't think of properly capitalizing everything, I guess.

Partly-eaten wraiths apparently convey more nutrition than whole ones, which leads me to wonder about the mechanics of partly-eaten things. Do we have a page on that? Delbow 00:11, 7 November 2011 (UTC)

I get the message as soon as I wish for it, dunno why you didn't see it until eating it. Partially eaten wraith corpses normally can't exist, which is why wishing for one is kinda funky. To mark a food as partially eaten, the game records the amount of nutrition left in an object. If this is not the full amount of the comestible it's partially eaten. When setting this value, it might be reduced to 0 before the food should have been fully eaten; if this happens it is give 1 nutrition, the "smallest possible positive value". However this is a wraith corpse, which normally has 0. When the game does a sanity check to make sure food isn't gaining nutrition, it panics. According to the source code, there used to be a bug where the amount of nutrition in an item would become negative and underflow to a massive positive integer and give you effectively infinite satiation. "Program in disorder" messages aren't too rare in wizard mode, since it is very easy to wish for stuff that is completely impossible in normal play. -- Qazmlpok 01:22, 7 November 2011 (UTC)
You're right; it was in there when I wished for it and again when I ate it. I just found the "paniclog" file in my base directory, too; it had the error line in there twice. First time I'd seen it; thanks for the info :) Delbow 01:58, 7 November 2011 (UTC)