Skip to content

Reimplement 47 Synchrony::Commands functions at 100%, from gynt's finished work - #431

Open
kotijekriv wants to merge 94 commits into
sourcehold:mainfrom
kotijekriv:reimpl/Synchrony-Commands-backlog-1-100
Open

kotijekriv wants to merge 94 commits into
sourcehold:mainfrom
kotijekriv:reimpl/Synchrony-Commands-backlog-1-100

Conversation

@kotijekriv

Copy link
Copy Markdown
Contributor

47 Synchrony::Commands functions that gynt had at 100% on his reimpl/Synchrony-Commands branch and that aren't on main or in an open PR. Pero claimed that branch on Discord and gynt answered "Go ahead! I am not working on those branches", the same OK #415 came from. No header changes; the other 30 of the branch's finished functions, two of which need a small header change, are in a second PR.

Each function is two commits: gynt's, holding his file as it is on upstream's reimpl/Synchrony-Commands (ca943ba) and his status line from that branch, authored by him with his date and naming his commit; then ours, with what main's headers and the style rules need. His fork's branch (6fa5eaa) has the same files. All of them are from 2026-10-03.

Function Address gynt's commit His file on main After
Commands::InitialAnnounceReply 0x00480640 b19c2c6 100.0% 100.0%
Commands::ResetSyncStatusUnk 0x00484450 83ab8d6 100.0% 100.0%
Commands::CloseModalDialogForEveryone 0x00485330 faf55c3 100.0% 100.0%
Commands::InitialAnnounceToHost 0x004893C0 dc6352f 100.0% 100.0%
Commands::ClickChangeTaxes 0x00482360 6c33d8c 100.0% 100.0%
Commands::ClickChangeRations 0x004823C0 6481c09 100.0% 100.0%
Commands::ClickBuildingSleep 0x00482A40 fa64671 100.0% 100.0%
Commands::ResyncStatus2 0x004843F0 8fc563b 100.0% 100.0%
Commands::TriggerRecalculationOfUnitSameTileLinkage 0x00484E10 24c849e 100.0% 100.0%
Commands::BroadCastSyncRelatedStatus 0x004850E0 35368ab 100.0% 100.0%
Commands::ShareAnnouncementWithHost 0x004852D0 19129db 100.0% 100.0%
Commands::TribeRelated1 0x00484A00 78b3c13 100.0% 100.0%
Commands::DeselectUnit 0x00484DA0 c0d6a7b 100.0% 100.0%
Commands::ShareAIVHash 0x00486320 cd50aa8 100.0% 100.0%
Commands::AnnounceGameVersion 0x00480680 acd4892 100.0% 100.0%
Commands::NotifyLaggingPlayer 0x004855C0 8511c19 builds with main's names, then 100.0% 100.0%
Commands::SomeKindOfMultiplayerPingUnk 0x00485650 d2e9a70 builds with main's names, then 100.0% 100.0%
Commands::ResyncStartCS_CS_Sub 0x0048FC20 4c178c8 builds with main's names, then 100.0% 100.0%
Commands::HostRemoveAIPlayerBySlotID 0x0048FFD0 13918ee 100.0% 100.0%
Commands::MakeUnitSelection 0x00480E60 469b0b2 100.0% 100.0%
Commands::ClickRecruitUnit 0x004821E0 4cf7813 100.0% 100.0%
Commands::ClickBuyOrSell 0x00482620 e45362c 100.0% 100.0%
Commands::ClickUnitStance 0x004847B0 140ef47 100.0% 100.0%
Commands::SiegeEngineRelated 0x00484960 fd0ff88 100.0% 100.0%
Commands::ReleaseDogs 0x00484A70 e6650a9 100.0% 100.0%
Commands::FlagsAndBraziersCommandUnk 0x00485520 cf376ed 100.0% 100.0%
Commands::ResyncStatusStart 0x00485790 b19c1ac 100.0% 100.0%
Commands::MapSendingRelated 0x00485E80 ed8648f builds with main's names, then 100.0% 100.0%
Commands::ClickNavigateMenuOrEscape 0x00480DB0 c7b288a 100.0% 100.0%
Commands::ShareGameStatePartialHashes 0x004856E0 28d3298 100.0% 100.0%
Commands::SendResyncBuilding 0x0048A1F0 14ca2ef 100.0% 100.0%
Commands::SendResyncVeg 0x0048A2A0 9c5367b 100.0% 100.0%
Commands::SendResyncPlayerData 0x0048A460 395619e 100.0% 100.0%
Commands::SendResyncEntity 0x0048A710 e4d787c 100.0% 100.0%
Commands::ResyncTeleClimb 0x0048AB40 65309ba 100.0% 100.0%
Commands::SendQuitGameQuestion 0x0048B280 8f1e58c 100.0% 100.0%
Commands::ResyncVillage 0x0048BBE0 65e49a1 100.0% 100.0%
Commands::ResyncAIZone 0x0048BC90 923c4c2 100.0% 100.0%
Commands::AcknowledgeMapExistence 0x004833F0 06ce58c builds with main's names, then 100.0% 100.0%
Commands::ShareMSVMapIndex 0x004834B0 eac9854 97.9% 100.0%
Commands::ResyncZone 0x00484E70 6cd4395 100.0% 100.0%
Commands::CommandSelectionReplenishAmmo 0x00485020 a4dfc57 100.0% 100.0%
Commands::SyncPacketSizeAnnouncement 0x00485210 c49a65a builds with main's names, then 100.0% 100.0%
Commands::ResyncMoat 0x0048AA80 38851ff 100.0% 100.0%
Commands::ResyncPitch 0x0048ABF0 cfdcbec 100.0% 100.0%
Commands::ClickErase 0x00481050 9ed0f09 100.0% 100.0%
Commands::ClickSomethingWithDrawBridgeUnk 0x00482550 84cec66 100.0% 100.0%

