@
DNC
I wanted to write down all that i have done so far and if you see any change that should not have been done and might mess something up. Please point out. I will continue to write down step by step what i'm doing in a tutorial way so if its in fact valid then someone can find some help.
STEP BY STEP Instructions
Preparing files and directories
1. Create folder C:\WZ
2. Extract bin folder from RZCE.rar WZ\
3. Extract src.rar to WZ\src\
4. Extract External.rar to WZ\src\
5. Extract WarZ_SQL.rar to WZ\
Creating user and database. Adding rights and importing tables.
1. Open SQL Server Management Studio
2. Login with user sa
3. Create a new user called wz_api_user under Security -> Logins with password 123456
4. Create a new database called WarZ selecting Owner wz_api_user.
5. Change Recovery model to Full at Options and hit "OK"
6. Select database WarZ and "New Query"
7. Select all from WZ\WarZ.sql opened in notepad and paste to the query and hit execute.
8. Close SQL Server Management Studio.
Note:
You don't have to save the query when asked on closing the SQL Server Management Studio.
Changing IP addresses.
1. WZ\src\EclipseStudio\Sources\Main.cpp
replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
2. WZ\src\RSUpdate\Launcher.cfg
replace all records of localhost with xxx.xxx.xxx.xxx
3. WZ\src\RSUpdate\LauncherConfig.cpp
replace all records of localhost and 127.0.0.1 with xxx.xxx.xxx.xxx
4. WZ\src\server\SupervisorServer.cfg
replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
5. WZ\src\server\WO_GameServer\Sources\ServerMain.cpp
change 127.0.0.1 to xxx.xxx.xxx.xxx
6. WZ\bin\SupervisorServer.cfg
replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
Note:
xxx.xxx.xxx.xxx -> to be replaced with actual IP address.
Building
1. Open WZ\src\RSBuild\RSBuild.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded" and close the program.
2. Open WZ\src\RSUpdate\RSUpdate.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded" and close the program.
3. Open WZ\src\server\WarZ_Server.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded" and close the program.
4. Open WZ\src\eclipsestudio\WarZ.sln
Select "
Final" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded"
Select "Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded" and close the program.
5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Build Solution
Wait until "
Build succeeded"
Select from menu
Build ->
Publish Web Site
Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
Press „
OK“ to execute.
Wait until „
Publish succeeded" and close the program.
Creating bin files and „Copy“ files needed
1. Open WZ\bin\RSBuild.exe and wait until the exe closes.
It might take up to 30 minutes. Depending on the hardware and disk type.
2. Open WZ\bin\build\updater\CreateUpdater.bat
This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
3. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin
4. Copy WZ\bin\build\data\wz.xml to WZ\bin\build
5. Edit WZ\bin\build\rsbuild.xml with notepad
1. change 127.0.0.1 to xxx.xxx.xxx.xxx
2. Save the file
Running server
1. Open WZ\bin\MasterServer.exe
2. Open WZ\bin\SupervisorServer.exe
Testing
1. Copy the WarZlauncher.exe_1.0.0.exe to another computer to a folder and run it.
2. Register account and wait until the updater downloads all the files.
3. Close the updater.
4. Copy WZ\bin\HackShield to the game folder.
Note:
For some reason not all files will be downloaded atomatically.
HackShield otherwize will wine that its missing from the computer.
5. Open WarZlauncher.exe_1.0.0.exe and log in.
6. Start by pressing Play.
7. Create a player and join the server to test if everything is working.
Note:
Loot not showing up. No loot to be found anywhere.
Zombies not giving money when "re-killed" not sure what to say cause zombies are already dead.
UPDATE1
Note:
Before updating close MasterServer.exe and SupervisorServer.exe if they are running.
Also close all other open files that might require replacing by the updating.
Preparing files and directories
1. Extract src folder inside src_Update1.rar to C:\WZ replacing all the files and folders in WZ\src
Building
1. Open WZ\src\RSBuild\RSBuild.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
2. Open WZ\src\RSUpdate\RSUpdate.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
3. Open WZ\src\server\WarZ_Server.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
4. Open WZ\src\eclipsestudio\WarZ.sln
Select "
Final" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded"
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded"
Select from menu
Build ->
Publish Web Site
Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
Press „
OK“ to execute.
Note:
Application will ask your permission to delete the existing files in the api directory. Agree to it by selecting „
Yes“
Wait until „
Publish succeeded" and close the program.
Recreating .bin files
1. Delete all .bin files in directory WZ\bin\build\data
2. Open WZ\bin\RSBuild.exe and wait until the exe closes.
It might take up to 30 minutes. Depending on the hardware and disk type.
3. Open folder WZ\bin\build\updater\ and delete the file WarZlauncher.exe_1.0.0.exe
4. Open folder WZ\bin and delete the file WarZlauncher.exe_1.0.0.exe
5. Open WZ\bin\build\updater\CreateUpdater.bat
This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
6. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin replacing the old one
7. Copy WZ\bin\build\data\wz.xml to WZ\bin\build replacing the old one
Note:
Not sure it is required to do for Update1 but i think if you have time then it will not hurt.
Running server
1. Open WZ\bin\MasterServer.exe
2. Open WZ\bin\SupervisorServer.exe
Testing
1. Copy the new WarZlauncher.exe_1.0.0.exe to another computer to a
new folder and run it.
2. Login with your account and wait until the updater downloads all the files.
3. Close the updater.
4. Copy WZ\bin\HackShield to the game folder.
Note:
For some reason not all files will be downloaded atomatically.
HackShield otherwize will wine that its missing from the computer.
5. Open WarZlauncher.exe_1.0.0.exe and log in.
6. Start by pressing Play.
7. Test if everything is working.
NOTE:
Loot not showing up. No loot to be found anywhere.
UPDATE2
Note:
Before updating close MasterServer.exe and SupervisorServer.exe if they are running.
Also close all other open files that might require replacing by the updating.
Preparing files and directories
1. Extract src folder inside src_Update2.rar to „
Desktop“
2. Select properties on the extracted folder and uncheck Read-only and apply.
3. Copy the folder src from Desktop to WZ\ replacing all files and folders inside
4. Extract WarZ.sql from WarZ_SQL_Update2.rar to WZ\ replacing the old WarZ.sql file
Changing IP addresses.
1. WZ\src\EclipseStudio\Sources\Main.cpp
replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
Note:
xxx.xxx.xxx.xxx -> to be replaced with actual IP address.
Recreating database. Adding rights and importing tables.
1. Open SQL Server Management Studio
2. Login with user sa
3. Select database named WarZ and delete it.
4. Create a new database called WarZ selecting Owner wz_api_user
5. Change Recovery model to Full at Options and hit "OK"
6. Select database WarZ and "New Query"
7. Select all from WZ\WarZ.sql opened in notepad and paste to the query and hit execute.
Note:
You will see some error messages like „Cannot drop the table 'dbo.********', because it does not exist or you do not have permission.“ This is ok as the query is trying to drop the existing tables before creating them but as we just deleted everything then there is nothing to drop.
8. Close SQL Server Management Studio.
Note:
You don't have to save the query when asked on closing the SQL Server Management Studio.
Building
1. Open WZ\src\RSBuild\RSBuild.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
2. Open WZ\src\RSUpdate\RSUpdate.sln
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
3. Open WZ\src\server\WarZ_Server.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
4. Open WZ\src\eclipsestudio\WarZ.sln
Select "
Final" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded"
Select "
Release" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded" and close the program.
5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
Select "
Debug" Wait until Updating IntelliSense is done and select from menu
Build ->
Rebuild Solution
Wait until "
Rebuild All succeeded"
Select from menu
Build ->
Publish Web Site
Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
Press „
OK“ to execute.
Note:
Application will ask your permission to delete the existing files in the api directory. Agree to it by selecting „
Yes“
Wait until „
Publish succeeded" and close the program.
Recreating .bin files
1. Delete all .bin files in directory WZ\bin\build\data
2. Open WZ\bin\RSBuild.exe and wait until the exe closes.
It might take up to 30 minutes. Depending on the hardware and disk type.
3. Open folder WZ\bin\build\updater\ and delete the file WarZlauncher.exe_1.0.0.exe
4. Open folder WZ\bin and delete the file WarZlauncher.exe_1.0.0.exe
5. Open WZ\bin\build\updater\CreateUpdater.bat
This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
6. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin replacing the old one
7. Copy WZ\bin\build\data\wz.xml to WZ\bin\build replacing the old one
Running server
3. Open WZ\bin\MasterServer.exe
4. Open WZ\bin\SupervisorServer.exe
Testing
8. Copy the new WarZlauncher.exe_1.0.0.exe to another computer to a
new folder and run it.
9. Register account and wait until the updater downloads all the files.
10. Close the updater.
11. Copy WZ\bin\HackShield to the game folder.
Note:
For some reason not all files will be downloaded atomatically.
HackShield otherwize will wine that its missing from the computer.
12. Open WarZlauncher.exe_1.0.0.exe and log in.
13. Start by pressing Play.
14. Create a player and join the server to test if everything is working.
Note:
With this setup. there is no loot in the game!!!