What The FRICK Was That Packet?

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

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!

The What The FRICK Was That Packet? Team

profile avatar
  • 1
    Followers
  • 1
    Projects
  • 85
    Downloads