world-of-might-and-magic icon indicating copy to clipboard operation
world-of-might-and-magic copied to clipboard

Party can't die of exhaustion

Open captainurist opened this issue 1 year ago • 4 comments

Describe the bug This needs to be re-tested, creating an issue b/c this is what I saw when experimenting. So, it might be a non-issue.

If you wait long enough w/o entering the wait screen, characters go crazy. And fall unconscious. If they all fall unconscious, the game doesn't end with the death screen. Instead, the party eye level is set to ground level, and the game continues.

Note that this doesn't work on the wait screen.

To Reproduce Leave the game running for a couple days X).

Seriously though, this is easily reproducible with a test, but will need some hacking that I'll get around to later.

Expected behavior Party should die of exhaustion.

Environment (please complete the following information):

  • OS: OSX
  • Architecture: M1

Screenshots None.

Saved game file None.

Additional context None.

captainurist avatar Dec 04 '23 17:12 captainurist

Tried it without Framecap and with Cheatengine on 500 Times speed. Maybe I skipped an Event that's problematic, because at 88 miles per hour i saw some crazy stuff ( I walked through a building) If someone can tell me how to test for this I'll test more

  • Windows 11
  • AMD Ryzen 5600
  • Nvidia RTX 4070

KabooZ1987 avatar Dec 06 '23 17:12 KabooZ1987

I'll get around to re-test it in a couple of weeks. It's a few lines of code in the engine.

captainurist avatar Dec 06 '23 20:12 captainurist

Tested this again. Basically, party dies, but death screen isn't displayed: Screenshot 2024-04-15 at 21 56 57

Can't write a test for this b/c of this code in Timer::tick:

    if (_dt > 32_ticks)
        _dt = 32_ticks; // 32 is 250ms

Will think what to do about it.

captainurist avatar Apr 15 '24 20:04 captainurist

Well, it's even more bugged:

https://github.com/OpenEnroth/OpenEnroth/assets/73941350/17797e17-6444-4e14-b91e-4487268cfb24

captainurist avatar Apr 15 '24 21:04 captainurist