Mod Details

SuntionCore.SPTExtensions 1.0.0

Created by Suntion

56 Downloads

SPT 4.0.12 Compatible

Extension features for SuntionCore, primarily consisting of dependency-injected utility classes.

Latest Version 1.0.0
SPT 4.0.12

Updated Saturday at 12:27 PM

11.97 KB

Version Notes

fix(i18n): Resolve language pack loading issue caused by service initialization timing and release stable version

  • Core fix: Refactor initialization flow of ModMailService and ProfileAndAccountService to eliminate race conditions

    • Add private Initialize() method using double-checked locking pattern (based on initialized flag) to ensure I18N registration logic executes only once
    • Move logic originally confined to the OnLoad lifecycle hook down to the business layer, explicitly calling Initialize() at entry points of methods such as Payment, SendMoney, SendItems, and UpdateAccountData to prevent “language pack not loaded” exceptions caused by external calls occurring before module loading completes
    • Correct execution order in ProfileAndAccountService.UpdateAccountData to ensure account data warm-up completes before logging
  • Release: Officially upgrade project to stable version 1.0.0

    • Update Version property in SuntionCoreSPTExtensionsMod.cs and configuration in SuntionCore.SPTExtensions.csproj, incrementing version from 0.1.0 to 1.0.0
    • This upgrade marks the core extension module’s transition out of preview state with no breaking API changes
This download is externally hosted.
Always scan for viruses.

Required Dependency

The latest version of this mod requires the following mod to be installed as well.

Details