Strange error in room weights

Issue #167 resolved
So Meone created an issue

Occasionally after character creation (specifically after choosing a "personality archetype"), the game crashes to the desktop, showing the game screen but with no map visibile, just a box with red text saying:

Fatal Error: Strange Error in room weights algorithm. Press [ENTER] to exit...

It seems to happen 1/3rd to 1/4th of the time reincarnating versions of the character save I've attached, but since it happens before the game starts I can't upload a save showing it directly.

Comments (11)

  1. Thomas König

    Never had it happen in the earlier versions, but the Y12 release crashes occasionally at level generation (entering a new game, going to a new level) with the same mesage. Reloading an autosave leads to flawless execution most of the time. I´m mostly playing with the extended dungeon ("challenge" difficulty setting).

  2. RMTEW FULL NAME repo owner

    Updated to be relevant to Y12, as that is what the save file is for.

    NOTE: Please compress save files attached to issues, in future. Thanks.

  3. RMTEW FULL NAME repo owner

    I have loaded the attached save file approximately 10 times, and reincarnated the given character. It loads flawlessly.

  4. RMTEW FULL NAME repo owner

    Thanks for the heads up about how common it is for you, but unfortunately without a repro case, there's not much I can do besides play until I get it myself and then I need to hope I saved recently and can repro it.

  5. RMTEW FULL NAME repo owner

    Every how many new games does it happen at a guess? Do you always choose the same character creation options which may affect whether it happens?

  6. K M

    um, 1 in 10? 1 in 15? EDIT: That's for starting new games, not reincarnating. I'm looking for as many cool perks as I can find in Inc right now.

    Something like that. I seem to be playing Drow all the time, usually Rogues or Rangers, always personality manipulative plotter, alignment NE.

    As for char creation, I have roll first option on and rerolling allowed on and I usually reroll multiple times for good perks. Beginner's kit is on, ood monsters are on, difficulty baseline, disallow wizard mode is off, monster maximum hp is off too.

  7. RMTEW FULL NAME repo owner

    More level generation fixes related to room weights. If comparing a signed value stored in an unsigned variable, cast it before comparison, not after. Also, if all room types were flagged as already used, they would then all be unflagged for reuse - however it was also necessary to reset the room weights and more. Fixes #167

    → <<cset 9a3ccda69859>>

  8. Log in to comment