PauGuri2002 Posted August 31, 2020 Posted August 31, 2020 (edited) I've recently made my first mod just as an experiment, to use on a server with some friends. The mod works wonderfully when I test it on IntelliJ and on singleplayer, but when adding it to the server it doesn't let anyone join and shows this error on the client: Internal Exception: io.netty.handler.codec.DecoderException: io.netty.handler,codec.Encoder.Exception: java.io.UTFDataFormatException: malformed input around byte 1 When I used any mod other than mine the error didn't appear. This is the server debug log (it took a while to create a new world cause it's not a very powerful machine, but mods work perfectly on it): https://pastebin.com/Uv43jbXq And here's the client debug log when I joined the server: https://pastebin.com/vkD6grRu Has anyone experienced this issue and could point me to what could be wrong on the mod? Thank you! Edited August 31, 2020 by PauGuri2002 Quote
PauGuri2002 Posted September 1, 2020 Author Posted September 1, 2020 21 hours ago, diesieben07 said: Please show your code. Here's the repo: https://github.com/PauGuri2002/SovietMod1.15 Quote
PauGuri2002 Posted September 14, 2020 Author Posted September 14, 2020 Has anyone experienced this issue or know what could be wrong? Quote
HalestormXV Posted October 25, 2020 Posted October 25, 2020 (edited) I know this is somewhat of an older thread however I was wondering if this was ever resolved as i am getting this EXACT same error. It is kind of strange actually that it is literally the same. Here is my latest: https://hastebin.com/oyebubawit.sql Here is my debug: https://hastebin.com/dehohefudo.md (only took the bottom piece of it where the actual Frozen state happened) As for the reproduction - it is identical to above. It works flawlessly on Singleplayer. Only in the multiplayer environment does this occur. To be honest I wouldn't even know where to look for something like this? I mean are byte issues generally in networking and packet handling? Yes I can show the code as messy as it may currently be if this has indeed not actually been resolved and is still out and about. But I wouldnt even know which sections of the code would cause this to show. Edited October 25, 2020 by HalestormXV Quote
PauGuri2002 Posted October 25, 2020 Author Posted October 25, 2020 (edited) 44 minutes ago, HalestormXV said: I know this is somewhat of an older thread however I was wondering if this was ever resolved as i am getting this EXACT same error. It is kind of strange actually that it is literally the same. It hasn't been solved! As noone answered I abandoned the project hahhah, but now that you have the same issue we can maybe get someone to help us! Edited October 25, 2020 by PauGuri2002 Quote
vemerion Posted October 25, 2020 Posted October 25, 2020 33 minutes ago, PauGuri2002 said: It hasn't been solved! As noone answered I abandoned the project hahhah, but now that you have the same issue we can maybe get someone to help us! Here is what I did to get players to be able to join a dedicated server with your mod: I deleted the data folder in the mod's resources. Obviously this is not a viable fix, but it is a hint to what is wrong. Quote
HalestormXV Posted October 25, 2020 Posted October 25, 2020 (edited) 7 hours ago, vemerion said: Here is what I did to get players to be able to join a dedicated server with your mod: I deleted the data folder in the mod's resources. Obviously this is not a viable fix, but it is a hint to what is wrong. You are correct. As terrifying as that is, that method has resolved the issue. However obviously as you state that is not viable as that contains well quite literally everything from recipes to structure gen to tags. So the question now is, what in a data folder could cause that issue. EDIT: After some meticulous removal and debugging it would seem the issue is within custom recipes. Thankfully I only have one custom recipe and this is the root of the problem. As soon as you remove that custom recipe directory you can log into Multiplayer and everything works flawlessly again. I can't understand why that error would be appearing only when attempting to log into the Multiplayer environment though. For reference I followed this: https://www.youtube.com/watch?v=Ri0Mqv_FXA4 And here are all the classes that were made/used following this Tutorial. https://pastebin.com/TbCtDS2T - Init https://pastebin.com/3VapXLey - Serializer https://pastebin.com/dkd4gsVa - DustRecipe https://pastebin.com/G3N5Ynsb - Interface Edited October 25, 2020 by HalestormXV Quote
HalestormXV Posted October 26, 2020 Posted October 26, 2020 (edited) 44 minutes ago, diesieben07 said: read and write in your serializer are not symmetrical. In read you first read the ingredient then the stack. In write you first write the stack, then the ingredient. I am legitimately laughing out loud right now, but not the "haha" funny laugh. More like that wow seriously, your kidding nervous laugh. Basically......I rewrote the entire class/whole system from the ground up last night, it has more functionality now and works in Multiplayer Environment, but from what you just said....all I had to do was move a couple of lines. Lmfao *FACEPALM to the umpteenth degree* Well as always I thank you. And I appreciate the info. Maybe I'll reuse this for an incredibly basic somewhat "non-flexible" machine that is only meant to do incredibly basic single item operations. Edited October 26, 2020 by HalestormXV Quote
PauGuri2002 Posted October 26, 2020 Author Posted October 26, 2020 2 hours ago, diesieben07 said: read and write in your serializer are not symmetrical. In read you first read the ingredient then the stack. In write you first write the stack, then the ingredient. I can't believe it was such a simple problem hahhah thank you so much! Quote
CrazyFisch Posted February 1, 2021 Posted February 1, 2021 Hahah I just created an account to say thanks xD I made the same mistake ;D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.