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!

[Tut] How to Make your own Gunz Private server! (Basic)

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
[Tut] (fixed) How to Make your own Gunz Private server! (Basic)

Recent Updates:
- Added Dynamic IP Settings
- Added French and Spanish Translation pages
- Replaced theduel.exe (fix for no servers showing even tho all settings are correct)

I put this tutorial together because alot of similar tutorials here are either too complicated, poorly structured or just wrong. THIS TUTORIAL WAS MADE TO GET YOUR SERVER RUNNING AND PLAYABLE. NOTHING MORE!

I also translated this page into French and Spanish for the non-English users here.

Français:
Español:

DOWNLOADS
Server:
Client:

MRS Decompiler:
Microsoft SQL Server 2005:
Microsoft SQL Server Management Studio Express:

Your anti-virus may detect the launcher as a virus, so it may get deleted.


Before you do anything, you are going to need to install Microsoft SQL Server 2005 using MIXED MODE, NOT WINDOWS AUTHENTICATION, then install Microsoft SQL Server Management Studio Express. NOTE: The downloads for these two files are windows xp, and might not work with windows 7 or x64 computers.


Server Management Studio Express Setup
Setup
1) Start up Server Management Studio Express and connect using the following settings:

Code:
Server Type: Database Engine
Server Name: (If this box is empty, click the drop down arrow and choose browse for more, than expand the database engine using the + and select whatever comes up)
Authentication: Sql Server Authentication
          Username: sa
          Password: (whatever you used when installing SQl Server 2005)

2) Within the Object Explorer Panel, right click the "database" folder, then click "New Database". A New Database form will open. In the text input type "GunzDB" and click OK, your database has been created.
3) The next thing you are going to do is load the Database. Click File > Open > File... and locate "Database_GunzDB.sql" in your Gunz ServerFiles Rev 5/Database folder and open it.
4) In the toolbar there is a drop-down menu with the "master" database selected, click on the arrow and select the 'GunzDB' database and click the red ! button next to the drop-down menu to execute.

IGNORE ANY ERRORS

5) Expand the 'Database' folder if it hasn't already been done.
6) Expand "GunzDB", then expand 'Tables' and right click on 'dbo.Account' and 'Open Table'. If there are no tables, repeat step 4 until there is.
7) Enter the information below. (Enter data by clicking where it says "null" in the boxes in the table)

AID: Generated automatically at the end of account creation
UserID: Desired username used for logging in.
UGradeID: Refer to the grades below
Code:
Account Grades
Administrator - 255
Developer - 254
Banned - 253
Administrator (with normal name) - 252
Jjang - 2 (event winner)
Normal User - 0
PGradeID: Same as UGradeID
RegDate: 0
Name: Your first name.

8) Hit enter, then click Execute (the red "!" up top) and your done with account.dbo
9) Right click on 'dbo.Login' and 'Open table'.
10) Enter the AID of your account, your username and your desired password.
11) Hit enter, then click Execute (the red "!" up top) and your done with Login.dbo
12) Right click on 'dbo.ServerStatus' and 'Open table'.
13) Change the settings to this:

Code:
ServerID= 1
CurrPlayer= 0
MaxPlayer= 50
Time= 0:00:00
IP= YOURWANIP
Port= 6000
ServerName= MatchServer1
Opened= 1
Type=4

14) Hit enter, then click Execute (the red "!" up top) and proceed to locatorstatus.dbo
15) Change the settings to the ones below:

Code:
LocatorID: 1
IP: YOURWANIP
Port: 8900
RecvCount: 0
SendCount: 0
BlockCount: 0
DuplicatedCount: 0
UpdateElapsed: 1000
Last Update: 11/9/2009 12:00:00 AM

16) Hit enter, then click Execute (the red "!" up top) and your done with Microsoft SQL Server Management Studio Express.

NOTE: Everytime your finished editing a table, you need to hit Enter to save the Table, then hit Execute (the red "!" up top) so it saves to the Database.


ODBC Setup
1) Click Start> Run> and type 'odbcad32'.
Windows XP: You should already be in the User DSN tab so switch to the System DSN tab, and click "Add"
Windows Vista/7: You should already be in the User DSN tab so just click "Add"
2) In the new window, scroll all the way down to the bottom and select 'SQL Server' then click 'Finish'.
3) Another window will pop-up, enter the info below:

Code:
Name: GunzDB
Description: Type whatever you like 
Server: "Server name" that you use to login to Sql Server Management Stdio express

4) Click next
5) In the next window, change the connection type from Windows NT to SQL Server Authentication, and check "Connect to Sql Server" and enter your Login/pass. Click next.
6) Now in this next part, click on the tick box and select 'GunzDB' from the drop-down menu and click Next and finally click Finish.
7) Click "OK" again to finish.


