
Adds a new button that opens gun builder BUT only shows parts that are in trader stock instead of every gun part in the game.
Trader modding
couldn’t think of a better name
Requires: Custom Interactions
YOU MUST INSTALL CUSTOM INTERACTIONS FOR THE MOD TO WORK
Description
This mod adds a button to the right click menu that opens the weapon preset builder, but it only shows you trader stock parts instead of every part in the game.
I always thought it was annoying how you couldn’t filter weapon mods by trader stock… Now you can!
Works well with realism mod randomized stock and hardcore flea configs.
Tip: You can disable the “traders only” filter on the flea page when you buy the parts in case the part is cheaper on the flea.
Only works with currency for now, no barter. Also no fence cause he ain’t on the flea.
Quick demo video ( it’s weapon modding, but with trader stock parts )
It just works™
Installation:
Drag and drop “BepInEx” and “user” folders from my mod and the “BepInEx” folder from Custom Interactions into your game folder. (You know the drill by now.)
Config:
You can add custom trader ids in config.json
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Let me know if there’s a mod/game breaking bug, but if it’s like a very minor annoyance bug, then I might not fix it.
I just wanna build a cheap gun quickly and go die
For the people who are gonna look at the code, it’s very spaghetti. Italian style.
Known “issues” (I may or may not fix them. Depends on how many people use the mod):
If you are modding a weapon and click on “character” on the bottom menu bar, then press ESC to go back to the modding screen, the trader stock filter will be gone and you will see all mods like in the normal preset builder. This is mainly because spaghetti code, but imo it’s not really a problem.
^This applies every time you go in your inventory then go back to the modding screen with ESC. Opening Trader Modding will set the filter again.
Any issue where the gun part filter is gone is fixed by just going back to your inventory and clicking on Trader Modding again.
There was something else but I forgor
6.9K Downloads
Updated for SPT 3.7.1
1.1K Downloads
Updated for 3.7.0
STILL REQUIRES CUSTOM INTERACTIONS
will update mod with fixes soon when I find time
1.3K Downloads
Fixed:
1. Any item had “TRADER MODDING” options.
2. Trader Modding option appeared in raid.
All credits for this fix go to LeonardoVAC!
Details
-
GUID
Not Available
-
License
-
Source Code
-
Latest Version VirusTotal Result
1.0.3 have link to download 1.0.1
anyone knows if this works with 3.8.3?
I seem to be experiencing the same issue as Agoelia, sad
Found a game breaking bug. More info here:
Cannot right-click (or double click) weapons in stash
Basically, mod worked fine for days, then suddenly it started preventing me from right-clicking weapons in my stash. VERY weird imo. I did not touch the configs, and I had the most recent version. I still tried to reinstall the mod, but the issue persists. Removing the mod (and only this mod) immediately solves the issue. Maybe it’s a conflict with another mod?
You can find all kinds of log in the linked thread.
For now I’ll play without because it prevents me from interacting with guns at all (even just unloading mags, and removing a scope). But I am sad because this mod is SO nice to have. I hope you find the time to fix asap
Hi, I can’t seem to add custom traders to the list, here’s the log:
The application had a critical error and failed to run
Exception produced: SyntaxError: C:\Sierra Papa Tango\user\mods\Wara-TraderModding-1.0.0\config\config.json: Unexpected token : in JSON at position 40
Stacktrace:
SyntaxError: C:\Sierra Papa Tango\user\mods\Wara-TraderModding-1.0.0\config\config.json: Unexpected token : in JSON at position 40
at parse (<anonymous>)
at Object.Module._extensions..json (node:internal/modules/cjs/loader:1322:39)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Sierra Papa Tango\user\mods\Wara-TraderModding-1.0.0\src\mod.ts:5:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._compile (pkg/prelude/bootstrap.js:1890:32)
This is what my config looks like:
{
“customTraderIds”: [
“PAINTERSHOP”,
“AKGUY”,
“armalite”,
]
}
I need your help please, I’m new to this.
Thank you!
Fantastic mod, although I have noticed that it did allow me to buy Jeager lvl1 items through the modding menu without having jeager unlocked yet, nothing a little self-control can fix though lol
Holy SHIT. If this were in the game, i’d cum daily.
Hey Wara, a request for next time you release an update. Could you add the following to your Plugin.cs, just below the “BepInPlugin” attribute:
[BepInDependency(“com.IcyClawz.CustomInteractions”)]Currently if a user doesn’t have the “CustomInteractions” plugin installed, they are greeted by a cryptic error about GetTypes() failing. This would cause SPT to properly inform them that they are missing the CustomInteractions dependency
Hello, I’m having an issue with the mod. Every time I try adding a custom trader to the config.json, the game stops allowing me to access the Trader Modding menu. Every time I click the Trader Modding option the game will freeze for a few seconds before going back to normal. This is how I have the config set up and the error produced in the console:
{
“customTraderIds”: [
“Painter - Trader”
]
}
TypeError: Cannot read properties of undefined (reading ‘assort’)
TypeError: Cannot read properties of undefined (reading ‘assort’)
at TraderAssortHelper.getAssort (C:\snapshot\project\src\helpers\TraderAssortHelper.ts:83:101)
at TraderModding.getTraderMods (G:\SPT\SPTARKOV\user\mods\Wara-TraderModding-1.0.0\src\mod.ts:58:53)
at Object.action (G:\SPT\SPTARKOV\user\mods\Wara-TraderModding-1.0.0\src\mod.ts:23:43)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:79:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:150:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:39:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:90:26)
at Server.<anonymous> (C:\snapshot\project\src\servers\HttpServer.ts:43:18)
TypeError: Cannot read properties of undefined (reading ‘assort’)
TypeError: Cannot read properties of undefined (reading ‘assort’)
at TraderAssortHelper.getAssort (C:\snapshot\project\src\helpers\TraderAssortHelper.ts:83:101)
at TraderModding.getTraderMods (G:\SPT\SPTARKOV\user\mods\Wara-TraderModding-1.0.0\src\mod.ts:58:53)
at Object.action (G:\SPT\SPTARKOV\user\mods\Wara-TraderModding-1.0.0\src\mod.ts:23:43)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:79:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:150:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:39:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:90:26)
at Server.<anonymous> (C:\snapshot\project\src\servers\HttpServer.ts:43:18)