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

BLV_GetFloorLevel and IndoorLocation::GetSector fail too much

Open CkNoSFeRaTU opened this issue 3 years ago • 1 comments

Describe the bug Both of these functions are failing too much and spamming to logging. In severe cases by thousands messages in a second.

To Reproduce

  1. Load attach savegame file
  2. You will be immediately flooded with Sector/Floorlvl fail messages

Expected behavior GetFloorlevel fail should occur more rarely and GetSector never fail.

Screenshots snap085

Saved game file save004.zip

Additional context Savegame file also triggers #195. So it requires to be resolved before undertaking this issue.

CkNoSFeRaTU avatar Feb 14 '22 19:02 CkNoSFeRaTU

mountain goats

So the errors from this save file are because of these two hanging out halfway up the wall.

Additionally getsector can be allowed to fail in certain circumstances (such as line of sight checks).

pskelton avatar Mar 19 '22 17:03 pskelton