[Twinsen] [0.17.76] Statistics show water incorrectly

This subforum contains all the issues which we already resolved.
Post Reply
DeathMoon
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Nov 22, 2014 10:25 pm
Contact:

[Twinsen] [0.17.76] Statistics show water incorrectly

Post by DeathMoon »

I have another iteration of the following bug:
viewtopic.php?f=23&t=77355&p=463859

The game is modded with Industrial Revolution and Deadlock's Larger Lamps.

The Problem:
In the fluids tab of the production (and consumption) statistics, the amount of water and steam in the 250h, 1000h and all-time view are shown incorrectly.

In the 50h picture you see a (correct) 1G production of water and steam, and there is the 1G consumption of water and 0.84G of steam.
50h picture
50h picture
20191109154502_1.jpg (957.31 KiB) Viewed 1170 times

In the 250h picture the water production (1.2G) is still correct, but the steam production went down to 0.64G.
Further is the consumption of water at 0.68G and Steam at 0.39G.
all-time picture
all-time picture
20191109154504_1.jpg (938.36 KiB) Viewed 1170 times

This difference is again visible in the 1000h statistics, which shows an accurate amount of water production, but the other three values are wrong.
500h picture
500h picture
20191109154505_1.jpg (919.35 KiB) Viewed 1170 times

The all-time statistics for reference:
250h picture
250h picture
20191109154506_1.jpg (863.97 KiB) Viewed 1170 times
This problem doesn't affect other fluids, nor the production statistics of items or buildings. But it also happens with every listing in the pollution tab.
And the error is visible with or without mods.


The save file:
https://drive.google.com/open?id=1QvWzJ ... JOo3WtAd6v

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen] [0.17.76] Statistics show water incorrectly

Post by Twinsen »

It's the same problem as the linked topic

Because I used float, adding one item at a time was no longer possible because of precision.

If you created more than 1398 items(or fluid) per second, the 1000h statistics would bug out. (higher for other intervals)

I changed it to double, so now it will work, unless you manage to create 750599937895 items per second.

Technical details here: https://stackoverflow.com/questions/125 ... 77216-in-c

Fixed in Version: 0.17.77

You should see the new statistics being generated correctly, but the old data will still be incorrect until a new save is started.

Thanks for the report.

Post Reply

Return to “Resolved Problems and Bugs”