Page 1 of 1

Unknown error occurred

Posted: Sat Nov 04, 2017 8:50 am
by TheSeriusYoutuber
i dont know what went wrong,but the message said to report it to the devs. :(
i might know

Code: Select all

require("prototypes.settings")
roboportamount = tonumber("settings.startup[roboport-amount].value")
data:extend({
 {
    type = "recipe",
    name = "robotdeployerrecipe",
    enabled = not "settings.startup[requires-research].value",
    ingredients = 
    {
      {"roboport",roboportamount},
    },
    result = "robot-deployer"
  }
})
Something there?

Re: Unknown error occurred

Posted: Sat Nov 04, 2017 1:17 pm
by Loewchen
Post your .ziped mod folder please.

Re: Unknown error occurred

Posted: Sat Nov 04, 2017 1:32 pm
by posila
TheSeriusYoutuber wrote:

Code: Select all

roboportamount = tonumber("settings.startup[roboport-amount].value")
Something there?
This is wrong, it probably should be

Code: Select all

roboportamount = tonumber(settings.startup["roboport-amount"].value)
... but I don't know how to properly work with mod settings :)

Re: Unknown error occurred

Posted: Sat Nov 04, 2017 4:04 pm
by TheSeriusYoutuber
Ok Thanks But i solved it already.