Server Setup
1) Make this directory: "C:\GunzServer", and extract the server files into it.
2) Replace the contents of the following files with the code I have provided:
(YOURWANIP can be found at: , but if you have a dynamic ip you must use your no-ip.biz host.)

Server.ini in MatchServer folder"
Code:
[DB]
DNS="GunzDB"
USERNAME="sa"
PASSWORD="Password you use for SQL Server management express"

[SERVER]
MAXUSER=50
SERVERID=1
SERVERNAME="MatchServer1"
FREELOGINIP="WAN IP (or no-ip host)"
KEEPERIP="WAN IP (or no-ip host)"
MONITORIP="127.0.0.1"
MONITORPORT=9000
MODE="test"
COUNTRY="BRZ"
LANGUAGE="BRZ"
USETICKET="0"

[LANGUAGE]
LANG_TYPE="eng"

[LOCALE]
DBAgentPort=5100
DBAgentIP=127.0.0.1

[FILTER]
USE="0" 
ACCEPT_INVALID_IP="1"

[ENVIRONMENT]
USE_HSHIELD="0"
USE_XTRAP="0"
USE_EVENT="0"
USE_FILECRC="0"
USE_MD5="0"

AgentConfig.xml in MatchAgent folder
Code:
<?xml version="1.0" encoding="euc-kr"?>
<XML>
<AGENTCONFIG>
	<NAME>MatchServer1</NAME>
	<MAXCLIENT>200</MAXCLIENT>
	<MATCHSERVERADDRESS ip="127.0.0.1" tcpport="6000"/>
	<ADDRESS ip="YOURWANIP (or NO-IP Address if you have a dynamic IP)" tcpport="7777" udpport="5100"/>
</AGENTCONFIG>
</XML>

locator.ini in Locator folder
Code:
[DB]
DNS="GunzDB"
USERNAME="sa"
PASSWORD="Password you use for SQL Server management express"

[NETWORK]
IP="WANIP (or NO-IP Address if you have a dynamic IP)"
PORT="8900"

[ENV]
ID="1"
LOCATOR_UID_HIGH="5"
LOCATOR_UID_LOW="0"
MAX_ELAPSED_UPDATE_SERVER_STATUS_TIME="1000"
UDP_LIVE_TIME="10000000"
MAX_FREE_RECV_COUNT_PER_LIVE_TIME="9"
BLOCK_TIME="0"
UPDATE_UDP_MANAGER_ELAPSED_TIME="3"
MARGIN_OF_ERROR_MIN="500000"
USE_COUNTRY_CODE_FILTER="no" 
GMT_DIFF="-3"
ELAPSED_TIME_UPDATE_LOCATOR_LOG="3600000"
ELAPSED_TIME_UPDATE_LOCATOR_LOG="10000"
ELAPSED_TIME_UPDATE_COUNTRYCODEFILTER_LOG="10000"
UPDATE_COUNTRY_CODE="66 89 69 77 73 83 65 78 68"
TEST_SERVER="0"


Client Setup
1) Download the client provided.
2) Extract the contents to the Desktop.
3) Decompile system.mrs using the "How to Compile/Decompile .mrs files" method below.
4) Once decmpiled, Right click "system.xml" and select open with wordpad.
5) Replace the contents with this code:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<XML>
	<XMLHEADER>version="1.0" encoding="UTF-8"</XMLHEADER>

	<SKIN>Default</SKIN>

	<DEFFONT>Arial</DEFFONT>

	<IME>true</IME>

	<BAREPORT>
		<ADDR>www.battlearena.com</ADDR>
		<DIR>incoming/gunz_global</DIR>
	</BAREPORT>

	<HOMEPAGE>
	    <URL>http://www.gunzonline.com</URL>
	    <TITLE>GunZ the Dual</TITLE>
	</HOMEPAGE>
	
	<EMBLEM_URL>http://gunzonline.com/emblems/</EMBLEM_URL>
        
	<TEMBLEM_URL>http://gunzonline.com/emblems/</TEMBLEM_URL>


	<LOCATORLIST>
		<LOCATOR id="1" IP="YOURWANIP (or NO-IP Address if you have a dynamic IP)" />
		</LOCATORLIST>
	
	<TLOCATORLIST>
		<LOCATOR id="1" IP="YOURWANIP (or NO-IP Address if you have a dynamic IP)" />
		</TLOCATORLIST>
	
	</XML>

6) Save and Compile system.mrs (using the How to Compile/Decompile .mrs files guide below)
7) Open Gunz Client and Right click "config.xml" and select open with wordpad.
8) Change the top part with this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<XML>
	<SERVER>
		<IP>WANIP (or NO-IP Address if you have a dynamic IP)</IP>
		<PORT>6000</PORT>
	</SERVER>
