Thursday, March 31, 2016

Building Unreal Tournament

Part 1: Follow the getting started

Install Visual Studio Express 2015

Edit your Epic Games account to include your Github account. An email will be sent to verify you want your Github account to be associated with EpicGames.

Fork https://github.com/epicgames/unrealtournament into your own Github. When I did this, I cloned the "clean-master" (which is a complete misnomer, this branch as with "release" are often broken).

Clone your fork onto your computer.

Command line into the git repository you just created

Add remote in order to pull updates from the "upstream" EpicGames repository
git remote add upstream https://github.com/EpicGames/UnrealTournament.git

Download the content from Epic by running the following command (keep open)
setup.bat

Open UnrealTournament\UnrealTournament.uproject in a text editor. Under ( "Plugins": [ ) add the following 4 lines:
{
    "Name": "WebMRecord",
    "Enabled": false
},

Copy the following file to .\Engine\Build\BatchFiles\Clean.bat in order to fix cleaning the build with VS 2015
https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Build/BatchFiles/Clean.bat

To generate the VS 2015 solution, in the command line again, run
GenerateProjectFiles.bat -2015

Open .\Engine\Source\Programs\UnrealSwarm\UnrealSwarm.sln

At the top toolbar,
Set the Target to Development

In the Solutions Explorer, right click to build:
Agent

Close VS 2015.

Open .\UE4.sln in VS 2015

At the top toolbar,
Set the Target to Development Editor
Set the Platform to Win64

In the Solutions Explorer, right click to build:
ShaderCompileWorker
UnrealLightmass

Finally, using the Solutions Explorer, build the UnrealTournament project under the Games folder
The build takes about an hour on a laptop with an SSD

At the command line, navigate to %unrealtournamentfolder%\Engine\Binaries\Win64
run the command:
UE4Editor.exe unrealtournament

No comments:

Post a Comment