This mod, as of v1.0, fails immediately on starting it in Luanti 5.14.0 with the following error:
ModError: Failed to load and run script from ~/.minetest/mods/obelisk_analog/init.lua:
~/.minetest/mods/obelisk_analog/init.lua:1: attempt to index global 'luanti' (a nil value)
stack traceback:
~/.minetest/mods/obelisk_analog/init.lua:1: in main chunk
I think you need to replace the variable luanti with core throughout your code.
(Question: Was the luanti global ever supported in Luanti? It doesn’t seem so or did I miss something?)
i just woke up and yet... the mod use minetest cause that's what i thought so i try to rename every single minetest there to be luanti i think i miss something
Can I just use the original file? Almost every single file contains the tag 'minetest.' If I manually change them to 'luanti', it's going to take a long time. Or can I just upload the original file as a placeholder and then change it later?
You can either use minetest.<some_function_name> or core.<some_function_name>. But luanti.<some_function_name> is clearly wrong and was never officially supported (confirmed by wsor4035). In lua_api.md right at the top it also explains this.
core is preferred now, but minetest is also supported. It doesn’t really matter which you pick.
This mod, as of v1.0, fails immediately on starting it in Luanti 5.14.0 with the following error:
I think you need to replace the variable
luantiwithcorethroughout your code.(Question: Was the
luantiglobal ever supported in Luanti? It doesn’t seem so or did I miss something?)no, some mods may have done it as a local var before
i just woke up and yet... the mod use minetest cause that's what i thought so i try to rename every single minetest there to be luanti i think i miss something
Can I just use the original file? Almost every single file contains the tag 'minetest.' If I manually change them to 'luanti', it's going to take a long time. Or can I just upload the original file as a placeholder and then change it later?
pretty sure you got it backwards, and you make what releases you want as long as they follow cdb tos
You can either use
minetest.<some_function_name>orcore.<some_function_name>. Butluanti.<some_function_name>is clearly wrong and was never officially supported (confirmed by wsor4035). Inlua_api.mdright at the top it also explains this.coreis preferred now, butminetestis also supported. It doesn’t really matter which you pick.The new version "obelisk v1.0 fixed" works now. This thread can be closed.