Miniloader (Redux)


UPS-friendly 1x1 loaders.

Content
8 days ago
2.0
6.41K
Logistics

b Crash - index global 'util'

3 months 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

3 months ago

thanks. Will take a look.

3 months 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?

3 months 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.

2 months 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.

2 months 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)

2 months ago

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

2 months 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