[0.15.32] Incredibly unhelpful error message
Posted: Thu Aug 03, 2017 12:41 pm
When trying to set the technology_difficutly or the recipe_difficulty to a number other than 0 or 1 the error message will be incredibly unhelpful:
Setting to 1.5 or 0.5 doesn't give an error and sets to 1 and 0 respectively.
When setting the value in control.lua, the error message will also not show which function or line the error is in, only the event is shown, and that also has no line:
I was also under assumption that the difficulty could only be set using the http://lua-api.factorio.com/latest/defi ... y_settings , and not using 0 and 1.
Setting to 1.5 or 0.5 doesn't give an error and sets to 1 and 0 respectively.
When setting the value in control.lua, the error message will also not show which function or line the error is in, only the event is shown, and that also has no line:
I was also under assumption that the difficulty could only be set using the http://lua-api.factorio.com/latest/defi ... y_settings , and not using 0 and 1.