You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the attached savegame. If you leave it running for some time you'll see that the train will occasionally leave some coal in the station, even though it could easily have loaded it. This is because with autorefit we "reserve" cargo for each single vehicle separately, even if there is no full load order. See economy.cpp:1500 ff. This means some of the wagons can reserve coal they intent to later load and thus prevent later wagons from loading the same coal. However, if the last wagon does not load up to its capacity, the "coal" bit in full_load_amount will be cleared in economy.cpp:1517. This, together with anything_loaded being true because some other wagon did load, leads to VF_STOP_LOADING to be set in line 1590. This in turn prevents the whole consist from loading any further cargo, also those wagons which could load the cargo they've previously reserved.
I have fixed that in cargodist. See the, currently experimental, branch "reserve" at github.com/fonsinchen/openttd-cargodist .
There's an easy fix for this. See attached patch. Basically, we just have to remember the reservations we have performed and not stop loading if there is still some reservation left.
fonsinchen opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5435
The text was updated successfully, but these errors were encountered: