Posted October 8, 201411 yr Hmm... 74: CreepTech.proxy.bindTexture(new ResourceLocation("ct:textures/gui/guiTechTable3.png")); [18:55:18] [Client thread/WARN]: Failed to load texture: ct:textures/guiguiTechTable3.png java.io.FileNotFoundException: ct:textures/guiguiTechTable3.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[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 com.harry9137.ct.proxy.ClientProxy.bindTexture(ClientProxy.java:21) [ClientProxy.class:?] at com.harry9137.ct.client.gui.GuiTechTable.drawGuiContainerBackgroundLayer(GuiTechTable.java:74) [GuiTechTable.class:?] at com.harry9137.ct.client.gui.GuiTechTable.drawScreen(GuiTechTable.java:65) [GuiTechTable.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.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) [idea_rt.jar:?] I have no idea what I did wrong... Thanks!
October 9, 201411 yr I believe the constructor for ResourceLocation takes in two arguments, domain (usually ModID), and then the location. So it should look like: new ResourceLocation(MODID, LOCATION); BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
October 9, 201411 yr Author That's not the problem. The problem is that java.io.FileNotFoundException: ct:textures/guiguiTechTable3.png is different than CreepTech.proxy.bindTexture(new ResourceLocation(reference.MOD_ID, "textures/gui/guiTechTable3.png"));
October 9, 201411 yr a) Are you sure it's the same line? b) Can we see the CreepTech.proxy.bindTexture function? You Only Live Once, So Win At Golf. Sorry for my English, I'm American.
October 9, 201411 yr Author a: at com.harry9137.ct.client.gui.GuiTechTable.drawGuiContainerBackgroundLayer(GuiTechTable.java:74) [GuiTechTable.class:?], this is line 74 : CreepTech.proxy.bindTexture(new ResourceLocation(reference.MOD_ID, "textures/gui/guiTechTable3.png")); b: public void bindTexture(ResourceLocation location) { getClientInstance().getTextureManager().bindTexture(location); } this is getClientInstance() public Minecraft getClientInstance() { return FMLClientHandler.instance().getClient(); }
October 9, 201411 yr Hi It's a mystery to me... I would suggest you put a breakpoint at your line 74 and trace into the vanilla code to see what's happening in the ResourceConstructor and the resource managers. -TGG
October 9, 201411 yr Any reason for not using Minecraft.getMinecraft().renderEngine.bindTexture(texture); instead of the old client texture manager? Don't think that's causing your problem, but I think it's worth a try. You Only Live Once, So Win At Golf. Sorry for my English, I'm American.
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.