OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
0001. Vendor OpenCoD2-Plus Server behind a generated bridge

  • Status: Accepted
  • Date: 2026-10-18

Context

The reconstructed server and script VM crashed as soon as a second player joined. OpenCoD2-Plus Server is a C++ reconstruction of the same server that runs real games, but its names, signatures and some layouts differ from the engine's.

Decision

Copy OpenCoD2-Plus Server's script VM, server, game, bgame, core, xanim and libcod byte for byte (test/vendored_files.txt) and connect them to the engine through src/compat, generated by scripts/gen_script_bridge.py from interface lists, with each crossing asserted against the engine's ABI.

Consequences

  • The dedicated server runs only OpenCoD2-Plus Server's code; upstream fixes apply with git am.
  • Every new crossing needs an interface entry and an ABI check.
  • Two copies of some code (engine and OpenCoD2-Plus Server) coexist; test/plus_replaces.txt keeps one copy of each state per executable.