News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[FATAL] Tram way can be abused to destroy other companies' tracks

Started by Ranran, February 06, 2021, 04:54:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran

Players can disconnect the railroad tracks of other companies at any time. (´・ω・`)

How to destroy the tracks of other companies:
(1) Make a crossing by laying a road on the railroad tracks of another company
(2) Lay a tram track on the railroad crossing
At this point, the railroad tracks of another company on the railroad crossing tiles have already been demolished. You have succeeded in sabotage.




But trying to do this doesn't seem to be a problem. In the real world, trams can cross railroad tracks.

jamespetts

Thank you for your report. My home internet is down currently, and I am accessing the internet using a 5g hotspot in my shed. I will look into this when my internet is restored.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

DrSuperGood

I do not think it is possible to have the tram tracks cross the rails like that due to limitations with the Simutrans engine (only 1 kind of rail per tile). However it should be possible to detect cases of players trying to do this and so deny them permission to build the tram lines.

jamespetts

Quote from: DrSuperGood on February 07, 2021, 10:15:05 AM
I do not think it is possible to have the tram tracks cross the rails like that due to limitations with the Simutrans engine (only 1 kind of rail per tile). However it should be possible to detect cases of players trying to do this and so deny them permission to build the tram lines.

This is correct: this is the nature of the solution that I plan to implement when I am able to do so.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ranran

I think I've fixed this bug.
I made the change so that only the owner of the railroad track can create a crossing between the tram and the railroad track on the road with the destruction of the railroad track (by removing the crossing).
Therefore, it is the player's own responsibility, since only the player who does it can carry out the kind of disruption of train operations mentioned in the first post. :p
Please check the pull request #475.

jamespetts

Excellent, thank you: now incorporated.

One odd side effect, however, is that, after trying to build the tram line, the other player's railway lines are now connected to one another at the point of the crossing.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.