minetest-mods / moreblocks

More Blocks
https://content.minetest.net/packages/Calinou/moreblocks/
zlib License
45 stars 67 forks source link

Bug with `setting_getbool` and `register_alias_force` when trying to install #110

Closed alcalyn closed 6 years ago

alcalyn commented 6 years ago

I tried to install this mod. I first got a bug with setting_getbool. So I looked into https://minetest.org/modbook/lua_api.html#initlua and I hot fixed the bug in this PR.

But I still have another bug that trash at the beginning when starting my server:

Error from Lua:
...u/.minetest/mods/moreblocks/stairsplus/registrations.lua:73: attempt to call field 'register_alias_force' (a nil value)
stack traceback:
    ...u/.minetest/mods/moreblocks/stairsplus/registrations.lua:73: in main chunk
    [C]: in function 'dofile'
    /home/ju/.minetest/mods/moreblocks/stairsplus/init.lua:93: in main chunk
    [C]: in function 'dofile'
    /home/ju/.minetest/mods/moreblocks/init.lua:29: in main chunk
Abandon (core dumped)

When looking into the mod API, it seems that it should works...

I have Minetest 0.4.13

To reproduce it, I just install this mod on a fresh install of Minetest 0.4.13, by git clone in mods/ folder, then set load_mod_moreblocks = true in world.mt

fozolo commented 6 years ago

At the moment, this mod works with 0.4.16+ and is not backwards compatible with 0.4.13. Maybe it should be, or maybe there should be a legacy fork. This pull request however, doesn't do either.

alcalyn commented 6 years ago

oh ok so I'll just get the latest version of Minetest and try again

SmallJoker commented 6 years ago

This mod is newer than your Minetest installation.