Skip to content

Move to NosCore.Packets 56 and send every mate a suctl names - #3635

Merged
erwan-joly merged 2 commits into
masterfrom
build/packets-56
Nov 20, 2026
Merged

erwan-joly merged 2 commits into
masterfrom
build/packets-56

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What

Move to NosCore.Packets 56.0.0 and NosCore.Networking 12.0.0. Packets 56 reshapes the client suctl packet to match all 5,998 suctl lines in the packet traces (NosCoreIO/NosCore.Packets#670): suctl <map id> <amount> {<mate id> <target type> <target id>} × amount. The first field is the client's current map, not a cast id. A single order can name up to five mates. Networking 12 is built against Packets 56.

Send every mate a suctl names at its target. The handler read the line as one mate and a cast id, so only the first mate of a multi-mate order went in. It now sends each mate at its own target, keeping the existing rule that only a monster can be a target. Each mate goes through MateControlService.AttackAsync, which since #3633 uses the mate's basic attack.

Tests

  • New SuCtlPacketHandlerTests.OneOrderSendsEveryMateItNames: one order naming the pet and the escort makes both hit the monster.
  • TheMapIdLeadingTheOrderPicksNoSkill (renamed from TheFirstFieldOfTheOrderPicksNoSkill): a map id matching a pet skill's cast id still means a basic attack.
  • The other handler tests, MatePacketDeserializationTests and the end-to-end PetTests order now use the new packet shape.
  • dotnet build NosCore.sln: 0 errors. The unit and end-to-end results follow in a comment once the local run finishes.

In the client

Not checked in a client yet. With two mates out (a pet and a partner), select both and send them at a monster: both should attack it. Before, only the first one named did.



Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Attack commands can now direct multiple pets or escorts to attack targets in a single request, including having them attack the same monster.
  • Bug Fixes
    • Pet attack commands now use the basic attack when the requested map ID matches a pet skill.
    • Invalid orders and targets that cannot be found are skipped, allowing other valid attack commands in the same request to be processed.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You'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 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1022cba and f54ccb7.

Files selected for processing: 5

  • Directory.Packages.props
  • src/NosCore.PacketHandlers/Mates/SuCtlPacketHandler.cs
  • test/NosCore.EndToEnd.Tests/Scenarios/PetTests.cs
  • test/NosCore.PacketHandlers.Tests/Mates/MatePacketDeserializationTests.cs
  • test/NosCore.PacketHandlers.Tests/Mates/SuCtlPacketHandlerTests.cs

No actionable comments were generated in the recent review.

Walkthrough

The centrally managed networking and packet package versions increased. SuCtlPacketHandler now processes multiple mate orders from packet.Mates, and related tests use the list-based packet format.

Changes

Mate command handling

Layer / File(s) Summary
Update packet package versions
Directory.Packages.props
The centrally managed versions of NosCore.Networking and NosCore.Packets increased.
Process list-based mate orders
src/NosCore.PacketHandlers/Mates/SuCtlPacketHandler.cs, test/NosCore.PacketHandlers.Tests/Mates/*, test/NosCore.EndToEnd.Tests/Scenarios/PetTests.cs
The handler iterates through packet.Mates, skips orders with a non-monster target or no matching monster, and attacks for each valid order. Tests now build list-based packets and verify that a pet and escort can attack the same monster. The end-to-end pet test also uses the list-based format.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: claude

Merge Risk: Minimal · previous review 1022c

This change updates the mate attack command to the new packet format so that one order can send several mates to attack. No concrete problem was found. Unit and end-to-end results were still pending and the change had not been checked in a client.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two main parts of the change: the NosCore.Packets dependency upgrade to version 56 and the SuCtl handler change so every mate named in the order receives a suctl target. The raw su…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two main parts of the change: the NosCore.Packets dependency upgrade to version 56 and the SuCtl handler change so every mate named in the order receives a suctl target. The raw summary confirms the handler now iterates over each mate in the packet, and the PR objectives describe the same upgrade and handler behavior. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2356a8d and 1022cba.

Files selected for processing: 5

  • Directory.Packages.props
  • src/NosCore.PacketHandlers/Mates/SuCtlPacketHandler.cs
  • test/NosCore.EndToEnd.Tests/Scenarios/PetTests.cs
  • test/NosCore.PacketHandlers.Tests/Mates/MatePacketDeserializationTests.cs
  • test/NosCore.PacketHandlers.Tests/Mates/SuCtlPacketHandlerTests.cs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

The client's suctl starts with its current map id, then the number of orders, then each
mate with its target. It was read as one mate and a cast id, so only the first mate of an
order went in. The handler now sends each mate named at its own target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn

Copy link
Copy Markdown
Collaborator Author

Local run before the rebase onto #3634 (which only adds the Algorithm 8.1.0 line next to these): build 0 errors; PacketHandlers 1003/1003, GameObject 2816/2816, Core 34/34, WebApi 11/11, end-to-end 329/329.


Generated by Claude Code


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Checked against the lab server, before and after

  • The real client's line: ordering a pet to attack in the browser client sent suctl 3 1 2000002 3 2227, which is map 3, one order, mate 2000002 at monster 2227. That is the shape Packets 56 reads. Master read it as CastId 3, Unknown2 1. This was captured on master; on this branch the same shape, sent by the bot, reads as MapId 3, Amount 1 with one order.
  • Two mates in one order (bot, suctl 3 2 2000001 3 2253 2000002 3 2253, four times):
    • Master: only 2000001 ever hit; 2000002 never did.
    • This branch: both hit on all four orders (su 2 2000001 … 0 12 11 200 and su 2 2000002 … 0 12 11 1034).
  • World log: neither build logged a corrupt-packet or missing-handler warning for suctl.

Not exercised: the browser client sending an order on this branch, and the client itself putting two mates in one order. The two-mate case comes from the bot.


Generated by Claude Code


Generated by Claude Code

@erwan-joly
erwan-joly merged commit 9cc1908 into master Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants