ZenonSeth / logistica

A Minetest item transport and storage mod
Other
1 stars 4 forks source link

Crashes when loading #1

Closed SamMatzko closed 9 months ago

SamMatzko commented 9 months ago

I wanted to test this mod, but it crashes whenever it loads:

ModError: Failed to load and run script from /home/user/.minetest/mods/logistica/init.lua:
/home/user/.minetest/mods/logistica/util/settings.lua:12: attempt to call method 'has' (a nil value)
stack traceback:
    /home/user/.minetest/mods/logistica/util/settings.lua:12: in function 'get_int'
    /home/user/.minetest/mods/logistica/util/settings.lua:23: in main chunk
    [C]: in function 'dofile'
    /home/user/.minetest/mods/logistica/util/util.lua:3: in main chunk
    [C]: in function 'dofile'
    /home/user/.minetest/mods/logistica/init.lua:7: in main chunk
Check debug.txt for details.

I'm running Minetest 5.7.0 with Logistica 0.8.2. There are no other mods installed in the world.

ZenonSeth commented 9 months ago

Hey @SamMatzko - thanks for reporting this - apparently the has method is not available in earlier API versions, and I only tested it on the 5.8 snapshot version.

I published a new release 0.8.3 that's also up on Content DB that should now fix that issue! Let me know if it works!

SamMatzko commented 9 months ago

Awesome, it works! Thank you so much! I'll do some more testing and experimentation when I have time tomorrow, but so far it works well :-)