Jump to content

[1.17.1] Issues with textures not appearing


DavidQF555

Recommended Posts

There are a lot of instances of this happening when I ported my mod from 1.16.5 to 1.17.1. One specific instance is this item. The textures somehow cannot be found and it is displayed with the purple and black squares. I'm also getting this error: 

[20:25:45] [Render thread/ERROR]: Error rendering overlay 'Shinsu Meters'
net.minecraft.ReportedException: Registering texture
	at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:110) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.TextureManager.register(TextureManager.java:66) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.TextureManager.getTexture(TextureManager.java:118) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at com.mojang.blaze3d.systems.RenderSystem._setShaderTexture(RenderSystem.java:755) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at com.mojang.blaze3d.systems.RenderSystem.setShaderTexture(RenderSystem.java:747) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at io.github.davidqf555.minecraft.towerofgod.client.gui.ClientTextureRenderData.render(ClientTextureRenderData.java:37) ~[%2379!:?]
	at io.github.davidqf555.minecraft.towerofgod.client.gui.ShinsuStatsMeterOverlay.renderBar(ShinsuStatsMeterOverlay.java:55) ~[%2379!:?]
	at io.github.davidqf555.minecraft.towerofgod.client.gui.ShinsuStatsMeterOverlay.render(ShinsuStatsMeterOverlay.java:39) ~[%2379!:?]
	at net.minecraftforge.client.gui.ForgeIngameGui.lambda$render$26(ForgeIngameGui.java:363) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2374%2380!:?]
	at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
	at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1087) ~[?:?]
	at net.minecraftforge.client.gui.ForgeIngameGui.render(ForgeIngameGui.java:357) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2374%2380!:?]
	at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:865) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1039) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:659) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.main.Main.main(Main.java:186) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
	at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:38) ~[fmlloader-1.17.1-37.0.68.jar%233!:?]
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%238!:?]
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.getNamespace()" because "p_10895_" is null
	at net.minecraft.server.packs.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:58) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.SimpleTexture$TextureImage.load(SimpleTexture.java:84) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.SimpleTexture.getTextureImage(SimpleTexture.java:58) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.SimpleTexture.load(SimpleTexture.java:28) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:95) ~[forge-1.17.1-37.0.68_mapped_official_1.17.1-recomp.jar%2375!:?]
	... 28 more

Even though the texture in question is at minecraft:textures/gui/bars.png, which should be there. I'm really confused as to why this is happening. 

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.

Announcements



×
×
  • Create New...

Important Information

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