Skip to content

What The FRICK Was That Packet?

An extremely simple mod that makes PacketBuffer#readStringFromBuffer actually spit out what was 'too long' for it.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Ever torn your hair out at the vague 'java.io.IOException: The received string length is longer than maximum allowed (36 > 16)' while debugging a modpack?

Well, good news! I made this mod SPECIFICALLY to replace that with something much more debuggable.

While installed, those exception messages will include the actual offending string, amongst other info (e.g. 'java.io.IOException: [WTFWTP] String too long: length=36, max=16, encodedBytes=36, badString="d889a435-e371-480a-af3a-e77a0e89db54"'), to (hopefully) allow for much easier pinpointing of any troublesome mod(s) in your packs.

Enjoy!