ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Ironman rooms + Paths of the Dead = endless hang
http://forums.te4.org/viewtopic.php?f=1&t=45413
Page 1 of 1

Author:  Lord Estraven [ Sun Jan 10, 2016 2:53 pm ]
Post subject:  Ironman rooms + Paths of the Dead = endless hang

I've noticed long hangs before while generating levels, usually with Ironman rooms and Moria. ToME can hang for up to about a minute, maxing one CPU core, while waiting for level generation to complete.

However, I hadn't tried Paths of the Dead with Ironman rooms. It's even worse... Currently ToME has been unresponsive, 99% on one core, for the last 5 minutes or so while trying to generate a level.

I will try to debug this using GDB and whatnot, but I'm betting it will be difficult. :(

Author:  AnonymousHero [ Wed Jan 13, 2016 9:08 pm ]
Post subject:  Re: Ironman rooms + Paths of the Dead = endless hang

I think this is just a symptom of the game being willing to try to generate infinite numbers of levels if it can't place vital structures (or structures it thinks are vital, anyway).

I'm not particularly familiar with the level generation code, but I imagine this could be solved by placing an arbitrary limit.

(I'd probably also try to remove the "always generate interesting levels" option. At least you could try setting it to "off" in-game and see if that helps.)

I probably won't have any time to do any substantial work on ToME 2.x for the next month or so, so I cannot help with any code...

Author:  Lord Estraven [ Thu Jan 14, 2016 11:53 pm ]
Post subject:  Re: Ironman rooms + Paths of the Dead = endless hang

Yeah, "auto-scum for interesting levels" was the problem. I'm thinking maybe that option should be removed?

Author:  AnonymousHero [ Fri Jan 15, 2016 6:26 am ]
Post subject:  Re: Ironman rooms + Paths of the Dead = endless hang

Lord Estraven wrote:
Yeah, "auto-scum for interesting levels" was the problem. I'm thinking maybe that option should be removed?


The only problem I have with removal (and I've considered it) is that not using it may lead to levels that are too uninteresting. It's been quite a while since I've played a really long game with it off, though, so maybe it's not a real issue.

I can't even recall which it actually looks for when judging what's interesting or not... it's probably some sort of scoring function. Maybe adjusting the scoring function to be "somewhere in the middle" and just always turning "auto-scum" on permanently would also work well enough.

Author:  Lord Estraven [ Mon Jan 18, 2016 5:16 am ]
Post subject:  Re: Ironman rooms + Paths of the Dead = endless hang

Experimenting a bit with auto-scum off, I'm not convinced it actually does anything useful; the game is still plenty lethal, and even produces some vaults at mid levels. I say remove it. :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/