vehicle loading speed

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

vehicle loading speed

Post by FooBar »

I'm trying to figure out how much time it takes a vehicle to do a full load and unload cycle, as to inform the user about that in the purchase menu.

While the calculation for this is easy (capacity * 2 / load_amount), I cannot seem to find in what unit the 'load amount' is defined. The NFO Specs just speak of "unit of time". The NML docs speak of "cargo units loaded per tick", but this doesn't appear to be nowhere near correct. Per tick would mean a 546 passenger vehicle with a load amount of 16 would do a full load and full unload in 69 ticks, just under a game day. While it sits in the station closer to half a month.

Does anybody know how the loading of vehicles work? I think I just need to know every how many ticks cargo is moved in or out of the vehicle. I tried my luck at the OpenTTD source, but have nowhere near an idea of where to look for this.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 990
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: vehicle loading speed

Post by frosch »

With the assumptions that
a) gradual loading is enabled
b) the train is not longer than the platform
a "load amount" is loaded in these times:

Trains: 40 ticks
RV: 20 ticks
Ships: 10 ticks
Aircraft: 20 ticks

(74 ticks are one day)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: vehicle loading speed

Post by FooBar »

Well, that was quick! Thanks very much!

The assumptions you made are fine. I implicitly made those myself as well :)
I'll add this bit of information to the specs.
mortensi
Engineer
Engineer
Posts: 6
Joined: 05 May 2009 08:36

Re: vehicle loading speed

Post by mortensi »

I have playing a CargoDist build, and I'm experiencing in my opinion long vehicle loading times, like 7 ingame-days to unload and load a 7-tile (13 carriages) train.

The station is of course 7 tiles long, so I can't see why this is taking so long.

After reading through this thread I got the impression that the loading should be done in one day?

These loading times in now becoming my number one headache, since a "main" line going across the continent, with several transfer stations along the road (connecting to the various cities along the way), requires truly enormous stations, even though I only have one railway track feeding the station in each direction. If I could control the load/unload time I would lower it down to to a very short time (for all vehicles), since the loading time usually is very short compare to the ride-time for any travelling mode.

I would be glad if anyone could share some light one this topic for me, since I'm not at all into any details of OTTD - just a casual player.

kind regards
Morten Simonsen
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: vehicle loading speed

Post by FooBar »

mortensi wrote:If I could control the load/unload time I would lower it down to to a very short time (for all vehicles), since the loading time usually is very short compare to the ride-time for any travelling mode.
You can, via NewGRF.
If you're already using a train newgrf, then maybe complain in the topic of that set that you experience high loading times, asking why that is and/or if it can be changed in a future version.
mortensi
Engineer
Engineer
Posts: 6
Joined: 05 May 2009 08:36

Re: vehicle loading speed

Post by mortensi »

FooBar wrote:
mortensi wrote:If I could control the load/unload time I would lower it down to to a very short time (for all vehicles), since the loading time usually is very short compare to the ride-time for any travelling mode.
You can, via NewGRF.
If you're already using a train newgrf, then maybe complain in the topic of that set that you experience high loading times, asking why that is and/or if it can be changed in a future version.
Thanks for your swift reply! I took a look at the NewGRF-stuff (which I haven't used so far). After reading some FAQ and some NewGRF installation doc, I gathered it must be some parameter settings for some of the Train-sets which may allow me to change this setting. Or do you simply propose that I try one trainset, and hope it works better than the default/original trainset?

Since there are a number of trainsets in NewGRF I must confess I'm bewildered. If someone could suggest one particular train-set I would be grateful.

kind regards
Morten Simonsen
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 6 guests