Statistics - Diesel Fuel consumption broken

Fixed Saves & Loading
RealisticOptimist · 1 year ago

v0.7.6 b458 (sorry, this belongs to experimental, can you move the whole issue?)
Trains need diesel? This early? My sole Diesel Generator is a train?
Last "good" autosave and 1st broken one. And the last one, with the graph.
By the time the data got damaged (Sept 0004) I'd just had a single Diesel generator.

grafik.jpg

Files not imported: 25-06-20_16-28-autosave-paused.save, 25-06-20_16-38-autosave-paused.save, 061030_LastRef.save

RealisticOptimist · 1 year ago

Starting from the older autosave, I've seen this twice more. The bug can damage the data back in time, as seen in the graph, too. A (de)serialization issue?!

RealisticOptimist · 1 year ago

This is a manual save, the graph was ok before save. Then I immediately loaded, train instead of power production. restarted CoI, loaded, still train.
Can't check the raw data in the file, but looks like file save has a bug.

grafik.jpg

Files not imported: 060112.save

RealisticOptimist · 1 year ago

Ok, got down to this:
Load the ok file, check the graph, ok (power production).
Save file as train, load that, check graph, not ok (trains).
Seems 100% reproducible at this point. Though I still do not know what triggers it.

Files not imported: 050602_ok.save, 050602_train.save

Captain Marek Captain Marek · 1 year ago

Looks like the power production statistic turns into train statistic after save/load. Thanks for the report.

Captain Marek Captain Marek · 1 year ago

Found it, fixed it. Will be available in the next patch.

Btw the train and generators fuel stats are swapping on each load. Do Load => save => load as a workaround if you care about your stats 🙂

RealisticOptimist · 1 year ago

Thank you for the fix and the workaround!
I'm glad it was just a simple swap. 😬

Closed as ✅ Fixed

6 Showing 1–8 of 8