Menu

Algorithm Details Patch Adjusting

BGKame22

Verification Of Replay Version

Warcraft III Replays contain two values which give a hint on the patch version the recorded game was played on. One value corresponds to the minor patch number (i.e. 26 for the current patch) and the other one to the replay build number (i.e. 52240 for the current patch). With those two values we can determine exactly which game version is needed. But there is of course an exception: Patch 1.24! In thise case both numbers are equal for all sub patches, even Warcraft III itself can not distinguish between those.
- - -

Patching Procedure

If the required patch version and the currently installed Warcraft 3 Patch version do not fit, RK starts patching. Therefore, it searches for an appropriate patch in the ReplayKitPatch.mpq. When this search succeeds, the patch is applied.


ReplayKitPatch.mpq

In this mpq are several patches stored.

  • ROC 1.00
  • ROC 1.01b
  • ROC 1.02a
  • ROC 1.03
  • ROC 1.04a
  • ROC 1.05
  • ROC 1.06
  • TFT 1.07
  • TFT 1.10
  • TFT 1.11
  • TFT 1.12
  • TFT 1.13
  • TFT 1.14
  • TFT 1.14b
  • TFT 1.15
  • TFT 1.16
  • TFT 1.17
  • TFT 1.18
  • TFT 1.19
  • TFT 1.20c
  • TFT 1.20e
  • TFT 1.21b
  • TFT 1.22a
  • TFT 1.23a
  • TFT 1.24b
  • TFT 1.24c
  • TFT 1.25a
  • TFT 1.26a
  • TFT 1.27a

Most likely only war3.exe, game.dll, storm.dll, war3patch.mpq and all the maps differ between two versions, plus some irrelevant files, which do not effect viewing replays. All of these files are stored in the MPQ together with a recipe for every patch. The recipe is needed to recook the patches later on.
In order to reduce the data set a sophisticated way of compression is used which decreases the size of the archive significantly! All files are put together in a large pool. This way, duplicates can be omitted efficiently.


ReplayKitBackup.mpq

The Backup MPQ contains all files which could get destroyed by RK. With these files and a recovery recipe it is always possible to recover your original game files at any time. This backup is created automatically.


Related

Wiki: Home
Wiki: Procedure Details

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.