Page 1 of 1

[0.15.32] Incredibly unhelpful error message

Posted: Thu Aug 03, 2017 12:41 pm
by Bilka
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:Image

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:
Image

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.

Re: [0.15.32] Incredibly unhelpful error message

Posted: Thu Aug 03, 2017 2:57 pm
by posila
Thanks for the report. The error message will be fixed in next release.

Values of those defines are just numbers.