Repository navigation
Audit server packets m-z against a real capture - #577
Open
erwan-joly wants to merge 1 commit into
Open
erwan-joly wants to merge 1 commit into
erwan-joly wants to merge 1 commit into
Conversation
…udit (m-z) scr carries seven fields on the wire; add Unknow7. The deserializer mapped every -1 enum value to the default, losing KeyBind.SameKey in mslot; keep -1 when the enum defines it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ45wGkdbqEmzdtJSGhD
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Audit of server packets with headers m-z (and non-letter) against a real client capture (~33 MB). For every in-scope header, up to 300 distinct captured lines were deserialized with the library's
Deserializer, re-serialized withSerializer, and compared byte for byte.Capture caveats: player ids/names in the capture are already anonymized (
MyIdPlayer,Me), which breaks numeric id fields on some lines (pairy, say, spk, su, tp, twk, rest). Those failures are capture artifacts, not layout mismatches. The capture is also from an older client, so fields the class has but the capture lacks were left alone.Fixed (non-breaking)
scr: every captured line has 7 fields; the class had 6. AddedUnknow7(default 0). Corpus snapshot updated for the extra field.mslot:KeyBind.SameKey(-1) was read back asCtrlA(0) because the deserializer maps every-1enum value to the default. It now keeps-1when the enum defines it (only affects enums with an explicit -1 member).CaptureAuditMzTestsround-trips capturedscrandmslotlines.Breaking candidates for 27.0.0 (not changed here)
mlobj,parcel: the sub-packet is space-separated on the wire (mlobj 1 5 6 5 3 1 0 0 0 0), but the deserializer reads a sub-packet as one dotted token, so all fields after the first are lost. Fix needs the sub-packet fields inlined into the packet.pst:BuffIdsisList<int>but the wire carriesid.levelpairs (153.87 152.87); needs a sub-packet list.umi: wire isvnum.timein one token (umi 5060.34); class has two space fields.qslot: serializer drops the.after the optionalType(index 0) ofQsetClientSubPacket(1.1.2->11.2); serializer-level bug, also touches the shared sub-packet.Table
MlistMaterialsPacket;MlistPacketlayout matches-1.0/0tokens, single sample#arena,#guri) not resolvable from server types^item data, anonymized names-1on wire vs-1.0.0; older client omits trailing fields0.)Headers with no captured line (not checked): minipet, mlinfobr, mlintro, mlo_, modal, modali, msgi, msgi2, n_inv_item, n_inv_skills, NsTeST, p_sex, pet_cool2, petski, pflag, pjoin, psd, pstash, pstash_all, qnai, qnai2, qnamli, qnamli2, qr, raidopen, rc_buy, s_memoi, s_memoi2, say_p, sayi, sayi2, sayitem, sayitemt, sayt, scene, shop_end, skyinit, slinfo, stash, stash_all, stbm, stp, stp2, stpm, success, ta_, tbf, today_stc, useobj.
Summary
85 in-scope headers had captured lines; 49 round-trip cleanly (or fail only on anonymized ids, capture comments or a stray trailing space), 2 are fixed non-breakingly (
scr,mslot), and the rest are left with reasons. Five clear layout mismatches (mlobj,parcel,pst,umi,qslot) need breaking changes and are grouped above for 27.0.0 / #574. All 196 tests pass.https://claude.ai/code/session_01CUfJ45wGkdbqEmzdtJSGhD
Generated by Claude Code