MusicManiac added a new version:
Core Changes
- Release archive is now .zip and has /users/mods folder, making it easy to just drag and drop into root spt folder like most other mods.
- New opt in advanced key weight configuration
enableLocationsConfig
Version 1.7.0 adds a new option to control key spawning in more detail, enabled in the config.jsonc file by setting the enableLocationsConfig property to true. This is false by default.
When enabled the mod will use new per location, per loot container and per rarity…
QuoteDisplay MoreFor SPT 3.11.X
Version 1.7.0 adds a new option to control key spawning in more detail, enabled in the config.jsonc file by setting the enableLocationsConfig property to true. This is false by default.
When enabled the mod will use new per location, per loot container and per rarity configuration that can be found in the locations folder to configure key spawns relative probability in loot containers.
Why would you want this?
When using the global values for all keys across all loot contains, maps and rarities you end up with very uneven distribution on maps in SPT 3.11 compared to previous versions. For example the total relative probabilities (all items in container) on Factory (night) a duffle bag have a value of ~6K while the same duffle bag on Streets of Tarkov have a value of ~977K. So if a global value of 500 (per added key) out of 6K on Factory (night) would be very different from 500 (per key) out of 977K on Streets of Tarkov.
Furthermore in the recent versions a lot of keys have been added that should not exist. With the new PVE keys were added a PveRarity of either "notExist", "common", "rare" or "superRare". Debug keys fall in the "notExist" category and by setting their relative probability to 0 instead of the same global value as other keys, we can ensure these keys don't spawn. This also means we can differentiate between common, rare and super rare keys, so we don't find super rare keys with same frequency as common keys.
How do I configure the relative probabilities for a location?Each location (customs, Factory, etc) have its own location file in the locations folder. In it you find settings for each loot container we modify, with subsections for keys, keycards and rarities. The values for each rarity corrosponds to the "keyWeight" and "keycardWeight" minimum weight in the config.jsonc, and higher value still means more likely to spawn.
How are the default settings, do I have to configure each location?
You do not need to configure anything after enabling the locations config. Great care have been done to make sure that the keys are balanced without you having to change anything. The default settings should give uniform results across all maps and you can just enable the new configuration and play for a balanced key spawn chance.
The default values are configured using the base SPT Dorms 114 key spawn chance in jackets. Dorms 114 is a rare key and we calculate the chance of it spawning and applies the same value to all other rare keys. For common we double the number. For super rare we half the number. This is how the current defaults were calculated. Not exist keys are 0 by default, but you can give it a value if you really want to find those random keys too.
Keys don't spawn enough I want to increase spawn chances!
If you want to increase spawns chances I suggest doubling all numbers in each location file until you are satisfied.