Miniloader (Redux)


UPS-friendly 1x1 loaders.

Content
3 days ago
2.0
973
Logistics

b Crash - index global 'util'

7 days ago

Failed to load mods: miniloader-redux/scripts/controller.lua:38: attempt to index global 'util' (a nil value)
stack traceback:
miniloader-redux/scripts/controller.lua:38: in main chunk
[C]: in function 'require'
miniloader-redux/lib/this.lua:17: in main chunk
[C]: in function 'require'
miniloader-redux/lib/init.lua:13: in function <miniloader-redux/lib/init.lua:6>
miniloader-redux/settings.lua:1: in main chunk

7 days ago

thanks. Will take a look.

6 days ago

Thank you for reporting this issue.

This problem makes me curious. util is something that is "always" defined. On any code path in my testing (setting stage, data stage (all three substages) and runtime, the 'util' object is defined. But in your scenario, it is not. This should never be the case, but apparently that is possible.

Did you do anything special / do you have some special mod loaded? What version of factorio is that? Space Age or regular? Does it happen when you load a game or right after activating the module?

Do you have a save file that shows this that you can share?

6 days ago

Unloaded all mods but Space Age.
Added local util = require("util") to controller.lua.

Now get error:
miniloader-redux/scripts/migration.lua:26: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/migration.lua:26: in main chunk
[C]: in function 'require'
miniloader-redux/scripts/event-setup.lua:15: in main chunk
[C]: in function 'require'
miniloader-redux/control.lua:11: in main chunk

Without above changes in controller.lua, and disabling all mods including Space Age, I still get the original error shown above in my first post.
I have installed the latest version of Factorio.

Starting a new game with above changes in this post I get the errors as shown here.

5 days ago

there was a bunch of problems with the migration, I just uploaded 0.2.0, which should fix all of those. Please let me know if that improves your experience.

4 days ago

not sure if it is the same error but still remove mod error

Fehler beim Laden der Mods: miniloader-redux/scripts/controller.lua:38: attempt to index global 'util' (a nil value)
stack traceback:
miniloader-redux/scripts/controller.lua:38: in main chunk
[C]: in function 'require'
miniloader-redux/lib/this.lua:17: in main chunk
[C]: in function 'require'
miniloader-redux/lib/init.lua:13: in function <miniloader-redux/lib/init.lua:6>
miniloader-redux/settings.lua:1: in main chunk

Mods, die deaktiviert werden müssen:
• miniloader-redux (0.1.0)

4 days ago

the new version work fine
sorry for the error reporting (i used the old version to test :()

4 days ago

thanks for testing! There seems to be some subtle differences between OS/game version etc. I use a somewhat unusual platform (MacOS), so sometimes things may not work out on other platforms.

New response