The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: wlindley on January 21, 2021, 02:23:42 PM

Title: Mixed load prohibition applies to entire train, not just one car?
Post by: wlindley on January 21, 2021, 02:23:42 PM
If I build a train with several bulk goods cars, and have it attempt to carry both grain and coal from the hills to the central station, what happens is that whichever cargo gets loaded first prevents the other from loading.
Looking at simhalt.cc, it seems that rather than considering each car separately, the entire convoy is subject to the mixed_load_prohibition of any given cargo? Is that true? Or how can we get one car-load of grain and one car-load of coal in the same train...
Title: Re: Mixed load prohibition applies to entire train, not just one car?
Post by: Ranran(retired) on January 21, 2021, 03:07:39 PM
(https://i.imgur.com/sCq91zx.gif)
As far as I've tested, it looks like it's working as expected.
Bulk wagon with mix load prohibited is loaded with only the same goods, otherwise piece goods wagon (the last car) is loaded with multiple goods.
Title: Re: Mixed load prohibition applies to entire train, not just one car?
Post by: wlindley on January 22, 2021, 01:31:03 PM
I have placed a small save file here (https://wlindley.com/simutrans/wont-load-coal.sve). There is a single train with several bulk cars set to wait for a minimum load. The first car loads grain, and although there are four empty cars, the iron ore and coal waiting at the station will not load so the train sits there forever (or until it fills with enough grain only).

EDIT: The train, set for 10% minimum load, will wait until there is that much grain alone, and THEN it WILL load the coal or iron.  But it happily sits at the platform ignoring tonnes of bulk goods until that time.

A train that makes a simple station stop will refuse to load any bulk goods other than grain into empty cars, if grain is already loaded in any of the cars.
Title: Re: Mixed load prohibition applies to entire train, not just one car?
Post by: Ranran(retired) on June 08, 2022, 03:47:28 PM
Quote from: wlindley on January 22, 2021, 01:31:03 PMI have placed a small save file here (https://wlindley.com/simutrans/wont-load-coal.sve). There is a single train with several bulk cars set to wait for a minimum load. The first car loads grain, and although there are four empty cars, the iron ore and coal waiting at the station will not load so the train sits there forever (or until it fills with enough grain only).

EDIT: The train, set for 10% minimum load, will wait until there is that much grain alone, and THEN it WILL load the coal or iron.  But it happily sits at the platform ignoring tonnes of bulk goods until that time.

A train that makes a simple station stop will refuse to load any bulk goods other than grain into empty cars, if grain is already loaded in any of the cars.
Thank you for reporting the bug with the saved game. It was very helpful.
I think I fixed this bug. Check pull request #549.

EDIT:
For reference, if you expect multiple cargo types to be loaded in the same category, we recommend that you do not schedule to wait until 100% loading. It's the same situation where convoy has two capacities, passenger and mail, but is waiting for 100% loading.
Title: Re: Mixed load prohibition applies to entire train, not just one car?
Post by: jamespetts on June 11, 2022, 10:41:54 AM
Excellent, thank you. Now incorporated.
Title: Re: Mixed load prohibition applies to entire train, not just one car?
Post by: wlindley on June 11, 2022, 12:20:49 PM
Huzzah ! A convoi-full of Thank-You to you, Ranran !