Migration Guide¶
v1.0 (Current)¶
No migrations required for v1.0. This is the initial release of FWAISystem.
General Upgrade Instructions¶
When upgrading FWAISystem to a future version, follow these steps:
Before Upgrading¶
- Back up your project. Create a full backup or ensure your changes are committed to version control before upgrading.
- Review the Changelog for the target version. Pay attention to any breaking changes, deprecated APIs, or renamed classes.
- Check plugin dependencies. If a new version requires a newer version of FWFactionSystem or FWGASSystem, upgrade those first.
Upgrade Process¶
- Replace the plugin folder. Delete the existing
Plugins/FWAISystem/directory and copy the new version in its place. - Regenerate project files. Right-click your
.uprojectfile and select "Generate Visual Studio project files" (or runGenerateProjectFiles.bat). - Compile the project. Build from your IDE or the Unreal Editor. Fix any compilation errors by consulting the changelog for API changes.
- Test in PIE. Run your game in Play-in-Editor and verify that NPC spawning, threat, leashing, and scaling behave correctly.
Common Migration Patterns¶
Renamed Classes or Methods¶
If a class or method is renamed in a future version, perform a project-wide find-and-replace:
- Search for the old name across all
.hand.cppfiles. - Replace with the new name.
- Update any Blueprint references by opening affected Blueprints and reconnecting broken nodes.
Deprecated APIs¶
Deprecated APIs will continue to work for at least one minor version after deprecation. They will emit compiler warnings with guidance on the replacement API. Address these warnings before the next major version.
Data Asset Changes¶
If UFWNpcDefinition gains new properties in a future version:
- Existing data assets will load with default values for new properties.
- No data migration is needed unless default values are inappropriate for your NPCs.
- Review new properties in the Configuration guide and update your data assets as needed.
Behavior Tree Node Changes¶
If behavior tree nodes gain new parameters:
- Existing behavior trees will load with default values for new parameters.
- Open each behavior tree in the editor to review and configure new parameters.
Version Compatibility Matrix¶
| FWAISystem | Unreal Engine | FWFactionSystem | FWGASSystem |
|---|---|---|---|
| 1.0 | 5.4+ | 1.0+ (optional) | 1.0+ (optional) |