Skip to content

[Bug] Error when using texture path with custom namespace in cem model #71

@PixalThePixeled

Description

@PixalThePixeled

Using a texture path with custom namespace ("minecraft: textures/entity/...") in cem model causes an error

Texture is located in "pixalthepixeled:textures/entity/horse/hoglin", but rprenames defines it as "minecraft:optifine/mob/pixalthepixeled:textures/entity/horse/hoglin.properties"

[21:53:49] [Render thread/INFO]:
Caught error loading resourcepacks, removing all selected resourcepacks
java.util.concurrent.CompletionException: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/mob/pixalthepixeled:textures/entity/horse/hoglin.properties
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.biApply(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$BiApply.tryFire(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?]
Caused by: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/mob/pixalthepixeled:textures/entity/horse/hoglin.properties
at net.minecraft.class_2960.method_45137(class_2960.java:252) ~[client-intermediary.jar:?]
at net.minecraft.class_2960.<init>(class_2960.java:47) ~[client-intermediary.jar:?]
at com.HiWord9.RPRenames.util.config.generation.CEMParser.parseTextureSourceFile(CEMParser.java:135) ~[RPRenames-1.20.4-0.9.1.jar:?]
at com.HiWord9.RPRenames.util.config.generation.CEMParser.parse(CEMParser.java:83) ~[RPRenames-1.20.4-0.9.1.jar:?]
at com.HiWord9.RPRenames.util.rename.RenamesManager.updateRenames(RenamesManager.java:37) ~[RPRenames-1.20.4-0.9.1.jar:?]
at net.minecraft.class_1088.handler$dni000$rprenames$loadRenames(class_1088.java:3543) ~[client-intermediary.jar:?]
at net.minecraft.class_1088.<init>(class_1088.java:154) ~[client-intermediary.jar:?]
at net.minecraft.class_1092.method_45884(class_1092.java:87) ~[client-intermediary.jar:?]
at net.minecraft.class_1092.md289aea$fabric-model-loading-api-v1$lambda$loadModelPluginData$0$1(class_1092.java:2079) ~[client-intermediary.jar:?]

The issue is that the optifine supports the custom namespaces in cem models:
https://github.com/sp614x/optifine/blob/804ef016df7ff5369964cb6c679ef29e8056ac39/OptiFineDoc/doc/cem_part.txt#L20

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐢 cemCustom Entity Model🔥 bugSomething isn't working🚨 importantThis is very important and has to be solved

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions