Posted November 17, 201410 yr I used the .setBackgroundImageName() method, but that automatically assumes you have the GUI texture in the minecraft folder with all the default textures.
November 17, 201410 yr Author 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
November 17, 201410 yr Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work Maybe try this: .setBackgroundImageName(MODID + ":" "creativeTab")
November 17, 201410 yr Author 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
November 17, 201410 yr 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.
November 17, 201410 yr Author 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/:?]
November 17, 201410 yr 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.
November 17, 201410 yr Author 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
November 18, 201410 yr Author The error SHOULD be "MODID:textures/gui/creativeTab.png" cannot be found, but it is giving a whole different location
November 19, 201410 yr Author 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?
November 19, 201410 yr Author Found out how to do it. I had to create a minecraft folder in my assets folder
November 19, 201410 yr Author Which is what I said. You said I can't do it from within my mods assets folder, but I just did
November 19, 201410 yr Author It's not your mods assets folder. It's minecraft's. Well, it is in the assets folder, so lets leave it at that
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.