Easy NPC

Easy NPC

2M Downloads

[Bug] Skin selection not working (Server)

MCYCShadow opened this issue · 5 comments

commented

Hey, great mod, it is a powerhouse even if its not complete yet.

I'm having issues unfortunately with changing the skin of any npc on our server.
It runs on a Modpack. (Modrinth launcher)
Works perfectly fine in singleplayer otherwise.
Saving an NPC preset and importing on the server breaks it tho, the NPC becomes unavailable.

latest.log

Here is the common error I am getting.

[22:35:22] [Render thread/ERROR]:
Error executing task on Client
java.lang.IllegalStateException: Invalid entity data item type for field 35 on entity Humanoid['Humanoider'/40377, l='ClientLevel', x=2091.50, y=64.00, z=-204.50]: old=de.markusbordihn.easynpc.data.scale.CustomScale@110b4774(class de.markusbordihn.easynpc.data.scale.CustomScale), new=ARI(class java.lang.String)
at net.minecraft.class_2945.method_12785(class_2945.java:204) ~[client-intermediary.jar:?]
at net.minecraft.class_2945.method_12779(class_2945.java:191) ~[client-intermediary.jar:?]
at net.minecraft.class_634.method_11093(class_634.java:529) ~[client-intermediary.jar:?]
at net.minecraft.class_2739.method_11808(class_2739.java:46) ~[client-intermediary.jar:?]
at net.minecraft.class_2739.method_11054(class_2739.java:10) ~[client-intermediary.jar:?]
at net.minecraft.class_2600.method_11072(class_2600.java:22) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_18859(class_1255.java:156) ~[client-intermediary.jar:?]
at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_16075(class_1255.java:130) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_5383(class_1255.java:115) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1175) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:802) ~[client-intermediary.jar:?]
at net.minecraft.client.main.Main.main(Main.java:250) ~[1.20.1-0.16.5.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) ~[fabric-loader-0.16.5.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.16.5.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.16.5.jar:?]
commented

Update, out of pure luck it seems, or by adding more mods, this has fixed itself.

I can't tell whats responsible for it tho.

commented

Thank you for the report! Here’s the key part of the issue:

old=de.markusbordihn.easynpc.data.scale.CustomScale@110b4774(class de.markusbordihn.easynpc.data.scale.CustomScale), new=ARI(class java.lang.String)

This indicates that the client was expecting CustomScale data from the Easy NPC mod for field 35 but instead received an ARI object, which appears to be a string. It’s possible that ARI is associated with another mod, though it's unclear which one.

This type of mismatch typically occurs when the client and server mods are not aligned, leading to data fields not matching as expected.
Ensuring that both the client and server have the same versions of all mods usually resolves these types of issues, especially if new mods have been added.

commented

Thanks for the insight. Might have been Pehkui or "Custom Mob Scale" then. But for now it's working flawless again.
Thanks for this great tool. Keep it up.

commented

This issue was closed because it has been stalled for 5 days with no activity.

commented

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.