Original v Improved Loading algorithm

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
MiracleCure
Engineer
Engineer
Posts: 34
Joined: 11 May 2009 23:38
Location: Edinburgh!

Original v Improved Loading algorithm

Post by MiracleCure »

Would I be correct in saying that under the original algorithm, all vehicles at a station load at a standard rate and that with improved algorithm it loads them in arrival order?

It is a pity that this is tied to the stations rather than types/groups of vehicles. Eg. I'd like to have a large station releasing many trains at the same time but a dock only loading 1 freighter/tanker at a time. Would this be something that could be changed by GRF or is it fundamentally rooted in the code for the station?


Thx
Miracle

PS.
I have no knowledge of coding what so ever, so please try to refrain from telling me to look at it myself because if I could I would already have done and probably would not need to ask this question.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Original v Improved Loading algorithm

Post by NekoMaster »

MiracleCure wrote:Would I be correct in saying that under the original algorithm, all vehicles at a station load at a standard rate and that with improved algorithm it loads them in arrival order?

It is a pity that this is tied to the stations rather than types/groups of vehicles. Eg. I'd like to have a large station releasing many trains at the same time but a dock only loading 1 freighter/tanker at a time. Would this be something that could be changed by GRF or is it fundamentally rooted in the code for the station?


Thx
Miracle

PS.
I have no knowledge of coding what so ever, so please try to refrain from telling me to look at it myself because if I could I would already have done and probably would not need to ask this question.
Dude, you do know you can change the loading algorthem in the advanced settings menu, I usually have improved loading off though, i prefer having everything load at the same time
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Original v Improved Loading algorithm

Post by Roujin »

Yes, he knows. What he wants is one behavior for trains (improved) and the other for ships (original).
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Original v Improved Loading algorithm

Post by NekoMaster »

Roujin wrote:Yes, he knows. What he wants is one behavior for trains (improved) and the other for ships (original).
Oh...
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Original v Improved Loading algorithm

Post by Eddi »

I don't see a reason to disable Improved Loading. When there is enough cargo to load multiple trains, it will load them both simultaneously, maybe turning off gradual loading will improve this effect on transfer stations, as all cargo will be accounted for immediately.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Original v Improved Loading algorithm

Post by NekoMaster »

Eddi wrote:I don't see a reason to disable Improved Loading. When there is enough cargo to load multiple trains, it will load them both simultaneously, maybe turning off gradual loading will improve this effect on transfer stations, as all cargo will be accounted for immediately.
but having trains loaded instantly as long as theres enough cargo is kinda unrealistic, having all trains loaded gradually is more realistic
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
rjch_au
Engineer
Engineer
Posts: 6
Joined: 18 Jul 2010 07:23

Re: Original v Improved Loading algorithm

Post by rjch_au »

