Mod Details

SuntionCore.SPTExtensions 1.0.0

Created by Suntion

258 Downloads

SPT 4.0.13 Compatible

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

Latest Version 1.0.0
SPT 4.0.13

Updated Mar 6, 7:47 AM

11.97 KB

Version Notes
English

Version 1.0.0 Release Notes

Bug Fix: Language Pack Loading Issue Resolved

This release addresses a critical issue where language packs failed to load due to service initialization timing conflicts. The module has been upgraded to stable version 1.0.0.

Core Fix: Refactored Service Initialization Flow

  • Double-Checked Locking Pattern: Added a private Initialize() method with double-checked locking (based on an initialized flag) to ensure I18N registration logic executes only once, eliminating race conditions.

  • Defensive Initialization: Moved initialization logic from the OnLoad lifecycle hook to the business layer. Methods including Payment, SendMoney, SendItems, and UpdateAccountData now explicitly call Initialize() at their entry points, preventing “language pack not loaded” exceptions that previously occurred when external calls were made before module loading completed.

  • Execution Order Correction: Fixed the execution sequence in ProfileAndAccountService.UpdateAccountData to ensure account data warm-up completes before any logging operations begin.


Stable Release: Version 1.0.0

This upgrade marks the core extension module’s transition out of preview state:

  • Version incremented from 0.1.0 to 1.0.0 in both SuntionCoreSPTExtensionsMod.cs and SuntionCore.SPTExtensions.csproj
  • No breaking API changes - All existing public interfaces remain fully compatible
  • The module is now considered production-ready for all SPTarkov server modding projects
中文

版本 1.0.0 更新日志

问题修复:解决因服务初始化时序导致的语言包加载失败问题

本次更新解决了一个关键问题:由于服务初始化时序冲突,导致语言包无法正常加载。该模块现已升级至稳定版本 1.0.0。

核心修复:重构服务初始化流程

  • 双重检查锁定模式:新增了基于 initialized 标志的私有 Initialize() 方法,采用双重检查锁定模式,确保 I18N 注册逻辑仅执行一次,消除了竞态条件。

  • 防御性初始化:将初始化逻辑从 OnLoad 生命周期钩子移至业务层。PaymentSendMoneySendItemsUpdateAccountData 等方法现在在其入口点显式调用 Initialize(),防止了在模块加载完成前因外部调用而导致的“语言包未加载“异常。

  • 执行顺序修正:修复了 ProfileAndAccountService.UpdateAccountData 中的执行顺序,确保账户数据预热在任何日志记录操作开始前完成。


稳定版本发布:1.0.0

此次升级标志着核心扩展模块正式退出预览状态:

  • 版本号在 SuntionCoreSPTExtensionsMod.csSuntionCore.SPTExtensions.csproj 中从 0.1.0 递增至 1.0.0
  • 无破坏性 API 变更 - 所有现有公共接口保持完全兼容
  • 该模块现已被视为生产就绪,适用于所有 SPTarkov 服务端模组开发项目
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