Channel_3 Posted August 7, 2013 Share Posted August 7, 2013 Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items I've tried adding an assets folder and that mucks everything up. Then I tried renaming register icon location a bunch of times. Nothing. Still just the same pink and black square. Anyway heres the code; package delicioussurvival; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemFood; public class FoodLamb extends ItemFood { public FoodLamb(int id, int hunger, float saturation, boolean wolffood) { super(id, hunger, saturation, wolffood); } @SideOnly(Side.CLIENT) public void registerIcon(IconRegister par1IconRegister) { this.itemIcon = par1IconRegister.registerIcon("delicioussurvival:lamb"); } } So what am I doing wrong? Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 7, 2013 Share Posted August 7, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 7, 2013 Author Share Posted August 7, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png I already tried that. I dont have an assets folder there either. It goes mcp/src/minecraft/modid/textures/items Quote Link to comment Share on other sites More sharing options...
DaNatin Posted August 7, 2013 Share Posted August 7, 2013 It's better if you use the unlocalized name... It's WAY easier...even for me! Replace your this.itemIcon with this: this.itemIcon = reg.registerIcon(YOURMOD.modid + ":" + this.getUnlocalizedName()); Add this to your item registry(Main class) EXAMPLE: ItemYOURITEM = new ItemYOURITEM(5004).setUnlocalizedName("UNLOCALIZED NAME").setCreativeTab(YOURTABTab); LanguageRegistry.addName(ItemYOURITEM, "In-Game-Name"); After that... Do this with your item.png: item.UNLOCALIZEDNAME.png So all you have to do is paste in your Unlocalized name you wrote down in the registry. (The unlocalized name can be whatever you want... Just remember it for the .png) Quote Link to comment Share on other sites More sharing options...
GotoLink Posted August 7, 2013 Share Posted August 7, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png I already tried that. I dont have an assets folder there either. It goes mcp/src/minecraft/modid/textures/items Did you try making the folder yourself ? I don't think your modid folder was here at the beginning, was it ? Quote Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 It's better if you use the unlocalized name... It's WAY easier...even for me! Replace your this.itemIcon with this: this.itemIcon = reg.registerIcon(YOURMOD.modid + ":" + this.getUnlocalizedName()); Add this to your item registry(Main class) EXAMPLE: ItemYOURITEM = new ItemYOURITEM(5004).setUnlocalizedName("UNLOCALIZED NAME").setCreativeTab(YOURTABTab); LanguageRegistry.addName(ItemYOURITEM, "In-Game-Name"); After that... Do this with your item.png: item.UNLOCALIZEDNAME.png So all you have to do is paste in your Unlocalized name you wrote down in the registry. (The unlocalized name can be whatever you want... Just remember it for the .png) That didnt work either. Still the same. Not only that but that new code is bunk, its full of errors Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 13, 2013 Share Posted August 13, 2013 try looking the wiki for "hydroflame guide to textures" pretty sure it will solve anything Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 try looking the wiki for "hydroflame guide to textures" pretty sure it will solve anything Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 13, 2013 Share Posted August 13, 2013 sure you're angry. but it has never failed, follow the instructions and i promise itll work Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items mcp/src/minecraft/assets/modid/textures/items/myitm.png I already tried that. I dont have an assets folder there either. It goes mcp/src/minecraft/modid/textures/items well then create it! Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 sure you're angry. but it has never failed, follow the instructions and i promise itll work Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items mcp/src/minecraft/assets/modid/textures/items/myitm.png I already tried that. I dont have an assets folder there either. It goes mcp/src/minecraft/modid/textures/items well then create it! One of the first things I said when I posted this was I tried making an assets folder and it mucked everything up, genius. Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 13, 2013 Share Posted August 13, 2013 it mucked everything up you: "nothign works fix IT!!!" what screws up when you do that, what are the symptoms. the game crash ? eclipse doesnt boot? the moon turns red? genius you want to do it all by yourself? how come its working for literally everyone else except you. because you did a small mistake and didnt pay attention to something (idk what but something) Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
OwnAgePau Posted August 13, 2013 Share Posted August 13, 2013 Asking for help -- expecting people to help -- ignoring -- getting mad at the people that are trying to help... Its mostly not such a good idea to attack people that are willing to help you, you should try to read through every possible answer to your problem in detail so that you won't walk into a ton of walls while fighting off your problems. Now i think that whenever you create the assets folder its not "mucking everything up", you probably haven't set the icons for your items/blocks or whatever correctly. Read through hydroflames guide and it'll all be solved. Quote I am the creator of the Soul Forest Mod : http://www.planetminecraft.com/mod/151-soul-forest-10-ores-vines-dimension-mobs-and-more/ Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 it mucked everything up you: "nothign works fix IT!!!" what screws up when you do that, what are the symptoms. the game crash ? eclipse doesnt boot? the moon turns red? genius you want to do it all by yourself? how come its working for literally everyone else except you. because you did a small mistake and didnt pay attention to something (idk what but something) I'm just asking for help. But not from you or your useless guides. So go away. Asking for help -- expecting people to help -- ignoring -- getting mad at the people that are trying to help... Its mostly not such a good idea to attack people that are willing to help you, you should try to read through every possible answer to your problem in detail so that you won't walk into a ton of walls while fighting off your problems. Now i think that whenever you create the assets folder its not "mucking everything up", you probably haven't set the icons for your items/blocks or whatever correctly. Read through hydroflames guide and it'll all be solved. I'm not ignoring anyone's advice I promise you. I followed his advice and it didnt work. Is there anyone on this forum who can actually help me? I've tried every possible solution Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 13, 2013 Share Posted August 13, 2013 LOL found it I'm just asking for help. But not from you or your useless guides. So go away. oh ok, well then ill keep my useless guide and my solutions to myself. i mean its working for me and i have no real reason to share it with you if you "dont want my help" have a good day Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 LOL found it I'm just asking for help. But not from you or your useless guides. So go away. oh ok, well then ill keep my useless guide and my solutions to myself. i mean its working for me and i have no real reason to share it with you if you "dont want my help" have a good day Bye Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 13, 2013 Share Posted August 13, 2013 i dont know who wrote it, but mine is right : http://www.minecraftforge.net/wiki/Hydroflame_guide_to_textures Thanks!!! It's working now!!! Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 13, 2013 Author Share Posted August 13, 2013 i dont know who wrote it, but mine is right : http://www.minecraftforge.net/wiki/Hydroflame_guide_to_textures Thanks!!! It's working now!!! Right now I dont care whether your guide works or not. I told you to leave now shoo Quote Link to comment Share on other sites More sharing options...
Lunakki Posted August 14, 2013 Share Posted August 14, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png Hi hydroflame, I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks! Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 14, 2013 Share Posted August 14, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png Hi hydroflame, I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks! LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!! no bro Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Channel_3 Posted August 15, 2013 Author Share Posted August 15, 2013 mcp/src/minecraft/assets/modid/textures/items/myitm.png Hi hydroflame, I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks! LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!! no bro Obviously he doesnt have the same problem, because not only was that one of the first things I tried, I literally just tried it again to double check. And guess what? It didnt work. Again. I came here looking for help because I assumed this was a community of programmers that knew a lot more than me when it comes to forge, considering I'm like intermediate at best. Instead I'm being told over and over again to do what I've been doing this whole time. Seriously guys? Quote Link to comment Share on other sites More sharing options...
Mew Posted August 15, 2013 Share Posted August 15, 2013 Could I see your code for registering your blocks/items, and the paths for where the textures are kept? Quote I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there Link to comment Share on other sites More sharing options...
SamTebbs33 Posted August 15, 2013 Share Posted August 15, 2013 If you're using Eclipse, make sure that you refresh Eclipse after changing anything to-do with textures, that's what fixed it for me. You do this by selecting the project and using F5 (or right click->Refresh). If you're using 'the Pahimar set-up', make sure that you create a folder called resources in your project, that's where you put the assets folder and make the resources folder a source folder, that fixes it. Quote "Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex Link to comment Share on other sites More sharing options...
Mew Posted August 15, 2013 Share Posted August 15, 2013 If you're using Eclipse, make sure that you refresh Eclipse after changing anything to-do with textures, that's what fixed it for me. You do this by selecting the project and using F5 (or right click->Refresh). If you're using 'the Pahimar set-up', make sure that you create a folder called resources in your project, that's where you put the assets folder and make the resources folder a source folder, that fixes it. I don't think that is the problem... But I am still wanting to see his code and his directories... Quote I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there Link to comment Share on other sites More sharing options...
GotoLink Posted August 15, 2013 Share Posted August 15, 2013 Obviously he doesnt have the same problem, because not only was that one of the first things I tried, I literally just tried it again to double check. And guess what? It didnt work. Again. I came here looking for help because I assumed this was a community of programmers that knew a lot more than me when it comes to forge, considering I'm like intermediate at best. Instead I'm being told over and over again to do what I've been doing this whole time. Seriously guys? If you did it, post a screenshot of your texture path in your file system, and related code. Proof is better than words. Also, it would be nice to explain yourself. One of the first things I said when I posted this was I tried making an assets folder and it mucked everything up, Because creating a new empty folder never "mucked everything up" in the whole history of computerkind. Did you push a self-destruction button or what ? Quote Link to comment Share on other sites More sharing options...
hydroflame Posted August 15, 2013 Share Posted August 15, 2013 Did you push a self-destruction button or what ? im pretty sure forge has a script that does that Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
Recommended Posts
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.