[TUTORIAL] Setup WarZ Private Server!

m70b1jr#9501
Joined
May 18, 2013
Messages
852
Reaction score
328
This is a simple tutorial, with much more to come soon, since Johnny Truant removed his.
SO
First step is
- Download these following programs.
Sql 2008 with all service packs
IIS Manager (7)
DirectX SDK and just normal DirectX
WarZ Source code
Links
Visual Studio 2008 Professional Edition



Visual Studio 2008 Professional Edition SP1



Microsoft Web Platform Installer 4.5 in order to install ---> PHP for IIS



DirectX 9.0c End-User Runtime:



DirectX Software Development Kit:



So assuming you know how to compile the source, search for server_ip and change that to your IP address, compile under RELEASE for a Studio.exe and FINAL for a WarZ.exe
When installing SQL, make an instance called 'WarZ" and make sure to install using mixed mode authentication
Now, open up your SQL Database, and execute these following queries (make sure to create a database name BREEZENET and WARZ
- links to query, for WarZ sql file at the top, type
USE [WarZ] //use the same for all the logins
GO
And for breezenet
USE [Breezenet]
GO
For the rest of the sql, i recommend following this video tutorial, yes it's in Portuguese, but i don't know any Portuguese, and i managed to watch the video -


Now, for IIS Manager
Compile a file along the lines of WZ_Backend and compile it too C:/InetPub/WWWRoot/WarZ/API //for DNC or C:/InetPub/WWWRoot/API for allright source.
Now in IIS manager, convert the folder named API to a application.
Now, click on the area where is says "Default Website" make sure both port 443, and 80 and "opened"
Now, go to SQL Database Tool area (I forgot name of it xD, its the one with a redtool box)
And follow that video i linked, it tells you something about along the lines of opening the TCP ports, etc, BUT heres a quick notes
Use ports 1444 for Allright
Use Ports 1443, or none for DNC/Vusion source
Now, compile RSUpdate.Sln (Thats your launcher solution) and compile RSBuild.sln //Compiles a .exe that puts all your files into .bin files for updating, etc.
Now, make sure the IP's are changed in the RSUpfate, to yours, and compiles. Now, search for the launcher, and in that same folder should be a file along the lines of "Create Launcher.BAT" Run that, and grab the .xml file it generated, along with the new launcher it generated, and put it in your C:/InetPub/WWWRoot/wz/updater
Now, run RSBuild.exe, and copy the .bin files it generated, and move it to C:/InetPub/WWWRoot/WZ/
THIS TUTORIAL IS CLEARLY BAREBONES AND NEEDS WORK, PUT WITH UPDATES, AND I WILL ADD.
Another note, if you have a game.ini change it to your IP Address
If you get any errors, please post your R3DLog.
 
Last edited:
help, i dont have WarZ.exe or WarZTH.exe(all right source) , but u build WarZ.sln in Final where is the exe file?
 
no. Visual Studio can't build warz or WarZTH.exe because
Creating library F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.lib and object F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.exp
r3dlibf.lib(r3dRender.obj) : error LNK2001: unresolved external symbol "unsigned long __cdecl DriverUpdater(struct HWND__ *,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?DriverUpdater@@YAKPAUHWND__@@KKKKKK@Z)
F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.exe : fatal error LNK1120: 1 unresolved externals
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
Results
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5> </td><td width=0 bgcolor=#FFFFFF> </td><td width=*><pre>Build log was saved at "file://f:\WarZ\bin\src\EclipseStudio\Final\BuildLog.htm"
Eclipse Studio - 2 error(s), 0 warning(s)
 
no. Visual Studio can't build warz or WarZTH.exe because
Creating library F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.lib and object F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.exp
r3dlibf.lib(r3dRender.obj) : error LNK2001: unresolved external symbol "unsigned long __cdecl DriverUpdater(struct HWND__ *,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?DriverUpdater@@YAKPAUHWND__@@KKKKKK@Z)
F:\WarZ\bin\src\EclipseStudio\\..\..\bin\WarZ.exe : fatal error LNK1120: 1 unresolved externals
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
Results
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5> </td><td width=0 bgcolor=#FFFFFF> </td><td width=*><pre>Build log was saved at "file://f:\WarZ\bin\src\EclipseStudio\Final\BuildLog.htm"
Eclipse Studio - 2 error(s), 0 warning(s)
Never had that error before.
 
someone please create WarZ.exe (i am use All Right Source) with 25.165.170.230(my hamachi ip) because my firends can't my server ,warzTH.exe always connecting in 127.0.0.1 WO_API http_timeout (no code)



lol now i can create WarZ.exe but communication error why?
r3dlog error line:
WO_API: http timeout
| Login FAILED, code: 8
 
someone please create WarZ.exe (i am use All Right Source) with 25.165.170.230(my hamachi ip) because my firends can't my server ,warzTH.exe always connecting in 127.0.0.1 WO_API http_timeout (no code)



lol now i can create WarZ.exe but communication error why?
r3dlog error line:
WO_API: http timeout
| Login FAILED, code: 8
Your API is not properly setup.
 
--- Log started at Sun Apr 13 18:37:35 2014


000000.178| ComputerID: 0x65e5e4e23dfb
000000.179| Game Version: WarZ
000000.179| Available memory: 4051 MB
000000.212| r3dFS: version:April 6, 2014 8:30, 26930 files
000000.386| readGameOptionsFile: found INI at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\gameSettings.ini
000000.399| writeGameOptionsFile: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\gameSettings.ini
000000.469| readInputMap: found file at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\inputMap.xml
000000.489| writeInputMap: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\inputMap.xml
000000.513| userSettings: found file at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\userSettings.xml
000000.545| userSettings: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\userSettings.xml
000000.546| SOUND: initializing sound system
000000.675| SOUND: '2' sound drivers found
000000.675| SOUND: sound caps = 0xF8, speakermode= 2
000000.675| SOUND: sound driver 'Hangszórók (HP Premium Digital Headset)'
000000.723| SOUND: sound system ready
000000.723| FMOD: LoadSoundEffects: Loading from Data\Sounds\Sounds.fev
000002.445| Input Devices enabled: Mouse, Keyboard
000002.501| VMEM As seen through DDRaw: 1010
000002.501| VMEM As seen through WMI: 0
000002.501| Setting mode: 1280x1024x32 Flags=0
000002.502| Could not initialize NVApi.
000002.502|
000002.502| Adapter: AMD Radeon HD 7700 Series
000002.502| aticfx32.dll 8.17.10.1267
000002.502| Monitor: \\.\DISPLAY1 (1280x1024)
000002.506| r3dRenderLayer::SetMode(x=1280,y=1024,bpp=32,windowed=0,hz=60)
000002.528| Creating d3d device
000002.914| GPU supports D3DQUERYTYPE_TIMESTAMP
000002.914| GPU supports D3DQUERYTYPE_TIMESTAMPFREQ
000002.914| D3D hack support = NullRT: 1, hwPCF: 1, IntZ: 1, ResZ: 1
000002.915| We have 2769 MB texture memory
000003.039| r3dFont: Creating Verdana 10pt
000003.040| r3dFont: Finished creating Verdana 10pt
000003.040| Loading shaders...
000003.407| Finished loading shaders (0.366555 sec)!
000003.506| r3dFont: Creating Tahoma 12pt
000003.536| r3dFont: Finished creating Tahoma 12pt
000003.536| r3dFont: Creating Verdana 10pt
000003.536| r3dFont: Finished creating Verdana 10pt
000003.608| Creating render targets
000003.611| r3dFont: Creating Verdana 8pt
000003.666| r3dFont: Finished creating Verdana 8pt
000003.746| Loaded 12 of 12 grass settings locations from the glist file
000003.782| Loaded 12 grass settings files
000003.953| WEAPON ERROR: 100999_name trying to load non existent sound event Sounds/NewWeapons/SUP/SUP_Generic_Shot_single
000035.487| WO_API: http timeout
000035.487| Login FAILED, code: 8
000050.109| obj_Zombie::FreePhysSkeletonCache:000050.109| done in 0.00 seconds
000050.113| Deleting render targets
000050.643|
000050.645| WARNING: pd3ddev have 10 reference counts
 
--- Log started at Sun Apr 13 18:37:35 2014


000000.178| ComputerID: 0x65e5e4e23dfb
000000.179| Game Version: WarZ
000000.179| Available memory: 4051 MB
000000.212| r3dFS: version:April 6, 2014 8:30, 26930 files
000000.386| readGameOptionsFile: found INI at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\gameSettings.ini
000000.399| writeGameOptionsFile: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\gameSettings.ini
000000.469| readInputMap: found file at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\inputMap.xml
000000.489| writeInputMap: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\inputMap.xml
000000.513| userSettings: found file at C:\Users\Zeke Róbert\Documents\Arktos\WarZ\userSettings.xml
000000.545| userSettings: Saving settings to C:\Users\Zeke Róbert\Documents\Arktos\WarZ\userSettings.xml
000000.546| SOUND: initializing sound system
000000.675| SOUND: '2' sound drivers found
000000.675| SOUND: sound caps = 0xF8, speakermode= 2
000000.675| SOUND: sound driver 'Hangszórók (HP Premium Digital Headset)'
000000.723| SOUND: sound system ready
000000.723| FMOD: LoadSoundEffects: Loading from Data\Sounds\Sounds.fev
000002.445| Input Devices enabled: Mouse, Keyboard
000002.501| VMEM As seen through DDRaw: 1010
000002.501| VMEM As seen through WMI: 0
000002.501| Setting mode: 1280x1024x32 Flags=0
000002.502| Could not initialize NVApi.
000002.502|
000002.502| Adapter: AMD Radeon HD 7700 Series
000002.502| aticfx32.dll 8.17.10.1267
000002.502| Monitor: \\.\DISPLAY1 (1280x1024)
000002.506| r3dRenderLayer::SetMode(x=1280,y=1024,bpp=32,windowed=0,hz=60)
000002.528| Creating d3d device
000002.914| GPU supports D3DQUERYTYPE_TIMESTAMP
000002.914| GPU supports D3DQUERYTYPE_TIMESTAMPFREQ
000002.914| D3D hack support = NullRT: 1, hwPCF: 1, IntZ: 1, ResZ: 1
000002.915| We have 2769 MB texture memory
000003.039| r3dFont: Creating Verdana 10pt
000003.040| r3dFont: Finished creating Verdana 10pt
000003.040| Loading shaders...
000003.407| Finished loading shaders (0.366555 sec)!
000003.506| r3dFont: Creating Tahoma 12pt
000003.536| r3dFont: Finished creating Tahoma 12pt
000003.536| r3dFont: Creating Verdana 10pt
000003.536| r3dFont: Finished creating Verdana 10pt
000003.608| Creating render targets
000003.611| r3dFont: Creating Verdana 8pt
000003.666| r3dFont: Finished creating Verdana 8pt
000003.746| Loaded 12 of 12 grass settings locations from the glist file
000003.782| Loaded 12 grass settings files
000003.953| WEAPON ERROR: 100999_name trying to load non existent sound event Sounds/NewWeapons/SUP/SUP_Generic_Shot_single
000035.487| WO_API: http timeout
000035.487| Login FAILED, code: 8
000050.109| obj_Zombie::FreePhysSkeletonCache:000050.109| done in 0.00 seconds
000050.113| Deleting render targets
000050.643|
000050.645| WARNING: pd3ddev have 10 reference counts

wrong api setup or sql isnt connecting to api login 8 is missing account info
 
but i can login with default WarZTH.exe and i rebuilded WarTH because someone say i need to change IP's in main.cpp,vars.h for my friends can join my server
 
http://forum.ragezone.com/f791/studio-warz-exe-ip-change-924160/
and here is my vars.h,main.cpp,WOBackendapi.cpp





now i changed all ip, right?
 
Back