zlainsama / CosmeticArmorReworked

This mod allows you to wear two sets of armor, one for display, one for function.
https://minecraft.curseforge.com/projects/cosmetic-armor-reworked
Other
17 stars 18 forks source link

1.17 Multiplayer failed-cannot join the room #67

Closed LouiseWhite212109 closed 2 years ago

LouiseWhite212109 commented 2 years ago

With this mod other players can not join the room.

Internal Exception: io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt:0

LouiseWhite212109 commented 2 years ago

9C %~WHDD}Y_P18JSC2EH6J

zlainsama commented 2 years ago

This has been reported to me, I am aware of this. However, I have no idea about how this error can happen.

LouiseWhite212109 commented 2 years ago

I also meet this problem while using chisels&bits, and the authors asked for client and server logs. Hope that they can figure it out. Since that I know very few about programming and modding, I can only provide information like this.

mcmodderHD commented 2 years ago

Still occuring in the newest version for 1.18.1 I found a fix, which is deleting the .cosarmor file of the joining player under "saves//playerdata" (Did not try it but i guess it deletes the equipped armor)

Elmfeather7 commented 2 years ago

Having the same issue on 1.18.1 as well, can confirm deleting the file mentioned above can fix the issue, but you have to do this every time you load into the world

zlainsama commented 2 years ago

@mcmodderHD @Elmfeather7 Do they all show refCnt: 0 in the log? server log or client log? How frequently does this happen? everytime?

Elmfeather7 commented 2 years ago

I'm not sure how to check that, but every time I want to have anyone connect to me (playing via LAN) I first have to delete their .cosarmor file or they wont connect at all, same everytime.

zlainsama commented 2 years ago

@Elmfeather7 Thanks for your info, through it I found the cause with some help in the Forge discord. A workaround has been added, I will release the fixed version in 1.18.1 and 1.17.1.

Elmfeather7 commented 2 years ago

Awesome! Great work :D can't wait to download it. (of course take as much time as you need)