Lost Dwarven Kingdom of Reknor zone is bugged

Make all T-Engine/ToME 4 bug reports here

Moderator: Moderator

Post Reply
Message
Author
Tradewind_Rider
Thalore
Posts: 188
Joined: Sat Oct 05, 2019 8:55 pm

Lost Dwarven Kingdom of Reknor zone is bugged

#1 Post by Tradewind_Rider »

I wonder why this was never noticed before, but the zone level definition and the map of the last level of Reknor
are not in synchron, and therefore just by moving the mouse cursor onto tiles can cause lua errors.

The issue is:

a, in the zone definition, the 4th level is:

width = 70, height = 70,

The final level is a 70x70 tile level.


b, but the ASCII map of this level is a 71x30 tile map.

Interestingly, the height desynchron is not causing lua errors,because how the y-coordinates are generated
(even if the map is defined as 70 tile height, if the ASCII map is only 30 tile height, there is no room to move the mouse onto tile 31,32,33, etc tile 30 is the southest tile)

But in case of width desynchron, the case is different, in the horizontal dimension, there is room for moving the mouse cursor over tiles toward an x->increasing area.

By default, this does not happens, because the level is not all_remembered and not lited.

But if the player is using a magic_map effect (Vision talent or Burning Star e.g.) close enough to the eastern part of the map, then these tiles become
visible and therefore when the player moves the mouse cursor over this 1 tile wide range, a lua error will occur.
err_1.png
err_1.png (184.35 KiB) Viewed 1217 times
err_2.png
err_2.png (132.32 KiB) Viewed 1217 times

Post Reply