These instructions applies if you are already using AirSim on Unreal Engine 4.16. If you never installed AirSim, please see How to get it.
Caution: Below steps will delete your any unsaved work in AirSim or Unreal folder.
- Install Visual Studio 2017 with VC++, Python and C#.
- Install UE 4.18 through Epic Games Launcher.
- Start
x64 Native Tools Command Prompt for VS 2017
and navigate to AirSim repo. - Run
clean_rebuild.bat
to remove all unchecked/extra stuff and rebuild everything.
- From your AirSim repo folder, run 'clean_rebuild.sh`.
- Rename or delete your exiting folder for Unreal Engine.
- Follow step 1 and 2 to install Unreal Engine 4.18.
If you have your own Unreal project created in older version of Unreal Engine then you need to upgrade your project to Unreal 4.18. To do this,
- Open .uproject file and look for the line
"EngineAssociation"
and make sure it reads like"EngineAssociation": "4.18"
. - Delete
Plugins/AirSim
folder in your Unreal project's folder. - Go to your AirSim repo folder and copy
Unreal\Plugins
folder to your Unreal project's folder. - Copy *.bat (or *.sh for Linux) from
Unreal\Environments\Blocks
to your project's folder. - Run
clean.bat
(orclean.sh
for Linux) followed byGenerateProjectFiles.bat
(only for Windows).
If your project doesn't have any code or assets other than environment you downloaded then you can also simply recreate the project in Unreal 4.18 Editor and then copy Plugins folder from AirSim/Unreal/Plugins
.
Unreal versions newer than Unreal 4.15 has breaking changes. So you need to modify your *.Build.cs and *.Target.cs which you can find in Source
folder of your Unreal project. So what are those changes? Below is the gist of it but you should really refer to Unreal's official 4.16 transition post.
-
Change the contructor from,
public MyProjectTarget(TargetInfo Target)
topublic MyProjectTarget(TargetInfo Target) : base(Target)
-
Remove
SetupBinaries
method if you have one and instead add following line in contructor above:ExtraModuleNames.AddRange(new string[] { "MyProject" });
Change the constructor from public MyProject(TargetInfo Target)
to public MyProject(ReadOnlyTargetRules Target) : base(Target)
.
Follow above steps to continue upgrade. The warning box might show only "Open Copy" button. Don't click that. Instead click on More Options which will reveal more buttons. Choose Convert-In-Place option
. Causion: Always keep backup of your project first! If you don't have anything nasty, in place conversion should go through and you are now on new version of Unreal.