I24 Server Setup: Difference between revisions
From OuroDev
Line 56: | Line 56: | ||
: Begin building City of Heroes by running ".\build.ps1" | : Begin building City of Heroes by running ".\build.ps1" | ||
:: [[File:CoX-Build-3.png|thumb|none]] | :: [[File:CoX-Build-3.png|thumb|none]] | ||
: Eventually the build will finish(On average takes at least 40 minutes to build) | |||
:: [[File:CoX-Build-4.png|thumb|none]] | |||
: Navigate to "C:\GitHub\CoX\Source\bin" and instead 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. | |||
::: [[File:CoX-Build-5.png|thumb|none]] | |||
:: Add the follow parameter to your shortcut's target. | |||
::: <syntaxhighlight lang="text"> -db 127.0.0.1 -console -project "Ouroboros" </syntaxhighlight> | |||
::: [[File:CoX-Build-6.png|thumb|none]] |
Revision as of 20:44, 3 May 2019
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)
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)
- Navigate to "C:\GitHub\CoX\Source\bin" and instead 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"