Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Update Helper
  4. v1.3.5 to v1.3.6

v1.3.5 to v1.3.6

This a guide that helps you upgrade to from v1.3.5 to v1.3.6.

If you have just recently started using the RTS Engine and haven’t made much progress in your current project, it’s recommended that you download the 1.3.6 version and start from scratch.

The 1.3.6 update deprecated the old unit, building and resource-related components and replaced them with more modular, easy to customize components that perform way better. This guide will walk through collecting your unit, building and resource prefabs attributes from v1.3.5 and converting them to become valid prefabs in v1.3.6:

  1. Make sure to backup your RTS Engine project in v1.3.5.
  2. Make sure that the unit, building and resource prefabs are placed under a path that ends with \Resources\Prefabs in your project.
  3. Open your RTS Engine project in v1.3.5, download the Attributes Collector package and import it into the project.
  4. Open one of the map scenes (some information from the manager components are required to complete this conversion).
  5. From the RTS Engine top-menu bar, click on Collect Attributes. This will go through all prefabs and collect their attributes into asset files (one asset file per prefab). The asset files that contain the prefabs’ attributes are located in the following path: Assets\RTS Engine Update Helper\Resources\Attributes\
  6. Select all the generated asset files and export them into a package.
  7. Remove the RTS Engine Update Helper folder from your project.
  8. Import the v1.3.6 update.
  9. Remove the following components if they are haven’t been already removed when the update is imported:
    1. Invisibility.cs – path: Assets\RTS Engine\Units\Scripts
    2. SelectionObj.cs – path: Assets\RTS Engine\Buildings\Scripts
    3. UnitEditor.cs – path: Assets\RTS Engine\Menu Editor\Editor
    4. BuildingEditor.cs – path: Assets\RTS Engine\Menu Editor\Editor
  10. Download the Attributes Converter package and import it into the project.
  11. Import the exported asset files that contain the prefabs attributes.
  12. From the RTS Engine top-menu bar, click on Convert Attributes. Assuming that the unit, building and resource prefabs are still in a path that ends with \Resources\Prefabs in your project, this process will convert the attributes included in the asset files into those prefabs.

There’s also a few more things that you need to set up manually:

  1. Go through all the map scenes and update the “All Buildings” list in the Building Placement’s inspector.
  2. Go through all the NPC (unit and building) Regulator asset files and reassign the building and unit prefabs.
  3. Go through all the building prefabs that include a Border component and reassign the building prefabs under their “Buildings In Border” array field.
  4. Go through the Faction Type Info asset files and reassign the building prefabs.
  5. The construction states and post-construction states for buildings will not be preserved using the above packages, therefore these will have to be manually reconfigured.

How can we help?