Pages

Build Gunz Source Code

[GUIDE] How to build Gunz source code
Hello,

As Gunz source code got recently released by Dawson, I am making a simple guide that explains how to build the Gunz solution.

Prerequisites:
- Microsoft Windows XP SP3 Professional
- Microsoft Visual Studio 2003 including Visual C++

Procedure:
1- Download Gunz source code from Dawson's post here:

2- Create a folder called Gunz

3- Inside that folder extract the Gunz source code package from Dawson. So you will have a Gunz/Stable folder

4- Create a folder called sdk inside Gunz folder.

5- Create a folder called crypto inside the sdk folder you created.
You will have this file structure:
./Gunz/Stable
./Gunz/sdk/crypto

6- Download Crypto++ 5.2.3 Win32 from here

7- Extract crypto++ into a folder called Cryptopp (outside Gunz folder)

8- Copy the contents of the Cryptopp/Include folder inside the following folders:
Cryptopp/Source
Gunz/sdk/crypto

9- Open the Cryptopp project located at Cryptopp/Source/cryptlib.vcproj

10- Build that project both in Debug and Release profiles

11- Rename Cryptopp/Source/Debug/cryptlib.lib to cryptlib2003d.lib

12- Rename Cryptopp/Source/Release/cryptlib.lib to cryptlib2003.lib

13- Copy cryptlib2003d.lib and cryptopp.lib to the following directories:
Gunz/Stable/cml/lib
Gunz/Stable/Gunz/LIB

NOTE: You may need to copy this .lib files into some other folders if you want to build MatchServer, Locator or some other solutions.

14- Open Gunz solution located at Gunz/Stable/Gunz/Gunz.sln

15- In the Gunz project, open the file Gunz/Game/ZGlobal.cpp
Replace the line: #include "SVNRevision/SVNRevision.cpp"
With: //#include "SVNRevision/SVNRevision.cpp"

Replace the line: return GlobalGetSVNRevision();
With: return 0;

16- Edit the file located at Gunz/Stable/Gunz/Gunz.rc
Find:
MANIFEST_RESOURCE_ID    RT_MANIFEST             "Runtime/Gunz.exe.manifest"

Replace it with:
// MANIFEST_RESOURCE_ID    RT_MANIFEST             "Runtime/Gunz.exe.manifest"
Save that file.

17- Now you should be able to Build Gunz in Debug or Release modes. The compiled files are saved at Gunz/Stable/Gunz/runtime folder.

If you have any trouble building Gunz, I won't give any further support, you should be able to solve it by yourself.
If you can't solve it, then it's useless for you to use Gunz source code.

DISCLAMER
THIS THREAD IS JUST FOR EDUCATIONAL PURPOSES.
YOU MUST NOT USE GUNZ SOURCE CODE OR ANY OTHER INTELLECTUAL PROPERTY FROM MAIET WITHOUT THEIR AUTHORIZATION.

emisand
Ragezone