[Tut] Setting up a private server *no errors*
This tutorial is made by me daniel131605
Server.ini configuration
Quote:
[DB]
DNS="GunzDB"
USERNAME="sa"
PASSWORD="server password here"
[SERVER]
MAXUSER=500
SERVERID=1
SERVERNAME="Your Gunz name"
FREELOGINIP=""
KEEPERIP="127.0.0.1"
MONITORIP="127.0.0.1"
MONITORPORT=9000
MODE="clan"
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"
Locator.ini configuration
Quote:
[DB]
DNS="GunzDB"
USERNAME="sa"
PASSWORD="Server password"
[NETWORK]
IP="vps/host 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"
Matchagent.xml Configuration
Quote:
<?xml version="1.0" encoding="euc-kr"?>
<XML>
<AGENTCONFIG>
<NAME>Your Gunz Name</NAME>
<MAXCLIENT>500</MAXCLIENT>
<MATCHSERVERADDRESS ip="127.0.0.1" tcpport="6000"/>
<ADDRESS ip="vps/host ip" tcpport="7777" udpport="5100"/>
</AGENTCONFIG>
</XML>
**note** you should open the server files in this order;
matchserver/clanserver.exe > locator.exe > matchagent.exe
Gunz Database set up
- Open Microsoft SQL Server Management Studio Express.
- Hit the little drop down arrow for "Server Name:" and hit "browse for more".
- Hit the little + sign on "Database Engine" and you should be able to select a server.
- Hit ok.
- Now log on, use "sa" as your user name and the password is what ever you made it when you installed microsoft SQL.
- Right click on "database" and hit "New Database".
- For "Database name:" put "GunzDB" without quotes.
- Hit "ok".
- Now open database and you will see GunzDB in there, right click on it and hit Tasks>Restore>Database.
- Check "From device" and load GunzDB.bak usually in C:/Database or C:/GunzServer/Database.
- Hit ok then ok and it should give me a success message.
- Now your database is set up.
Odbcad set up
- Hit start>run and type in odbcad32.
- Hit Add...
- Scroll down until you see "SQL Server" and select it and hit FINISH.
- For "Name:" put in GunzDB.
- For "Description:" put in anything you want.
- For "Server:" put in your server name that you selected when you logged onto microsoft SQL or you should be able to hit the little drop down arrow and select your server.
- Hit next.
- Check "With SQL Server authentication using a login ID and password entered by the user."
- For "Login ID:" put in sa.
- For "Password:" put in your database password.
- Hit next.
- Check "Change the default database to:" and change it to "GunzDB".
- Now hit next then finish.
- Hit Test Data Source... when it pops up and you should get a "tests completed successfully!" message.
- Hit ok and ok, now your done.
Making an account manually/automatically
Manually:
- Go to Database\GunzDB\Tabels in microsoft SQL
- Right click on "Account.dbo" and hit "open table"
- Fill in the information
- "UserID" is the username
- UGradeID and PGradeID are the same, 1=normal user; 2=jjang; 253=Banned user; 254=Invisible mod/normal name with powers; 255=Admin
- "RegDate" can be any time but it has to be in this format; 6/30/2010 11:44:06 AM
- "Name,Email,Regnum,Age,Sex,etc..." don't need to be filled in
- **Note** don't fill in "AID"
- Once your done filling in the information hit enter then hit the red exclamation mark next to "Change Type"
- Now hit the black X and scroll down until you find "Login.dbo"
- Right click on it and hit open table
- Fill in the same UserID
- Add a password
- For the AID make it the aid that you got once you were done making your account in "Account.dbo"
- Hit enter then the red exclamation mark
- Now close "Login.dbo" (the black X)
Automatically:
- Download "Register" and put it into your xampp,wamp, or easyphp folder
- Open the folder and open "register.php" with notepad
- Change
Quote:
$pass="password here";
so it will connect to your database - Search for "Gunz Register page:" and add your gunz name to it
- Go to the bottom of the file and find the copyright sign and change it to (C) your gunz name
**Note** i did not make this register page, i just edited it -- Credits to Wizkid!!
How to make an auto updating launcher!
- Make a new folder in your xampp,wamp, easyphp folder and name it: "gunzweb"
- Open "gunzweb" and make a new folder inside of it and name it: "GunzUpdate"
- Now put a whole copy of your gunz client into the folder
- Once done move zpatchbuilder.exe into the folder and run it, it will build your patch.xml **note** make sure your runable is named gunz.exe or the patch WILL fail! if you want it named something else you can open patch.xml and search for gunz.exe and rename it to something such as ProGunz.exe and rename gunz.exe in the folder ProGunz.exe and it will patch for ProGunz.exe and not Gunz.exe
- Now download "Launcher" and put it in your xampp,wamp,easyphp folder
- Now open "GunzLauncher.exe" in your client folder with hex workshop (right click on it and hit open with hex workshop)
- Hit ctrl+f and change type: to text string
- Now search for "Http://" and change the ip that is there to your ip
- Now search for gunzweb and change the ip adresses to yours
- Now close and save it, /gg you have an updating launcher :)
WHOOPS!
Setting up the server in Microsoft SQL
- Go to: Databases\GunzDB\Tables and open "LocatorStatus.dbo"
- Change the ip to the vps/hosts ip
- Hit the red exclamation mark then close (black X)
- Now open "ServerStatus.dbo" and change the ip to the vps/hosts ip
- Change the ServerName to your gunz name then hit the red exclamation mark
Editing your system.mrs to show the server
- Decompile your system.mrs in your client folder
- Open System.xml with notepad
- Change your locatorlist part to look like mine :)
Quote:
<LOCATORLIST>
<LOCATOR id="1" IP="vps/hosters ip" />
<LOCATOR id="2" IP="127.0.0.1" />
</LOCATORLIST>
<TLOCATORLIST>
<LOCATOR id="1" IP="vps/hosters ip" />
<LOCATOR id="2" IP="127.0.0.1" />
</TLOCATORLIST>
- now save it and right click on it and hit "properties" then Filehashes tab and copy the crc32 code
- Now open filelist.xml and scroll all the way down to the bottom until you find:
Quote:
<FILE NAME="system/system.xml" CRC32="97782238"/>
and replace the crc32 with the new one you just copied - Now save your filelist.xml and compile your system.mrs and replace it with your old one.
This is a pretty basic tut on how to set up your gunz server! very noob friendly. Thanks for taking the time to read this, i hope it helped for all of you, this will let the host be able to play too, tut made by me daniel131605 :thumbup:**note** to turn Quest+Clan on download clanserver.exe and put it in your matchserver folder and run that instead of matchserver.exe (if you followed my tut correctly it should work ^^)
Re: [Tut] Setting up a private server *no errors*
Re: [Tut] Setting up a private server *no errors*
Code:
<LOCATORLIST>
<LOCATOR id="1" IP="vps/hosters ip" />
<LOCATOR id="2" IP="vps/hosters ip" />
</LOCATORLIST>
<TLOCATORLIST>
<LOCATOR id="1" IP="vps/hosters ip" />
<LOCATOR id="2" IP="vps/hosters ip" />
</TLOCATORLIST>
All wrong actually, is right
Re: [Tut] Setting up a private server *no errors*
actually no its not >_> what i have is right
Re: [Tut] Setting up a private server *no errors*
Re: [Tut] Setting up a private server *no errors*
damn dude put them all in 1 file, not 500 fucking files, so annoying...
Re: [Tut] Setting up a private server *no errors*
Lol. Itll take forever for you to upload em'.
Re: [Tut] Setting up a private server *no errors*
good tut!!
keep-up the work :)
Re: [Tut] Setting up a private server *no errors*
please provide another link for : CLanServer.exe
as the link is not working :(
re-upload please!
Re: [Tut] Setting up a private server *no errors*
""# Check "From device" and load GunzDB.bak usually in C:/Database or C:/GunzServer/Database.
# Hit ok then ok and it should give me a success message.
# Now your database is set up.""
please helpe stuck in that problem!!
Re: [Tut] Setting up a private server *no errors*
Quote:
Originally Posted by
puneethjain
""# Check "From device" and load GunzDB.bak usually in C:/Database or C:/GunzServer/Database.
# Hit ok then ok and it should give me a success message.
# Now your database is set up.""
please helpe stuck in that problem!!
download the server files then go into mssql and right click and hit new database and name it GunzDB and hit ok then right click on it and find where the restore db is click on that then click select from device and select the database.bak after you extracted the server files to C:/ if it opens the folder but it won't show the files put the database.bak and the database.sql files in C:/ and then select it again then go to options and check replaces database which is the first check mark at the top then hit ok and it will work, next time please explain what you need help with >_>
Re: [Tut] Setting up a private server *no errors*
Dude my matchserver doesn't open up but locator and match agent does.
Re: [Tut] Setting up a private server *no errors*
Quote:
Originally Posted by
dean11
Dude my matchserver doesn't open up but locator and match agent does.
download the clanserver.exe and test that
Re: [Tut] Setting up a private server *no errors*
QQ Nice :) good for newbies
Re: [Tut] Setting up a private server *no errors*
dude...daniel i did what you said see the fucking result man!!
here's the pic
stuckk still what to do:??
Imageshack - problem1.png [ how i set it ]
Imageshack - problem2m.png [ what happens when i click ok]