Skip to content

replay_testing

DevGeniusCode edited this page Apr 25, 2025 · 1 revision

How to Test a Build of Command & Conquer: Generals & Zero Hour with replays

Replays in Command & Conquer: Generals & Zero Hour are not just recordings—they are full simulations of the original gameplay. The replay file only contains the user inputs, while all other game actions are recalculated during playback. This makes replays an excellent tool for testing the compatibility and accuracy of a compiled version.

How to test using a replay

To perform a test using a replay, use the following steps:

  1. Gather previously saved replays of matches played on a known-working version of the game. These replays act as a benchmark for testing. A prepared set of test replays can be found here.

  2. Copy the replay file into Documents\Command and Conquer Generals Data\Replays for Generals replays and Documents\Command and Conquer Generals Zero Hour Data\Replays for Zero Hour replays.

  3. Make sure that the map the replay was played on is present in Documents\Command and Conquer Generals Data\Maps for Generals and Documents\Command and Conquer Generals Zero Hour Data\Maps for Zero Hour maps. If the map is not present, the replay may not show in the replay list, or the game may instantaneously crash.

  4. Launch the Build to be tested. For quick testing, it is recommended to start the game with the -quickstart and -win command arguments.

  5. Navigate to Load then Load Replay and select the replay to be used for the test.

  6. You can fast-forward through the replay using the F hotkey (Zero Hour only at the moment).

How to verify the game

To verify compatibility, the playback must yield the same outcomes as the original game. If the build is not compatible, it will result in one or more of the following issues in the replay:

  1. A brief message, "The game has mismatched", flashes on the screen. This message is easy to miss, especially if you are fast-forwarding the replay.

  2. The simulation may behave erratically: units might stop moving, pile up, or otherwise act unpredictably.

  3. The replay outcome may differ from the original game. For instance, the player might win in the original game, but the AI wins in the replay.

  4. The final score screen may display values that deviate from those in the original game.

If one of the above issues appear, the build being tested is not compatible with the version the game was originally played in.

VC6 vs VS2022

Only versions compiled with Visual C++ 6 (VC6) are compatible with replays made in the original game (v1.04 and v1.05). Versions compiled in Visual Studio 2022 (VS2022) will always result in mismatches due to changes in how the code is handled by modern compilers.

Replays

A select number of replay files can be found in this section. These replay files are perfect for verifying compatibility between versions or identifying issues with compiled builds.

Zero Hour multiplayer: Golden replay

The golden replay is a multiplayer match made in Zero Hour v1.04 in which systematically all units and abilities have been used. It consists of two playthroughs to cover all the general powers. Both replays have been played on the customized Tansoooo map.

Download both replays and the map

For a successful test, the expected results on the score screen are:

Golden replay 1: [files/golden-replay-1-results.png]

Golden replay 2: [files/golden-replay-2-results.png]

Zero Hour Skirmish

For Command & Conquer: Zero Hour, you can set up your own single-player test by playing a skirmish match against one or more AI opponents. To ensure thorough testing, it's recommended to assign each faction to an AI player. They don't need to be on the same team. Once the match is completed, save the replay for analysis. Test the replay in the same version and screenshot the results before testing in other versions.

It is recommended to use version 1.04 to create your own skirmish game, although the latest version 1.05 is backwards compatible.

If you'd prefer not to play a skirmish game, you can download this file, which includes a skirmish match played on a default Zero Hour map . The expected results are provided in the download package.

Generals Multiplayer

For Command & Conquer: Generals three replays have been selected from GameReplays:

  • Test MP replay 1: 6 player FFA game on the map Defcon 6.
  • Test MP replay 2: 7 player FFA game on the map Whiteout (default Generals map).
  • Test MP replay 3: 2 v 2 v 2 game on the map Armoured Fury (default Generals map).

Download the replays, their maps and the result screens here.

Generals Skirmish

For Command & Conquer: Generals, you can set up your own single-player test by playing a skirmish match against one or more AI opponents. To ensure thorough testing, it's recommended to assign each faction to an AI player. They don't need to be on the same team. Once the match is completed, save the replay for analysis. Test the replay in the same version and screenshot the results before testing in other versions.

Important Note: Make sure to use Generals version 1.08, as the latest version (1.09) is incompatible with both version 1.08 and the SuperHackers version.

If you'd prefer not to play a skirmish game, you can download this file, which includes a skirmish match played on a default Generals map. The expected results are provided in the download package.