Skip to content

Commit

Permalink
update about forcing include of assets for packaged builds
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen committed Jul 9, 2024
1 parent 155a4cc commit b28b22a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Unreal/Environments/Blocks/Config/DefaultGame.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ bSkipEditorContent=False
+MapsToCook=(FilePath="/Game/FlyingCPP/Maps/FlyingExampleMap")
+MapsToCook=(FilePath="/AirSim/AirSimAssets")
+DirectoriesToAlwaysCook=(Path="/AirSim/HUDAssets")
+DirectoriesToAlwaysCook=(Path="/AirSim/Beacons")
+DirectoriesToAlwaysCook=(Path="/AirSim/Blueprints")
+DirectoriesToAlwaysCook=(Path="/AirSim/Models")
+DirectoriesToAlwaysCook=(Path="/AirSim/Sensors")
+DirectoriesToAlwaysCook=(Path="/AirSim/StarterContent")
+DirectoriesToAlwaysCook=(Path="/AirSim/VehicleAdv")
+DirectoriesToAlwaysCook=(Path="/AirSim/Weather")
bNativizeBlueprintAssets=False
bNativizeOnlySelectedBlueprints=False

Expand Down
10 changes: 9 additions & 1 deletion docs/unreal_custenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,18 @@ There is no `Epic Games Launcher` for Linux which means that if you need to crea
}
```

1. Edit the `Config\DefaultGame.ini` to add the following line at the end:
1. Edit the `Config\DefaultGame.ini` to add the following lines at the end:

```
+MapsToCook=(FilePath="/AirSim/AirSimAssets")
+DirectoriesToAlwaysCook=(Path="/AirSim/HUDAssets")
+DirectoriesToAlwaysCook=(Path="/AirSim/Beacons")
+DirectoriesToAlwaysCook=(Path="/AirSim/Blueprints")
+DirectoriesToAlwaysCook=(Path="/AirSim/Models")
+DirectoriesToAlwaysCook=(Path="/AirSim/Sensors")
+DirectoriesToAlwaysCook=(Path="/AirSim/StarterContent")
+DirectoriesToAlwaysCook=(Path="/AirSim/VehicleAdv")
+DirectoriesToAlwaysCook=(Path="/AirSim/Weather")
```

Doing this forces Unreal to include all necessary AirSim content in packaged builds of your project.
Expand Down

0 comments on commit b28b22a

Please sign in to comment.