Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.31 KB | None | 0 0
  1. Important
  2. Before you start you have to check if you have all the prerequisites necessary to set up a game server. This instruction begins after a clean installation of Windows Server 2008 R2 with all Windows Updates done, required drivers installed depending on your computer’s hardware and computer name is set to „WarZ“.
  3.  
  4. Main requirements:
  5. 1. Ability to read and follow instructions.
  6. 2. Not using a router.
  7. 3. Windows server 2008 R2
  8.  
  9. Note:
  10. The game can be set up on another operating system but this tutorial show's the way its done on Windows server 2008 R2.
  11.  
  12. Required installation packages.
  13. 1. Microsoft Visual Studio 2008 Professional Edition
  14. 2. Microsoft Visual Studio 2008 Professional Edition Service Pack 1
  15. 3. Microsoft SQL Server 2008 R2 RTM - Express with Management Tools ( 32 bit ) or ( 64 bit )
  16. 4. DirectX 9.0c End-User Runtime
  17. 5. DirectX Software Development Kit
  18. 6. Microsoft Web Platform Installer 5.0
  19. 7. WinRAR 5.10 ( 32 bit ) or ( 64 bit )
  20.  
  21. Required source files
  22. 1. RZCE.rar
  23. 2. src.rar
  24. 3. External.rar
  25. 4. WarZ_SQL.rar
  26. 5. Update1 -> src_Update1.rar
  27. 6. Update2 -> src_Update2.rar
  28. 7. WarZ_SQL_Update2.rar
  29.  
  30. Source files can be found here: ( Updated: 28.07.2014 )
  31. https://mega.co.nz/#F!3RMm2aCY!8_cRAsHRd5Uj4k4KegMGHg
  32.  
  33. Server prerequisites Installation
  34.  
  35. Disable User Account Control (UAC)
  36. 1. Open Start -> Run
  37. 2. Type msconfig and click OK
  38. 3. Select Tools tab. Select Change UAC Settings and press Launch
  39. 4. Change settings to never notify and click OK
  40. 5. You may close the System Configuration window by clicking OK
  41. 6. Restart the computer for the setting to apply.
  42.  
  43. Disable windows Firewall
  44. 1. Open Start -> Run
  45. 2. Type Netsh advfirewall set all state off and click OK
  46.  
  47. Disable Internet Explorer Enhanced Security
  48. 1. Open Server Manager
  49. 2. On the main page. Select Configure IE ESC
  50. 3. Change both settings to Off and click OK
  51.  
  52. Internet Information Service IIS 7
  53. 1. Open Server Manager and navigate to Roles
  54. 2. Click Add Roles
  55. 3. Skip the first page by clicking Next
  56. 4. Select Web Server (IIS) and Application Server.
  57. In the popup window click Add Required Features
  58. This will add .NET Framework 3.5.1
  59. 5. Click Next 4 times.
  60. 6. In the Select Role Services you have to select only the following services:
  61. WEB Server -> Common HTTP Features
  62. - Static Content
  63. - Default Document
  64. - Directory Browsing
  65. - HTTP Errors
  66. WEB Server -> Application Development
  67. - ASP .NET
  68. - .NET Extensibility
  69. - ASP
  70. - CGI
  71. - ISAPI Extensions
  72. - ISAPI Filters
  73. WEB Server -> Health and Diagnostics
  74. - HTTP Logging
  75. - Logging Tools
  76. - Request Monitor
  77. - Custom Logging
  78. WEB Server -> Security
  79. - Request Filtering
  80. - IP and Domain Restrictions
  81. WEB Server -> Performance
  82. - Static Content Compression
  83. - Dynamic Content Compression
  84. Management Tools
  85. - IIS Management Console
  86. 7. Click Next
  87. 8. Click Install
  88. 9. Wait until the installation process is done and click Close
  89. 10. Restart the computer
  90.  
  91. Web Platform Installer
  92. 1. Open wpilauncher.exe
  93. 2. Install the application.
  94. 3. After the installation finishes the Web Platform Installer will stay open.
  95. 4. In the search box type php and on the keyboard press Enter
  96. 5. From the search results select PHP 5.3.28 and click Add
  97. 6. The Web Platform Installer will add 2 extra items to install list
  98. 1. PHP Manager for IIS
  99. 2. Microsoft Drivers 3.0 for PHP v5.3 for SQL Server in IIS
  100. 7. Click Install
  101. 8. Accept by clicking I Accept. The installation process begins.
  102. 9. Click Finish. Now you can close the Web Platform Installer.
  103. 10. Restart the computer
  104.  
  105. WinRAR 5.10
  106. 1. Open wrar510.exe or winrar-x64-510.exe depending on your operating system.
  107. 2. Install the application.
  108.  
  109. DirectX 9.0c End-User Runtime
  110. 1. Open dxwebsetup.exe and install it.
  111.  
  112. DirectX Software Development Kit
  113. 1. Open DXSDK_Jun10.exe and install it.
  114.  
  115. Microsoft SQL Server 2008 R2 RTM - Express with Management Tools
  116. 1. Open SQLEXPRWT_x86_ENU.exe or SQLEXPRWT_x64_ENU.exe depending on your operating system.
  117. 2. The SQL Server Installation Center will open.
  118. 3. Click on New installation or add features to an existing installation
  119. 4. Check the box I accept the license terms and click Next
  120. 5. Click Next
  121. 6. Change the value in named instance to WarZ and click Next
  122. 7. Click Next
  123. 8. Change Authentication Mode to Mixed mode and enter a strong password to both boxes below and click Next to proceed.
  124. 9. Click next and wait until the installation completes.
  125. 10. Click Close. Also close the SQL Server Installation Center
  126. 11. Restart the computer
  127. 12. Open Start -> All Programs -> Microsoft SQL Server 2008 R2 -> Configuration Tools -> SQL Server Configuration Manager
  128. 13. Navigate to SQL Server Network Configuration -> Protocols for WARZ
  129. 14. Right click on TCP/IP and select Properties
  130. 15. In the Protocols tab change Enabled value to Yes
  131. 16. In the IP Addresses tab set every TCP Dynamic Ports value to blank (This means delete everything from the value box).
  132. 17. In the IP Addresses tab set every TCP Port value to 1433
  133. 18. Click OK to apply changes.
  134. 19. Warning message will notify you that these changes will not take effect until you restart the service. Click OK to the message
  135. 20. Navigate to SQL Server Services. Right click on SQL Server (WARZ) and select restart.
  136. 21. You may close Sql Server Configuration Manager
  137.  
  138. Main Release
  139.  
  140. Preparing files and directories
  141. 1. Create folder C:\WZ
  142. 2. Extract bin folder from RZCE.rar WZ\
  143. 3. Extract src.rar to WZ\src\
  144. 4. Extract External.rar to WZ\src\
  145. 5. Extract WarZ_SQL.rar to WZ\
  146.  
  147. Internet Information Service IIS Configuration
  148.  
  149. Note:
  150. Before continuing go to folder C:\inetpub\wwwroot and create a folder named api
  151.  
  152. 1. Open Start -> Administrative Tools -> Internet Information Services (IIS) Manager
  153. 2. Navigate to WARZ -> Sites and delete Default Web Site
  154. 3. Right click on Sites and select Add Web Site...
  155. 4. Set Site name: Site
  156. 5. Set Application pool: DefaultAppPool
  157. 6. Set Physical path: C:\inetpub\wwwroot
  158. 7. Click OK
  159. 8. Right click on Site and select Add Virtual Directory
  160. 9. Set Alias: wz
  161. 10. Set Physical path: C:\WZ\bin\build
  162. 11. Click OK
  163. 12. Right click on api and select Convert to Application
  164. 13. Click OK
  165. 14. Navigate to WarZ(WARZ\Administrator)
  166. 15. Open feature Server Certificates
  167. 16. From the right side menu. Select Create Self-Signed Certificate..
  168. 17. Enter api as the name of the certificate and press OK to close.
  169. 18. Right click on Site and select Edit Bindings..
  170. 19. Click Add...
  171. 20. Set Type: https
  172. 21. Set SSL certificate: api
  173. 22. Click OK
  174. 23. Click Close
  175. 24. Click on Site and open feature MIME Types
  176. 25. From right side menu. Select Add...
  177. 26. Set File name extension: .php
  178. 27. Set MIME type: application/x-php
  179. 28. Click OK
  180. 29. Click on Site and from the right side menu click on Restart
  181.  
  182. Creating user and database. Adding rights and importing tables.
  183. 1. Open Start -> All Programs -> Microsoft SQL Server 2008 R2 -> SQL Server Management Studio
  184. 2. Login using Authentication: Windows Authentication
  185. 3. Navigate to Security -> Logins
  186. 4. Right click on Logins and select New Login...
  187. 5. Enter Login name: wz_api_user
  188. 6. Select SQL Server authentication
  189. 7. Enter password: 123456 Confirm password: 123456
  190. 8. Unselect Enforce password policy
  191. 9. Click OK
  192. 10. Right click on Databases and select New Database...
  193. 11. Enter Database name: WarZ
  194. 12. Enter Owner: wz_api_user
  195. 13. Click on the Options tab
  196. 14. Set Recovery model: Full
  197. 15. Click OK
  198. 16. Navigate to Databases -> WarZ
  199. 17. Right click on WarZ and select New Query
  200. 18. Open the WZ\WarZ.sql file in notepad
  201. 19. Select all and copy and paste to the query window
  202. 20. Click F5 to execute the query.
  203. 21. Close SQL Server Management Studio.
  204.  
  205. Note: You don’t have to save the query when asked on closing the SQL Server Management Studio.
  206.  
  207. Data Sources (ODBC)
  208. 1. Open Start -> Run
  209. 2. Type odbcad32.exe and click OK
  210. 3. Select tab System DSN and click on Add…
  211. 4. Select SQL Server Native Client 10.0 and click Finish
  212. 5. A new window will open. In the name box type WarZ. You can leave the description empty.
  213. In the Server box type WarZ and click Next to proceed.
  214.  
  215. NOTE: If your computer name is not set to WarZ then use the computer name that you have set to the server. The second option is to type in the Server box localhost or 127.0.0.1 as pointed out by @NanayaQ
  216.  
  217. 6. Set the option to With SQL Server authentication using a login ID and password entered by the user.
  218. 7. Enter Login ID: wz_api_user Password: 123456
  219. 8. Click Next to proceed
  220. 9. Select Change the default database to: and select WarZ as the value
  221. 10. Click Next to proceed
  222. 11. Click Finish
  223. 12. Click Test Data Source to see if it works.
  224.  
  225. Note: You should see „TESTS COMPLETED SUCCESSFULLY!“ If so you may close the window by clicking OK on all the open windows untill they all close.
  226.  
  227. Microsoft Visual Studio 2008 Professional Edition
  228. 1. Create a folder named Visual Studio 2008
  229. 2. Extract VS2008ProEdition90dayTrialENUX1435622.iso to folder Visual Studio 2008 using Extract Here
  230. 3. Wait untill the extraction is done.
  231. 4. Navigate to the folder Visual Studio 2008 and open setup.exe
  232. 5. Click on Install Visual Studio 2008
  233. 6. Click Next to proceed.
  234. 7. Accept the licence terms and click Next to proceed.
  235. 8. Click Install and wait for the setup to complete.
  236. 9. Click Finish. Click Exit to close the Visual Studio 2008 Setup
  237.  
  238. Microsoft Visual Studio 2008 SP1
  239. 1. Create a folder named Visual Studio 2008 SP1
  240. 2. Extract VS2008SP1ENUX1512962.iso to folder Visual Studio 2008 SP1 using Extract Here
  241. 3. Wait untill the extraction is done
  242. 4. Navigate to the folder Visual Studio 2008 SP1\ vs90sp1 and open SPInstaller.exe
  243. 5. Click Next to proceed.
  244. 6. Accept the licence terms and click Next to proceed.
  245. 7. Wait for the setup to complete then click Finish to exit the installer.
  246.  
  247. Fix HackShield
  248. 1. Navigate to WZ\src\External\
  249. 2. Copy HShield folder to WZ\bin
  250. 3. Navigate to WZ\bin\HShield and delete the following folders
  251. 1. Doc
  252. 2. Include
  253. 3. Lib
  254. 4. Sample
  255. 4. Navigate to WZ\bin\HShield\Developer and delete the following folder
  256. 1. Lib
  257. 5. Navigate to WZ\bin\build
  258. 6. Open RSBuild.xml in notepad. Select all and delete. Do not close the notepad.
  259. 7. Select the code below and paste it to the open RSBuild.xml file and Save changes.
  260. Code:
  261. <build>
  262. <output dir="build\data"/>
  263.  
  264. <cdn url="http://127.0.0.1/wz/data/"/>
  265.  
  266. <!-- set base archive for incremental update -->
  267. <!-- <base file="build\data\wz4119100A"/> -->
  268.  
  269.  
  270. <!-- include EULA file -->
  271. <include mask="eula-en.htm"/>
  272. <include mask="eula-en.rtf"/>
  273. <include mask="Data\LangPack\dictionary.txt"/>
  274. <!-- excludes for this package files (just in case they was created in this dir -->
  275. <exclude mask="WZ_*.bin"/>
  276.  
  277.  
  278. <!-- excludes for debug files -->
  279. <exclude mask="r3dlog.txt"/>
  280. <exclude mask="game.ini"/>
  281. <exclude mask="reports.txt"/>
  282. <exclude mask="MasterServer_ccu.txt"/>
  283. <exclude mask="*.pdb"/>
  284. <exclude mask="*.exp"/>
  285. <exclude mask="*.lib"/>
  286. <exclude mask="*.bat"/>
  287. <exclude mask="*.vmp"/>
  288.  
  289. <!-- excludes for other binaries -->
  290. <exclude mask="Studio*.*"/>
  291. <exclude mask="MasterServer.*"/>
  292. <exclude mask="MasterServer_Rent.*"/>
  293. <exclude mask="RentFullDir.cfg"/>
  294. <exclude mask="WZ_GameServer.*"/>
  295. <exclude mask="SupervisorServer.*"/>
  296. <exclude mask="RSBuild.*"/>
  297. <exclude mask="RSUpdate.*"/>
  298. <exclude mask="Launcher.exe"/>
  299. <exclude mask="Launcher.exe_1.0.0.exe"/>
  300. <exclude mask="WZAdmin.*"/>
  301. <exclude mask="WarZ_unpack.exe"/>
  302. <exclude mask="*.log"/>
  303. <exclude mask="*.suo"/>
  304. <exclude mask="*.bat"/>
  305. <exclude mask="gameSettings.ini"/>
  306. <exclude mask="local.ini"/>
  307. <exclude mask="windows_error_report_mapping.xml"/>
  308.  
  309. <!-- Dlls -->
  310. <exclude mask="PhysX3CharacterKinematic_x86.dll"/>
  311. <exclude mask="PhysX3CharacterKinematicCHECKED_x86.dll"/>
  312. <exclude mask="PhysX3CharacterKinematicDEBUG_x86.dll"/>
  313. <exclude mask="PhysX3CharacterKinematicPROFILE_x86.dll"/>
  314. <exclude mask="PhysX3CHECKED_x86.dll"/>
  315. <exclude mask="PhysX3CommonCHECKED_x86.dll"/>
  316. <exclude mask="PhysX3CommonDEBUG_x86.dll"/>
  317. <exclude mask="PhysX3CommonPROFILE_x86.dll"/>
  318. <exclude mask="PhysX3CookingCHECKED_x86.dll"/>
  319. <exclude mask="PhysX3CookingDEBUG_x86.dll"/>
  320. <exclude mask="PhysX3CookingPROFILE_x86.dll"/>
  321. <exclude mask="PhysX3DEBUG_x86.dll"/>
  322. <exclude mask="PhysX3GpuCHECKED_x86.dll"/>
  323. <exclude mask="PhysX3GpuDEBUG_x86.dll"/>
  324. <exclude mask="PhysX3GpuPROFILE_x86.dll"/>
  325.  
  326.  
  327. <!-- Dlls -->
  328. <include mask="ApexFramework_x86.dll"/>
  329. <include mask="avcodec-52.dll"/>
  330. <include mask="avformat-52.dlll"/>
  331. <include mask="avutil-50.dll"/>
  332. <include mask="CrashRpt1301.dll"/>
  333. <include mask="cudart32_32_16.dll"/>
  334. <include mask="dbghelp.dll"/>
  335. <include mask="fmod_event.dll"/>
  336. <include mask="fmod_event_net.dll"/>
  337. <include mask="fmod_event_netL.dll"/>
  338. <include mask="fmod_eventL.dll"/>
  339. <include mask="fmodex.dll"/>
  340. <include mask="fmoxedL.dll"/>
  341. <include mask="icudt46.dll"/>
  342. <include mask="PhysX3_x86.dll"/>
  343. <include mask="PhysX3Common_x86.dll"/>
  344. <include mask="PhysX3Cooking_x86.dll"/>
  345. <include mask="PhysX3Gpu_x86.dll"/>
  346. <include mask="PhysX3PROFILE_x86.dll"/>
  347. <include mask="steam_api.dll"/>
  348. <include mask="VMProtectSDK32.dll"/>
  349. <include mask="APEX_Loader_x86.dll"/>
  350.  
  351. <!-- excludes for build directories -->
  352. <exclude mask="1"/>
  353. <exclude mask="build"/>
  354. <exclude mask="logs"/>
  355. <exclude mask="bin"/>
  356. <exclude mask="server"/>
  357. <exclude mask="tools"/>
  358. <exclude mask="logs"/>
  359. <exclude mask="logms"/>
  360. <exclude mask="logss"/>
  361. <exclude mask="logsv"/>
  362.  
  363. <!-- include for Hackshield directories -->
  364. <include mask="HackShield"/>
  365. <include mask="HShield"/>
  366. <include mask="*.ui"/>
  367. <include mask="*.aht"/>
  368. <include mask="*.ahc"/>
  369. <include mask="ahnrpt.ini"/>
  370. <include mask="bldinfo.ini"/>
  371. <include mask="Amazon.ini"/>
  372. <include mask="BldInfo.ini"/>
  373. <include mask="HSBGen.ini"/>
  374. <include mask="*.hsb"/>
  375. <include mask="*.id"/>
  376. <include mask="*.env"/>
  377. <include mask="*.mhe"/>
  378. <include mask="*.msd"/>
  379. <include mask="*.key"/>
  380. <include mask="*.scd"/>
  381. <include mask="*.uic"/>
  382.  
  383. </build>
  384. 8. Navigate to WZ\src\RSBuild\Sources
  385. 9. Open r3dFSBuilder.cpp with visual studio
  386. 10. Search for code below:
  387. Code:
  388. DWORD r3dFSBuilder::DetectFileFlags(const char* fname)
  389. {
  390. if(pattern_match(fname, "*.exe") ||
  391. pattern_match(fname, "*.dll") ||
  392. pattern_match(fname, "DirectX.dll") ||
  393. pattern_match(fname, "d3d11x.dll") ||
  394. pattern_match(fname, "*.bmp") ||
  395. pattern_match(fname, "*.manifest") ||
  396. pattern_match(fname, "crashrpt*.ini"))
  397. {
  398. return r3dFS_FileEntry::FLAG_EXTRACT;
  399. }
  400.  
  401. return 0;
  402. }
  403. 11. Replace the whole code block with code below.
  404. Code:
  405. DWORD r3dFSBuilder::DetectFileFlags(const char* fname)
  406. {
  407. if(pattern_match(fname, "*.exe") ||
  408. pattern_match(fname, "*.dll") ||
  409. pattern_match(fname, "DirectX.dll") ||
  410. pattern_match(fname, "d3d11x.dll") ||
  411. pattern_match(fname, "*.bmp") ||
  412. pattern_match(fname, "*.manifest") ||
  413. pattern_match(fname, "crashrpt*.ini") ||
  414. pattern_match(fname, "*.ui") ||
  415. pattern_match(fname, "*.aht") ||
  416. pattern_match(fname, "*.ahc") ||
  417. pattern_match(fname, "*.hsb") ||
  418. pattern_match(fname, "*.id") ||
  419. pattern_match(fname, "*.env") ||
  420. pattern_match(fname, "*.mhe") ||
  421. pattern_match(fname, "*.msd") ||
  422. pattern_match(fname, "*.key") ||
  423. pattern_match(fname, "*.scd") ||
  424. pattern_match(fname, "*.uic") ||
  425. pattern_match(fname, "ahnrpt.ini") ||
  426. pattern_match(fname, "bldinfo.ini") ||
  427. pattern_match(fname, "Amazon.ini") ||
  428. pattern_match(fname, "BldInfo.ini") ||
  429. pattern_match(fname, "HSBGen.ini")
  430. )
  431. {
  432. return r3dFS_FileEntry::FLAG_EXTRACT;
  433. }
  434.  
  435. return 0;
  436. }
  437. 12. Save changes and close the file.
  438.  
  439. Changing IP addresses.
  440. 1. WZ\src\EclipseStudio\Sources\Main.cpp
  441. Replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
  442. 2. WZ\src\RSUpdate\Launcher.cfg
  443. Replace all records of localhost with xxx.xxx.xxx.xxx
  444. 3. WZ\src\RSUpdate\LauncherConfig.cpp
  445. Replace all records of localhost and 127.0.0.1 with xxx.xxx.xxx.xxx
  446. 4. WZ\src\server\SupervisorServer.cfg
  447. Replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
  448. 5. WZ\src\server\WO_GameServer\Sources\ServerMain.cpp
  449. Change 127.0.0.1 to xxx.xxx.xxx.xxx
  450. 6. WZ\bin\SupervisorServer.cfg
  451. Replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
  452. 7. WZ\bin\game.ini
  453. Replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
  454. 8. WZ\bin\build\rsbuild.xml
  455. Change 127.0.0.1 to xxx.xxx.xxx.xxx
  456.  
  457. Note: xxx.xxx.xxx.xxx -> to be replaced with actual IP address. Only if you plan on using the server as a public server.
  458.  
  459. Building
  460. 1. Open WZ\src\RSBuild\RSBuild.sln
  461. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  462. Wait until "Build succeeded" and close the program.
  463.  
  464. 2. Open WZ\src\RSUpdate\RSUpdate.sln
  465. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  466. Wait until "Build succeeded" and close the program.
  467.  
  468. 3. Open WZ\src\server\WarZ_Server.sln
  469. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  470. Wait until "Build succeeded" and close the program.
  471.  
  472. 4. Open WZ\src\eclipsestudio\WarZ.sln
  473. Select "Final" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  474. Wait until "Build succeeded"
  475. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  476. Wait until "Build succeeded" and close the program.
  477.  
  478. 5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
  479. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Build Solution
  480. Wait until "Build succeeded"
  481. Select from menu Build -> Publish Web Site
  482. Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
  483. Press OK to execute.
  484. Wait until „Publish succeeded" and close the program.
  485.  
  486. Creating bin files
  487. 1. Open WZ\bin\RSBuild.exe and wait until the exe closes.
  488. It might take up to 30 minutes. Depending on the hardware and disk type.
  489. 2. Open WZ\bin\build\updater\CreateUpdater.bat
  490. This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
  491. 3. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin
  492. 4. Copy WZ\bin\build\data\wz.xml to WZ\bin\build
  493. 5. Copy WZ\bin\build\updater\api_getserverinfo.xml to C:\inetpub\wwwroot
  494.  
  495. Running server
  496. 1. Open WZ\bin\MasterServer.exe
  497. 2. Open WZ\bin\SupervisorServer.exe
  498.  
  499. Testing
  500. 1. Copy the WarZlauncher.exe_1.0.0.exe to another computer to a folder and run it.
  501. 2. Register account and wait until the updater downloads all the files.
  502. 3. Start by pressing Play.
  503. 4. Create a player and join the server to test if everything is working.
  504.  
  505. UPDATE1
  506.  
  507. Before updating close MasterServer.exe and SupervisorServer.exe if they are running.
  508. Also close all other open files that might require replacing by the updating.
  509.  
  510. Preparing files and directories
  511. 1. Extract src folder inside src_Update1.rar to C:\WZ replacing all the files and folders in WZ\src
  512.  
  513. Building
  514. 1. Open WZ\src\RSBuild\RSBuild.sln
  515. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  516. Wait until "Rebuild All succeeded" and close the program.
  517.  
  518. 2. Open WZ\src\RSUpdate\RSUpdate.sln
  519. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  520. Wait until "Rebuild All succeeded" and close the program.
  521.  
  522. 3. Open WZ\src\server\WarZ_Server.sln
  523. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  524. Wait until "Rebuild All succeeded" and close the program.
  525.  
  526. 4. Open WZ\src\eclipsestudio\WarZ.sln
  527. Select "Final" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  528. Wait until "Rebuild All succeeded"
  529. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  530. Wait until "Rebuild All succeeded" and close the program.
  531.  
  532. 5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
  533. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  534. Wait until "Rebuild All succeeded"
  535. Select from menu Build -> Publish Web Site
  536. Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
  537. Press OK to execute.
  538.  
  539. Note:
  540. Application will ask your permission to delete the existing files in the api directory. Agree to it by selecting „Yes“
  541.  
  542. Wait until „Publish succeeded" and close the program.
  543.  
  544. Recreating .bin files
  545. 1. Delete all .bin files in directory WZ\bin\build\data
  546. 2. Open WZ\bin\RSBuild.exe and wait until the exe closes.
  547. It might take up to 30 minutes. Depending on the hardware and disk type.
  548. 3. Open folder WZ\bin\build\updater\ and delete the file WarZlauncher.exe_1.0.0.exe
  549. 4. Open folder WZ\bin and delete the file WarZlauncher.exe_1.0.0.exe
  550. 5. Open WZ\bin\build\updater\CreateUpdater.bat
  551. This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
  552. 6. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin replacing the old one
  553. 7. Copy WZ\bin\build\data\wz.xml to WZ\bin\build replacing the old one
  554.  
  555. Running server
  556. 1. Open WZ\bin\MasterServer.exe
  557. 2. Open WZ\bin\SupervisorServer.exe
  558.  
  559. Testing
  560. 1. Copy the new WarZlauncher.exe_1.0.0.exe to another computer to a new folder and run it.
  561. 2. Login with your account and wait until the updater downloads all the files.
  562. 3. Start by pressing Play.
  563. 4. Test if everything is working.
  564.  
  565. UPDATE2
  566.  
  567. Before updating close MasterServer.exe and SupervisorServer.exe if they are running.
  568. Also close all other open files that might require replacing by the updating.
  569.  
  570. Preparing files and directories
  571. 1. Extract src folder inside src_Update2.rar to „Desktop“
  572. 2. Select properties on the extracted folder and uncheck Read-only and apply.
  573. 3. Copy the folder src from Desktop to WZ\ replacing all files and folders inside
  574. 4. Extract WarZ.sql from WarZ_SQL_Update2.rar to WZ\ replacing the old WarZ.sql file
  575.  
  576. Changing IP addresses.
  577. 1. WZ\src\EclipseStudio\Sources\Main.cpp
  578. replace all records of 127.0.0.1 with xxx.xxx.xxx.xxx
  579.  
  580. Note: xxx.xxx.xxx.xxx -> to be replaced with actual IP address. Only if you plan on using the server as a public server.
  581.  
  582. Recreating database. Adding rights and importing tables.
  583. 1. Open Start -> All Programs -> Microsoft SQL Server 2008 R2 -> SQL Server Management Studio
  584. 2. Login using Authentication: Windows Authentication
  585. 3. Select database named WarZ and delete it.
  586. 4. Create a new database called WarZ selecting Owner wz_api_user
  587. 5. Change Recovery model to Full at Options and hit "OK"
  588. 6. Select database WarZ and "New Query"
  589. 7. Select all from WZ\WarZ.sql opened in notepad and paste to the query and hit execute.
  590. Note:
  591. 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.
  592. 8. Close SQL Server Management Studio.
  593.  
  594. Note: You don’t have to save the query when asked on closing the SQL Server Management Studio.
  595.  
  596. Building
  597. 1. Open WZ\src\RSBuild\RSBuild.sln
  598. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  599. Wait until "Rebuild All succeeded" and close the program.
  600.  
  601. 2. Open WZ\src\RSUpdate\RSUpdate.sln
  602. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  603. Wait until "Rebuild All succeeded" and close the program.
  604.  
  605. 3. Open WZ\src\server\WarZ_Server.sln
  606. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  607. Wait until "Rebuild All succeeded" and close the program.
  608.  
  609. 4. Open WZ\src\eclipsestudio\WarZ.sln
  610. Select "Final" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  611. Wait until "Rebuild All succeeded"
  612. Select "Release" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  613. Wait until "Rebuild All succeeded" and close the program.
  614.  
  615. 5. Open WZ\src\Scripts\WZBackend-ASP.NET\WZBackend-ASP.NET.sln
  616. Select "Debug" Wait until Updating IntelliSense is done and select from menu Build -> Rebuild Solution
  617. Wait until "Rebuild All succeeded"
  618. Select from menu Build -> Publish Web Site
  619. Set target Location to your api folder. For example mine is C:\inetpub\wwwroot\api
  620. Press OK to execute.
  621.  
  622. Note:
  623. Application will ask your permission to delete the existing files in the api directory. Agree to it by selecting „Yes“
  624.  
  625. Wait until „Publish succeeded" and close the program.
  626.  
  627. Recreating .bin files
  628. 1. Delete all .bin files in directory WZ\bin\build\data
  629. 2. Open WZ\bin\RSBuild.exe and wait until the exe closes.
  630. It might take up to 30 minutes. Depending on the hardware and disk type.
  631. 3. Open folder WZ\bin\build\updater\ and delete the file WarZlauncher.exe_1.0.0.exe
  632. 4. Open folder WZ\bin and delete the file WarZlauncher.exe_1.0.0.exe
  633. 5. Open WZ\bin\build\updater\CreateUpdater.bat
  634. This will create WarZlauncher.exe_1.0.0.exe to WZ\bin\build\updater\
  635. 6. Copy WarZlauncher.exe_1.0.0.exe to WZ\bin replacing the old one
  636. 7. Copy WZ\bin\build\data\wz.xml to WZ\bin\build replacing the old one
  637.  
  638. Running server
  639. 1. Open WZ\bin\MasterServer.exe
  640. 2. Open WZ\bin\SupervisorServer.exe
  641.  
  642. Testing
  643. 1. Copy the new WarZlauncher.exe_1.0.0.exe to another computer to a new folder and run it.
  644. 2. Register account and wait until the updater downloads all the files.
  645. 3. Start by pressing Play.
  646. 4. Create a player and join the server to test if everything is working.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement