Single train cannot crash itself

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Marcin Sz.
Engineer
Engineer
Posts: 1
Joined: 18 Aug 2023 15:39

Single train cannot crash itself

Post by Marcin Sz. »

I have a question why a single train cannot crash itself. For example such situation when the train is long and there is a loop somewhere in the infrastructure (attached images).
I remember this even in original TTD back to 2000's (this behaviour is true for all type of connections). Is this a bug or it's some reason why it works in that way?
Screenshot 2023-08-18 at 17.45.18.png
Screenshot 2023-08-18 at 17.45.18.png (96.67 KiB) Viewed 696 times
Screenshot 2023-08-18 at 17.45.24.png
Screenshot 2023-08-18 at 17.45.24.png (68.68 KiB) Viewed 696 times
User avatar
jfs
Tycoon
Tycoon
Posts: 1764
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Single train cannot crash itself

Post by jfs »

I think it might just be a historical reason, it's always worked that way and it isn't really a problem as such.

The reason might be something technical in the movement code, where cars might sometimes count as overlapping during movement and then it was easier to just make it a rule that trains have no collision with themselves, than making a more narrow special casing of those temporary self-overlap during movement calculation.
(This is only guessing, btw.)
User avatar
odisseus
Director
Director
Posts: 568
Joined: 01 Nov 2017 21:19

Re: Single train cannot crash itself

Post by odisseus »

Bug or not, it can be exploited to coil a train of arbitrary length into a 5x3 waiting bay.

Image
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7249
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Single train cannot crash itself

Post by Redirect Left »

odisseus wrote: 19 Aug 2023 18:13 Bug or not, it can be exploited to coil a train of arbitrary length into a 5x3 waiting bay.

Image
Can't lie, that is easily the most imaginative use of a (intentional) bug I've come across for some time!
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 21 guests