A simple server-side fix for the MassiveSoft mod crash where Mechanic (or other traders) refuse to load and spit out an error
This is a compatibility patch
With the help of GPT i created this mod to solve the bug where MassiveSoft’s mod causes Mechanic (and sometimes other traders) to crash with a null to Int32 error.
The crash happens because MassiveSoft (and sometimes other mods) generate broken trader offers with null stock counts, barter prices, or loyalty levels.
This mod automatically sanitises Mechanic’s assort (and all other traders, just in case) after everything loads.
What It Does
Loads after all other mods.
Cleans up Mechanic’s assort by:
- Forcing StackObjectsCount to at least 1
- Replacing missing barter counts with ₽1000
- Fixing loyalty levels to always be in the range 1–4
- Keeps items usable instead of deleting them.
How to Install
Download zzzMassiveSoft-MechanicFix.zip
Drag and drop the user folder into your SPT root
Compatibility
Tested on SPT 3.11.0.
Safe to use alongside MassiveSoft and other trader mods.
Works even if you don’t use MassiveSoft (it just ensures traders never have bad data).
Credits
Mod by HaaWkk
Thanks to the SPT community for bug hunting and fixes
0.0 MB
386 Downloads
Fixed an issue where trader weapons were spawning with missing parts. This was caused by SPT-Realism’s “randomize trader stock” option occasionally setting null values on root offers.
Sanitizer now only touches root offers, leaving attachments and part trees intact.
Ensures stock, barter counts, and loyalty levels are always valid integers.
Should now work cleanly with both vanilla SPT and Realism enabled.
750 Downloads
Updated package.json to support all 3.11.x versions of SPT.
Details
-
GUID
Not Available
-
License
-
Latest Version VirusTotal Result
-
Includes AI Generated Content
Not sure if it’s this mod, but when I have it activated, it does fix Mechanic, but all guns are missing half their parts at the trader. Not a single complete gun.
Really? Guess I need to check my codes……. Some information would be helpful.
Works great
Mod will not load with SPT 3.11.4, because version checking is too strict.
You need to update sptVersion line in package.json like this:
“sptVersion”: “~3.11”
Awesome