The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: RESTRICTED ACCOUNT on February 06, 2021, 04:54:48 PM

Title: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: RESTRICTED ACCOUNT on February 06, 2021, 04:54:48 PM
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.

(https://i.imgur.com/7YYwqk6.gif)


But trying to do this doesn't seem to be a problem. In the real world, trams can cross railroad tracks.
(https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Kyoto_City_Tram-04.jpg/440px-Kyoto_City_Tram-04.jpg)
Title: Re: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: jamespetts on February 06, 2021, 05:02:34 PM
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.
Title: Re: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: 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.
Title: Re: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: jamespetts on February 07, 2021, 11:58:29 AM
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.
Title: Re: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: RESTRICTED ACCOUNT on January 20, 2022, 08:43:11 AM
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.
Title: Re: [FATAL] Tram way can be abused to destroy other companies' tracks
Post by: jamespetts on January 21, 2022, 08:08:52 PM
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.