Set maximum track speed

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Yankovic
Engineer
Engineer
Posts: 2
Joined: 18 Jul 2009 21:49

Set maximum track speed

Post by Yankovic »

I've looked in the commonly asked suggestion topics but don't recall seeing it in there.

I would like to be able to put a signal on a railway track from where a maximum speed is allowed.


And now I am thinking about this. I am thinking about something else.

It would be cool if trains 'see' at a signal before the next signal that the next signal is red, so the train slows down already and doesn't get to a complete stop from 250km/h in 1ms.

I think that this are two nice suggestions, and also relatively easy to implement. I am no c++ coder so I wouldn't know for sure tho :p
User avatar
cmoiromain
Chief Executive
Chief Executive
Posts: 655
Joined: 15 Jan 2007 21:45
Location: FRANCE
Contact:

Re: Set maximum track speed

Post by cmoiromain »

I agree those are nice, but apparently they are harder to implement than we imagine. The speed limit one has already had some work done on it a long time ago I think (and IIRC it is a feature of TTDPatch, thow I may be wrong there). The second is nice not only for realism, but also to prevent trains from totally stopping when they see a slower train ahead, and having to start again, creating an even greater congestion behind them. But due to pathfinder issues that is pretty difficult to code, and it would probably lead to performance issues on weaker computers.
I am little, ugly, and nasty. How do you do?
Yankovic
Engineer
Engineer
Posts: 2
Joined: 18 Jul 2009 21:49

Re: Set maximum track speed

Post by Yankovic »

Nice to hear that other people would also like these features.

Coding this looks pretty simple to me, even with not knowing how the whole openttd system works:

for the maximum speed: Just a special tile, when a train gets on it a variable with max-speed gets set. And the train will not exceed that speed and if necessary slow down until it reaches that speed (on same rate as entering a station, not just stopping like at a signal).

Slowing down when the next signal is red: I wouldn't make this very complicated. Only slow down if there is a signal within a range of 10 tiles (or another amount you can set yourself). And only if the red signal is on the same track (not after an intersection). Not knowing the system I think that should be doable. And if you have a weak computer you simply turn the option off?
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Google [Bot] and 7 guests