Page 1 of 1

not sure what i am doing wrong.

Posted: Fri Jul 20, 2012 17:49
by Nubelite
I took the stairs mod file in the resources and changed stairs to castlewalls and stair and castle_wall. I also changed the node box and recipe. I can't seem to get minetest to load the lua. It errors on the lua file when trying to load a game.

Zip File

Posted: Fri Jul 20, 2012 18:17
by InfinityProject
What error is it?
edit: It should say what the problem is in debug.

Posted: Fri Jul 20, 2012 19:05
by Nubelite
15:04:08: ERROR[main]: ========== ERROR FROM LUA ===========
15:04:08: ERROR[main]: Failed to load and run script from
15:04:08: ERROR[main]: /home/tom/my games/Minetest/bin/../mods/minetest/castlewall/init.lua:
15:04:08: ERROR[main]: ...m/my games/Minetest/bin/../builtin/misc_register.lua:62: Name castlewalls:castlewall_wood does not follow naming conventions: "modname:" or ":" prefix required
15:04:08: ERROR[main]: stack traceback:
15:04:08: ERROR[main]: [C]: in function 'error'
15:04:08: ERROR[main]: ...m/my games/Minetest/bin/../builtin/misc_register.lua:62: in function 'check_modname_prefix'
15:04:08: ERROR[main]: ...m/my games/Minetest/bin/../builtin/misc_register.lua:98: in function 'register_item'
15:04:08: ERROR[main]: ...m/my games/Minetest/bin/../builtin/misc_register.lua:154: in function 'register_node'
15:04:08: ERROR[main]: ...es/Minetest/bin/../mods/minetest/castlewall/init.lua:8: in function 'register_castlewall'
15:04:08: ERROR[main]: ...es/Minetest/bin/../mods/minetest/castlewall/init.lua:114: in function 'register_castlewall_and_slab'
15:04:08: ERROR[main]: ...es/Minetest/bin/../mods/minetest/castlewall/init.lua:118: in main chunk
15:04:08: ERROR[main]: =======END OF ERROR FROM LUA ========

im trying to figure out where the error is, but any help is welcome. thank you

Posted: Fri Jul 20, 2012 20:33
by LocaL_ALchemisT
got one
15:04:08: ERROR[main]: /home/tom/my games/Minetest/bin/../mods/minetest/castlewall/init.lua:
15:04:08: ERROR[main]: ...m/my games/Minetest/bin/../builtin/misc_register.lua:62: Name castlewalls:castlewall_wood does not follow naming conventions: "modname:" or ":" prefix required
you register the node as castlewalls:castlewall_wood instead of castlewall:castlewall_wood (note the 's' there).

Posted: Fri Jul 20, 2012 21:33
by Nubelite
thank you that fixed it