9) Save


How to Compile/Decompile .mrs files
Download the MRS Decompiler.exe included and extract the files to C:\GunzServer\MRS

To Decompile:
1) Copy your desired .mrs file to the "C:\GunzServer\MRS" directory.
2) Run MRS Decompiler.exe and in the "decompile" box, type in "system". Your newly generated decompiled .mrs folder should appear!

To Compile:
1) Run the MRS Decompiler.exe and in the "compile" box, type in "system". Your newly generated compiled .mrs file should appear!
2) Paste the newly generated system.mrs over the existing one in the Gunz Client


Port Forwarding (ONLY IF YOU HAVE A ROUTER)
1) Click Start> Run> and type "cmd"
2) Once you are prompted with a black window, type "ipconfig"
3) Find "Default Gateway" and remember it
4) Find "IP Adress" and remember that also
5) Open your internet browser and type your Default Gateway into the url box.
6) Enter the username (default admin) and password (default admin) when prompted. If you don't know your username/password go here:
7) Find your Port Fowarding page and enter this information:

eagledude4 - [Tut] How to Make your own Gunz Private server! (Basic) - RaGEZONE Forums


8) Enter the last 3 numbers of your IP Address (from ipconfig) and enter those numbers into the IP Address boxes.
9) Check to see if your ports are open using this program:


Your done! To host your server and get it running, Open MatchServer.exe, MatchAgent.exe, and Locator.exe IN THAT ORDER

~ Credits to:
Me for fixing and restructuring MAXTRAXV3's tutorial.
MAXTRAXV3's tutorial for links and tutorial base.
Anyone else who deserves credits for the files.

STILL NOT WORKING? Make sure you have:
- Used my Server and Client files which I have provided
- Configured all Server files (Server.ini, AgentConfig.xml and Locator.ini)
- Configured all Client files (Config.xml, system.xml)
- Modified all the Server dependant tables (dbo.ServerStatus and dbo.LocatorStatus)
- Configured the ODBCAD32

- Portforwarded and checked to see if they are open using the Portforward.com Port check tool provided.



DO NOT MESSAGE ME OR ADD ME ON MSN UNTIL YOU HAVE COMPLETED THE STEPS ABOVE
 
Last edited:
Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
Re: How to Make your own Gunz Private server!

I don't get the point of this if your making a own tutorial if there is already MAX's tutorial?

Max's tutorial is sloppy. But it does have some extra info that mine doesn't include. This is just a basic tut to easily setup a server.
 
Joined
Jan 13, 2009
Messages
536
Reaction score
224
Re: How to Make your own Gunz Private server!

"Before you do anything, you are going to need to install Microsoft SQL Server 2005, then Microsoft SQL Server Management Studio Express."

IS IT Not like install Microsoft SQL Server Management Studio Express,Then install Microsoft SQL Server 2005? becuz i get a Gey butt error.anyways dotn wana go offtopic o_O

Nice its very clear,you dide a great job

gawd portforwarding is super gey on my router it have a pw T.T
 
Last edited:
Newbie Spellweaver
Joined
Aug 6, 2009
Messages
21
Reaction score
1
Re: How to Make your own Gunz Private server!

this one is easy...:eek:tt1:
nice one..
 
Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
Re: How to Make your own Gunz Private server!

"Before you do anything, you are going to need to install Microsoft SQL Server 2005, then Microsoft SQL Server Management Studio Express."

IS IT Not like install Microsoft SQL Server Management Studio Express,Then install Microsoft SQL Server 2005? becuz i get a Gey butt error.

gawd portforwarding is super gey on my router it have a pw T.T

Well then try it the other way XD

and about your portforwarding, google (routerbrand) default password. If you didn't set a password, it's probably the default.
 
Last edited:
Elite Diviner
Joined
Aug 8, 2009
Messages
465
Reaction score
33
Re: How to Make your own Gunz Private server!

"Before you do anything, you are going to need to install Microsoft SQL Server 2005, then Microsoft SQL Server Management Studio Express."

IS IT Not like install Microsoft SQL Server Management Studio Express,Then install Microsoft SQL Server 2005? becuz i get a Gey butt error.anyways dotn wana go offtopic o_O

Nice its very clear,you dide a great job

gawd portforwarding is super gey on my router it have a pw T.T

Your pass is rather admin, administrator, password or pass, if not then it's your parents made password.

-Back on topic.
--Well you added some more things to it and some unnecessary things in it too. 7/10 if you want the rate from me. Max's tutorial is more explanatory, more details and explain step by step. Your tutorial only skim ( or skan whatever you like to say it ) through of his tutorial. I don't recommend for starters.
 
2D > 3D
Loyal Member
Joined
Dec 19, 2008
Messages
2,413
Reaction score
1,193
Re: How to Make your own Gunz Private server!

