Train refuses to unload cargo despite route being seemingly properly configured

Fixed
jjerhub [github] · 1 year ago

Hello. Someone on Discord posted what I consider to be a pretty big issue w/ the train system. I did some testing on it and it seems reproducible to me. The post is here https://discord.com/channels/803508556325584926/1372832905176416257/1372832905176416257
Image
The save file is located in the discord post. It won't let me upload it here, but perhaps I could zip it if necessary. I'm not sure if zips are allowed in tickets or not.

Reproduction:

  1. Set up a simple train, one locomotive and three loose type cargo cars
  2. Set up a simple track, two stations, one to load one to unload, but where the first and third load modules are for one resource and the middle one is a different resource
  3. Set up the unload station so that the middle resource that was loaded is unloaded from the last module
  4. Only provide the middle load source with product
  5. Make sure the route is configured with an "and" condition to empty of both resources
    5a) When the train arrives at the destination station note that it doesn't unload anything
    5b) The train never leaves because it doesn't understand how to empty the middle car properly and the route is set to empty of both resources
    5c) Note that if the first module is set to dirt the train properly unloads.
    5d) Note that if the route is changed to "or" instead of "and", the train just instantly leaves, not unloading anything

Expectation, the train should always attempt to unload all cargo regardless of module placement.

This was also tested after the 0.7.1c patch that just dropped and the issue is still present

Closed as ✅ Fixed

8 Showing 1–2 of 2