News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Mixed load prohibition applies to entire train, not just one car?

Started by wlindley, January 21, 2021, 02:23:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wlindley

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...

Ranran


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.

wlindley

I have placed a small save file here. 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.

Ranran

Quote from: wlindley on January 22, 2021, 01:31:03 PMI have placed a small save file here. 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.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

wlindley

Huzzah ! A convoi-full of Thank-You to you, Ranran !