News:

Want to praise Simutrans?
Your feedback is important for us ;D.

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(retired)


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.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

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(retired)

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.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

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 !