Jump to content

[SOLVED] Texture issues


LutzBlox

Recommended Posts

Hi!

 

I am coding a mod that includes a flamethrower.  I have the following code for getting the image:

 

itemIcon = iconRegister.registerIcon("TrenchCraft:flamethrower"); 

 

But when I run Minecraft, the image is not located by the TextureManager, but at mods\TrenchCraft\textures\items there is a file called flamethrower.png.  Any help?

 

Here is a picture of my mods\TrenchCraft\textures\items folder:

 

width=766 height=669hXaqmwX.png?1 [/img]

 

Thanks in advance!

Link to comment
Share on other sites

Can you paste the error from the console?  It will be along the lines of "unable to find texture [path/to/missing/texture/file.png]"

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

Hmm.

Are the other items showing up?  If so, try deleting the file that's already there and resaving (the original) as a png.  It could be that it doesn't have the right extension for some reasons.

Also check .png vs. .PNG

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 saving out as a png (Photoshop is one program that I know of that doesn't give two shits what the file extension is, it'll happily save as a different format) then it should work.

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.



×
×
  • Create New...

Important Information

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