Page 1 of 1
How to add texture?

Posted:
Sat Apr 06, 2013 17:05
by Gunlexify
I am doing everything as it says here
http://dev.minetest.net/Intro but it fails to add texture.
Can anyone help with this?

Posted:
Sat Apr 06, 2013 17:08
by Likwid H-Craft
What me take a look of your code.

Posted:
Sat Apr 06, 2013 17:09
by Gunlexify
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
minetest.register_node("tutorial:decowood", {
tiles = {"tutorial_decowood.png"},
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
})
Like in the tutorial.

Posted:
Sat Apr 06, 2013 17:11
by Likwid H-Craft
?
I mean what your problem in it?

Posted:
Sat Apr 06, 2013 17:14
by Gunlexify
i get 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
19:51:32: ERROR[main]: generate_image(): Could not load image "tut.png" while building texture
19:51:32: ERROR[main]: generate_image(): Creating a dummy image for "tut.png"
Font size: 8 17
And a texture like this

When it whoul be something like this


Posted:
Sat Apr 06, 2013 17:16
by Likwid H-Craft
You don't have to use tut...
But did you make a texture in the mod texture file?
Edit:What me try do it.
So send me the whole code.

Posted:
Sat Apr 06, 2013 17:23
by Gunlexify
Likwid H-Craft wrote:You don't have to use tut...
But did you make a texture in the mod texture file?
Edit:What me try do it.
So send me the whole code.
That was the whole code from the wiki

Posted:
Sat Apr 06, 2013 17:32
by PilzAdam
You have to name the texture exactly the same as in the init.lua file.

Posted:
Sat Apr 06, 2013 17:34
by Likwid H-Craft
No I mean the file that has the code like how the default, wool etc.
Edit:Yeah We need make the tut better Adam.

Posted:
Sat Apr 06, 2013 17:36
by PilzAdam
Likwid H-Craft wrote:Edit:Yeah We need make the tut better Adam.
The tutorial is good.
And please stop confusing people here.

Posted:
Sun Apr 07, 2013 08:23
by Topywo
PilzAdam wrote:You have to name the texture exactly the same as in the init.lua file.
Rename
tut.png to
tutorial_decowood.png
Re: How to add texture?

Posted:
Tue Dec 27, 2016 14:56
by JackWilliam
hello everyone I have the same problem texture not load. I followed the tutorial but I don't understand. I call the image tutorial_decowood end the code is the same as Gunlexify.
Can anyone help me?