Hi,
Thanks for looking into Commandos 2. If you want to continue, I’d suggest focusing on two Commandos 2 executables rather than trying to reverse the full retail binary directly. This should be much lighter on tokens and more realistic for a bounded analysis.
1. The Demo build (c2demo.exe)
The demo uses macro files for scripting instead of the full script code used in retail. That means part of the game logic is externalized into a more readable, parameterized form. For REA, parsing these macros is much cheaper and more reliable than interpreting raw machine code. It can serve as a kind of readable “spec” for how entities/events are spawned.
2. The Debug build (Comm2Debug.exe)
Extraction code: wy2k
Comm2Debug.exe is a debug build with runtime overlays and quick save/load hooks. It has stability issues—some missions may crash—but it is useful as a runtime probe: you can trigger an in-game behavior and observe whether it matches a hypothesis from static analysis.
Existing tools worth using as a map
These already contain parsers/editors for Commandos 2 formats such as SEC, PAK, PCK, and BSM scripts. Their source can act as documentation of known structures, so REA does not have to rediscover everything from scratch.
Suggested workflow
Use REA to parse the demo’s macro system and extract the interface contract: what parameters a macro takes and what entity/event it produces.
Use cmdt and existing format knowledge as a map of known structures.
Locate the corresponding implementation in Comm2Debug.exe using the macro contract as a spec.
Verify the behavior in the debug build as a black-box probe.
This is a bounded differential analysis, not a full reverse-engineering of the whole engine. It should be far more token-efficient and could produce useful behavioral specifications for the Commandos community.
Would you be willing to try these two directions—demo first, then debug build for verification? The links are above.
Thanks.