News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[Scripts / Tutorial] Ownerless text labels on private objects.

Started by Yona-TYT, May 25, 2025, 02:05:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


I'd like to use ownerless text labels everywhere, but I currently have a limitation with them in the tutorial: they can't be built on other players' builds/ways.

Is it possible to make them unrestricted so they can be placed everywhere? This would be a great help for the tutorial :)

photo_2025-05-25_10-05-02.jpg

photo_2025-05-25_10-05-07.jpg

prissi

This would forbid to build a station there. Thus, it was disallowed.

Yona-TYT

Quote from: prissi on May 25, 2025, 11:09:48 PMThis would forbid to build a station there. Thus, it was disallowed.
In fact, these have the particularity that they are removed when a station/stop is placed on them.

I made this small modification: 0001-Places-unowned-label-texts-on-owned-objects.patch
This works very well with the tutorial. I changed all the text labels in chapters 2 and 3 for testing, and everything works fine.

2025-05-26_00-05-1748232590.jpg
2025-05-26_00-05-1748232437.jpg


Yona-TYT

Quote from: Yona-TYT on May 26, 2025, 04:25:21 AMI made this small modification: 0001-Places-unowned-label-texts-on-owned-objects.patch
@Prissi, Is there any problem with this? In my tests this change doesn't seem to break anything.