Page 1 of 1

Can't find textures of my blocks

PostPosted: Wed May 16, 2012 22:26
by Trenton
I'm writing a testing Mod but when I launch the game I get this error on the console and my block is without a texture, I've tried putting the texture in my -\mods\minetest\"modname" folder but nothing.
I've also tried in the -\textures\all folder. but still nothing.
maybe I'm trying with the wrong folders?



Image

PostPosted: Thu May 17, 2012 00:13
by InfinityProject
What size are the textures?

PostPosted: Thu May 17, 2012 00:32
by Trenton
the normal size of the default texture, I copied the texture of the brick block and changed it.
the resource is the brick item, still from the clay brick of the game

PostPosted: Thu May 17, 2012 01:11
by InfinityProject
Hmm is the init.lua written correctly? Are the image names match up with what's written?

PostPosted: Thu May 17, 2012 05:39
by Trenton
maybe this can help you, is the init.lua of the folder -\mods\minetest\trenton

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_craft({
    type = "cooking",
    output = "trenton:desertbrick",
    recipe = "default:desert_stone",
})



minetest.register_craftitem("trenton:desertbrick", {
    description = "Desert Bricks",
    inventory_image = "trenton_desert_brick.PNG",
})


minetest.register_craft({
    output = 'trenton:mattoniarancioni',
    recipe = {
        {'trenton:desertbrick', 'trenton:desertbrick'},
        {'trenton:desertbrick', 'trenton:desertbrick'},
    }
})

minetest.register_node("trenton:mattoniarancioni", {
    description = "Mattoni Arancioni",
    tile_images = {"trenton_orange_bricks.PNG"},
      inventory_image = "trenton_orange_bricks.PNG",
    is_ground_content = true,
    groups = {cracky=3},
    drop = 'trenton:mattoniarancioni',
   
})


I put a block and a items in the same init.lua file, can this be the problem?

the texture files are:
trenton_desert_brick.PNG
trenton_orange_bricks.PNG

and actually they're in both in the "-\mods\minetest\trenton" folder and in the "-\textures\all" folder

oh, I actually made some change at the names, now the errors it gives me are:
Image

PostPosted: Thu May 17, 2012 08:14
by Calinou
Put the textures in "/mods/minetest/[modname/textures". They must have lowercase .png extensions.

PostPosted: Thu May 17, 2012 08:15
by Jordach
Trenton: get yourself the GIMP http://gimp.org and you know why they won't load, Minetest won't support a .PNG but a .png will work. Lower case must BE USED. And yes they must be in /trenton/textures

Calinou, quit beating me to posts.

PostPosted: Thu May 17, 2012 12:29
by Trenton
perfect, thanks guys, It was the .PNG in uppercase the problem. I use paint for edit the textures still. :P

I'm downloading Gimp now. it will also remove the white background on the items I think ^^

PostPosted: Thu May 17, 2012 12:31
by Jordach
JUst make them transparent, .png supports this.