Help finding and understanding Realistic Acceleration Models

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
DrCplKlinger
Engineer
Engineer
Posts: 2
Joined: 28 Dec 2018 19:29

Help finding and understanding Realistic Acceleration Models

Post by DrCplKlinger » 28 Dec 2018 19:35

Howdy!

I'm the type of person who enjoys calculating their stuffs before going ahead. However, my issue is I can't find the model used or the corresponding source file to the realistic acceleration for trains.

I've found this page:
https://wiki.openttd.org/OpenTTDDevBlac ... celeration

But not only is it a mess, the model it presents doesn't even give me accurate results!

Can anyone help or direct me in the right direction?

P.S. Is there a page for loading time Calcs?

User avatar
jfs
Route Supervisor
Route Supervisor
Posts: 497
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Help finding and understanding Realistic Acceleration Models

Post by jfs » 28 Dec 2018 20:42

I think these are the principal functions of interest:
GroundVehicle<>::GetAcceleration()
Train::GetCurveSpeedLimit()

Eddi
Tycoon
Tycoon
Posts: 7366
Joined: 17 Jan 2007 00:14

Re: Help finding and understanding Realistic Acceleration Models

Post by Eddi » 28 Dec 2018 21:00

DrCplKlinger wrote:But not only is it a mess, the model it presents doesn't even give me accurate results!
i'm fairly sure the code got changed after that page was written.
You might not exactly be interested in Ferion, but if you are, have fun :)

Transportman
Tycoon
Tycoon
Posts: 2683
Joined: 22 Feb 2011 18:34

Re: Help finding and understanding Realistic Acceleration Models

Post by Transportman » 29 Dec 2018 14:22

Take a look at the bottom of this page, that seems a little more recent than your source.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML

DrCplKlinger
Engineer
Engineer
Posts: 2
Joined: 28 Dec 2018 19:29

Re: Help finding and understanding Realistic Acceleration Models

Post by DrCplKlinger » 29 Dec 2018 17:20

Thanks Everyone!!!
:D

Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 7 guests