News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Messages in underground mode ignore the z coordinate

Started by Yona-TYT, October 10, 2022, 09:07:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

I don't know if this was implemented, but the messages in the underground mode don't point to the correct address because they don't use the z coordinate (height), would it be possible to implement this?.

 It actually tends to confuse users when building a tunnel underground, look at the picture:

Dwachs

This is a missing feature of this message box window (and thus inherited by scripting api). Should be doable.
Parsley, sage, rosemary, and maggikraut.

Dwachs

This turns out to produce a lot of work in completely unrelated parts of the code, which still use 2d coordinates only (ticker, speed records).

Also what should happen if one clicks such a message? Should display change to underground mode automatically?
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on October 20, 2022, 06:24:38 AMAlso what should happen if one clicks such a message? Should display change to underground mode automatically?

Well, the behavior should be similar to when following a vehicle entering a tunnel, this activates the "Sliced map view".

Yona-TYT

Quote from: Dwachs on October 20, 2022, 06:24:38 AMThis turns out to produce a lot of work in completely unrelated parts of the code, which still use 2d coordinates only (ticker, speed records).
Do you think it would be a good idea to change everything to 3d coordinates? Would this have implications in general performance?.

Dwachs

I will work on this. It will have no impact at all, I guess. A lot of code needs to be updated (inclusive savegame compatibility code).
Parsley, sage, rosemary, and maggikraut.

Dwachs

Parsley, sage, rosemary, and maggikraut.

Yona-TYT

#7
Quote from: Dwachs on November 07, 2022, 06:28:11 PMThis is now in r10794/96
Wow, you have changed many coordinates to 3d!. ;D

It works great, thanks for your great work!.



There is a small visual error in the preview, apparently it happens on the slopes, look at the image:
Captura desde 2022-11-07 21-49-11.png