The Forge is currently under construction. Data is synchronized with the hub every 30 minutes. Help report issues!

Mod Details

Algorithmic Barter Randomizer

Algorithmic Barter Randomizer 1.4.0

Created by DewardianDev

3.5K Downloads

SPT 3.7.6 Compatible

Randomize vanilla barters. Optionally randomizes after every raid/trader reset! Customizable seed for replayability! Share your seed/difficulty to get the same outcome with friends!

Latest Version 1.4.0
SPT 3.7.6

Updated Oct 28th, 2023

Version Notes

Major Update

  • Removed Hardcore mode It’s broken right now and I don’t have time to fix it. ;(
  • Updated barters to be updated when traders reset and after each raid.
This download is externally hosted.
Always scan for viruses.

What this mod changes:

  • Randomizes all trader “barter” items

    The algorithm basically looks at the costs for the target item, and then randomly chooses items that are near to the same cost for the trade.

    In general, trades should be more sensical and require fewer items.

  • Configurable difficulty

  • Configurable seed, let no two play throughs feel the same!

  • Randomize barters after every raid/trader reset by setting the seed to 0 (zero)!

  • Share your favourite seed/difficulty multiplier with friends to have the same experience as them!

Compatibility:

  • PUT this AFTER ALGORITHMIC LEVEL PROGRESSION in the order.json load order!!!
  • Should be compatible with almost everything :/
  • There is a config option to support custom traders as well!

If you’re really digging the mod, consider supporting my caffeine addiction ☕8):

Buy Me a Coffee at ko-fi.com

=== INSTALL STEPS ===

1. Drag and drop this folder into the user/mods folder.

2. Update your mods/order.json so that this is last on the list.

(this is likely only needed if you have custom quests you would like included)

3. Optionally change your configuration (see below configuration options).

4. ???????

5. Profit!!!!

Example order.json:

{

“order”: [

“ServerValueModifier”,

“zPOOP”,

“Lua-CustomSpawnPoints”,

“DewardianDev-XXXX”,

“DewardianDev-AlgorithmicLevelProgression”
“DewardianDev-AlgorithmicBarterRandomizer”,

]

}

==== Configuration Options ====

{

// Turn on/off the mod
“enable”: true,

//Change this to change the randomizer, share seeds and difficulty with friends to get the same outcome!
“seed”: 2023,

// This is the DIFFICULTY setting. For cheaper barters (0.2) is lower, more expensive barters is higher (1.5)

“barterCostMultiplier”: 0.7,

//Turn this on to figure out the correct custom trader name to add to the below “customTradersToInclude”
“printUnkownTraders”: false,

// This is to add custom traders (Experimental: will be dependent on other modders db changes)
“customTradersToInclude”: [
“SteveTheExampleGuyThatHasSalewas”,
“BobJustExampleBob”
],

// Turn these on/off to enable barters of these types

“MedBarterItems”: true,
“MeleeBarterItems”: true,
“GrenadeBarterItems”: true,

//Will print out the changes for each cash change barter
“debugCashItems”: false,

//Will print out the changes for each barter
“debug”: false
}

Version 1.4.0
Download Mod Version
SPT 3.7.6
Latest Compatible SPT Version

1.6K Downloads

Created Oct 28th, 2023

Updated Oct 28th, 2023

Virus Total Results

Major Update

  • Removed Hardcore mode It’s broken right now and I don’t have time to fix it. ;(
  • Updated barters to be updated when traders reset and after each raid.
Version 1.3.0
Download Mod Version
SPT 3.7.1
Latest Compatible SPT Version

538 Downloads

Created Oct 15th, 2023

Updated Oct 15th, 2023

Virus Total Results

Minor Update

  • Updated to 3.7.0/3.7.1 (previous versions were broken)
  • Fixed an issue with setting certain trader values on hardcore not staying after raid end.
Version 1.2.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

446 Downloads

Created Sep 23rd, 2023

Updated Sep 23rd, 2023

Virus Total Results

Major update

  • The algorithm now runs on game start, and after raids.
  • You can set the barters to randomize after every raid by setting:
    “seed”: 0,
  • Added a new setting to hardcoreSettings that makes it so you can turn on/off magazine barters for cash barters:
    “excludeMagBarters”: true

That’s all for now, have fun!
:):thumbup:

