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: 12
Joined: 28 Dec 2018 19:29

Help finding and understanding Realistic Acceleration Models

Post by DrCplKlinger »

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
Tycoon
Tycoon
Posts: 1750
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Help finding and understanding Realistic Acceleration Models

Post by jfs »

I think these are the principal functions of interest:
GroundVehicle<>::GetAcceleration()
Train::GetCurveSpeedLimit()
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Help finding and understanding Realistic Acceleration Models

Post by Eddi »

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.
Transportman
Tycoon
Tycoon
Posts: 2781
Joined: 22 Feb 2011 18:34

Re: Help finding and understanding Realistic Acceleration Models

Post by Transportman »

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: 12
Joined: 28 Dec 2018 19:29

Re: Help finding and understanding Realistic Acceleration Models

Post by DrCplKlinger »

Thanks Everyone!!!
:D
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 8 guests