The International Simutrans Forum

Development => Patches & Projects => Topic started by: poppo on September 05, 2026, 09:37:32 AM

Title: Another method of closed diagonal ways
Post by: poppo on September 05, 2026, 09:37:32 AM
Hi!
I want to share my idea: different method of creating closed diagonal ways.
I know it was already discussed here: https://forum.simutrans.com/index.php/topic,23961.0.html (https://forum.simutrans.com/index.php/topic,23961.0.html), but current idea can allow coexist different waytypes, different speeds in same tile.

examples: https://x.com/simu__poppo/status/2096167810477244637 (https://x.com/simu__poppo/status/2096167810477244637)

My idea:
Title: Re: Another method of closed diagonal ways
Post by: prissi on September 06, 2026, 02:21:32 PM
That might be one method (the other would be 256 bit ribis for entering and exiting which include deliberately diagonal ribis). However, your suggestion and the ribi extension would need to change many assumption side the code. (The ribi method could make any way signle direction though ... )

And there are graphics, that still may use more than half a tile for the diagonal, so there should be a way to know that one cannot use more than half a tile.

Also the current system allows for tramways on diagonal streets, which way(1) would not. So I would put this idea under long term change. Let's first test the current system in a release.
Title: Re: Another method of closed diagonal ways
Post by: poppo on September 06, 2026, 03:26:01 PM
I already made a patch, and currently I'm working to merge this in OTRPatch project (it will be merged in OTRPatch v61).
We already set reserved_convoy2 and ribi calculation, so we can easily add this double way.

In addition, with this method, we can use original way and wayobj diagonal graphics without re-pak addons.

Although, as you mentioned, we cannot build new tram_track on that tile. So, if you want to use tram_track, you should use 1st one https://forum.simutrans.com/index.php/topic,23961.0.html (https://forum.simutrans.com/index.php/topic,23961.0.html) .