Eddi wrote:I don't see a reason to disable Improved Loading. When there is enough cargo to load multiple trains, it will load them both simultaneously, maybe turning off gradual loading will improve this effect on transfer stations, as all cargo will be accounted for immediately.
In a word, ratings. When I play a game of OpenTTD, I tend to build a rail system that ships primary materials to only one secondary destination (for example, I'll build a rail network to ship iron ore from all mines to one steel mill) which consequently means I have a secondary industry churning out tens of thousands of cargo items. If I turn on improved loading, trains neatly load in sequence and depart in a fairly orderly manner. However, when I'm generating 20 or 30 thousand crates of goods, this leads to a fairly significant backlog at the station, which reduces ratings significantly - quite often when I enable improved loading, ratings will drop 20-30% within a year or two. With improved loading off, cargo is loaded onto whichever train is ready to take cargo. This keeps the platforms empty, keeping the rating higher.

Ideally, what I'd really like to do is to be able to enable improved loading globally, but optionally be able to disable it at very busy stations. Whilst I know enough about programming to be dangerous, I'm not good enough at it to be able to wade through the OpenTTD code to find out how I might implement it.

Realistic? Probably not. But that's the way I like to play.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Original v Improved Loading algorithm

Post by planetmaker »

Improved loading will load more than one train, if there's enough cargo around, but only one, if there's less than it takes to fill one train.
rjch_au
Engineer
Engineer
Posts: 6
Joined: 18 Jul 2010 07:23

Re: Original v Improved Loading algorithm

Post by rjch_au »

planetmaker wrote:Improved loading will load more than one train, if there's enough cargo around, but only one, if there's less than it takes to fill one train.
I know. However, when you have industries generating huge amounts of cargo, the backlog of cargo to be loaded onto partially loaded trains can easily add up to 1000+ units - more if you use very long trains. (which I do - once I start dealing with thousands of units of cargo a month, I use trains that are 14 or 21 tiles long with 28 or 36 carriages)
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Original v Improved Loading algorithm

Post by Eddi »

have you tried just disabling "full load" instead?
rjch_au
Engineer
Engineer
Posts: 6
Joined: 18 Jul 2010 07:23

Re: Original v Improved Loading algorithm

Post by rjch_au »

Eddi wrote:have you tried just disabling "full load" instead?
Actually, that's even worse, since you reduce the effectiveness of the trains. Many would leave the platform having loaded nothing at all.
2457
Engineer
Engineer
Posts: 126
Joined: 06 Dec 2009 21:57

Re: Original v Improved Loading algorithm

Post by 2457 »

sorthof i would like this feature too, to be able to set all stations to load WITH!!!!! the improved algorythm, but be able to set original for any station i want.

Reason is the rating, if i play WITH!!!!! original settings they do go higher.
i can get better results WITH!!!!! it at some stations, while not at others.

so in my opinion it would be great to be able and enable/disable improved loading independantly.
whom may know..
maybe later there will be a feature for multi platform stations where user could set how many trains to load at the same time. (as like 4 platform station, and i as user could choose to load 2 trains in the same time)

this would be handy for RV, while loading only 1 ship at a time at docs would still be prefered.

love the idea.
The Prophet -thx Pikka-
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Original v Improved Loading algorithm

Post by XeryusTC »

rjch_au wrote:
planetmaker wrote:Improved loading will load more than one train, if there's enough cargo around, but only one, if there's less than it takes to fill one train.
I know. However, when you have industries generating huge amounts of cargo, the backlog of cargo to be loaded onto partially loaded trains can easily add up to 1000+ units - more if you use very long trains. (which I do - once I start dealing with thousands of units of cargo a month, I use trains that are 14 or 21 tiles long with 28 or 36 carriages)
Try gradual loading if you haven't, it might work better for you.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Original v Improved Loading algorithm

Post by Eddi »

rjch_au wrote:
Eddi wrote:have you tried just disabling "full load" instead?
Actually, that's even worse, since you reduce the effectiveness of the trains. Many would leave the platform having loaded nothing at all.
you can catch those with a conditional order to loop back to the station.
rjch_au
Engineer
Engineer
Posts: 6
Joined: 18 Jul 2010 07:23

Re: Original v Improved Loading algorithm

Post by rjch_au »

XeryusTC wrote:Try gradual loading if you haven't, it might work better for you.
As I mentioned previously, gradual loading is worse because it leaves cargo sitting on the platform even longer.
Eddi wrote:you can catch those with a conditional order to loop back to the station.
That's even worse - you'll have more trains than ever (and my goods runs can have a couple of hundred trains already) getting in the way when looping around, potentially causing a complete traffic jam.

Even if someone could point me in the right direction - which files contain the logic for loading goods, and which for the station GUI - I could make some sort of attempt at creating a patch...
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Original v Improved Loading algorithm

Post by Eddi »

without really looking i'd guess vehicle_cmd.cpp for the loading and station_gui.cpp for the GUI. typically, "_cmd" files contain the game logic, and "_gui" files the windows.

but maybe you might want to consider adding a loading type to the orders instead of messing with the station. you probably find hints to doing that in order_gui.cpp
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 8 guests