OpenCoD2-Plus Server: reverse-engineered Call of Duty 2 dedicated server (1.0 and 1.3), C++, 64-bit on Linux with a 32-bit build, 32-bit on Windows. A fork of voron00/CoD2rev_Server that adds hardening, admin features, libcod script functions and a bots mod.
- docs/ai/README_AI.md, then the files it lists in order.
- For a change in an area: its page under docs/architecture/.
- Before building or testing: docs/development/.
- Reversed code mirrors the original binary; change only what a fix needs, and explain the original bug in the commit.
- Script extensions go in
src/libcod, attached with#ifdef LIBCODhooks; hardening and admin fixes are small changes in the engine file they fix. - Check both sides of
#ifdef LIBCOD, of#if PROTOCOL_VERSIONand of#ifdef COD2_PLUS; buildmake,make PROTOCOL=118,make PLUS=1,make windowsandmake ARCH=x86before committing undersrc/. - Never change network formats, engine limits or client-predicted behaviour
outside
#ifdef COD2_PLUS. Themake PLUS=1build serves only the CoD2 1.3 Plus client and may change them (ADR 0015). - Keep each file's line endings (
.gitattributesis* -text). - Do not edit vendored libraries; do not add runtime dependencies.
- Tests need a CoD2 folder with only stock iwds; stop test servers by their PID
or
pkill -x cod2rev_lnxded, neverpkill -f. - Commit locally; push only when the maintainer asks. Commit messages:
imperative subject, a body with the why, and a
Co-Authored-By: Claudeline for AI-assisted commits. - Never commit
CLAUDE.md,docs/superpowers/,.superpowers/or.claude/.
- A change that makes a document wrong updates it in the same commit; the table is in docs/ai/DEVELOPMENT_GUIDE.md.
- User-visible changes get a
docs/CHANGES.mdentry; the six READMEs change only when a milestone summary changes. - Finished work adds a stage to docs/ai/PROJECT_MEMORY.md.
- Run
python3 scripts/check_docs.pybefore committing documentation.