Automation Wiki
Advertisement

Modding of the legacy Kee Engine version is possible, but discouraged, as this version is no longer in development.

Modding of the UE4 Version of Automation is supported, having started at the end of September 2017.

What you will need:

  • UE4 Editor (free download from Epic Games)
  • A 3D modeling package (ex. 3DS Max, Blender and Maya, etc.., but this wiki only covers the specifics of using 3ds-max and blender)
  • The Automation Workshop Tools (from Steam)

Installing UE4

You will need to download and install UE4 Editor 4.24 From Epic Games, To do this, grab the Launcher from here: https://www.unrealengine.com/download

make sure to download the correct version. we do not use the latest version of UE4.

Do not install the UE4 Editor to Program Files. Install the editor to a custom location without a space in it, like C:\UE4\UE_4xx or similar.

Ue424

Installing Automation Workshop Tools

Within Steam Go to Library > Tools, and download the Automation - Car Company Tycoon Workshop Tools, this contains the mod project for Automation.

IF your Steam Library is within Program files. It is recommended to copy the AutomationGame project to another folder.

To do this, browse to the location of the modding sdk in your steam tools library:, and copy the project folder to a new location (with no spaces in the file path).

Once installed, you can open the AutomationGame project with UE4 Editor by launching the UE4 editor from the epic games launcher and browsing to the automationgame project file.

Project browser 01
Project-browser-02
Project-browser-03
Project-browser-04

Core concepts

  • Mods in UE4 are called 'Plugins'. They go in the 'Mods' folder. (I know.)
  • Do not make any assets in the Root Content folder. Only make assets in your mod's folder. (See "Content browser" below.)
  • Editor assets cannot be used directly by the game - they have to be 'cooked'. We can only cook your plugin, not our content. Hence, the requirement to make content is your mod folder.

Content browser

Click on the "Show or hide sources" icon To the left of the Content Browser Search box to view the folder structure. Click on View Options (bottom right of the content browser), and turn on "Show Plugin Content" to view all mods.

Project-browser-05

Optimisation and performance considerations for mods

Performance of fixtures and bodies in UE4 is a heated topic. while it is true that in terms of mesh rendering and draw calls there is practically 0 impact to performance for meshes with less than 2k polygons, it is not true for shader rendering or fixture stamping.

for shaders, they are calculated in a 2x2 grid, so polycount only impacts performance here if you end up with polygons too close together in screen-space. this is usually not an issue for us, but if you start to create meshes that are too dense and small you will see a performance impact. this is negligible compared to raycasts for fixtures however.

there is a performance impact to polycount with fixtures in that we have to cast a ray to the body for every vertex. so the more vertices there are on a mesh, the longer it'll take to conform to the body. this is why you'll see some detailed fixtures sit there for a few seconds before snapping to the car. this is doubly so for fixtures that cut in to the car - a UV Mesh's vertices are raycast to the car on every frame while you're dragging the fixture around. UV meshes impact performance greatly with a higher poly count. i try to keep UV meshes as low as possible.

likewise, the poly count of a car impacts performance in that the more polygons a car has the longer it takes to complete these raycasts. a 10k poly body may make dragging fixtures around and conforming them to the car take slightly longer than usual, but if that same body uses morph targets instead of bones, this polycount is multiplied by the number of morphs. a 10k poly body with 10 morphs effectively has 100k polygons that the fixture system has to raycast to, and this impacts fixture stamping time greatly.

for optimal performance:

  • keep UV Meshes lower than 100 tris. higher than this and they start to feel 'laggy' when dragging the fixture around. higher than 150 tris and it will feel too laggy to use properly
  • try to keep conforming meshes lower than 5k tris. more than this and they take longer than usual to conform to the car once they are placed.
  • try to keep bodies between 7k-30k polygons, and use bone weighting for as many morphs as possible. Use shape keys and morph targets sparingly.

This is a body that uses all bone weighting for its morphs, and has 7K polygons:

This is a body that uses all shape keys for its morphs, and has 40k polygons:

Known issues

  • We have not yet implemented a way for you to build custom materials to load onto cars/fixtures. As we have to replace materials at runtime, we will provide a mechanism for this at some point.

Mod types

Alternatives to using 3ds Max

See Modding in Blender.

Cooking

Select Share -> Mod Name to share.

WARNING: THE FOLDER YOU SELECT WILL HAVE ALL OF ITS CONTENTS DELETED. YOU HAVE BEEN WARNED.

SELECT AN EMPTY OR NEW FOLDER.

Example:

Select a path where there are no spaces in the file path.

  1. "C:\Users\Name\Documents\Unreal Projects\AutomationGame" is NOT OKAY, can you see why? There is a space between "Unreal" and "Projects".
  2. "C:\Users\Name\Documents\ModExport" is OKAY because there is no spaces in the file path.

Fixing possible cooking Issues:

  • Search Output Log for "Error:".
  • Lines will be prefixed by UATHelper.
  • If Error contains "Unable to find PackagePlugins" or similar, this is due to the Editor being in Program Files. It will be unable to copy Camso_UATScripts.Automation.dll to Engine/Binaries/DotNet/AutomationScripts. You can do this yourself by going to AutomationGame/Build/Camso_UATScripts/bin and copying the DLL to UE4/Engine/Binaries/DotNet/AutomationScripts.
  • Google other errors, or ask on forums.

Export

Mods and the BeamNG Exporter

Advertisement