Posted June 14, 201312 yr 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: [/img] Thanks in advance!
June 14, 201312 yr 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.
June 14, 201312 yr Author 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.
June 14, 201312 yr 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.
June 14, 201312 yr Author 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?
June 14, 201312 yr 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.
June 14, 201312 yr Author 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.