jmc2obj / j-mc-2-obj

Java-based Minecraft-to-OBJ exporter.
http://www.jmc2obj.net
352 stars 59 forks source link

RE: bug while exporting entities on 1.20.6+ (jMc2Obj-125) #256

Closed McCreativo closed 3 months ago

McCreativo commented 3 months ago

Hello again!

I've tried to export entities on mc1.20.6 and 1.21 with the latest version (jMc2Obj-125) but still entities do render without any data.

Minecraft 1.21 mc-orig Blender blender Export settings export

All data was exported without any error but still when its imported into blender the same problem occurs as before... Debug log exporting on v1.21 bug1.21.0.txt Debug log exporting on v1.20.6 bug1.20.6.txt

mmdanggg2 commented 3 months ago

These should be fixed with 7378aa5ff853fb930d7aa3b6409d3c142c26cc81 and 2491832a4f30038847d45bfb190e39e29c6ae236. Try it out with the jar file from here: https://github.com/jmc2obj/j-mc-2-obj/actions/runs/9770710374

McCreativo commented 3 months ago

Hellu!

I've tested your fix https://github.com/jmc2obj/j-mc-2-obj/actions/runs/9770710374. Unfortunately it's not working for me entirely... Heads got still exported wrong, but this time all heads got the same texture.

Blender blender Minecraft 1.21 mc

After some debugging I found the core problem. Heads that were placed by a commandblock wont be effected, but the problem occurs if I use heads that were placed by a plugin. Normally, I build my projects on my own server (fabric), I use the plugin "Headdatabase" to easily place heads in my worlds. Only these heads between the versions 1.20.4-1.20.6 are impacted. Banners btw. are exported correct for now.

Could that be fixed? Thank you for your support!

mmdanggg2 commented 3 months ago

Could I get a world file with these broken heads in?

McCreativo commented 3 months ago

Could I get a world file with these broken heads in?

Sure! I can provide you my "test" world. heads-bug1.21.zip

mmdanggg2 commented 3 months ago

Ok, I see what's going on here, the plugin is setting the "name" of the texture to just "" or "HeadDatabase" when that isn't the name of the minecraft user the skin is for. Then multiple different skins are set with this same name and so any after the first it found don't get exported. Might have to ditch the nice player name for the head textures since that's clearly unreliable.

mmdanggg2 commented 3 months ago

Addressed with 57ea682d1982878c9595d2440a6b418d52889b97 Try this one https://github.com/jmc2obj/j-mc-2-obj/actions/runs/9783782398

McCreativo commented 3 months ago

Addressed with 57ea682 Try this one https://github.com/jmc2obj/j-mc-2-obj/actions/runs/9783782398

God bless you! It finally works! Thank you. ❤️❤️