Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.
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
-
Version 1.0.3
- wara
- 6.5k Downloads
-
Version 1.0.2
- wara
- 1.1k Downloads
Updated for 3.7.0
STILL REQUIRES CUSTOM INTERACTIONS
will update mod with fixes soon when I find time -
Version 1.0.1
- wara
- 1.2k Downloads
Fixed:
1. Any item had "TRADER MODDING" options.
2. Trader Modding option appeared in raid.
All credits for this fix go to LeonardoVAC! -
Version 1.0.0
- wara
- 676 Downloads
Cosm1c Gam3r
1.0.3 have link to download 1.0.1
Eyal3012
anyone knows if this works with 3.8.3?
codeyanko
it does not
cadsarm
I seem to be experiencing the same issue as Agoelia, sad
cadsarm
still no update. Sad
Agoelia
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
wara Author
Make sure you have custom interactions installed. Otherwise you'll have to wait for me to update one day unfortunately
Agoelia
Yes, it is installed.
I did initially forget to install it, the game would not even start up without it.
wara Author
If you installed the plugin AND the patcher correctly from Custom Interactions, both in their respective folders in the BepInEx directory, then I'm not sure. I had plans to make a large update for the mod, but life has been getting in the way so for the time being I don't plan on updating any time soon. Sorry
CHICK3N
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!
Thermo
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
PureRussianVodka
thank you and please update this mod when spt .14 comes out
Guthor
Holy SHIT. If this were in the game, i'd cum daily.
DrakiaXYZ
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:
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
wara Author
Currently on hiatus but I was planning to attempt to add a toggle directly in the preset editor to remove the dependency. I made this mod quickly so I'll probably fully rewrite the mod to fix all the bugs
You can create a PR if you feel like it and I'll update it on here at the very least while I'm on hiatus.
1XERO1
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)
ParaZilla
I can't get it to work with LittleMaid trader. What's the correct id for MaidTraders?
FiveF
I just say that every time I see this image/thumbnail of this mod somewhere, it makes me want to laugh xd
Mechavelli
hey mate, mod's not working for me. I do have custom traders but I haven't set them up here. Is that a requirement for it to work? I'm also using traveler if that affects anything. Basically I do have the trader modding option on the context menu but when I click it, the game just freezes for a little bit and when it returns to normal, nothing happens.
Is there something I'm doing wrong or missing?
wara Author
Check for errors in ~ console or server console
Mechavelli
This is what I got:
https://imgdb.net/13805
what's Item22_Standard_velocity? Is this a custom item that is messing with this mod? Because I haven't added any custom traders to this config. As in, I have them in my game but have not added them to the trader modding config file. Could that be it?
wara Author
No. It's probably because you have a mod item in your stash from a deleted mod. I think some people used profile editor to delete that item and that fixed it.
Mechavelli
Wait, so mods that are deleted on this site can't work with yours? I think I'm using the l85 and the FAMAS mods, could that be the issue?
wara Author
No. From what I've seen, that error happens when you install a mod that adds items to your profile, then you uninstall that mod. The item is still registered on your profile and you have to edit your profile, using something like the SPT Profile Editor, to remove that item.
"Item22_Standard_velocity" is the one that's causing the issue in your case, so you would have to delete it in your profile.
That's if that's actually your issue. I can't develop or fix anything anymore cause my SPT just crashes all the time for no reason.
DOOTSlayer
Seems like the mod is not working with Bluehead AIO Trader anymore. On 3.6.1 adding this trader in your mod's config caused no issues. Now it writes this in the log whenever I'm trying to open trader modding menu:
Error: Item 5422acb9af1c889c16000029 still not found in base cache after regeneration
Error: Item 5422acb9af1c889c16000029 still not found in base cache after regeneration
at ItemBaseClassService.itemHasBaseClass (C:\snapshot\project\src\services\ItemBaseClassService.ts:110:23)
at ItemHelper.isOfBaseclass (C:\snapshot\project\src\helpers\ItemHelper.ts:90:42)
at TraderModding.getTraderMods (C:\Games\KrakovskayaPremium\user\mods\Wara-TraderModding-1.0.0\src\mod.js:66:32)
at Object.action (C:\Games\KrakovskayaPremium\user\mods\Wara-TraderModding-1.0.0\src\mod.js:35:39)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:43:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:88:26)
Error: Item 5422acb9af1c889c16000029 still not found in base cache after regeneration
Error: Item 5422acb9af1c889c16000029 still not found in base cache after regeneration
at ItemBaseClassService.itemHasBaseClass (C:\snapshot\project\src\services\ItemBaseClassService.ts:110:23)
at ItemHelper.isOfBaseclass (C:\snapshot\project\src\helpers\ItemHelper.ts:90:42)
at TraderModding.getTraderMods (C:\Games\KrakovskayaPremium\user\mods\Wara-TraderModding-1.0.0\src\mod.js:66:32)
at Object.action (C:\Games\KrakovskayaPremium\user\mods\Wara-TraderModding-1.0.0\src\mod.js:35:39)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:43:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:88:26)
In the database it shows that 5422acb9af1c889c16000029 is some kind of a 9x18 SMG.
Has someone encountered this issue?
Terra ^=.=^
Would it be within reason to ask for support with @Jehree's Traveler mod? Your mod works with said mod but it fetches all the traders inventory even though the player may be only have access to one particular trader. Which is a minor inconvenience. But, I can't help but wonder if your mod could simply fetch Jahree's mod's [off-raid-position] parameter from the player profile with the mod? It's probably more work than its worth if I had to guess
Also have a side question. Does it fetch predetermined list of items or does it pull from what's currently being played on? In other words, if I add a custom weapon mod to a peacekeeper, will your mod fetch that as well?
Thanks!
poltis
Large chunk of red, I have like 5 custom traders so i may have messed up in config, however i don't think thats a problem could i get some help?
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:85:101)
at TraderModding.getTraderMods (C:\Users\matt2\Desktop\monkey mode\user\mods\Wara-TraderModding-1.0.0\src\mod.js:62:53)
at Object.action (C:\Users\matt2\Desktop\monkey mode\user\mods\Wara-TraderModding-1.0.0\src\mod.js:35:39)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:43:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:88: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:85:101)
at TraderModding.getTraderMods (C:\Users\matt2\Desktop\monkey mode\user\mods\Wara-TraderModding-1.0.0\src\mod.js:62:53)
at Object.action (C:\Users\matt2\Desktop\monkey mode\user\mods\Wara-TraderModding-1.0.0\src\mod.js:35:39)
at StaticRouterMod.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)
at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)
at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)
at AkiHttpListener.handle (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:43:39)
at HttpServer.handleRequest (C:\snapshot\project\src\servers\HttpServer.ts:88:26)
at Server.<anonymous> (C:\snapshot\project\src\servers\HttpServer.ts:43:18)
poltis
ah i have some custom items that may be causing im gonna use profile editoer to remove em and see if it works
poltis
So solved some other errors but im still having issues with the mod re-installing now.
BroChadman
Although its been updated to 3.7.1 it still shows this in the SPT server launcher
Mod Wara-TraderModding is not compatible with the current version of AKI. You may encounter issues - no support will be provided!
is that an issue?
wara Author
no, ignore it
prettyplayer
Work at 3.7.1?
DarkEsteves
hi, i added my custom traders ids, but only show parts of the normal traders and only Saria
{
"customTraderIds": [
"CaptNascimento",
"SariaShop",
"ArtemTrader",
"DOC_TRADER"
]
}
and in the console show an warning saying that this version of the mod is not compatible
Im in AKI 3.7.0..
DoggyBits
Love the concept of the mod, these additions are things that should make its way to the live version (even though i never play it).
Im also having a similar issue where I have added a trader but am getting the error:
Error: Item handguard_ar15_spikes_tactical_sar3_12in still not found in base cache after regeneration.
Im sure its something simple, but I can't seem to figure it out. Any advice?
DarkEsteves
have the same error with the mod "extra ammo"
i deleted that mod and trader menu works fine
Randek
Hi, i have a problem when i click on trader modding the game freezes for a couple seconds, in spt server it says item xxx not found in base cache after regeneration, and it doesnt open the modding screen. i put it in first place in order.json i thought it might help.
black_rose
same issue here.
edit: this was due to the SPT Realism mod. I did not delete the custom items so when I would try using this mod, it would give an error when trying to read my inventory
Randek
I dont use realism, only mod i use that is manipulating items is late to the party, i will try it without that.
Mechavelli
Did it work? I'm getting the same issue but I really don't feel like crawling through my modlist to delete every unique item...
Kagoth
Hi. i got a problem with your mod after update. I did clean SPT install after update and in server console i got a message:
Mod Wara-TraderModding is not compatible with the current version of AKI. Problems may occur - no support will be provided!"
Loaded mod: TraderModding version: 1.0.0 author: Wara
it shows i got version 1.0.0 installed but i downloaded latest version of this mod from "TraderModding V1.0.1 3.7.0.zip" file
wara Author
You can safely ignore. Mod should still work. I'll update this eventually
Cosm1c Gam3r
I noticed new SPT adds info to launcher about mods used. And when mod is updated then launcher shows "!" and even if I remove mod fully it still is showing exclamation mark. Even if I add clear nev version of the mod then launcher still shows old version and new version too.
I went into my profile file and removed imput about old mod that I removed.
That fixed this "!" mark for used mods. And no longer shows old version.
I think in future, guys that made launcher for SPT will add buttin for manual removing or it will detect that mod is removed from folder. As of now I do it manually by myself when I update to new mod version and removed old version folder.
Levrek
Great mod, Love İt!
hayder1
wara Author
You need Custom Interactions mod.
Septimus
omg!? Been wanting something like this for a longg time. Trying this out when I get home after work.
Artur90il
Cool, I like to play without flea market
prettyplayer
Work at 3.7.0? Will update?
Beanz
Sorry if this has been asked before, I didn’t see a comment on it.
Love the mod, also thought having locked items in weapon modding was kinda stupid. Is it possible to also have it include any weapon parts/attachments that you currently have in your inventory too?
Thanks for your work!
RickReaper
does this work with the other modded traders? I watched Starvox last night on YouTube and hE showcased this mod....will I have to edit docs to make it work with the additional modded traders?
Thanks
wara Author
You have to edit config.json in the mod's files and add the trader id like this:
{
"customTraderIds": [
"myCustomTraderId",
"myOtherCustomTraderId"
]
}
add extra commas and lines for each custom trader you add
RickReaper
awesome! Thanks for help brother
Foxxee
Could there be a possibly to make this also work with helmet modding too?
Dziamgo2
hey mate i think thats very nice mod i wanted to try it out but my game isn't starting with your mod :c
my game is stuck at loading screen
Mod list:
*Server Value Modifier
*Balanced mods
*Broker trader
*Use items from anywere
I think your mod is very useful and i think BSG shold add this mechanic into the game
wara Author
I don't think any of these could cause a compatibility issue. Is there an error in the server console or the bepinex console? (you have to enable bepinex console in the bepinex.cfg file)
Dziamgo2
there is no error code idk what happend
wara Author
There should be a client-side error if your game won't launch with the mod installed. Can't really help you without an error.
Soap_0141
I had the same issue and it was caused by me not installing custom interactions, which is required for this mod, so if you didn't get that mod it should fix the issue
Dziamgo2
I've fixed it by reinstaling Custom Interactions
btw Very cool mod