From 6656c733a33b77c62a5d9f1eb69411f32b9ef467 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 21 May 2024 19:47:01 +0100 Subject: [PATCH] Added migration path for `3.8.3` profiles into new `3.9.0` structure --- project/src/controllers/GameController.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index ef2e48e8..2a4e5856 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -156,6 +156,13 @@ export class GameController this.logger.debug(`Started game with sessionId: ${sessionID} ${pmcProfile.Info?.Nickname}`); + // Migrate aki object data into spt for 3.9.0 release + if ((fullProfile as any).aki) + { + fullProfile.spt = this.cloner.clone((fullProfile as any).aki); + delete (fullProfile as any).aki; + } + if (this.coreConfig.fixes.fixProfileBreakingInventoryItemIssues) { this.profileFixerService.fixProfileBreakingInventoryItemIssues(pmcProfile);