Migration notes
Follow these guidelines when upgrading existing projects to new ACTk releases.
General tips
- Back up your project or commit to source control before importing a new package.
- Remove the previous
CodeStage/AntiCheatToolkitfolder so obsolete assets do not linger. - After importing new version, run the validation and migration utilities under
Tools > Code Stage > Anti-Cheat Toolkitto fix legacy serialized data, if you see any data corruption.
Upgrading from ACTk v2021
The v2022+ series redesigned several APIs:
CodeHashGeneratorPostprocessor.Instancewas removed. Access properties directly:Instance.callbackOrder→CodeHashGeneratorPostprocessor.CallbackOrderInstance.HashesGenerated→CodeHashGeneratorPostprocessor.HashesGenerated
HashGeneratedhandlers now receiveIReadOnlyList<BuildHashes>instead of arrays. Update your event signatures accordingly.BuildHashes.FileHashesandHashGeneratorResult.FileHasheschanged fromFileHash[]toIReadOnlyList<FileHash>.
Migrating serialized obscured data
Some releases updated the encrypted data model to close vulnerabilities. Use the utilities provided in the package when you upgrade from older versions:
- Menu commands under
Tools > Code Stage > Anti-Cheat Toolkit > Migrateand> Validate - Context menu commands in the Project window (
Code Stage > Anti-Cheat Toolkit > …) - Static helpers such as
MigrateEncrypted()orDecryptFromV0()on specific obscured types
If you are coming from version 1.5.1.0 or earlier, request the 1.5.2.0 package to complete the intermediate migration step before jumping to modern releases.
When migrations are not viable
Reset serialized values in the inspector and reconfigure them manually. This is often faster when only a handful of fields are affected.