Upgrade Process
This page covers updating an existing project to a newer version of the tool. For a first-time install, see Requirements and Installation instead.
Before you update
Back up your project. Source control is ideal; a copy of the folder works too. Importing a package cannot be undone from inside Unity.
Note which version you are coming from — the steps below differ for a 0.13.0 upgrade.
The general procedure
Check for a new version in the Unity Package Manager under My Assets. When one is available:
- Copy your
Assets/BardTreeLtd/Resourcesfolder somewhere outside the Unity project. This holds your behaviour trees, module settings and other authored content. - Delete the module folders you are replacing under
Assets/BardTreeLtd/—CIVIL-AI-SYSTEM,Shared,SAVE-SYSTEMandSENSE-SYSTEM. LeaveResourcesin place. - Import the new version through the Package Manager.
- Merge your saved
Resourcesfolder back in, keeping your own files. - Keep the new module settings asset rather than your old one, then reapply your settings by hand. Settings assets gain and lose fields between versions, and an old one can carry stale values.
- On recompile, if an update window appears, follow the steps it offers.
Since 0.13.0 the asset installs as several sibling module folders under Assets/BardTreeLtd/, not a single CIVIL-AI-SYSTEM folder. If you delete only CIVIL-AI-SYSTEM, the other modules are left at their old versions and you will get compile errors from the mismatch.
Upgrading to 0.13.0
0.13.0 restructured the asset into modules and moved the editor menu under a shared BardTreeLtd root. Two extra steps after the import:
1. Repair your scenes
Open each of your scenes and run:
BardTreeLtd/Civil AI/Tool/Repair Scene For V0.13.0
The scene entry point changed from ModuleService to BardTreeModuleBootstrap. The repair tool updates existing scene objects for you.
2. Remove the legacy readme files
BardTreeLtd/Help/Remove Legacy Readme Files
Importing a .unitypackage never deletes anything, so the old Readme.asset and TutorialInfo folder survive an in-place upgrade even though 0.13.0 replaced them with the Welcome window (BardTreeLtd/Welcome).
Also worth knowing
- The editor menu moved. Everything now lives under
BardTreeLtd/Civil AI/...rather than a top-levelCIVIL-AI-SYSTEMmenu. - Render banding defaults changed to a single 100-unit group with culling from band 1. If you tuned these, check them after upgrading.
See the changelog for the full list.
Run into issues?
Restore from the backup you took and try again.
If it still does not work, reach out on Discord in the support channel with as much detail as you can — the version you came from, the version you moved to, and the steps you took.