Hello & Welcome to our community. Is this your first visit? Register

Page 1 of 10 123456789 ... LastLast
Results 1 to 15 of 138
  1. #1
    Demi-God

    Rank
    True Member
    Join Date
    Jan 2009
    Posts
    508

    WarZ Server Setup Guide || By DeadZ Dev Team

    WarZ Server Setup Guide
    Hi, RaGEZONE! Many of you have been wondering how to setup the WarZ Server Files. As you may know, my team has recently released a server and it works almost 100%.
    Well, today we're going to show you how to set up a server close to what we have done. Obviously, we will be omitting some of the security details as the best security practice is done in secret.

    Pastebin link for better formatting:

    [Only registered and activated users can see links. ]
    If you are interested in a server that is running using parts of this guide, look into DeadZ. Link coming soon.

    I. Pre-Requisites.
    1) Microsoft Windows Server 2008 or later.
    2) Microsoft Windows SQL Server 2008 SP1.
    3) Microsoft Visual Studio 2008 Professional Edition with all service packs. No other versions will work.
    4) IIS Server or a webserver with ASP.NET support configured to work with PHP as well.
    5) 1GB ram recommended per 64 players. Each server will hose a server core, so the more cores on the machine the better.
    6) RedGate SQL Compare - 8.0 recommended
    7) QuickBMS

    II. Compiling the server and setting up your build environment.
    1) Open src/RSBuild.sln, src/RSUpdate.sln, src/EclipseStudio/WarZ.sln, server/src/WarZ_Server.sln, server/src/WarZ_Server.sln, server/src/Scripts/WZBackend-ASP.NET.sln
    2) Compile them all and make sure they are all compiling. Your binaries will be output to the bin folder automatically by the build system.
    a) The WZBackend-ASP.NET.sln needs to be built as a compiled application. Move the Precompiled site contents to a location on your IIS server in (root)/api/ after building it now and any other times in this guide.
    3) Tab to WZBackend-ASP.NET. Edit this file and fill in with your SQL information in "public SQLBase()".
    4) 'Build' the site and put WZBackend-ASP.NET's precompiled folder on your IIS Server.
    a) Remember to mark the IIS server application as an application so it can be executed. You can do this in control panel -> administrative tools -> IIS Management -> right click the folder in your www directory.
    5) Change the location of the API to match in each of the solutions. Go into the solution and make sure the API base location (ctrl f -> gDomainBaseUrl ) looks like figure a in all solutions.
    a)
    Code:
    const char*	gDomainBaseUrl= "/api/"; //Keep this the same.
    			int		gDomainPort   = 80; // Change this to the port of the API server.
    			bool		gDomainUseSSL = false; //Change this if your IIS server uses SSL.
    6) Open up WarZ.sln's tab, and look for this:

    Code:
    case Menu_AppSelect::bStartGamePublic:
    	
    	And make the contents of the case look like this, replacing the DNS with your own:
    
    		// override API settings
    		g_api_ip->SetString("YOURSERVERSDNSHERE.com");
    7) While still in client, look for dictionary.txt and change it to look like this:
    Code:
    if(dictionaryHash_.Size() == 0)
    	{
    		r3dFile* f = r3d_open( "Data/LangPack/dictionary.txt", "rb" );
    		if(f->IsValid())
    		{
    			char tmpStr[256];
    			while(fgets(tmpStr, 256, f) != NULL)
    			{
    				size_t len = strlen(tmpStr);
    				for(size_t i=0; i<len; ++i)
    				{
    					if(tmpStr[i]==13 || tmpStr[i]==10)
    						tmpStr[i]=0;
    				}
    				dictionaryHash_.Add(tmpStr, tmpStr);	
    			}
    			fclose(f);
    		}
    	}
    8) Build ALL the solutions except for the API, since that is already done. You are done configuring the base server compilation and the game server will work if the database is configured.

    III. Building the database.
    1) Open up RedGate SQL compare, and set it up so that the database is being compared on the left, and the scripts on the right of the window for the server\src\Scripts\sql_warz_svn folder. (PICTURE NEEDED.)
    a) You will need a database already created to sync into. Create one in Microsoft SQL Server Management named WarZ.
    2) Once compared, click the checkbox at the top and find a button that says Sync database at the top of the page. (PICTURE NEEDED)
    3) Using all the default options, hit next a bunch of times until the schema is fixed.
    4) Repeat the above for the server\src\Scripts\sql_breezenet_svn folder using a database named BreezeNet instead.
    5) Done.
    IV. Configuring the client for connection.
    1) Go into the build folder, and edit the build/RSBuild.xml file. Remove or comment the 'base' element in the directory.
    a) You NEED to do this or RSBuild.exe will crash in the next step.
    2) Obtain a copy of Retail WarZ and use this quickBMS script to dump the shaders:

    Code:
    # War Inc. Battle Zone (script 0.1.1)
    		# script for QuickBMS http://quickbms.aluigi.org
    
    		getdstring SIGN 4
    		if SIGN != "arfl"
    			print "you must open only the first file, WO_00.bin"
    			cleanexit
    		endif
    
    		get VER long
    		get DUMMY long
    		get FILES long
    		get SIZE long
    		get DUMMY long
    		savepos OFFSET
    		comtype unzip_dynamic
    		clog MEMORY_FILE OFFSET SIZE SIZE
    		comtype zlib
    
    		get PACK_EXT extension
    		get PACK_BASENAME basename
    		string PACK_BASENAME >>= "_"
    
    		math LAST_PACK = -1
    		for i = 0 < FILES
    			getdstring NAME 260 MEMORY_FILE
    			get TYPE byte MEMORY_FILE
    			get PACK byte MEMORY_FILE
    			get OFFSET long MEMORY_FILE
    			get SIZE long MEMORY_FILE
    			get ZSIZE long MEMORY_FILE
    			get CRC long MEMORY_FILE
    			getdstring DUMMY 0x12 MEMORY_FILE
    			math PACK += 1
    
    			if PACK != LAST_PACK
    				string PACK_NAME p= "%s_%02d.%s" PACK_BASENAME PACK PACK_EXT
    				open FDSE PACK_NAME 1
    				math LAST_PACK = PACK
    			endif
    			math OFFSET += 4    # arfd
    
    			if TYPE == 2
    				clog NAME OFFSET ZSIZE SIZE 1
    			elif TYPE == 1
    				log NAME OFFSET SIZE 1
    			else
    				print "unknown TYPE %TYPE%, contact me"
    				cleanexit
    			endif
    		next i
    4) Move the folder Data/Shaders/Cache into your own Data/Shaders/Cache. (MAYBE PROVIDE LINK HERE)
    a) Optionally generate them using studio.
    5) 2) Run bin/RSBuild.exe. This step takes at least 5-10 minutes on an SSD, so be warned!
    6) Move the built contents of RSBuild in bin/build/data (.bin/xml file) to your webserver under the directory "wz".
    7) Run the batch file bin/build/updater/CreateUpdater.bat and generate a launcher. Copy that launcher and woupd.xml to /wz/updater on the webserver.
    8) Run the launcher and create an account.
    a) Follow this guide to remove the need for serials: [Only registered and activated users can see links. ]
    9) Copy the bin folder to your server.
    10) Edit game.ini and make it look similar to this:
    Code:
    d_walk_speed_scale	5
    		d_sun_rotate 		0
    		r_near_plane 		0.5
    		r_far_plane 		64000
    		r_cloud_lod_start 	9000
    		r_cloud_lod_end 	15000
    		g_serverip 		YOURAPIDNSHERE.net
    		g_api_ip		YOURAPIDNSHERE.net
    11) Edit MasterServer.cfg and make it look like this. Change numGames to the number of servers you want to launch.
    Code:
    [MasterServer]
    		masterPort = 34000
    		clientPort = 34001
    		masterCCU = 3000
    		serverId = 1
    
    		[WarZGames]
    		numGames = 1
    		maxPlayers = 64
    12) Edit SupervisorServer.cfg and make it look like this.
    Code:
    	[SupervisorServer]
    		masterPort=34000
    		masterIp=IP OF MASTERSERVER
    		serverGroup=1
    		serverName=WarZGames
    		maxPlayers=1024
    		maxGames=32
    		portStart=34010
    		gameServerExe=WZ_GameServer.exe
    		externalIp=IP OF THIS SERVER
    		uploadLogs=0
    13) Run MasterServer.exe and SupervisorServer.exe. Then, log in using the client.

    You should be able to login and get ingame. Congrats, isn't that easy?

    **MODS PLEASE ADD MISSING INFORMATION. THIS GUIDE IS BAREBONES**





    Since it's been asked a few times;

    You do NOT need my permission to repost this guide, or any other guide by myself on other forums, as long as you do not claim it as your own work. This means you can post it without crediting myself or the link on these forums, but you can not claim that my guide is your own guide.

    Last edited by SecretsOThePast; 21-04-13 at 10:50 AM.
    Bow down before the one you serve; you're going to get what you deserve.

  2. # ADS
    HyperFilter
    RaGEZONE Sponsor

    Rank
      Sponsor  
    Join Date
    Sep 2013
    Posts
    9000


     

  3. #2
    Member

    Rank
    Member
    Join Date
    Apr 2013
    Posts
    34

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    well done.

  4. #3
    Supreme Cook MentaL's Avatar

    Rank
    Leader
    Join Date
    Dec 2000
    Location
    Cardiff City!
    Posts
    31,605

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Most excellent. If users can confirm it works for them i'll upgrade you with a year subscription!

  5. #4
    Member 8Bit's Avatar

    Rank
    Member
    Join Date
    Mar 2013
    Posts
    55

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Oh man, quite a tutorial this is. Thanks - I shall be using it!

  6. #5
    Demi-God

    Rank
    True Member
    Join Date
    Jan 2009
    Posts
    508

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Quote Originally Posted by MentaL View Post
    Most excellent. If users can confirm it works for them i'll upgrade you with a year subscription!
    If anyone has issues setting up their server, please let me know, and I will update the guide.
    Bow down before the one you serve; you're going to get what you deserve.

  7. #6
    Member

    Rank
    Member
    Join Date
    Apr 2013
    Posts
    34

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Now the only thing we need is an Anti Hack to start some nice Private Servers :P

  8. #7
    Member 8Bit's Avatar

    Rank
    Member
    Join Date
    Mar 2013
    Posts
    55

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Haha, 60 viewing atm. Nice start, not surprised tbh. Getting this copied down with files while they last.

  9. #8
    Assembly Required Crum's Avatar

    Rank
    True Member
    Join Date
    Mar 2007
    Location
    Blytheville, AR
    Posts
    262

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    I can confirm this is 100% working also with the RSBuild and Updater tut thanks guys! Hopefully we can get the loot spawns to work next.

    [SIGPIC][/SIGPIC]

  10. #9
    Member

    Rank
    Member
    Join Date
    Jun 2012
    Location
    Hell
    Posts
    72

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    DeadZ for life! Our server will be released soon, be ready for us guys!

    Divine

  11. #10
    Hardcore Member

    Rank
    Member
    Join Date
    Apr 2013
    Location
    United states
    Posts
    126

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Quote Originally Posted by SecretsOThePast View Post
    If anyone has issues setting up their server, please let me know, and I will update the guide.
    Thanks so much for the tutorial im not trying to be ungrateful or anything i was just wondering if you could possibly do a video tutorial

  12. #11
    Member

    Rank
    Member
    Join Date
    Mar 2013
    Posts
    30

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    you can make a video tutorial? i have some questions..

    i can run the server on windows 7 64bit? or no?
    Last edited by allysonflb; 13-04-13 at 11:20 PM.

  13. #12
    Registered

    Rank
    Member
    Join Date
    Jan 2006
    Posts
    13

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    wow very nice dude, will download when i get the chance and use this ^_^ thanks dude

  14. #13
    Registered

    Rank
    Member
    Join Date
    Apr 2013
    Posts
    14

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    could i use dropbox to host the files temp? sorry noob

  15. #14
    Assembly Required Crum's Avatar

    Rank
    True Member
    Join Date
    Mar 2007
    Location
    Blytheville, AR
    Posts
    262

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Quote Originally Posted by Jack Waters View Post
    could i use dropbox to host the files temp? sorry noob
    Theres no claim to these server files, host them where you will at your own risk. Also please don't forget to give credit where credit is due!

    Sorry we have no say so where you host them or post them*****

    [SIGPIC][/SIGPIC]

  16. #15
    Registered

    Rank
    Member
    Join Date
    Apr 2013
    Posts
    14

    Re: WarZ Server Setup Guide || By DeadZ Dev Team

    Quote Originally Posted by Crum View Post
    Theres no claim to these server files, host them where you will at your own risk. Also please don't forget to give credit where credit is due!

    Sorry we have no say so where you host them or post them*****
    i was simply asking if it was possible and don't worry i will give credit to the people its due to.
    thanks.

 

 
Page 1 of 10 123456789 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HyperFilter
Sponsored by HyperFilter , secured by Incapsula , powered by LiteSpeed.
Mods by DBTech. All times are GMT +1. The time now is 09:17 PM.
Powered by vBulletin® Copyright , Jelsoft Enterprises Ltd.