News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Another method of closed diagonal ways

Started by poppo, September 05, 2026, 09:37:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

poppo

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, but current idea can allow coexist different waytypes, different speeds in same tile.

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

My idea:
  • using get_weg_nr(1) for another way in same tile, another diagonal
  • add direction check for co-existing diagonals, and do not show the crossing when closed diagonal case
  • if we set two same waytype for get_weg_nr(0) and get_weg_nr(1), we can make co-existing 4-way tile in different way without add any images!

prissi

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.

poppo

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 .