-
Notifications
You must be signed in to change notification settings - Fork 60
replay_testing
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.
To perform a test using a replay, use the following steps:
-
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.
-
Copy the replay file into
Documents\Command and Conquer Generals Data\Replays
for Generals replays andDocuments\Command and Conquer Generals Zero Hour Data\Replays
for Zero Hour replays. -
Make sure that the map the replay was played on is present in
Documents\Command and Conquer Generals Data\Maps
for Generals andDocuments\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. -
Launch the Build to be tested. For quick testing, it is recommended to start the game with the
-quickstart
and-win
command arguments. -
Navigate to
Load
thenLoad Replay
and select the replay to be used for the test. -
You can fast-forward through the replay using the
F
hotkey (Zero Hour only at the moment).
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:
-
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.
-
The simulation may behave erratically: units might stop moving, pile up, or otherwise act unpredictably.
-
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.
-
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.
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.
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.
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]
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.
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.
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.
- How to Get Involved
- How to Contribution
- Replays for testing
- Community forks
- License
- Credits
- Changelog
- FAQ
- Known Issues
- Contact & Community
-
Visual Studio 6 Guides:
-
Visual Studio 2022 Guides:
- DirectX
- STLport
- Max4SDK
- NVASM
- Benchmark
- MilesSoundSystem
- Bink
- SafeDisk
- Asimp3
- GameSpy
- ZLib
- LZHCompress