How to add texture?

Gunlexify
Member
 
Posts: 30
Joined: Mon Apr 01, 2013 13:11

How to add texture?

by Gunlexify » Sat Apr 06, 2013 17:05

I am doing everything as it says here http://dev.minetest.net/Intro but it fails to add texture.
Can anyone help with this?
Sorry for my BAD english!

Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Sat Apr 06, 2013 17:08

What me take a look of your code.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

Gunlexify
Member
 
Posts: 30
Joined: Mon Apr 01, 2013 13:11

by Gunlexify » Sat Apr 06, 2013 17:09

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.
Last edited by Gunlexify on Sat Apr 06, 2013 17:10, edited 1 time in total.
Sorry for my BAD english!

Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Sat Apr 06, 2013 17:11

?
I mean what your problem in it?
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

Gunlexify
Member
 
Posts: 30
Joined: Mon Apr 01, 2013 13:11

by Gunlexify » Sat Apr 06, 2013 17:14

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

Image

When it whoul be something like this

Image
Last edited by Gunlexify on Sat Apr 06, 2013 17:16, edited 1 time in total.
Sorry for my BAD english!

Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Sat Apr 06, 2013 17:16

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.
Last edited by Likwid H-Craft on Sat Apr 06, 2013 17:17, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

Gunlexify
Member
 
Posts: 30
Joined: Mon Apr 01, 2013 13:11

by Gunlexify » Sat Apr 06, 2013 17:23

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
Sorry for my BAD english!

Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
 

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

by PilzAdam » Sat Apr 06, 2013 17:32

You have to name the texture exactly the same as in the init.lua file.
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Sat Apr 06, 2013 17:34

No I mean the file that has the code like how the default, wool etc.
Edit:Yeah We need make the tut better Adam.
Last edited by Likwid H-Craft on Sat Apr 06, 2013 17:34, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

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

by PilzAdam » Sat Apr 06, 2013 17:36

Likwid H-Craft wrote:Edit:Yeah We need make the tut better Adam.

The tutorial is good.

And please stop confusing people here.
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Sun Apr 07, 2013 08:23

PilzAdam wrote:You have to name the texture exactly the same as in the init.lua file.


Rename tut.png to tutorial_decowood.png
 

JackWilliam
Member
 
Posts: 10
Joined: Tue Dec 27, 2016 14:41

Re: How to add texture?

by JackWilliam » Tue Dec 27, 2016 14:56

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?
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 26 guests

cron