Page 1 of 1

[Rseding91] Mods using Require in migration scripts

Posted: Wed Jul 17, 2019 7:38 pm
by _Attila_
I have a test environment in which I test downloaded mods before I use them in games. Adding a mod while loading a save file, I get "Require can't be used outside of control.lua parsing."

I see this error with a number of mods, so I assume this was allowed at some point. Is this a bug introduced in Factorio or do all modders have to be told to fix their mods?

Re: Mods using Require in migration scripts

Posted: Wed Jul 17, 2019 7:42 pm
by Rseding91
Thanks for letting us know. It should be allowed in migration scripts but I guess I missed it. I'll get it fixed.

Re: [Rseding91] Mods using Require in migration scripts

Posted: Thu Jul 18, 2019 12:27 am
by player
Hi
Just upgraded to [0.17.58] and I am also experiencing this problem.
Full message being displayed once I load my save game is:

@__stdlib__/stdlib/core.lua:50: __stdlib__/stdlib/area/position.lua:504: Require can't be used outside of control.lua parsing.

This seems to repeat indefinitely.

Cheers

Re: [Rseding91] Mods using Require in migration scripts

Posted: Thu Jul 18, 2019 12:46 am
by Nexela
Make sure to update your mods

Re: [Rseding91] Mods using Require in migration scripts

Posted: Thu Jul 18, 2019 3:00 am
by player
Thank you Nexela. That did the trick.
I'm a newbie when it comes to dealing with experimental releases.