Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gamelogic): mismatch dump names the map and seed, logs even with no snapshot
Olcay Seyganff13431b1e26
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cppindex 5b4e4dbbb..90a8c2a77 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp@@ -2783,8 +2783,10 @@ void GameLogic::writeMismatchDump( Int numPlayers )}fprintf( fp, "Mismatch detected on frame %d\n", m_frame );- fprintf( fp, "Local player is slot %d of %d connected players; %d CRCs were compared\n\n",+ fprintf( fp, "Local player is slot %d of %d connected players; %d CRCs were compared\n",TheNetwork ? TheNetwork->getLocalPlayerID() : 0, numPlayers, m_cachedCRCs.size() );+ // every player's dump carries the same two, which is how the reports from one match are paired up+ fprintf( fp, "Map %s, seed %d\n\n", TheGameInfo->getMap().str(), TheGameInfo->getSeed() );/* Two machines that never agreed about arithmetic produce a mismatch that looks exactly like alogic bug. This number depends on the machine's math and nothing else, so the first thing to@@ -2815,6 +2817,8 @@ void GameLogic::writeMismatchDump( Int numPlayers ){fprintf( fp, "\nNo CRC snapshot was retained for this frame.\n" );fclose( fp );+ // the launcher finds the log of this match by this line, so it is written either way+ DEBUG_LOG(( "Mismatch on frame %d (no snapshot) - wrote %s\n", m_frame, fname.str() ));return;}