Fixing your patch to work with 3.09|
With the release of Quake2 version 3.09, all the Quake2 modifications previously released, can no longer be used, and must be fixed. If you have the source code for the patch you want to fix, there is an extremely easy way to make your mod 1.09 compatible, else, another method can be used.
Fixing the pacth with the source code:
To fix the patch, open up the file "game.h". The first lines should contain:
// game.h -- game dll information visible to server
Replace the third line, to say:
#define GAME_API_VERSION 1
#define GAME_API_VERSION 2
Compile, and that's it! Your patch is now compatible with the new Quake2 update.
Fixing the pacth without the source code:
note:Thanks to Justin Randall who sent this information.
If you have just downloaded a patch, and the author has not been able to fix it yet, there is also a simple modification, which will make it work with the new Quake2.
Copy your old Quake2.exe and gamex86.dll files to a backup directory (incase things don't go well). Apply your 3.09 patch. Use a hex editor (such as hedit32) to find an int and a short:
01 00 00 00 C7 05
If this is the only occurrence of these bytes in the file, then this is where the GAME_API_VERSION definition is allocated (and pointed to by globals.apiversion in g_main.h). Change the 01 to 02, and save. There you go! That's it.