JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
585 stars 133 forks source link

[Suggestion] Conditional orders - waiting cargo is enough for a full load #738

Open rhoun opened 2 months ago

rhoun commented 2 months ago

Motivation: Slower games have less cargo, so one freight train could easily service multiple routes. It waits in the depot and then goes out for the next load based on the waiting cargo amount, like this train handles 5 routes, that's currently on community server 3: image But, once new trains become available, the train capacity often changes to the bigger side, and all conditional orders should be updated. Otherwise, the train will depart earlier than expected and occupy a slot at the loading station that is not expected to be occupied for longer than loading/unloading. And if that's a low producing station, the train will be stuck there while it could service other links.

Solution: New condition for the waiting cargo amount orders, 'enough for a full load', here: image Or maybe % of load, with default 100%, for even more fine grianed control. I'm not sure how hard it is, but there's one complication: refits. This condition should calculate the correct cargo amount after the refit to handle train sets where wagons have different capacities based on cargo type.

I'd be happy to hear if this is possible at all, thanks!

JGRennison commented 2 months ago

A new condition type for this is implemented now, it'll be in the next release.