Jump to content

Texture won't show.


yanksrock1019

Recommended Posts

When I try to render the texture it comes up with the "missing texture" purple and black.  I have the textures in the correct place, so I don't know whats wrong.

 

Code for Block:

 

 

package com.puplet.pupletmod;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;

public class pupletOre extends Block {

public pupletOre(int id, Material mat){
	super(mat);
	this.func_149647_a(CreativeTabs.tabBlock);
}

 @Override
    public void func_149651_a(IIconRegister p_149651_1_)
 {
	 this.field_149761_L = p_149651_1_.registerIcon("puplet:orePuplet");
 }

}

 

 

 

Code for Main Class:

 


package com.puplet.pupletmod;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = PupletMod.MODID, version = PupletMod.VERSION)
public class PupletMod {

public static final String MODID = "Puplet";
    public static final String VERSION = "2.0";
    
    //IDs
    public static Block pupletOre;
    
    int pupletOreID = 500;
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
    	pupletOre = new pupletOre(pupletOreID, Material.field_151576_e).func_149663_c("pupletOre").func_149658_d("puplet_ore").func_149711_c(1.5F);
    	
    	GameRegistry.registerBlock(pupletOre, "pupletOre");
    	
    	

    }


}

 

Don't tell me to learn the basics of java, I already know.

Link to comment
Share on other sites

And where is your texture located?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

and the filename?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Make sure that the same capitalization is used in both cases, the code and folder path. It's case sensitive, and I know I accidentally have messed it up before, it could be something else but it never hurts to check.

 

I checked and the capitalization, and it is correct.

Don't tell me to learn the basics of java, I already know.

Link to comment
Share on other sites

Hi

 

Show us the "missing texture, unable to load" error log?

 

Did you understand what I mean by this request?  It may help us diagnose the problem.

 

-TGG

 

I don't think I'm getting an error log, unless I'm looking in the wrong place.

Don't tell me to learn the basics of java, I already know.

Link to comment
Share on other sites

Delete the Forge log, then run the game, then copy and paste the entire contents of the forge log here.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

If you're running from Eclipse or another Integrated Debugging Environment, look at the console output.  It will contain text like

2014-01-19 23:01:32 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Build Faster Mod
2014-01-19 23:01:32 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: speedytools:textures/items/sceptreiconOoops.png
2014-01-19 23:01:33 [iNFO] [sTDOUT] 
2014-01-19 23:01:33 [iNFO] [sTDOUT] Starting up SoundSystem...
2014-01-19 23:01:33 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2014-01-19 23:01:33 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2014-01-19 23:01:33 [iNFO] [sTDOUT] OpenAL initialized.
2014-01-19 23:01:33 [iNFO] [sTDOUT] 

 

and this bit is what you're interested in:

2014-01-19 23:01:32 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: speedytools:textures/items/sceptreiconOoops.png

This means it looked for

/textures/items/sceptreiconOoops.png

under the base path assets/speedytools

 

If you aren't using an IDE, you can open the log file instead

ForgeModLoader-client-0.log

 

-TGG

 

 

Link to comment
Share on other sites

You should use FMLPreInitializationEvent.

 

Wow, that actually worked, thank you so much.  Now does anyone know how to fix the names of the blocks and Items?

 

Language files.

 

Just create a file in /assets/lang/ called en_US.lang and put:

 

nameYouSeeInMinecraft=NameYouWant

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.