Unreal Tournament Integration¶
Building the Unreal Tournament sample using the Genvid SDK has 2 main steps. First you set up and build the base Unreal Tournament project, then you modify it to use the Genvid SDK.
In This Section
If you don’t have the Unreal Tournament source code, you’ll need to download it from the Unreal Tournament GitHub repository.
You need to connect your Epic Games and GitHub accounts in order to access the repository. If you haven’t connected your accounts, instructions are on the Unreal Engine website.
Make sure you review the Required Third-Party Software section while you’re on the Unreal Tournament GitHub page.
Note that the initial download, build, and first run of the game may take some time.
To build and run the Genvid SDK Unreal Tournament sample, you first need a working build of the original Unreal Tournament project.
You’ll need to sync to a specific changelist to ensure you have the correct version of the Unreal Engine for our sample. You’ll also need to add in a missing header for the game to compile correctly.
Run the following Git command to sync to the required changelist.
git checkout 27e91ad5b439cfe698b2d1345432983ccfbc0936
Engine/Source/Programs/UnrealWatchdog/Private/UnrealWatchdog.cpp, add the following line immediately after the last include directive:
Inside your cloned repo folder, run the Setup.bat file. This will download the necessary binaries not stored in GitHub repo.
Engine/Extras/Redist/en-usto complete the initial setup.
The following steps are to help guide you in setting up the Unreal Tournament project.
See the README.md file in the Unreal Tournament Git repository for the latest updates on the project.
Ensure you are using Visual Studio 2015 Update 3 before you continue.
Select Development mode in the Solution Configuration drop down menu.
Right-click the Agent project and select Properties.
Go to the Signing tab and clear Sign the ClickOnce manifests check box.
Right-click the Agent again and select Build. You can close everything when done.
GenerateProjectFiles.batin the repo folder. This will generate
UE4.slnin Visual Studio.
Set the Solution Configuration to Development Editor.
In the right panel menu, find ShaderCompileWorker and UnrealLightmass projects and build them.
When the previous step has completed, right-click the Solution and build it. Once completed,
UE4Editor.exewill be available in
File > Open Level.
Select “DM-Underland” from the Assets.
The Genvid SDK includes script and configuration files in the
samples/ut4 folder which automate much of the integration process.
You need to add the Unreal Tournament installation to your environment
variables and modify the UT code to make the GenvidPlugin interfaces available.
UTROOTto your Unreal Tournament directory.
How you set
UTROOTdepends on the shell you use. For example, on Windows you use the following command:
ut4.pyscript to add necessary files and make required modifications to existing files.
py ut4.py prepare
For reference, this script will:
- Copy the
At the end of the
public UnrealTournament(TargetInfo Target)routine, add the following lines:
PrivateIncludePaths.Add("Genvid/Private"); PublicIncludePaths.Add("Genvid/Public"); PublicDependencyModuleNames.Add("Genvid");
Set the value EnabledByDefault to false and save.
You need to rebuild the Solution again after making these modifications.
Build Unreal Tournament.
py ut4.py build