Version 1.1.2
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

376 Downloads

Created Sep 14th, 2023

Updated Sep 14th, 2023

Virus Total Results

Compatibility Optimization:

  • Should help with compatibility with mods that implement items incorrectly with the DB.
Version 1.1.1
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

269 Downloads

Created Sep 13th, 2023

Updated Sep 13th, 2023

Virus Total Results

Config change:

  • Fixed a bug with cash barters and custom items.
  • “Difficulty” has been replaced by two new values:
    “barterCostMultiplier”: 0.7,
    “cashBarterCostMultiplier”: 0.5,

These values multiply the base items (to be traded for’s) prices to figure the rough cost of the total barter items.

For example, if the item costs 100, and the multiplier is 0.5, the traded item value would be 50.

Version 1.1.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

199 Downloads

Created Sep 12th, 2023

Updated Sep 12th, 2023

Virus Total Results

Complete rewrite:

  • Completely rewrote the mod, balance feels much closer to live barters.

NOTE: the hardcore mode may present trades that when combined are unbalanced, this is a known side effect of the random nature of this mod.

DewardianDev Pinned

I may bring this back, but have too much work atm.

My apologies folks!

0 Likes
DewardianDev

This is being worked on and functioning well for 3.10.

Just need to make it configurable.

Release soon.

0 Likes
S13NDR_M4N

1. Does this turn all offers into barters? or have an option to do so?

2. Is it compatible with Deadleaves’ “Barter economy” which does do that

2A. - if so, load this or BE first?

0 Likes
LeGourmet

Hi, does this work for 3.7.6 or need an update ?

0 Likes
AIGUWFG

Hi, nice mod, could you please add seed randomization on first launch? :?::saint::whistling::);)^^:thumbup::cursing::thumbdown::evil:8o<3:S8)8)8)

0 Likes
lElwoodBluesl

Exactly the mod I was looking for. Unlike QDkivish my question is the total opposite of his :)
I’m personally not a big fan of the random item assignment. In my case (with default seed settings, i.e. 2023), I get a certain item assignment. After the first raid a lot of barters then have newly assigned items. As long as I keep the SPT server running it will stay like this. Once I restart the server, I get again the initial assignment.
That behavior ends up in initially e.g. 1x Firesteel for an M4A1 at Peacekeeper, after the reassignment it’s 1x Meldonin injector.
I’m currently using 1.3.0 (last version with hardcore mode). I guess when you deactivated the hc mode in latest 1.4.0 (because of being broken) it was most likely because much cheaper items are assigned for an expensive barter - and not because of that random assignment I explained above. Please correct me if I’m wrong.

You wrote that you’re currently busy with other stuff. So my question would be, could you please tell me, what I need to adjust/comment out (in the code) so I deactivate that randomizer? The behavior I’m looking for is always the same barters - no matter of raid-to-raid or server restart.

I tried to use the version before the randomizer was integrated, i.e. 1.1.2 (which according to the package.json should work with 3.x.x), but if I use it with 3.7.1 I get a loading error at the server window.

Would be great if you can give me a hint, what I need to adjust. Thanks a lot in advance.

0 Likes
DewardianDev

Version 1.4.0

Major Update

  • Removed Hardcore mode It’s broken right now and I don’t have time to fix it. ;(
  • Updated barters to be updated when traders reset and after each raid.
0 Likes
DewardianDev

So I need to update this mod a bit, it’s not in a good place right now.
If you want to use it feel free, but I have to add the code to the refresh trader hook and just can’t be bothered at the moment.

0 Likes
QDkivish

Some containers are not randomized using seed 0. Is this intended?

0 Likes
Foxxee

Just a notice to others using Realism this mod it seems to be incompatible with the realism’s trader changes as it resets to the original barters after restocking.

0 Likes

Details