Page 1 of 1

[Twinsen] [0.17.79] Rounding values in electricity tab (chart & gauge)

Posted: Tue Nov 26, 2019 11:53 pm
by TheoMarque
I've noticed a rounding problem. I've created a new map to test my new nuclear power plant setup. Is all OK, producing power but... I see strange rounding problem. On gauge I see 1.1 GW. On chart (if I hover mouse on line) I see 1.0 GW. Gigawatts are not small numbers that one lamp can ruin all calculations.

Setup is created with power interface what is consuming all produced energy, no any other power producing entity is on a map. As screen below, I run this map for 3 hours and nothing change. 100 MW "gone" in chart.

Image

Re: [0.17.79] Rounding values in electricity tab (chart & gauge)

Posted: Wed Nov 27, 2019 10:16 am
by Rseding91
Are you using the pause feature of the map editor?

Re: [0.17.79] Rounding values in electricity tab (chart & gauge)

Posted: Wed Nov 27, 2019 7:03 pm
by movax20h
I had similar issue yesterday. Chart (on a left / usage side) was showing 1kW more than what the bars were showing, and 1kW more than it absolutely max possible (these were miners I think).

On the topic of rounding, 1.1GW is rather wide spread of possible values (10%, or if you don't know how they are rounded 20%). IMHO 1.10GW would be more useful. Once it crosses 10GW, go back to 0.1GW resolution, so 10.1GW.

Re: [0.17.79] Rounding values in electricity tab (chart & gauge)

Posted: Wed Nov 27, 2019 7:07 pm
by TheoMarque
No, I doesn't pause feature on map editor.

Here is a savegame:

https://www.dropbox.com/s/qr479025nf4h3 ... W.zip?dl=0

You may notice not enough water in heat exchangers, it was done on purpose to check how amount of water is needed but this nothing can change.

Re: [0.17.79] Rounding values in electricity tab (chart & gauge)

Posted: Wed Dec 11, 2019 3:41 pm
by Twinsen
It was related to the graph tooltip using floor and the label using round.
Now they both use round, both for electricity and items.

Fixed in Version: 0.18.0.

Thanks for the report and the save.