[0.14.0] Energy bar can go beyond 0% and 100%

This subforum contains all the issues which we already resolved.
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1196
Joined: Wed May 18, 2016 4:55 pm
Contact:

[0.14.0] Energy bar can go beyond 0% and 100%

Post by Mooncat »

Bug:
The energy production bar can go beyond 0% and 100% if free energy is given to accumulator by mod.
EnergyProductBarBugged.png
EnergyProductBarBugged.png (210.11 KiB) Viewed 2208 times
Steps to reproduce:
1) Download the following little mod. 0.13:
negativeenergyproduction_0.0.1.zip
(1.04 KiB) Downloaded 141 times
0.14:
negativeenergyproduction_0.0.2.zip
(1.04 KiB) Downloaded 148 times
2) Start a new game.
3) Place an electric pole and an accumulator next to the pole.
4) Select the electric pole to open the electric network info panel.
5) Observe the energy production bar.

Possible solution:
Clamp the progress bar to be inside 0% and 100%.

I think this is also affecting all progress bars in the game as I have seen this on the fuel bars of entities that don't use electric energy.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5290
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14.0] Energy bar can go beyond 0% and 100%

Post by Klonan »

Thanks for the report,

I have reproduced the issue:

kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.14.0] Energy bar can go beyond 0% and 100%

Post by kovarex »

Thanks for the report, it is fixed for 0.14.2 (The accumulator charge has been properly capped when set from the script)
Post Reply

Return to “Resolved Problems and Bugs”