Map array question regarding (de)acceleration

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
User avatar
Griff
Tycoon
Tycoon
Posts: 4984
Joined: 15 May 2005 15:46
Location: Peterborough, United Kingdom

Map array question regarding (de)acceleration

Post by Griff »

Will the new map array allow greater acceleration and slowing down?. I use the realistic acceleration, but it is hardly realistic...lets be honest, in conventional british railway stations an HST doess not enter a station at 60mph..nor does it speed off and reach full speed before the station is even out of sight.

The new map array allows more information to be stored..so, considering this will it allow trains to slow down on the approach to a red signal rather than like..from 100 to stop instantaneously. If so, then i believe that will allow Green, Orange and Red signals to be used.

So, on the slowing down on approach can it slow down realisticially coming into a station. This suggestion is dodgy.. but here goes.

If your going for realstic (de)accel, then naturally, one would assume your station layouts will be designed 'realistically' so..generally trains will enter the station at like..25/30 and slow down inside the platform. You could put a waypoint before the station which will trigger the train to gradually slow down. So the train perhaps is going 60mph and you place the waypoint six tiles away from the platform the train would slow down 5mph per tile..perhaps. The same goes for leaving the station, 3/4 mph increase per tile...

Everyone knows by now, my games are done with realism in mind, it'd be nice therefore to see a communter train slowing down into the bay platform rather than a train entering at 60 and slamming on the brakes.

Realistic speeds will allow for a greater realism of signals and train travel.
Ukončete, prosím, výstup a nástup, dveře se zavírají
User avatar
RiTi
Transport Coordinator
Transport Coordinator
Posts: 374
Joined: 23 Jun 2006 10:24

Post by RiTi »

In game the time is shifting not in a normal way. In the current situation if a train enters a station (at full speed) it still costs almost a day to stop. So if you want realistic train speed then you also need realistic game (time) speed. 8)
Keep life simple...
hertogjan
Director
Director
Posts: 560
Joined: 03 Jan 2006 20:45
Location: Netherlands

Post by hertogjan »

Which realistic acceleration do you use?* The behaviour of trains at stations highly depends on which version you use. You might try all versions to see what version you like the most.

As for yellow signals, there was a patch implementing yellow signals, but it has not been kept up to date with either the trunk or MiniIN versions. It might even be incompatible with the current map array, as the bits used for yellow signals may now be used for something else.
I also have thought about slowing down gradually (as opposed to instantly) at red signals. I don't think you'll need a new map array for this, but it needs a clever way of using the pathfinder to determine which signal is next, how far away it is, at what the state (red, yellow, green, or maybe also something else) is. I will (again) have a look at it, as I planned (long ago) to implement such a feature in my realistic acceleration patches. I hope that the introduction of YAPF has simplified the implementation of such a feature.

I also remember that someone wrote a patch for speed signs, which allowed you to set a maximum speed for a piece of track. It has been a while since I last heard/read about it. I fear that this patch (along with all other patches that are not updated regularly) is also incompatible with the current versions.
Such speed signs might be a solution to the problem of trains entering a station with high speeds. Just place speed signs "slow" before the entrance(s) of the station, and place speed signs "fast" at the exit(s).



*Select one from: realistic acceleration in trunk version, realistic acceleration of MiniIN, semirealistic acceleration from (patched) MiniIN
KING
Traffic Manager
Traffic Manager
Posts: 180
Joined: 12 Dec 2005 08:03

Post by KING »

I think the speed signs were to make the slow trains use diffrent tracks to the fast ones not slow the fast ones down
Image
RMJ
Traffic Manager
Traffic Manager
Posts: 160
Joined: 24 Sep 2005 13:52
Location: Denmark
Contact:

Post by RMJ »

please get a life, instead of keep on with youre real life ****. As one already statet look at the game speed. We dont have time to have trains to like normal. Because then we would have to have 1 day in openttd match 1 day in real life... So just pleast stop it, so very very annoying.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

RMJ wrote:... So just pleast stop it, so very very annoying.
Can we keep it a little bit civil here? I hope you have read the forum rules before joining :roll:
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
Griff
Tycoon
Tycoon
Posts: 4984
Joined: 15 May 2005 15:46
Location: Peterborough, United Kingdom

Post by Griff »

Reading what was said, it is possible with speed sign patch and orange signal state patch and perhaps possible with the new map array...so what he was saying was out of order...and saying it was realism *** was also out of order, realism is a valid suggestion. He really needs to know what he's on about before commenting.
Ukončete, prosím, výstup a nástup, dveře se zavírají
hertogjan
Director
Director
Posts: 560
Joined: 03 Jan 2006 20:45
Location: Netherlands

Post by hertogjan »

A little comment on what I said earlier about looking ahead to red signals. I already managed to implement such a feature for single (i.e. non-branching) tracks. Also, for trains in tunnels and on bridges it also doesn't work yet. But as soon as I can get this to work as well, I will post a patch with this feature.*

*Note to people who don't like this feature: There will be a patch option to enable/disable it.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 1 guest