Calling functions in migration scripts

Place to get help with not working mods / modding interface.
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

Calling functions in migration scripts

Post by DRY411S »

My mod has a global function that I have defined (in control.lua)

It's not recognised in migration scripts because control.lua does not run until AFTER a saved game has been loaded.

Migration scripts will not allow any 'require' statements.

Is there any way I can include the function, or do I have just copy and paste the code into my migration script?
Post Reply

Return to “Modding help”