using stairs functions

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

using stairs functions

by Menche » Sun Dec 02, 2012 02:50

Is it possible to use the functions from the stairs mod in other mods? I tried calling the functions from my mod, but it tried to use the modname "stairs", rather than my modname, causing this error:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/builtin/misc_register.lua:62: Name stairs:stair_desert_cobble does not follow naming conventions: "modname:" or ":" prefix required

Is there a way around this besides copying the code into my mod? It would be nice if the functions could be used in other mods.
Last edited by Menche on Sun Dec 02, 2012 03:50, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Dec 02, 2012 09:18

You can call it.
You just have to prefix your modname before the : and not the stairs mod name.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 10 guests

cron