At the retro LAN we play Command & Conquer Generals Zero Hour, on usagi (Windows XP, Pentium 4) and on the other machines. Anyone who has played it over a network knows its two quirks: games drift apart and end with "Mismatch", or connections drop. On top of that, my installs are a mix of German and English. generals-netfix is a separate EXE for Zero Hour that fixes exactly that and leaves everything else the way it was in the original.

How I got here
EA released the source code of Generals and Zero Hour in 2025. Since then the community group TheSuperHackers has been building a heavily extended version on top of it, with lots of fixes, new features and a modern build. For me that changes too much. I wanted the original game, just without the network bugs, and it had to run on Windows XP.
So on 16 November 2026 I started from the unmodified EA code. The first thing I took from TheSuperHackers was only the part that makes it build with a current Visual Studio (CMake and the compile fixes), as individual commits with their original authors. The build uses Microsoft's official v141 toolset, which can still target Windows XP. A script then checks every imported function of the EXE against the system DLLs of XP SP3, so a missing function doesn't only show up on usagi.
Then I went through a good 150 commits from TheSuperHackers and sorted them by whether they affect network play. Every candidate got a card on my Kanboard, and I decided what goes in. By now 69 commits are ported, each on its own and pointing to the original. A good 40 of them are about multiplayer: checksums that differ between machines for no real reason, packet buffers that are too small, stutter from a miscalculated latency, crashes when someone leaves a game, a LAN lobby that hangs on long player names, and map transfers that could write to arbitrary file paths. A few fixes come from a second project, CnCGeneralsZH-Reforged.
The language problem
Map scripts can wait until a voice line has finished playing. The game takes that duration from the WAV file. But the German line is not as long as the English one. When a German machine plays against an English one, the script continues on different frames on each of them, and the game drifts apart. TheSuperHackers know about it as an issue, but it is still open.
My fix is a table with the lengths of all 6472 English sound files, compiled into the EXE. A small Python script reads the game's BIG archives and the WAV headers to build it. In multiplayer and in replays of it, the game takes the length from the table, whatever language is installed. In single player it keeps using the real file.
What else is in there
Then came the things that annoy me while playing:
- The intro videos are skipped, and ESC skips videos.
- Edge scrolling works in windowed mode too, minimizing works, and the machine doesn't go to standby during a game.
- Camera, trees and water move independently of the frame rate, and a simple overlay shows latency and FPS.
- If the game crashes, it writes a crash dump that helps track down the bug.
- Replays can be archived instead of being overwritten by the next game.
- The main menu shows a line with version and commit, so before a game you can see right away whether everyone has the same EXE.
For machines without SSE2, like a Pentium III or Athlon XP, there is a separate build variant. It uses the same x87 instructions on newer CPUs too, otherwise mixed games would drift apart again.
There is deliberately no installer, no release and no download. If you want to play, you build the EXE yourself or get it from the LAN admin, and every player needs exactly the same one. It goes into the Zero Hour folder and gets started instead of the original.
Older builds ran in skirmish on usagi, the current one starts on my main PC. The first real LAN game with a German and an English install is still to come.
GitHub | TheSuperHackers/GeneralsGameCode | EA's original source code | xpctl