MrRar / edit_skin

Advanced skin editor mod for Minetest
MIT License
7 stars 5 forks source link

5.4 client error #4

Closed Niklp09 closed 2 years ago

Niklp09 commented 2 years ago
2022-09-13 17:45:48: ERROR[Main]: Invalid model element (10): '10,0.3;3,7;player_mesh;3d_armor_character.b3d;(edit_skin_base_1_mask.png^[colorize:#EEB592FF:alpha)^edit_skin_base_1.png^edit_skin_footwear_1.png^edit_skin_eye_5.png^edit_skin_mouth_7.png^(edit_skin_bottom_4_mask.png^[colorize:
2022-09-13 17:45:48: ERROR[Main]: #613915FF:alpha)^edit_skin_bottom_4.png^(edit_skin_top_9_mask.png^[colorize:#178C32FF:alpha)^edit_skin_top_9.png^(edit_skin_hair_11_mask.png^[colorize:#D0672AFF:alpha)^edit_skin_hair_11.png,blank.png,3d_armor_trans.png;0,180;false;true;0,0;0'
2022-09-13 17:45:48: ERROR[Main]: Invalid model element (10): '4,2;2,3;player_mesh;3d_armor_character.b3d;(edit_skin_base_1_mask.png^[colorize:#EEB592FF:alpha)^edit_skin_base_1.png^edit_skin_footwear_1.png^edit_skin_eye_5.png^edit_skin_mouth_1.png^(edit_skin_bottom_4_mask.png^[colorize:#12
2022-09-13 17:45:48: ERROR[Main]: 4D87FF:alpha)^edit_skin_bottom_4.png^(edit_skin_top_10_mask.png^[colorize:#449ACCFF:alpha)^edit_skin_top_10.png^(edit_skin_hair_10_mask.png^[colorize:#613915FF:alpha)^edit_skin_hair_10.png,blank.png,blank.png;0,180;false;true;0,0;0'
2022-09-13 17:45:48: ERROR[Main]: Invalid model element (10): '6.5,2;2,3;player_mesh;3d_armor_character.b3d;(edit_skin_base_1_mask.png^[colorize:#EEB592FF:alpha)^edit_skin_base_1.png^edit_skin_footwear_1.png^edit_skin_eye_5.png^edit_skin_mouth_7.png^(edit_skin_bottom_4_mask.png^[colorize:#
2022-09-13 17:45:48: ERROR[Main]: 613915FF:alpha)^edit_skin_bottom_4.png^(edit_skin_top_9_mask.png^[colorize:#178C32FF:alpha)^edit_skin_top_9.png^(edit_skin_hair_11_mask.png^[colorize:#D0672AFF:alpha)^edit_skin_hair_11.png,blank.png,blank.png;0,180;false;true;0,0;0'

When a 5.4 client joins my 5.6 server the client gets many errors when using /skin

My fork without the "color_to_string" function has the same Issue

dark-steveneq commented 2 years ago

Seems like it's an issue with formspec versions. I'll look into it in a bit.

Niklp09 commented 2 years ago

https://github.com/MrRar/edit_skin/blob/523ae51eac8a4f143bd8597f1365d7ee3dc72ca7/init.lua#L208

Niklp09 commented 2 years ago

Formspec version 3 is in MT 5.2 or higher available

MrRar commented 2 years ago

5.4 has less parameters for the model element. I'm not using the animation part anyway so I'm just going to omit that.

MrRar commented 2 years ago

@Niklp09 I think this is fixed. Try it again.

Niklp09 commented 2 years ago

Works!