Jump to content

Recommended Posts

Posted

Hmm... Do you have the texture created allready?

 

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

Posted

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

 

Maybe try this:

 

.setBackgroundImageName(MODID + ":" "creativeTab") 

Posted

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

 

Maybe try this:

 

.setBackgroundImageName(MODID + ":" "creativeTab") 

 

Didn't change anything  :P

Posted

try

.setBackgroundImageName(MODID + ":" + "creativeTab")

 

And if that doesn't work, check your console for errors, it will tell you if it failed to load an image.  Copy that error and post it.

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

try

.setBackgroundImageName(MODID + ":" + "creativeTab")

 

And if that doesn't work, check your console for errors, it will tell you if it failed to load an image.  Copy that error and post it.

 

Here is the error

 

Failed to load texture: textures/gui/container/creative_inventory/tab_financialmod:creativeTab

java.io.FileNotFoundException: textures/gui/container/creative_inventory/tab_financialmod:creativeTab

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]

at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:813) [GuiContainerCreative.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) [GuiContainer.class:?]

at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) [inventoryEffectRenderer.class:?]

at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673) [GuiContainerCreative.class:?]

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) [EntityRenderer.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

 

Posted

Try creating additional folders to match the directory in the console. So your directory in your resource folder should be this:

textures/gui/container/creative_inventory/creativeTab.png

 

It says it couldn't find the file at the directory mentioned above.

 

Posted

Try creating additional folders to match the directory in the console. So your directory in your resource folder should be this:

textures/gui/container/creative_inventory/creativeTab.png

 

It says it couldn't find the file at the directory mentioned above.

 

I already tried that, it didn't work

Posted

You can't actually alter the tab background to a texture in your assets folder. Look at GuiContainerCreative where it draws the background.

 

I already did. There is a string in there that sets the default texture path. How would I override it?

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.