diff --git a/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json b/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json index 0eec34d1..a7a23c6a 100644 --- a/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json +++ b/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json @@ -12,9 +12,6 @@ "release": { "betaDisclaimerTimeoutDelay": 30 }, - "onStart": { - "validateProfiles": true - }, "fixes": { "fixShotgunDispersion": true, "removeModItemsFromProfile": false, diff --git a/Libraries/SPTarkov.Server.Core/Models/Spt/Config/CoreConfig.cs b/Libraries/SPTarkov.Server.Core/Models/Spt/Config/CoreConfig.cs index a4f39381..81bef520 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Spt/Config/CoreConfig.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Spt/Config/CoreConfig.cs @@ -36,9 +36,6 @@ public record CoreConfig : BaseConfig [JsonPropertyName("fixes")] public required GameFixes Fixes { get; set; } - [JsonPropertyName("onStart")] - public required OnStart OnStart { get; set; } - [JsonPropertyName("survey")] public required SurveyResponseData Survey { get; set; } @@ -211,15 +208,6 @@ public record GameFixes public bool FixProfileBreakingInventoryItemIssues { get; set; } } -public record OnStart -{ - /// - /// Run profile templateId checks on all profiles when server starts - /// - [JsonPropertyName("validateProfiles")] - public bool ValidateProfiles { get; set; } -} - public record ServerFeatures { [JsonExtensionData] diff --git a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs index e449b81f..596b4790 100644 --- a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs @@ -1,6 +1,5 @@ using SPTarkov.DI.Annotations; using SPTarkov.Server.Core.Extensions; -using SPTarkov.Server.Core.Helpers; using SPTarkov.Server.Core.Models.Common; using SPTarkov.Server.Core.Models.Eft.Common; using SPTarkov.Server.Core.Models.Enums; @@ -21,8 +20,6 @@ public class PostDbLoadService( OpenZoneService openZoneService, ItemBaseClassService itemBaseClassService, RaidWeatherService raidWeatherService, - ProfileHelper profileHelper, - ProfileValidatorHelper profileValidatorHelper, ConfigServer configServer, ICloner cloner ) @@ -137,14 +134,6 @@ public class PostDbLoadService( var chosenBoss = GetWeeklyBoss(_botConfig.WeeklyBoss.BossPool, _botConfig.WeeklyBoss.ResetDay); FlagMapAsGuaranteedBoss(chosenBoss); } - - if (_coreConfig.OnStart.ValidateProfiles) - { - foreach (var (profileId, profile) in profileHelper.GetProfiles()) - { - profileValidatorHelper.CheckForOrphanedModdedData(profileId, profile); - } - } } ///