[0.14.19] LuaEntity.rocket_parts cannot be set to 0

Bugs that are actually features.
Post Reply
ShadowTheAge
Inserter
Inserter
Posts: 29
Joined: Fri Mar 04, 2016 12:58 pm
Contact:

[0.14.19] LuaEntity.rocket_parts cannot be set to 0

Post 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 922 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)

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post 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

Post Reply

Return to “Not a bug”