Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[GUIDE] How to build Gunz source code

Status
Not open for further replies.
Experienced Elementalist
Joined
Mar 16, 2006
Messages
238
Reaction score
112
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: http://forum.ragezone.com/f245/gunz-1-5-summer-2011-a-796257/

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:
Code:
MANIFEST_RESOURCE_ID    RT_MANIFEST             "Runtime/Gunz.exe.manifest"

Replace it with:
Code:
// 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.
 
Last edited:
Banned
Banned
Joined
Apr 7, 2009
Messages
333
Reaction score
19
srmNT - [GUIDE] How to build Gunz source code - RaGEZONE Forums


wt?!
 

Attachments

You must be registered for see attachments list
Retired. Don't PM.
Developer
Joined
Jan 5, 2009
Messages
593
Reaction score
741

You're trying to debug a DLL. I don't know if I can help you, but:

Build it as a lib, and point the lib to your lib path within GunZ. Make sure you are compiling in 'debug configuration' for both of them since your cryptopp lib seems to be a debug version.

Alternatively, for lesser exe size, remove cryptopp as most of you won't be using mef anyways.
 

Attachments

You must be registered for see attachments list
Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
Thanks But if i have WINDOWS 7 Pro?
 
Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239

This may be useful :)


1>c:\program files\microsoft sdks\windows\v7.0a\include\afxwin.h(63): fatal error C1083: Cannot open include file: 'CPoint.h': No such file or directory
 
Joined
Feb 4, 2010
Messages
2,204
Reaction score
1,012

This may be useful :)


1>c:\program files\microsoft sdks\windows\v7.0a\include\afxwin.h(63): fatal error C1083: Cannot open include file: 'CPoint.h': No such file or directory


That's really not useful at all... you should have afxwin.h if you've ever installed any microsoft extra packs. afxwin is I believe either part of MFC or internet explorer. Not to be an butt but can you change your title and signature, it annoys me every time you post.
 
Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
That's really not useful at all... you should have afxwin.h if you've ever installed any microsoft extra packs. afxwin is I believe either part of MFC or internet explorer. Not to be an butt but can you change your title and signature, it annoys me every time you post.

i already have afxwin.h but i don't have what he include:
Code:
#include <ofcglobals.h>
#include <CPoint.h>
#include <CSize.h>
#include <CRect.h>
#include <CString.h>
#include <CString_inline.h>
#include <CObject.h>
#include <CException.h>
#include <CFile.h>
#include <CArchive.h>
#include <CArchive_inline.h>
#include <CObjFromHandle.h>
#include <CGdiObject.h>
#include <CGdiObject_inline.h>
#include <CCmdUI.h>
#include <CCmdTarget.h>
#include <CCmdTarget_inline.h>
#include <CWnd.h>
#include <CWnd_inline.h>
#include <CDocument.h>
#include <CDocument_inline.h>
#include <CDocTemplate.h>
#include <CDocTemplate_inline.h>
#include <CView.h>
#include <CView_inline.h>
#include <CFrameWnd.h>
#include <CFrameWnd_inline.h>
 
Retired. Don't PM.
Developer
Joined
Jan 5, 2009
Messages
593
Reaction score
741
i already have afxwin.h but i don't have what he include:
Code:
#include <ofcglobals.h>
#include <CPoint.h>
#include <CSize.h>
#include <CRect.h>
#include <CString.h>
#include <CString_inline.h>
#include <CObject.h>
#include <CException.h>
#include <CFile.h>
#include <CArchive.h>
#include <CArchive_inline.h>
#include <CObjFromHandle.h>
#include <CGdiObject.h>
#include <CGdiObject_inline.h>
#include <CCmdUI.h>
#include <CCmdTarget.h>
#include <CCmdTarget_inline.h>
#include <CWnd.h>
#include <CWnd_inline.h>
#include <CDocument.h>
#include <CDocument_inline.h>
#include <CDocTemplate.h>
#include <CDocTemplate_inline.h>
#include <CView.h>
#include <CView_inline.h>
#include <CFrameWnd.h>
#include <CFrameWnd_inline.h>

Those are all part of afxwin, don't use trial versions of VS2003 to compile it. There's plenty of ways to get the full thing anyways...
 
Newbie Spellweaver
Joined
Jul 27, 2005
Messages
93
Reaction score
1
compiled the game.. Gunz.exe size is 13MB is it normall? O_O
 
Experienced Elementalist
Joined
Mar 16, 2006
Messages
238
Reaction score
112
compiled the game.. Gunz.exe size is 13MB is it normall? O_O

If you compiled it in Debug mode, it will be bigger than in Release mode.

But the size is ok, you can compress it.
 
Mythic Archon
Joined
Sep 27, 2008
Messages
701
Reaction score
22
the gunz.exe not opening mrs files in release mode

crashes at memcpy( pBuffer, (m_pData + m_nPos), nMaxSize);
in MZfilesystem.cpp

wat am i doin wrong?
 
Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
Prerequisites:
- Microsoft Windows XP SP3 Professional
- Microsoft Visual Studio 2003 including Visual C++
1.I have windows 7, do i have Windows XP SP3?
2.From where i get Visual Studio 2003 including if i have windows 7 :?:
 
Status
Not open for further replies.
Back
Top