Jump to content

Recommended Posts

Posted (edited)
Spoiler
	private final ResourceLocation texture = new ResourceLocation(Test.MOD_ID , "overlay.png");
...
	@SubscribeEvent
    public void renderOverlay(RenderGameOverlayEvent e) {
        if (e.getType() == RenderGameOverlayEvent.ElementType.TEXT) {
            Minecraft mc = Minecraft.getMinecraft();
            mc.renderEngine.bindTexture(texture);
            drawTexturedModalRect(100, 100, 0, 0, 20, 20); // Sunny - day version
            drawTexturedModalRect(150, 100, 0, 20, 20, 20); // Rain
            drawTexturedModalRect(200, 100, 0, 40, 20, 20); // Storm
            drawTexturedModalRect(250, 100, 0, 60, 20, 20); // Sunny - night version
        }
    }

 

 

[12:55:49] [Client thread/WARN] [net.minecraft.client.renderer.texture.TextureManager]: Failed to load texture: tests_forge:overlay.png
java.io.FileNotFoundException: tests_forge:overlay.png
	at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SimpleReloadableResourceManager.java:69) ~[cev.class:?]
	at net.minecraft.client.renderer.texture.SimpleTexture.func_110551_a(SimpleTexture.java:40) ~[cdm.class:?]
	at net.minecraft.client.renderer.texture.TextureManager.func_110579_a(TextureManager.java:101) [cdr.class:?]
	at net.minecraft.client.renderer.texture.TextureManager.func_110577_a(TextureManager.java:67) [cdr.class:?]
	at nullproject.Tests.additons.TestGui.renderOverlay(TestGui.java:26) [TestGui.class:1.0-SNAPSHOT]
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_133_TestGui_renderOverlay_RenderGameOverlayEvent.invoke(.dynamic) [?:?]
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
	at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:717) [GuiIngameForge.class:?]
	at net.minecraftforge.client.GuiIngameForge.func_175180_a(GuiIngameForge.java:173) [GuiIngameForge.class:?]
	at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1426) [buq.class:?]
	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1119) [bib.class:?]
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398) [bib.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Resources tree:
EXTwcSs.png
 

Build and run options in Gradle: (I've tried both options)
n6C6EUz.png

How to fix? Can I attach something else?

Edited by RobotDolboeb
Posted (edited)
1 hour ago, Luis_ST said:

what on earth did you do?
you should use a assets folder

yes, im tryed use

private final ResourceLocation texture = new ResourceLocation(Test.MOD_ID , "assets\\textures\\gui\\overlay.png");

 

Edited by RobotDolboeb
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I played my crazy craft server with friends for about a day and a half, but all of a sudden it crashed, and now it won't work, and these are the config files that are giving me problems in the server, and it keeps crashing. Can't join the server anymore or even load without it crashing. Does anybody know how I can fix this??   config codes: java.lang.NullPointerException: null at net.minecraftforge.eventbus.EventSubclassTransformer.buildEvents(EventSubclassTransformer.java:62) ~[eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventSubclassTransformer.transform(EventSubclassTransformer.java:44) [eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventBusEngine.processClass(EventBusEngine.java:21) [eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.service.ModLauncherService.processClassWithFlags(ModLauncherService.java:20) [eventbus-4.0.0.jar:4.0.0+65+master.6080a3f] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.1.3.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.1.3.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) [?:1.8.0_312] at net.minecraftforge.fml.client.gui.screen.ModListScreen.<init>(ModListScreen.java:98) [forge:?] It is also version 1.16.5 and I have tried redownloading the modpack.
    • yea, theres no crash report for this one, that one was te old one  
    • is it the issue? like, isnt it in a conflict with other mods? because the modpack's whole point is the Big Globe mod
    • wait, so i sent the wrong one, i changed it to a forge modpack, something is off...
    • So, I did that. That partialy worked, but the second part of the problem was that several mods versions were not compatible( So for now I used older version and it works. Thanks!  
  • Topics

×
×
  • Create New...

Important Information

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