Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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!

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

 

If you don't know basic Java yet, go and follow these tutorials.

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

a) Are you sure it's the same line? :P

b) Can we see the CreepTech.proxy.bindTexture function?

You Only Live Once, So Win At Golf.

Sorry for my English, I'm American.

  • 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();
    }

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

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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.