Page 1 of 1

[boskid][2.0.15] Accumulators in statistics show more charge that they can have

Posted: Fri Nov 08, 2024 11:59 am
by Brambor
11-08-2024, 12-52-46.png
11-08-2024, 12-52-46.png (260.73 KiB) Viewed 1123 times
The charge cycles 75 MJ; 75.1 MJ; 75.2 MJ; repeat;
All accumulators are full, they are not used.

I assume there is a bug with the integration. I think more steps are counted than should be. It probably counts steps for 10min; 10min 1sec; 10min 2 sec; repeat. Then divide by 10 minutes so you get more than max charge.

See these equations supporting my theory:
1. 600 s * 75 MJ / 600 s = 75 MJ
2. 601 s * 75 MJ / 600 s = 75.125 MJ
3. 602 s * 75 MJ / 600 s = 75.25 MJ

Reproduction:
1. Place 15 accumulators
11-08-2024, 13-05-58.png
11-08-2024, 13-05-58.png (483.64 KiB) Viewed 1117 times
2. fully charge them
3. wait 10 minutes
4. look at the 10min power graph of those accumulators.
5. Observe: charge cycles 75 MJ, 75.1 MJ, 75.2 MJ every 3 seconds. You would expect it to stay the same.
11-08-2024, 13-18-40.png
11-08-2024, 13-18-40.png (85.68 KiB) Viewed 1104 times

It also cycles on the 1 min graph, but faster, it takes less than a second to cycle:
11-08-2024, 13-08-33.png
11-08-2024, 13-08-33.png (87.3 KiB) Viewed 1117 times

Re: [2.0.15] Accumulators in statistics show more charge that they can have

Posted: Mon Nov 11, 2024 12:08 pm
by Lou
(just a video of described behavior)
factorio-run_g9lw3Dg2ry.mp4
(100.19 KiB) Downloaded 28 times

Re: [boskid][2.0.15] Accumulators in statistics show more charge that they can have

Posted: Thu Dec 12, 2024 3:35 pm
by boskid
Ok, it looks like this was caused by the statistics taking into account a next sample that is being constructed. With some tiny changes i hope this gui should behave better in 2.0.25.