Repository navigation
Commit ac7f978
fix: model gidx's family id as a nullable id and revert the serializer patch (#494)
#493 patched the serializer so a null sub-packet emits its discriminator with
the -1. That was the wrong level: NullableSerializer already carries the
splitter into the null branch for a nullable value, and gidx only needed the
engine change because the packet was modelled wrong.
The server gidx declared FamilyIdentifier as a two-field sub-packet rendering
serverId.familyId. The client gidx next to it already declares a plain
long FamilyId at the same index, and a capture writes a single id. Flattened to
long?, so a null family now serialises as "gidx 1 741328 -1 - 0" through the
ordinary nullable path with no serializer change at all.
ScnPacket index 9 was missing the SpecialSeparator its three siblings carry, so
the boots slot went out as three space-separated fields instead of dotted.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 338e963 commit ac7f978
5 files changed
Lines changed: 33 additions & 36 deletions
File tree
- src/NosCore.Packets
- ServerPackets
- Families
- Mates
- test/NosCore.Packets.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
522 | 543 | | |
523 | | - | |
| 544 | + | |
524 | 545 | | |
525 | | - | |
| 546 | + | |
526 | 547 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
536 | 553 | | |
537 | 554 | | |
538 | | - | |
539 | | - | |
| 555 | + | |
540 | 556 | | |
541 | 557 | | |
542 | 558 | | |
| |||
0 commit comments