The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended bug reports => Topic started by: Vladki on February 25, 2020, 10:41:15 PM

Title: cargo delivery paused on rotation
Post by: Vladki on February 25, 2020, 10:41:15 PM
This may be related to the rotation related crashes, but may be a separate issue.

In this save: https://uran.webstep.net/~vladki/simutrans/cargo-pause-rotation.sve, there is an established oil truck line in berkington, supplying the refinery from nearby oil well. Watch the production of oil well, stored cargo on the loading bay, and cargo loaded on the truck.When the oil well produces some oil, it is almost immediately transferred to the loading bay, and again immediately to the truck. But if you rotate the map, deliveries stop, and produced oil starts to accumulate in the output storage of oil well. When you rotate 4 times to get back to the original rotation, all accumulated oil is immediately loaded.

Also if you run in debug mode - save the log and look for rotate function call. Immediately after that you'll see tons of "remove stale cargo" messages.


Message: karte_t::rotate90():   called
Message: vehicle_t::remove_stale_cargo():       called
Message: vehicle_t::remove_stale_cargo():       called
Message: vehicle_t::remove_stale_cargo():       called
Message: vehicle_t::remove_stale_cargo():       called
Message: vehicle_t::remove_stale_cargo():       called
Message: vehicle_t::remove_stale_cargo():       called