In this update, trader received error logs and, at your request, its own assortment configuration settings!
Now you can understand exactly what error the mod encountered (e.g., mod conflict or other errors). All logs are recorded in the server console (as well as in the .log file at SPT/user/logs/spt).
Now, about the config. It gives you convenient control over the merchant’s assortment. Before you begin, you should understand that this config is server-side, which means it will be applied the next time the server is started. The config is created automatically when the server is first started in the directory SPT/user/mods/Tiltushkin-AllAmmo/config/.
You don’t need to add anything to this config yourself. Each time the merchant’s assortment changes, new items will be automatically added to the config. And if you suddenly add an item to the config that is not in the assortment, the mod will tell you about it and remove it from the config itself.
Next, about the configuration structure and possible settings:
“ID from assort (not tpl)”:
{
“ItemName”: “string”,
“PriceMultiplier”: 0.01 - infinity,
“StockCount”: -1/0/your number
}
-
ID from assort - is the ID of the item from the merchant’s assortment
-
ItemName - is the name of the item in the game (in English), you can change it to anything you want, it is done for convenience to understand what the item is
-
PriceMultiplier - is the multiplier of the base price of the item
-
StockCount - the number of item the merchant has. If you specify -1, the item will disappear from the merchant’s assortment; if you specify 0, the standard number of items from the assortment will be used