Agrarsense
Creating your own Map

Documentation

Topic Link
Getting Started Getting Started
Using the Simulator Using the Simulator
Using Vehicles Using Vehicles
Using Walkers Using Walkers
Sensors Sensors
Setupping sensors Setupping sensor
Creating own levels Creating own levels
Building from source on Linux Building on Linux
Building from source on Windows Building on Windows
Installing on Linux Installing on Linux
Installing on Windows Installing on Windows

Creating your own Map

This documentation goes through list of things you need add if you wish to create or use your own level(s) but use AGRARSENSE Simulator features.

  1. Install Agrarsense Simulator from source - Building on Linux or Building on Windows.
  2. Create your own level or import existing one into the Agrarsense Unreal project.
  3. In the Outliner right-click any of the actors, and from Scripted Actor Actions submenu choose the "Setup Level" action. This will spawn all necessary actors which are not already in the level.

Setup level

  1. Change level game mode to AgrarsenseGameModeBase.

Change game mode

  1. Press play and you should now same widgets as in Agrarsense default levels and you should be able to use all Simulation systems.

Note. If you are going to use Agrarsense assets in your own level prefer to use assets from /Content/Agrarsense/MeshActors folder instead of meshes directly from the content browser. All these Blueprint assets are automatically instanced by InstancedRenderer using UInstancedStaticMeshComponent.

Your map in packaged build

To include your map in packaged build you need to open Project Settings and type maps to the search bar and modify following options:

Game Default Map - Your Level

Transition Map - Your Level

Server Default Map - Your Level

List of maps to include in a packaged build - Your Level path

Project Settings

Add Map to AgrarsenseSettings.h

In AgrarsenseSettings.h file you need to add map to MapNames and MapPaths TArrays.