Can't find textures of my blocks

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

Can't find textures of my blocks

by Trenton » Wed May 16, 2012 22:26

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

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Thu May 17, 2012 00:13

What size are the textures?
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Thu May 17, 2012 00:32

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

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

by InfinityProject » Thu May 17, 2012 01:11

Hmm is the init.lua written correctly? Are the image names match up with what's written?
Last edited by InfinityProject on Thu May 17, 2012 01:43, edited 1 time in total.
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Thu May 17, 2012 05:39

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
Last edited by Trenton on Thu May 17, 2012 05:42, edited 1 time in total.
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu May 17, 2012 08:14

Put the textures in "/mods/minetest/[modname/textures". They must have lowercase .png extensions.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu May 17, 2012 08:15

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.
Last edited by Jordach on Thu May 17, 2012 08:19, edited 1 time in total.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Trenton
Member
 
Posts: 22
Joined: Mon May 14, 2012 22:58

by Trenton » Thu May 17, 2012 12:29

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 ^^
Sorry for my poor english

>I'm still testing my mod. if you wanna help me contact me =)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu May 17, 2012 12:31

JUst make them transparent, .png supports this.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 5 guests

cron