Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted
2013-06-13 21:10:50 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file mods/TrenchCraft/textures/items/flamethrower.png, but that file does not exist. Ignoring.

Posted

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.

Posted

The other items are showing up.  I deleted the file and resaved it as flamethrower.*png* (without the *) but it still is coming up with the same error.  I wonder if it has to do with file format?

Posted

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.

Posted

Yeah, I feel really stupid right now.  I realized I saved the image into my folder where I put my mcp files to compile them, instead of into my work files.  Derp.

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.