Jump to content

Slash not detected by render engine


GamingAndStuffs

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.



×
×
  • Create New...

Important Information

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