Vercinaigh's Cover Photo
Vercinaigh's Profile Picture

Vercinaigh

Member since
SPiRaL

Hey, saw your comment looking for a “global” way to adjust a modded trader’s assort prices, dunno how well notifications work on the new site here so just sending you a DM too given your comment was from over a month ago so you may not end up back on that trader’s page lol

If you still need a way to quickly edit a trader’s sell prices (what you pay to buy from their inventory), here’s a python script I’ve been using since SPT 3.8 or earlier to do so. Instructions follow, I’ll paste the script contents at the very end (New site doesn’t have the formatting options yet that the previous site had for leaving comments…)

-Download & install Python: https://www.python.org/downloads/

-Make a backup copy of the Trader’s Assort.json you want to edit just to be safe.

-Place a copy of the trader’s “Assort.json” file in same folder as multiply_currencies.py

-If the assort file is named differently such as Artem’s: “66bf757f27d0b097db0acea5_Assort.json”, rename the file to just “Assort.json”

-Right click empty space inside the same folder and click “Open in Terminal” (or “Open in Powershell”, either will work)

-Verify the path shown is to the correct folder that has both the Assort.json and “multiply_currencies.py inside

-Run with the following command adjusting the multiplier as needed:

python multiply_currencies.py assort.json updated_assort.json --global_multiplier 1.2

-Rename the resulting output file: “updated_assort.json” back to “Assort.json” or whatever the original mod’s assort filename was (for example if Artem, you would rename “updated_assort.json” back to “66bf757f27d0b097db0acea5_Assort.json”)

-Replace the original Assort file in the mod’s folder where you have it installed with the newly updated file you just made. When you open the SPT/Fika launcher, go to settings and click “Clean Temp Files” before launching the game. That trader’s prices should be adjusted now :)

This will multiply all 3 currencies (Roubles, Euros, and USD) by the multiplier you set but won’t touch barters. Those you would still need to edit manually… You can do so a bit easier by using: https://forge.sp-tarkov.com/mod/1518/assort-editor#description

It says it’s out of date, but I was able to use it without issue to extensively adjust several different 3.11.x modded trader’s assort files without issue… Just make backups before editing just to be safe!

If you need help identifying the item IDs to change specific items/barters, you can install https://forge.sp-tarkov.com/mod/1542/debug-tooltip#overview and hover over an item in a trader’s inventory to get its ID


Paste the following starting with “import json…” into Notepad++ or similar and save it as “multiply_currencies.py” without the quotes. If it doesn’t work or you get an error, verify it didn’t save as “multiply_currencies.py.txt”. If it did save with .txt on the end, just rename it to “multiply_currencies.py” and click ok if Windows warns you about changing the file extension:

SCRIPT:

import json
import sys
import argparse
import math

def apply_multiplier(data, global_multiplier):
    currency_ids = {
        "roubles": "5449016a4bdc2d6f028b456f",
        "usd": "5696686a4bdc2da3298b456a",
        "eur": "569668774bdc2da2298b4568"
    }
    
    for item_id, barter_list in data['barter_scheme'].items():
        for barter in barter_list:
            for obj in barter:
                if obj['_tpl'] in currency_ids.values():
                    original_count = obj['count']
                    new_count = math.floor(original_count * global_multiplier)
                    obj['count'] = new_count
    
    return data

def main(input_file, output_file, global_multiplier):
    with open(input_file, 'r') as f:
        data = json.load(f)

    updated_data = apply_multiplier(data, global_multiplier)

    with open(output_file, 'w') as f:
        json.dump(updated_data, f, indent=4)

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='Apply a global multiplier to Roubles, USD, and EUR in barter scheme.')
    parser.add_argument('input_file', type=str, help='Path to the input JSON file.')
    parser.add_argument('output_file', type=str, help='Path to the output JSON file.')
    parser.add_argument('--global_multiplier', type=float, required=True, help='Global multiplier for all currencies.')

    args = parser.parse_args()

    main(args.input_file, args.output_file, args.global_multiplier)
0 Likes

This user has not yet published any mods.

Recent Activity

Downloaded mod

Version 1.0.0 of AmmoSorter
Oct 7, 2025 2:52 AM View details

Downloaded mod

Version 1.0.6 of Meaningful Weapon Masteries
Oct 7, 2025 2:50 AM View details

Downloaded mod

Version 1.0.8 of Continuous Load Ammo
Oct 7, 2025 2:49 AM View details

Followers

SPiRaL
SPiRaL
User Vercinaigh has these followers:

View all connections

SPiRaL
SPiRaL Member Since

Following

Not yet following anyone.
User Vercinaigh is following:

View all connections