- Nightingale
- Mar 29th 2023
- Mar 29th 2023
Nightingale added a new file:
File
The Broker
This guy sells your items where they can be sold with the most profit(different traders or flea market). Also provides currency services.
Nightingale
Quote
Display MoreQuick Description
I got tired of clicking everywhere and switching between different lagging menus and so here we go. This guy should reduce the amount of clicks and button presses needed to sell stuff.
Adds a new trader - the Broker. He should sell your items to the most profitable option - trader or flea, while following the game logic. Also sells and buys foreign currencies based on PK's and Skier's pricing. Currency purchases are redirected to PK and Skier so you also level them up. The cash equivalent number is also changed, check out the screenshots to see how it looks, it's the number on top of the "DEAL!" button. For every other trader changes only the number format(adds spaces between thousands).
Installation
Before installing the mod, make sure to make a backup of your profile at SPTARKOV/user/profiles/
Just copy the contents of the archive into the directory where your SP Tarkov is located. Don't forget to delete the old version if you are updating.
Compatibility
- Should be incompatible with mods that override server's "TradeController".
- If you have any mods that affect trader/flea pricing - load this mod after them.
- If you have any mods that completely remove player offers from flea and the ability to create yours - set useRagfair to false in the config. Otherwise Broker will still show you fallback flea prices and will still trade items to flea market.
- If you installed any mods that affect Flea Market prices after launching the server with my mod at least once, and you have caching enabled(useCache: true) - clear the mod cache.
Note
If you notice inconsistencies in prices, unexpected behaviour, encounter crashes/errors - inform me about that in the comments.
Details
Details
Configuration
Configuration
- Mar 31st 2023
- Apr 3rd 2023
- Apr 12th 2023
Nightingale added a new version:
File
The Broker 1.3.0
Target: SPT-AKI 3.5.5
Hotfix 12/04/23: Fixed notification showing up when selling only foreign currencies. Redownload the mod if you have this issue.Added notifications, fixed/improved some stuff.
If you want to use the mod on SPT-AKI older than 3.5.5 - replace the client plugin(BrokerTraderPlugin.dll) with the appropriate build.
Client plugin builds for older versions:Nightingale
Quote
Added notifications, fixed/improved some stuff.
If you want to use the mod on an older version - replace the client plugin(BrokerTraderPlugin.dll) with the appropriate build.
Client plugin builds:
- Apr 24th 2023
Nightingale added a new version:
File
The Broker 1.3.1
Target: SPT-AKI 3.5.5
Hotfix 24/04/23: Fixed "type initializer" errors when using the mod along-side some other client plugins/libraries. Redownload the mod if you have this issue.Custom traders support, option to ignore traders "Unlocked" status, cross-version compatibility for the client plugin and some fixes.
Nightingale
Quote
Display MoreTarget: SPT-AKI 3.5.5
Custom traders support, option to ignore traders "Unlocked" status, cross-version compatibility for the client plugin and some fixes.
Client plugin is built for Client version of SPT-AKI 3.5.5, but should be cross-version compatible.
(Within reason)
If you encounter issues always mention your SPT-AKI version.
- Apr 24th 2023
Getting this error (see Screenshot) with the latest version.
SPT Version 3.5.5
https://pastebin.com/MEQ88jkz (client error log)
https://pastebin.com/syB21TG5 (BepInEx log)
https://pastebin.com/K7ntnZSJ (Server log)
- Apr 24th 2023
Quote from blacksurgeon
Getting this error (see Screenshot) with the latest version.
SPT Version 3.5.5
https://pastebin.com/MEQ88jkz (client error log)
https://pastebin.com/syB21TG5 (BepInEx log)
https://pastebin.com/K7ntnZSJ (Server log)
Replace the client plugin with this one, initiate the error again and give me the bepinex logs. Or just give me the lines where it says ReflectionHelper.FindClassTypeByMethodNames [AmbiguousMatch
- Apr 24th 2023
Forgot to mention when the error appears. After clicking on the trader icon from the trader menu.
https://pastebin.com/BqKLzLPm (whole log)
Code
[Warning:BrokerTraderPlugin] ReflectionHelper.FindClassTypeByMethodNames [AmbiguousMatch-Key]: ApproxEquals-LowAccuracyApprox-IsZero-Positive-Negative-ZeroOrNegative-Clamp-Multiply-Divide-Scale[Warning:BrokerTraderPlugin] ReflectionHelper.FindClassTypeByMethodNames [AmbiguousMatch]: GClass782, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null[Warning:BrokerTraderPlugin] ReflectionHelper.FindClassTypeByMethodNames [AmbiguousMatch]: SAIN.Combat.Helpers.MathHelpers, SAIN-Combat, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null[Warning:BrokerTraderPlugin] ReflectionHelper.FindClassTypeByMethodNames [AmbiguousMatch]: SAIN.Movement.Helpers.MathHelpers, SAIN-Movement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null[Error :ModulePatch] BrokerTraderPlugin error! Threw an exception during GetUserItemPrice patch, perhaps due to version incompatibility. Exception message: The type initializer for 'BrokerTraderPlugin.Reflections.Extensions.MathHelper' threw an exception.
- Apr 24th 2023
I've reuploaded the mod with a hotfix, redownload the latest version and tell me if it works.
- Apr 24th 2023
Yes!
Thank you for the quick help!
- Apr 26th 2023
Hello! I currently use Broker alongside the Softcore mod that tweaks the flea access. I set the ragFair option to false, but it is still attempting to run through those functions if I attempt to buy an item from the flea (This worked in previous versions of the mod)
Here's the error:
Unable to get item: 61a6446f4b5f8b70f451b166 from db
TypeError: Cannot read properties of undefined (reading '_props')
TypeError: Cannot read properties of undefined (reading '_props')
at InventoryHelper.getSizeByInventoryItemHash (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getContainerMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getStashSlotMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.addItem (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at TradeHelper.buyItem (C:\snapshot\project\obj\helpers\TradeHelper.js)
at BrokerTradeController.confirmTradingInternal (C:\snapshot\project\obj\controllers\TradeController.js)
at BrokerTradeController.confirmRagfairTrading (C:\snapshot\project\obj\controllers\TradeController.js)
at TradeCallbacks.processRagfairTrade (C:\snapshot\project\obj\callbacks\TradeCallbacks.js)
at TradeItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\TradeItemEventRouter.js)
at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)
TypeError: Cannot read properties of undefined (reading '_props')
TypeError: Cannot read properties of undefined (reading '_props')
at InventoryHelper.getSizeByInventoryItemHash (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getContainerMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getStashSlotMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.addItem (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at TradeHelper.buyItem (C:\snapshot\project\obj\helpers\TradeHelper.js)
at BrokerTradeController.confirmTradingInternal (C:\snapshot\project\obj\controllers\TradeController.js)
at BrokerTradeController.confirmRagfairTrading (C:\snapshot\project\obj\controllers\TradeController.js)
at TradeCallbacks.processRagfairTrade (C:\snapshot\project\obj\callbacks\TradeCallbacks.js)
at TradeItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\TradeItemEventRouter.js)
at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)
I loaded Broker at the end of all my other mods, if theres any other info that would help let me know. Thank you for the mod
- Apr 26th 2023
Quote from fatrat
Display MoreHello! I currently use Broker alongside the Softcore mod that tweaks the flea access. I set the ragFair option to false, but it is still attempting to run through those functions if I attempt to buy an item from the flea (This worked in previous versions of the mod)
Here's the error:
Unable to get item: 61a6446f4b5f8b70f451b166 from db
TypeError: Cannot read properties of undefined (reading '_props')
TypeError: Cannot read properties of undefined (reading '_props')
at InventoryHelper.getSizeByInventoryItemHash (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getContainerMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getStashSlotMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.addItem (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at TradeHelper.buyItem (C:\snapshot\project\obj\helpers\TradeHelper.js)
at BrokerTradeController.confirmTradingInternal (C:\snapshot\project\obj\controllers\TradeController.js)
at BrokerTradeController.confirmRagfairTrading (C:\snapshot\project\obj\controllers\TradeController.js)
at TradeCallbacks.processRagfairTrade (C:\snapshot\project\obj\callbacks\TradeCallbacks.js)
at TradeItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\TradeItemEventRouter.js)
at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)
TypeError: Cannot read properties of undefined (reading '_props')
TypeError: Cannot read properties of undefined (reading '_props')
at InventoryHelper.getSizeByInventoryItemHash (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getContainerMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.getStashSlotMap (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at InventoryHelper.addItem (C:\snapshot\project\obj\helpers\InventoryHelper.js)
at TradeHelper.buyItem (C:\snapshot\project\obj\helpers\TradeHelper.js)
at BrokerTradeController.confirmTradingInternal (C:\snapshot\project\obj\controllers\TradeController.js)
at BrokerTradeController.confirmRagfairTrading (C:\snapshot\project\obj\controllers\TradeController.js)
at TradeCallbacks.processRagfairTrade (C:\snapshot\project\obj\callbacks\TradeCallbacks.js)
at TradeItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\TradeItemEventRouter.js)
at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)
I loaded Broker at the end of all my other mods, if theres any other info that would help let me know. Thank you for the mod
First step would be trying to buy the same items that cause the error without the Broker. I've personally used Softcore with Broker without any issues, on SPT-AKI 3.5.4.
Also it doesn't try to run anything Broker related when you buy/sell from flea. The BrokerTradeController is simply a replacement for server's default TradeController. The only method it overrides is confirmTrading(not confirmTradingInternal), everything that you see called in the error stack is all default, nothing related to Broker.
You'd probably want to check if it happens with all items or just some. Your error message specifically states that item with template id 61a6446f4b5f8b70f451b166 can't be found in the database. Here's that item in item finder.
- Apr 26th 2023
I re-installed 3.5.5 in a clean directory and added my mods back manually, still running into the same backend timeout. The weird thing is I tried buying a magnet, which isn't the lighthouse key like the ID says. With Broker disabled there is some other issue so its not this mod. I'm wondering if softcore is still broken for 3.5.5 and just needs an update.
- Apr 26th 2023
Judging by the comments on the Softcore page, people seem to have some item/flea related errors on 3.5.5, somewhat similar to yours. So I guess that might be the cause.
- May 14th 2023
Just to let you know, got this typeerror mentioning broker mod in server window, at the time I was in hideout clicking to get loot from hideout scav case (this was also while using the optional temporary fix for items missing from base cache, since I was previously getting that a lot referencing items added by both the Goblin King and S.H.I.T mods; if I'm reading the server error right the typeerrors reference that temp fix?):
On exiting the game and restarting all was normal again and I could claim the scav case loot successfully and it didn't throw the error that time. Only seen it happen this once. Hope this helps.
Thanks for the mod btw, it's great.
- Jul 4th 2023
Quote from Statue
Display MoreJust to let you know, got this typeerror mentioning broker mod in server window, at the time I was in hideout clicking to get loot from hideout scav case (this was also while using the optional temporary fix for items missing from base cache, since I was previously getting that a lot referencing items added by both the Goblin King and S.H.I.T mods; if I'm reading the server error right the typeerrors reference that temp fix?):
On exiting the game and restarting all was normal again and I could claim the scav case loot successfully and it didn't throw the error that time. Only seen it happen this once. Hope this helps.
Thanks for the mod btw, it's great.
I have the same issue, but I only see it when I'm using the temp fix for "item not found in base cache".
- Oct 23rd 2023
Nightingale added a new version:
File
The Broker 1.3.2
Target: SPT-AKI 3.7.1
Hotfix 23/10/23: Fixed an initialization issue. Could appear when using mods which get/show item prices.Updated for the newest version of SPT.
Changed the flea price calculation to get the lowest price from an item offer with best possible condition by default, can be changed to old behaviour in the config with the ragfairUseLowestPrice entry.
Also fixed 'bulk' flea offers impacting the flea price calculation.
…
Nightingale
Quote
Display MoreTarget: SPT-AKI 3.7.1
Updated for the newest version.
Changed the flea price calculation to get the lowest price of an item by default, can be changed to old behaviour in the config with the ragfairUseLowestPrice entry.
Also fixed 'bulk' flea offers impacting the flea price calculation.
Client plugin is built for the client version of SPT-AKI 3.7.1 but may be compatible with some older versions, although no support for them will be provided.
- Nov 22nd 2023
TypeError: Cannot read properties of undefined (reading 'base')
TypeError: Cannot read properties of undefined (reading 'base')
at BrokerPriceManager.getTradersMetaData (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\broker_price_manager.ts:303:57)
at BrokerPriceManager.initializeLookUpTables (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\broker_price_manager.ts:160:38)
at BrokerTrader.postAkiLoad (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\mod.ts:161:51)
at PostAkiModLoader.executeMods (C:\snapshot\project\src\loaders\PostAkiModLoader.ts:72:46)
at PostAkiModLoader.load (C:\snapshot\project\src\loaders\PostAkiModLoader.ts:35:24)
at ModCallbacks.onLoad (C:\snapshot\project\src\callbacks\ModCallbacks.ts:34:41)
at App.load (C:\snapshot\project\src\utils\App.ts:56:26)
TypeError: Cannot read properties of undefined (reading 'base')
TypeError: Cannot read properties of undefined (reading 'base')
at BrokerPriceManager.getTradersMetaData (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\broker_price_manager.ts:303:57)
at BrokerPriceManager.initializeLookUpTables (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\broker_price_manager.ts:160:38)
at BrokerTrader.postAkiLoad (C:\Users\vinye\Desktop\SPT Single Player\user\mods\nightingale-broker_trader-1.3.2\src\mod.ts:161:51)
at PostAkiModLoader.executeMods (C:\snapshot\project\src\loaders\PostAkiModLoader.ts:72:46)
at PostAkiModLoader.load (C:\snapshot\project\src\loaders\PostAkiModLoader.ts:35:24)
at ModCallbacks.onLoad (C:\snapshot\project\src\callbacks\ModCallbacks.ts:34:41)
at App.load (C:\snapshot\project\src\utils\App.ts:56:26)
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!
Register YourselfLogin
Who is online?
Just a few of the 392 users online
- 406 Members (14 invisible) and 1,647 Guests
- Record: 787 Users ()