#DynClientResourcesGenerator : (Moonlight) Could not generate texture

1 messages ยท Page 1 of 1 (latest)

neat hull
#

Attempt 1:

Using TextureImage.open(manager, primaryTex) and TextureImage.open(manager, secondaryTex)...

ResourceLocation primaryTex = new ResourceLocation("textures/item/" + primaryId.getPath() + ".png");
ResourceLocation secondaryTex = new ResourceLocation(MY_MOD_ID, "textures/item/my_mod_underlay.png");

ERROR:

java.io.IOException: Failed to open texture at location minecraft:textures/item/netherite_boots: no such file
fossil pond
#

It means the texture isn't there

#

Check code in supplementaries. There are more examples rhere

#

Or EC too

neat hull
#

Attempt 2:


ERROR:

fossil pond
#

Might be that it wants ot not wants the extensjon

neat hull
fossil pond
#

It shouldn't crash tho, at most make a pack error. If it crash send log

neat hull
fossil pond
#

Access violation

#

Feels like c++

#

Super rate shit that happens when dealing with managed memory stuff like native image

#

Link your code

neat hull
#

just updated the gist to the error ver cuz i was working on it

neat hull
#

๐Ÿค”

#

thanks for acting so quickly but reaching out like this has given me the perspective i need to properly reflect on my code

#

i updated the gist to my current working version in case u are interested

fossil pond
#

First of all

#

All texture images are autocloseable

#

Should be put in try with resources unless you close it manually later

#

(some methods do it somatically)

#

Then if it says it can't find the images it means the path is wrong