finds.dev← search

// the find

electronicarts/CnC_Red_Alert

★ 6,699 · C++ · NOASSERTION · updated Feb 2025

Command and Conquer: Red Alert

The source code for the original 1996 Command & Conquer: Red Alert, released by EA/Electronic Arts for preservation and Steam Workshop support. This is mid-90s Win32 game code written for Watcom C++ and TASM, requiring DirectX 5 and long-extinct third-party audio libraries to build. If you want to study how a landmark RTS was actually built, this is it.

The codebase is a rare look at production game architecture from the era before game engines were commoditized — you can trace how pathfinding, unit AI, multiplayer over IPX, and the pipe/straw streaming abstraction were all hand-rolled. The compression pipeline (LCW, LZO, LZW, Blowfish all wrapped in composable Pipe/Straw classes) is genuinely elegant for 1996 and worth reading for the design pattern alone. GPL v3 license means you can legally study, fork, and build on it. The sheer breadth of the codebase — map editor, multiplayer lobby, DDE integration, INI-driven data tables — is a complete picture of what it took to ship a commercial RTS.

It does not compile as-is. The README says so directly: you need Watcom C++ 10.6, TASM 4.0, DirectX 5 SDK, and two proprietary audio libraries (Greenleaf GCL and HMI SOS) that you simply cannot legally obtain anymore. No contributions accepted, no issues, archived without support — EA dropped the code and walked away. The code is pre-C++11 with no build system you can actually run today; porting to a modern compiler means wrestling with x86 assembly stubs, DOS-era memory models (DPMI.CPP), and Win16/Win32 bridging code. If you want a playable open-source C&C, the OpenRA project has been doing the work for years and is a better starting point.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →