I24 Server Setup
From OuroDev
Required Software
- Visual Studio 2010 Professional or Visual Studio 2019 with the 2010 toolchain configured
- SQL Server 2012 or later (Express is good enough for development)
- SQL Server Management(SSMS)
- Git for Windows or GitHub Desktop
- Download the Issue 24 client and data files - this is not the SCORE client/data.
- Download CoHDev_Source_Files_Current(Updated).zip.
- Download ServerData.7z.
- Clone the Cox/Source repository.
Install SQL Server 2017 Express
- You can install SQL Server pretty much on the default settings.
- Select Basic under installation type:
- Agree to the EULA if you want to use SQL Server.
- Tell the server where to install files. I changed this for ease on my system.
- It should begin installing and eventually you should see "Install has completed successfully". Click close.
- Select Basic under installation type:
Install SQL Server Management(SSMS)
- You can install SQL Server Management on default settings.
- Select the location you'd like to install SSMS to. The default is fine.
- It will take awhile to install and you'll see a little progress bar letting you know whats going on
- Eventually it will ask you to reboot the system. Might as well as do that now.
- Select the location you'd like to install SSMS to. The default is fine.
Configure MSBuild Environmental Variable
- Click the start button and type "environmental variable". It should be the first entry saying "edit environmental variables for your account"
- Click "Environment Variables" at the bottom of the new window.
- Click "New" under "User variables for YOURUSERNAME"
- Click "New" on the "Edit environmental variable" window and add the location to your MSBuild.
- For me MSBuild was location: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
- Click Ok on both windows to close them out.
- Click "Environment Variables" at the bottom of the new window.
- Hit the start button and type "CMD". Command Prompt should be the first thing listed.
- Type "MSBuild" into the command prompt and you should receive an error letting you know its setup.
Install GitHub Desktop and Acquire Source
- You need to download and install GitHub Desktop.
- Open GitHub Desktop, Select File, and Clone a Repository.
- Select the URL tab, enter "https://git.ourodev.com/CoX/Source.git" into the first blank and a path where to store the source locally such as "C:\GitHub\CoX\Source".
- Select the URL tab, enter "https://git.ourodev.com/CoX/Source.git" into the first blank and a path where to store the source locally such as "C:\GitHub\CoX\Source".
- After the download finishes you can close GitHub Desktop for now.
Build City of Heroes from Source
- Start a powershell prompt as administrator
- Enter "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine" into the terminal and type "A" to auto accept all.
- Naviate to "C:\GitHub\CoX\Source\MasterSolution" and run build.ps1
- Begin building City of Heroes by running ".\build.ps1"
- Eventually the build will finish(On average takes at least 40 minutes to build)
- Now build AuthServer(C:\GitHub\CoX\Source\AuthServer\src\AuthServer\AuthServer.sln)
Launch Client and Server
- Navigate to "C:\GitHub\CoX\Source\bin" and inside you should see "CityofHeroes.exe".
- Right click on it and towards you bottom you'll see "Create Shortcut".
- A new shortcut should have appeared. Right click on it and go to properties.
- Add the follow parameter to your shortcut's target.
-db 127.0.0.1 -console -project "Ouroboros"
- Start DBServer.exe and then Launcher.exe. This can be done simply by double clicking on them.
- Once these are both fully booted use your new shortcut to connect to the local server.
- You could also use a .bat file to start everything up and in the correct order.
-
- The below is an example bat file to launch the DBServer, Launcher, and finally the Client.
@echo off echo Starting DB Server START C:\GitHub\CoX\Source\bin\dbserver.exe TIMEOUT 2 echo Starting Launcher Server START C:\GitHub\CoX\Source\bin\launcher.exe TIMEOUT 2 echo Starting Chat Server START C:\GitHub\CoX\Source\bin\ChatServer.exe -noreserved TIMEOUT 2 echo Waiting for user input to start City of Heroes. Hit SPACE to continue. pause echo Starting City of Heroes Client START C:\GitHub\CoX\Source\bin\CityOfHeroes.exe -db 127.0.0.1 -console -project "Ouroboros" echo Everything should be launched! Go enjoy COH.
- After the client starts up you'll be presented with a Login and Password screen. As auth is currently turned off you can enter anything you want in both.
- There should only be one server listed. Go ahead and pick it then make a new character to test with!