Measured.

  • Setup: the bundled MSVC1400-SP1 against the Steam Stronghold Crusader.exe (3bb0a8c1…5387ac5a), both resolver sets enabled locally (not committed: the data resolvers, and the function resolvers of these 47), sourcehold's reccmp with --resolve-wrapped-calls --ignore-security-cookie.
  • The 47 files built together on main 3458fea (this branch checked out, nothing else in the build list): all 47 read 100.0% raw and normalised.
  • gynt's files on main as they are: 40 read 100.0% at once. Six need main's field names to build (below); with those they read 100.0%. ShareMSVMapIndex reads 97.9% (below).
  • Checks: openshc-pr-fix finds nothing to change, and openshc-pr-check gives 0 ERROR and 21 CHECKs, explained below.
  • Not run in game.

What main needed

  • Field names since main's syncs (in our commit on each file, from tools/reimplementation-helper/batch/refactor_struct_fields.py):
    • NotifyLaggingPlayer, SomeKindOfMultiplayerPingUnk: GameSynchronyState::field131_0xcd4 is lagNotificationCode.
    • ResyncStartCS_CS_Sub: field259_0x109290 is resyncStartTime, field267_0x1092b0 is connectionInfoExpanded (a BOOLEnum, so it is set to FALSE), field76_0xbe8 is field_0xbe8.
    • MapSendingRelated: field290_0x109e20 is mapSendRequestStatePerPlayer.
    • AcknowledgeMapExistence: field239_0x1072f8 is mapExistenceAckCountdown.
    • SyncPacketSizeAnnouncement: field73_0xbdc is resyncTransferTotalSize, field67_0xba4 is field_0xba4.
  • ShareMSVMapIndex, 97.9% to 100.0%: the original stores at MenuTextInputState + 0x1050 + mapIndex * 4. The draft writes that as DAT_ArrayOfMapIndices[mapIndex + 499], with the array at 0x884 as on gynt's branch. On main that array starts at 0x880 and has 501 entries, so the address lies in the next array: DAT_ArrayOfMapIndices2[mapIndex - 1] (0x1054), the form main's MenuItemRenderFunction_SaveLoadMap_TableContent reads the same entries with. The 0x880 / 0x884 shift is the one Reimplement 33 Synchrony::Commands functions at 100% #415 fixed in three other commands.

