The International Simutrans Forum

 

Author Topic: cargo delivery paused on rotation  (Read 239 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3718
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
cargo delivery paused on rotation
« 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.

Code: [Select]
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