How electronicarts/cnc_renegade works
Main Components
• Game Engine Core – This includes modules such as “Combat” (game logic, physical simulation, game object management, audio, etc.) and “Commando” (client UI, network handling, gameplay client logic). These are the heart of the game.
• Tools and Utilities – There are multiple subdirectories under “Code/Tools” (such as LevelEdit, MixViewer, RenegadeGR, and many others) that provide support for asset management, level editing, packaging, and updates.
• Installer and Launcher – The “Code/Installer” and “Code/Launcher” directories contain the logic for setting up the game and patching/updating. They also interact with other utility libraries.
• Scripting and Test Suites – “Code/Scripts” and “Code/Tests” hold mission scripts, gameplay event definitions, test harnesses (for collisions, physics, bit packing, etc.), and provide validation for engine components.
• Libraries – The “Code/Libs” directory and several utility directories (like “WWLib” and “WWUI”) provide lower-level functionality, abstractions, and shared code.
• External Dependencies – List the external SDK dependencies from the README (DirectX SDK, RAD Bink, RAD Miles, NvDXTLib, Lightscape, Umbra, GameSpy, GNU Regex, SafeDisk, Microsoft Cab API, RTPatch, and Java Runtime Headers) as external modules connected to the respective subsystems that rely on them.
Relationships and Data Flow
• The Game Engine Core interacts closely with the external SDKs – for example, DirectX for rendering, RAD Bink for video playback, RAD Miles for audio, etc.
• Tools and utilities (LevelEdit, MixViewer, etc.) rely on the same libraries that provide low-level rendering, asset management, and game data persistence. Connect these utilities to the “Core Libraries” block, showing dependency on shared code.
• The installer and launcher interact with the game engine binary by packaging and then deploying the final executable to the “Run” directory.
Architectural Patterns and Design Principles
• Modular Architecture: The code is separated by purpose into dedicated directories for game logic, UI, utilities, and tests.
• Separation of Concerns: The engine core (game loop, physics, rendering, network communication) is separate from the packaging/installation and editing tools.
• Legacy Integration with External SDKs: Display how external dependencies (DirectX, RAD SDKs, etc.) are integrated into the modules—indicating expected paths for each dependency.
• Legacy Build Process: The build system relies on Microsoft Visual Studio C++ 6.0 project files (and conversions for modern MSVC), which is an important consideration for understanding compile-time dependencies.
Detail Without Over-complicating
• That every module (Engine, Tools, Installer/Launcher, Shared Libraries, External Dependencies) is represented.