Style (our commit on each file)

  • The first include is ../Commands.func.hpp, once; the using lines and the imported block comments (enum warnings, decompilerscript stamps) are gone. A short hand-written note on the function stays as one // line above it (ClickNavigateMenuOrEscape). The five machine-written summaries of what the handler does ("renamed by: Claude Sonnet 4.6", in TriggerRecalculationOfUnitSameTileLinkage, TribeRelated1, NotifyLaggingPlayer, SiegeEngineRelated and SyncPacketSizeAnnouncement) went with the other block comments: they restate the code.
  • The execute half is an early return.
  • The buffer the received values are read into is readBuffer, declared at its first use (short local_4[2] was one short used twice).
  • The casts around the command parameters are gone; numbers are decimal; 0/1 values are tested by truth; x = x + 1 is x++.
  • x - 1U <= 7 is x >= 1 && x <= 8 (AnnounceGameVersion, ShareAIVHash).
  • ShareGameStatePartialHashes: the twelve values are HASH_PartialHashPerPlayer.player[slot].domain[i]; the draft reached them through DAT_PlayerMatchTimes + 9, past the end of that array. ResyncStatusStart and ShareGameStatePartialHashes have for loops bounded by countof.
  • BroadCastSyncRelatedStatus, MapSendingRelated: the comma expressions in the conditions are statements of their own; ResyncAIZone: &heatMaps[n] and sizeof(heatMaps[0]).
  • Byte counts are sizeof() wherever the header proves them equal (the drafts had the number, seven of them as (size_t)((int)(N))): one element in SendResyncBuilding (812), SendResyncVeg (156), SendResyncPlayerData (14836), SendResyncEntity (232), ResyncTeleClimb (516) and ResyncVillage (28056); one row of the grid in ResyncZone (6400); 100 * sizeof() of one element in ResyncMoat and ResyncPitch; the whole array in MakeUnitSelection (400) and ShareAIVHash (512).
  • Seven Click commands (ClickBuildingSleep, ClickBuyOrSell, ClickChangeRations, ClickChangeTaxes, ClickErase, ClickRecruitUnit, ClickSomethingWithDrawBridgeUnk) clear DAT_GameCommandParam0 with 0 before its low one or two bytes are read. The drafts assign DAT_CommandActionPlan there, which is GCS_EXECUTE (0) on that path; both compile to the same store.
  • FlagsAndBraziersCommandUnk: the short readBuffer goes into the two parameters without a (uint). AcknowledgeMapExistence: gynt's _flag and _index are parameter0 and mapIndex, each declared where it is read.
  • Every style change was compiled before and after: the code is the same (the function's listing identical, or quick_diff at the same ratio for the earlier ones, and reccmp 100.0% on the final branch).

The checker's 21 CHECKs

Count Finding Why it stays
18 declared without a value readBuffer and the received values are filled through their address by serializeOrDeserializeCommandParameter, so there is no first assignment to declare them at; #415 has the same
3 field_0xba4, field_0xbe8 are placeholder names Ghidra's names on main; what they hold isn't known

Other PRs

  • Reimplement 33 Synchrony::Commands functions at 100% #415 (our first 33 Commands) and this branch change different files and different status lines; they merge cleanly in either order.
  • The second PR (the other 30) merges cleanly with this one.
  • Merged with each of the 57 open PRs, this branch adds no conflict: the only conflicts are the ones those PRs already have with main.

🤖 Generated with Claude Code

gynt and others added 30 commits November 20, 2026 00:41
InitialAnnounceReply, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
b19c2c6 ("reimplement: SHC_3BB0A8C1_0x00480640 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ResetSyncStatusUnk, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
83ab8d6 ("reimplement: SHC_3BB0A8C1_0x00484450 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CloseModalDialogForEveryone, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit faf55c3 ("reimplement: SHC_3BB0A8C1_0x00485330 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
InitialAnnounceToHost, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit dc6352f ("reimplement: SHC_3BB0A8C1_0x004893C0 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ClickChangeTaxes, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
6c33d8c ("reimplement: SHC_3BB0A8C1_0x00482360 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- Param0 is cleared with 0 before its low bytes are read, where the draft assigns DAT_CommandActionPlan, which is
  GCS_EXECUTE (0) on that path; the code is the same.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ClickChangeRations, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
6481c09 ("reimplement: SHC_3BB0A8C1_0x004823C0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- Param0 is cleared with 0 before its low bytes are read, where the draft assigns DAT_CommandActionPlan, which is
  GCS_EXECUTE (0) on that path; the code is the same.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ClickBuildingSleep, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
fa64671 ("reimplement: SHC_3BB0A8C1_0x00482A40 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- Param0 is cleared with 0 before its low bytes are read, where the draft assigns DAT_CommandActionPlan, which is
  GCS_EXECUTE (0) on that path; the code is the same.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncStatus2, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
8fc563b ("reimplement: SHC_3BB0A8C1_0x004843F0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
TriggerRecalculationOfUnitSameTileLinkage, gynt's file as it stands on upstream's reimpl/Synchrony-Commands
(ca943ba), from his commit 24c849e ("reimplement: SHC_3BB0A8C1_0x00484E10 100.0% Reimplemented", 2026-10-03),
with his status line from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as
it is; what main's headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… the style guide

On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The buffer the received values are read into is readBuffer, declared at its first use.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
BroadCastSyncRelatedStatus, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit 35368ab ("reimplement: SHC_3BB0A8C1_0x004850E0 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.
- The comma expression in the execute test is a statement of its own after an early return.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ShareAnnouncementWithHost, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit 19129db ("reimplement: SHC_3BB0A8C1_0x004852D0 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
TribeRelated1, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
78b3c13 ("reimplement: SHC_3BB0A8C1_0x00484A00 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- The buffer the received values are read into is readBuffer, declared at its first use.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
DeselectUnit, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
c0d6a7b ("reimplement: SHC_3BB0A8C1_0x00484DA0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- The buffer the received values are read into is readBuffer, declared at its first use.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ShareAIVHash, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
cd50aa8 ("reimplement: SHC_3BB0A8C1_0x00486320 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- Numbers are decimal.
- x - 1U <= 7 is x >= 1 && x <= 8.
- Both sizes are sizeof(aivFileHash) (512 bytes).

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
AnnounceGameVersion, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
acd4892 ("reimplement: SHC_3BB0A8C1_0x00480680 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- x - 1U <= 7 is x >= 1 && x <= 8.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kotijekriv and others added 29 commits November 20, 2026 02:19
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are sizeof(playerDataArray[0]), one element (14836 bytes), where the draft has the byte count.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SendResyncEntity, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
e4d787c ("reimplement: SHC_3BB0A8C1_0x0048A710 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are sizeof(entityArray[0]), one element (232 bytes), where the draft has the byte count.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncTeleClimb, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
65309ba ("reimplement: SHC_3BB0A8C1_0x0048AB40 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are sizeof(climbData[0]), one element (516 bytes), where the draft has the byte count.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SendQuitGameQuestion, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
8f1e58c ("reimplement: SHC_3BB0A8C1_0x0048B280 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- The copy loops are strcpy, with its pragma at the top of the file, as sourcehold#415 writes them.
- The text of a lookup is a // "..." line above it.
- The question's text is copied with strcpy; its text is the // line above it.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncVillage, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
65e49a1 ("reimplement: SHC_3BB0A8C1_0x0048BBE0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are sizeof(aivs[0]), one element (28056 bytes), where the draft has the byte count.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncAIZone, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
923c4c2 ("reimplement: SHC_3BB0A8C1_0x0048BC90 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- heatMaps + n is &heatMaps[n], and 0xf00 and 3840 are sizeof(heatMaps[0]); the receiving half is an early return.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
AcknowledgeMapExistence, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit 06ce58c ("reimplement: SHC_3BB0A8C1_0x004833F0 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before, which does not build on main as it is (below). reccmp reads 100.0
(normalized 100.0), with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.
- It builds on main with main's field names: GameSynchronyState::field239_0x1072f8 is mapExistenceAckCountdown.
- gynt's _flag and _index are parameter0 and mapIndex, each declared where it is read.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ShareMSVMapIndex, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
eac9854 ("reimplement: SHC_3BB0A8C1_0x004834B0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before. On main's headers his file reads reccmp 97.9 (normalized 92.3); this
reads 100.0 (normalized 100.0), with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The BOOLEnum include goes: BOOLEnum is never named here.
- 0/1 values are tested by truth.
- The original stores at MenuTextInputState + 0x1050 + mapIndex * 4. gynt's draft writes that as
  DAT_ArrayOfMapIndices[mapIndex + 499], with the array at 0x884 on his branch. On main that array starts at 0x880
  and has 501 entries, so the address lies in the next one: DAT_ArrayOfMapIndices2[mapIndex - 1] (the array at
  0x1054), the form main's MenuItemRenderFunction_SaveLoadMap_TableContent reads the same entries with.
- The two received values are parameter0 and mapIndex, each declared where it is read.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncZone, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
6cd4395 ("reimplement: SHC_3BB0A8C1_0x00484E70 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are sizeof(grid[0]), one row of 40 cells (6400 bytes), where the draft has the byte count.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
CommandSelectionReplenishAmmo, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from
his commit a4dfc57 ("reimplement: SHC_3BB0A8C1_0x00485020 100.0% Reimplemented", 2026-10-03), with his status
line from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what
main's headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…uide

On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- The buffer the received values are read into is readBuffer, declared at its first use.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SyncPacketSizeAnnouncement, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his
commit c49a65a ("reimplement: SHC_3BB0A8C1_0x00485210 100.0% Reimplemented", 2026-10-03), with his status line
from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's
headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before, which does not build on main as it is (below). reccmp reads 100.0
(normalized 100.0), with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- It builds on main with main's field names: GameSynchronyState::field67_0xba4 is field_0xba4;
  GameSynchronyState::field73_0xbdc is resyncTransferTotalSize.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncMoat, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
38851ff ("reimplement: SHC_3BB0A8C1_0x0048AA80 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are 100 * sizeof(moats[0]) (1600 bytes): the hundred moats from index Param0 * 100.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ResyncPitch, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
cfdcbec ("reimplement: SHC_3BB0A8C1_0x0048ABF0 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The BOOLEnum include goes: BOOLEnum is never named here.
- Numbers are decimal.
- 0/1 values are tested by truth.
- Both sizes are 100 * sizeof(pitchDitches[0]) (2000 bytes): the hundred ditches from index Param0 * 100.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ClickErase, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from his commit
9ed0f09 ("reimplement: SHC_3BB0A8C1_0x00481050 100.0% Reimplemented", 2026-10-03), with his status line from that
branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what main's headers and
the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- Param0 is cleared with 0 before its low bytes are read, where the draft assigns DAT_CommandActionPlan, which is
  GCS_EXECUTE (0) on that path; the code is the same.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ClickSomethingWithDrawBridgeUnk, gynt's file as it stands on upstream's reimpl/Synchrony-Commands (ca943ba), from
his commit 84cec66 ("reimplement: SHC_3BB0A8C1_0x00482550 100.0% Reimplemented", 2026-10-03), with his status
line from that branch. His fork's reimpl/Synchrony-Commands (6fa5eaa) has the same file. Taken as it is; what
main's headers and the style rules need on top follows in our own commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… guide

On top of gynt's version in the commit before; the code is the same, reccmp 100.0 (normalized 100.0) before and
after, with the data resolvers and the function resolvers of this branch's functions on.

- The first include is ../Commands.func.hpp, once; the using lines and the imported block comments are gone.
- The execute half is an early return.
- The casts around the command parameters are gone.
- Param0 is cleared with 0 before its low bytes are read, where the draft assigns DAT_CommandActionPlan, which is
  GCS_EXECUTE (0) on that path; the code is the same.

The status line is gynt's, 100.0% (Reimplemented), from the commit before.

Co-authored-by: Gynt <gynt@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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