Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.

fix: add sc_11004 resource sync push - #231

Merged
ggmolly merged 2 commits into
mainfrom
feat/resource-sync-push
Feb 21, 2026
Merged

fix: add sc_11004 resource sync push#231
ggmolly merged 2 commits into
mainfrom
feat/resource-sync-push

Conversation

@ggmolly

@ggmolly ggmolly commented Feb 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implement SC_11004 resource synchronization push support with full snapshot payload semantics shared with login SC_11003 resource serialization.
  • Emit resource sync pushes after successful resource mutation in the cryptolalia unlock flow to close missing push parity.

Changes

  • Added reusable resource snapshot builder and SendPlayerResourceSync helper for outbound SC_11004 packets.
  • Updated PlayerInfo to reuse the same resource snapshot builder used by SC_11004.
  • Updated CryptolaliaUnlock to emit SC_11004 after successful SC_16206 when the request consumes resources.
  • Added tests for SC_11004 payload construction, missing-commander failure handling, login resource list regression, and cryptolalia push behavior.

@ggmolly ggmolly added type/bug Defect or incorrect behavior area/packets Packet routing/dispatch area/protocol CS/SC message definitions area/inventory Items/currency labels Feb 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7265dd525

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/answer/cryptolalia_unlock.go Outdated
@ggmolly
ggmolly merged commit b77afec into main Feb 21, 2026
1 check passed
@ggmolly
ggmolly deleted the feat/resource-sync-push branch February 21, 2026 22:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/inventory Items/currency area/packets Packet routing/dispatch area/protocol CS/SC message definitions type/bug Defect or incorrect behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant