forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
108 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
"Enabled": true | ||
} | ||
], | ||
"EngineAssociation": "4.15" | ||
"EngineAssociation": "4.16" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
|
||
public class BlocksTarget : TargetRules | ||
{ | ||
public BlocksTarget(TargetInfo Target) | ||
{ | ||
Type = TargetType.Game; | ||
} | ||
|
||
// | ||
// TargetRules interface. | ||
// | ||
|
||
public override void SetupBinaries( | ||
TargetInfo Target, | ||
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations, | ||
ref List<string> OutExtraModuleNames | ||
) | ||
{ | ||
OutExtraModuleNames.Add("Blocks"); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Unreal/Environments/Blocks/Source/BlocksEditor.Target.4.15.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
|
||
public class BlocksEditorTarget : TargetRules | ||
{ | ||
public BlocksEditorTarget(TargetInfo Target) | ||
{ | ||
Type = TargetType.Editor; | ||
} | ||
|
||
// | ||
// TargetRules interface. | ||
// | ||
|
||
public override void SetupBinaries( | ||
TargetInfo Target, | ||
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations, | ||
ref List<string> OutExtraModuleNames | ||
) | ||
{ | ||
OutExtraModuleNames.Add("Blocks"); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
Unreal/Environments/Blocks/Source/BlocksEditor.Target.4.16.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
|
||
# Upgrading Unreal Engine Version | ||
# Upgrading to Unreal 4.16 | ||
|
||
If you are using old version of AirSim with Unreal Engine 4.15 or earlier, here are some notes. More complete details are at [Unreal forum post](https://forums.unrealengine.com/showthread.php?145757-C-4-16-Transition-Guide). | ||
|
||
**Note:** If you are using Blocks project that comes with AirSim then you don't need to do anything other than [installling Unreal 4.16](build.md). | ||
|
||
If you have your own Unreal project using AirSim plugin then you need to upgrade your project to use Unreal 4.16. 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.16 Editor](unreal_custenv.md) and then copy Plugins folder from `AirSim/Unreal/Plugins`. Alternativly, follow below instructions. | ||
|
||
Unreal 4.16 Build system 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](https://forums.unrealengine.com/showthread.php?145757-C-4-16-Transition-Guide). | ||
|
||
### In your project's *.Target.cs | ||
1. Change the contructor from, `public MyProjectTarget(TargetInfo Target)` to `public MyProjectTarget(TargetInfo Target) : base(Target)` | ||
|
||
2. Remove `SetupBinaries` method if you have one and instead add following line in contructor above: `ExtraModuleNames.AddRange(new string[] { "MyProject" });` | ||
|
||
### In your project's *.Build.cs | ||
Change the constructor from `public MyProject(TargetInfo Target)` to `public MyProject(ReadOnlyTargetRules Target) : base(Target)`. | ||
|
||
If you are using old version of AirSim with Unreal Engine 4.14 or earlier, please use below steps to upgrade to 4.15. | ||
### In your *.uproject | ||
Remove line for `EngineAssociation` | ||
|
||
1. Windows + S and type Epic Games Launcher. | ||
2. Switch to Library tab on the right. | ||
3. Click on Add Version in Engine Versions section and select 4.15. | ||
4. Click on Install. This would typically take few minutes because of large download. | ||
5. Once install is complete, Launch button will appear. Click on it to launch UE Editor. | ||
6. In UE Editor you should see your Unreal project bit greyed out. If you don't then use the browse button to navigate to your .uproject file. | ||
7. Double click on the project. A warning might appear saying that there might be incompatibility. 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! | ||
8. If you don't have anything nasty, in place conversion should go through and you are now on new version of Unreal! | ||
### And finally... | ||
1. Make sure [Unreal 4.16 is installed](build,md). | ||
2. Double click on your project's `*.uproject` file. | ||
3. If you are asked to select Unreal version, select 4.16. | ||
4. 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! | ||
5. If you don't have anything nasty, in place conversion should go through and you are now on new version of Unreal! |