Your pass is rather admin, administrator, password or pass, if not then it's your parents made password.

-Back on topic.
--Well you added some more things to it and some unnecessary things in it too. 7/10 if you want the rate from me. Max's tutorial is more explanatory, more details and explain step by step. Your tutorial only skim ( or skan whatever you like to say it ) through of his tutorial. I don't recommend for starters.

incorrect usual passwords are listed here (mine is 12345 by default)



This will not find your password, but the most likely it can be, just find your router brand and press find password
 
Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
Re: How to Make your own Gunz Private server!

you added some more things to it and some unnecessary things in it too. 7/10 if you want the rate from me. Max's tutorial is more explanatory, more details and explain step by step. Your tutorial only skim ( or skan whatever you like to say it ) through of his tutorial. I don't recommend for starters.

What..?
1: I subtracted things from max's original tutorial. Nothing here is unnecessary to get the server running.

2: Max's tutorial isn't more explanatory, mine is. He made tons of grammar mistakes making his tutorial even harder to understand. It was very unorganized and confused a lot of people.

I still accept your score of 7/10 tho. But the only thing Max's tutorial does better then mine, is include some more details that aren't really necessary.
 
Skilled Illusionist
Joined
Mar 29, 2008
Messages
343
Reaction score
11
Re: How to Make your own Gunz Private server!

Gj!
this is a nice and clean tutorial!
also nice that you added a tutorial on how to portforward.
i agree with you this one is more organized that max's tutorial.

~Deathnite
 
Elite Diviner
Joined
Aug 8, 2009
Messages
465
Reaction score
33
Re: How to Make your own Gunz Private server!

What..?
1: I subtracted things from max's original tutorial. Nothing here is unnecessary to get the server running.

2: Max's tutorial isn't more explanatory, mine is. He made tons of grammar mistakes making his tutorial even harder to understand. It was very unorganized and confused a lot of people.

I still accept your score of 7/10 tho. But the only thing Max's tutorial does better then mine, is include some more details that aren't really necessary.

No. What you said about Max's tutorial is not true.
But the only thing Max's tutorial does better then mine, is include some more details that aren't really necessary.

Well you said Max tutorial does BETTER then yours, that must be a good thing.

And all the details are more explanatory then yours.

You never gave a tutorial on how to set up a registration page did you, Am I right or am I wrong?
 
Last edited:
Newbie Spellweaver
Joined
Aug 2, 2009
Messages
66
Reaction score
1
Re: How to Make your own Gunz Private server!

No. What you said about Max's tutorial is not true.


Well you said Max tutorial does BETTER then yours, that must be a good thing.

And all the details are more explanatory then yours.

You never gave a tutorial on how to set up a registration page did you, Am I right or am I wrong?

+ Supported.
 
Newbie Spellweaver
Joined
Jun 15, 2008
Messages
13
Reaction score
0
Re: How to Make your own Gunz Private server!

there are no rapidshare links like other tuts and so i would like this better -.- rapidshare keeps saying that i am already downloading or downloaded but i haven try this out yet xP
 
Newbie Spellweaver
Joined
Aug 11, 2009
Messages
15
Reaction score
0
Re: How to Make your own Gunz Private server!

Code:
Msg 15007, Level 16, State 1, Line 2
'game' is not a valid login or you do not have permission.
Msg 1785, Level 16, State 0, Line 2
Introducing FOREIGN KEY constraint 'FK__RentCashS__CSSID__062DE679' on table 'RentCashSetShopPrice' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 2
Could not create constraint. See previous errors.
Msg 1785, Level 16, State 0, Line 2
Introducing FOREIGN KEY constraint 'FK__RentCashSh__CSID__09FE775D' on table 'RentCashShopPrice' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 2
Could not create constraint. See previous errors.

Help?
 
2D > 3D
Loyal Member
Joined
Dec 19, 2008
Messages
2,413
Reaction score
1,193
Re: How to Make your own Gunz Private server!

errors in your database
 
Junior Spellweaver
Joined
Jun 7, 2009
Messages
195
Reaction score
24
Re: How to Make your own Gunz Private server!

You never gave a tutorial on how to set up a registration page did you, Am I right or am I wrong?

You're wrong. You don't need a registration page to run a server. Which is all my Tutorial is meant to do, like I've previously stated 20 times.
 
Last edited:
Elite Diviner
Joined
Aug 8, 2009
Messages
465
Reaction score
33
Re: How to Make your own Gunz Private server!

You don't need a reg page to actually make a server. That's why I said max's tutorial is better for the extra details.

Doesn't making a Gunz Private Server lead to the point where you need a registration page.

You'd never said extra details.

You said all the other information was useless.
 
Status
Not open for further replies.
Back
Top