Jump to content

[Solved] [1.8.8] Custom Armor Textures Fail to Load After Mod Update


Recommended Posts

Posted

I upgraded my mod from 1.8-11.14.3.1487 to 1.8.8-11.14.4.1586 and now all custom armor textures have a purple/black texture and I get this error with them:

 

 

[22:41:30] [Client thread/WARN]: Failed to load texture: textures/models/armor/chaosblock:chaos_omega_layer_1.png

java.io.FileNotFoundException: textures/models/armor/chaosblock:chaos_omega_layer_1.png

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:68) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:33) ~[simpleTexture.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:67) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:42) [TextureManager.class:?]

at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:104) [Render.class:?]

at net.minecraft.client.renderer.entity.layers.LayerArmorBase.renderLayer(LayerArmorBase.java:61) [LayerArmorBase.class:?]

at net.minecraft.client.renderer.entity.layers.LayerArmorBase.doRenderLayer(LayerArmorBase.java:39) [LayerArmorBase.class:?]

at net.minecraft.client.renderer.entity.RendererLivingEntity.renderLayers(RendererLivingEntity.java:477) [RendererLivingEntity.class:?]

at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:190) [RendererLivingEntity.class:?]

at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:56) [RenderLiving.class:?]

(etc)

 

 

I also get the same error for the second layers too. This seems to be a bug with the new forge version but is there a solution/workaround for this yet?

Posted

I suggest looking / posting in the bug reports forum. Give more details on the manner in which vanilla armor texture failed but had no error. I don't know what that means. How did you know it failed if you didn't see an error?

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

How did you know it failed if you didn't see an error?

 

I know it failed because it did the same thing as my custom armor that failed: it has a purple/black texture when equipped by entities. I probably should have mentioned that.

Posted

e55f90f185.jpg

Vanilla works just fine what are you talking about SPECIFICALLY. Show code, screenshots, everything.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

My bad! I concluded Vanilla armour wasn't working because I only tried the leggings and they weren't showing up because my custom boots were completely overlapping them which I didn't expect. So I guess this is an issue with custom armour only. Here is a screenshot:

 

jFRPIQrrDgDzbSc5NEU2v_2tb9glXt5vHirwcbRXelo?size=1280x960&size_mode=3

 

As for my code, the code for my armour is spread out and I would need to know what code to post. I have the 1.8 version of my mod on GitHub if that's all you need (not much has been changed other than function names): https://github.com/Flashfyre/Chaos_Block/tree/master/main

 

You can refer to the error at the top of this thread too.

Posted

Hi!

 

I've the same problem, upgraded from 1.8-11.14.4.1569 and the same error in console and any custom armor renders well. Seems like in 1.8.8, when you use custom domain in custom armor texture in EnumHelper.addArmorMaterial line, forge use this domain to get the path from custom armor texture and also search for domain:material_layer_x.png

 

Maybe the problem is in LayerArmorBase.class ResourceLocation getArmorResource forge hook?

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.