Jump to content

Another texture problem :/


Channel_3

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 ?  :P

Link to comment
Share on other sites

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 :/

Link to comment
Share on other sites

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!

 

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

 

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ;)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

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  :)

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Could I see your code for registering your blocks/items, and the paths for where the textures are kept?

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 xD

Link to comment
Share on other sites

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.

"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

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...

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 xD

Link to comment
Share on other sites

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 ?  :P

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.