wisp-forest / gadget

Debugger's Delight
https://modrinth.com/mod/gadget
GNU Lesser General Public License v3.0
44 stars 6 forks source link

[Feature Request] Dump Packets as Plaintext #15

Closed Kas-tle closed 1 year ago

Kas-tle commented 1 year ago

I just want to say amazing work on the in-game inspector for packets. It's amazingly functional for being built within the constraints of Minecraft's GUI. That said, I would still really appreciate the ability to have these dumps in plaintext to examine outside of Minecraft.

BasiqueEvangelist commented 1 year ago

Actually, question: how would this work? The in-game packet inspector works just deserializes the packets and uses gadget's existing field inspecting infrastructure to show everything in it. Should I just recursively dump fields until a certain depth?

Kas-tle commented 1 year ago

Yeah that sounds like it would work if a depth limit would be needed for performance reasons. Basically it would be nice to sort of have everything I could see in the packet inspector, were I to expand all fields, in plain text so that it would be easily searchable

BasiqueEvangelist commented 1 year ago

Depends on #19

BasiqueEvangelist commented 1 year ago

I finally got the plain text dump exporting working... 2023-04-18_22.22.07.gdump.txt

I probably need to fix up some usability issues with byte arrays and stuff, but it works!

BasiqueEvangelist commented 1 year ago

Kinda forgot about this issue, but it should be fixed in 0.2.0+1.19.4

Kas-tle commented 1 year ago

Thank you!