Page 1 of 1

[0.14.19] LuaEntity.rocket_parts cannot be set to 0

Posted: Sat Nov 05, 2016 2:19 pm
by ShadowTheAge
I've encountered two bugs at once while making custom scenario.

Bug #1
LuaEntity.rocket_parts cannot be set to 0
The error states "Amount has to be greater than 0", making it impossible to clear a rocket silo from rocket parts through LUA


Bug #2
It is possible that LUA error message locks the game
Steps to reproduce:

- Open the rocket silo window
- Move it a little bit (just few pixels)
- Cause lua error somehow

Result:
bug.PNG
bug.PNG (789.24 KiB) Viewed 1229 times
Error panel is below the rocket silo panel, ant the rocket silo panel becomes immovable, so it is impossible to do anything except alt+f4
If you skip step 2, error panel displays above (works as expected)

Re: [0.14.19] LuaEntity.rocket_parts cannot be set to 0

Posted: Sat Nov 05, 2016 2:33 pm
by Klonan
Thanks for the report,

However neither of these are bugs,

In the first case, you can set rockets parts to any number cllose to 0, just as 0.0001, and it will round down to 0

In the second case, you have made a script error, Gui interactons alongside script errors are not something that are easy, or a priority to fix,
And these can happen with many of the guis in game

The gui is being reworked for 0.15,
So the error dialog issue might be fixed