说明 / Summary
I've ported the latest MG-Mod v1.1.1 (SPT 4.1.2 release) to SPT 4.0.13 and it's working in-game. Since MG-Mod-CSharp is archived (read-only), I can't open a PR there, so I'm sharing the ported source here for upstreaming.
Ported features (full v1.1.1 set)
- 9 soft armors, 7 plates, MG-Propital, MG tactical rig (14-grid layout)
- Trader item buyback (items_buy)
- Config corruption fallback to defaultConfig
- 独立商人/独立物品/独立预设/实时跳蚤/钥匙分类
- 麻瓜商人出售范围修复 (v1.1.1 Hotfix)
Key adaptations for SPT 4.0.13
- Injectable priorities: PostDBModLoader+1 / PreSptModLoader+1 (4.1's Preload doesn't exist in 4.0.13)
- DatabaseService table access, ISptLogger, LogTextColor (Spectre removed)
- config null-segment guard - fixes OnLoad NullReferenceException that silently killed all Templates settings (ammo weight zeroing, magazine multiplier, insurance all stopped)
- default(MongoId) -> new MongoId() - was collapsing all non-MongoId assort item IDs to zero, making new items unbuyable
- Client: MGModClient retargeted net48, MGRigLayoutFix injects rig layout via CacheResourcesPopAbstractClass (4.0.13 has no ResourcesCache)
Source
Full source on my fork branch: https://github.com/dustinmoon78/MG-Mod-CSharp/tree/v1.1.1-spt4.0.13 (104 files, compiles clean on net9.0)
Verified on SPT 4.0.13: 230 items, 596 trader assortment entries.
If you want to make this official, happy to coordinate the cleanest upstream path.
说明 / Summary
I've ported the latest MG-Mod v1.1.1 (SPT 4.1.2 release) to SPT 4.0.13 and it's working in-game. Since MG-Mod-CSharp is archived (read-only), I can't open a PR there, so I'm sharing the ported source here for upstreaming.
Ported features (full v1.1.1 set)
Key adaptations for SPT 4.0.13
Source
Full source on my fork branch: https://github.com/dustinmoon78/MG-Mod-CSharp/tree/v1.1.1-spt4.0.13 (104 files, compiles clean on net9.0)
Verified on SPT 4.0.13: 230 items, 596 trader assortment entries.
If you want to make this official, happy to coordinate the cleanest upstream path.