Props Automated Selling 1.5.5

Are you hoarder? Don't be ashamed any further. Carry a labeled container with you that will sell its contents automatically on raid end or even leave it in the hideout (but it will still sell at raid end).

This mod will autosell using ragfair prices whatever you have in the containers that you have labeled in-game. You can specify which specific labels in the config for this mod.. you can even specify the currency you want. IT WILL NOT SELL THE CONTAINER ITSELF.


BACKUP YOUR USER PROFILE - just in case.. I have tested a lot but you never know ....

  1. YOU MUST EDIT THE CONFIG to include labels (tags) that you will use in-game for your containers.
  2. It will sell anything in the containers so don't bitch to me if it sells your keycard you wanted to keep.
  3. Provided option to toggle restriction filters on containers - fit in an AK or things that don't belong in there normally
  4. This will not work with backpacks or containers in which you cannot put a tag on in-game so like i said i recommend the docs case. It won't work with Boops tag everything mod because his tags are not saved into the user profile.


Installation and use

  1. Unzip the mod into your aki/user/mods directory.
  2. Edit the config.json file within the automated selling mod to fit your needs. (there are instructions inside the config json)
  3. In-game, edit the tag of a container to match the label you entered in the config.json.
  4. Run a raid, you can carry container or just leave it in your hideout to automatically sell.
  5. Fill the container with junk items you aren't going to keep.
  6. At the Raid End screen, it will sell all items within the labeled container at ragfair prices.


Companion Mod.

Use Nootropix Big Secure Cases - it is out of date 3.3.0 but still works on 3.4.1. you can change version in package.json if you annoyed at warning.

But it needs some changes below


1. Modify the mod.ts file, and change the itemsList and casesList in src to look like below. :

Quote
const itemsList = [
"544a11ac4bdc2d470e8b456a", "5857a8b324597729ab0a0e7d", "59db794186f77448bc595262",
"5857a8bc2459772bad15db29", "5c093ca986f7740a1867ab12", "5732ee6a24597719ae0c0281",
"590c60fc86f77412b13fddcf" //added docs case here];

Quote

const casesList = [

"alpha", "beta", "epsilon", "gamma", "kappa", "waistPouch", "docsCase"

];


this will add docs case to his list of secure containers (i know its not a secure container)


2. Add the entry into the config file for nooptrix:

Quote
"docsCase": {
"horizontal": 8,
"vertical": 8,
"removeFilters": true
}

add this below the waistPouch entry.. remember to add a comma at the end of waistPouch so it looks like this:

This will let you configure the size of the docsCase in the config.



Shout out to Heavy-Amphibian-495 on reddit for the idea.

  • Version 1.5.5

    SPT 3.8.0 or 3.8.1

    1. Removed the container types restrictions. Instead you must put the specific item id you want to remove container restrictions from in the config file (config.jsonc). That way it is compatible with Inventory Organizing Features. My assumption is that you will either specifically label this item for a specific type (e.g. using @o label) or carry it on your person.
  • Version 1.5.4

    SPT 3.8.*


    1. Fixed issue with weapon attachments and bullets in magazine not being sold.

    2. Cleaned up removal of items


    dead-overworked-exhausted-office-worker-died-at-his-job-close-up.jpg?s=612x612&w=0&k=20&c=5AvCw85lAk2yvIuYJ_j1cM8PrQa16hRSS2cc9eDSvJ0=

  • Version 1.5.3

    SPT 3.8.*

    1. Fix for 8886_xzibit.png Containers within Containers Issue ( Thanks SaltiestSaltySaltPie for the report)
      also do not put multiple labeled items within each other or they will sell everything except the first (backpack level) item .
  • Version 1.5.2

    SPT 3.8.0

    Huge thanks to ItsBeltaine for the fixes. All of these were him.

    1. Selling items should be taking into account the stackable amount
    2. Update amount to traders should be in their currency
    3. Don't create a stack of 0 rubles if no items were sold
  • Version 1.5.1

    SPT 3.8.0

    1. Fixed issue with currency already being converted to rubles and removed the duplicate currency exchange. Thanks to Azmereth for the report.
  • Version 1.5.0

    SPT 3.8.0 Update

    • Recoded to use helper libraries.
    • Removed the ability to specify currency or the specific trader. It will automatically/randomly choose based on the traderKey and determine how much you get based on currency exchange.
    • Simplified logic and took out the ghetto hack i was using to quickly save and load profile.

    If you want to add your own custom traders, edit the traderKey and their id, make sure this mod loads after your traders in order.json file in mods folder

  • Version 1.4.0

    Updated for SPT 3.7.4

    • Changed config to using JsonC. Now you can comment whatever
    • Removed trading to a specific trader. Now it will determine which traders will purchase the item, randomly pick from them, and then show you the results on raid end.

    Yes it will still count towards leveling up with traders.

  • Version 1.3.0

    1. Added a pricemultiplier option so if you think its still too much money, you can knock it down.
    2. should have fixed the multiple issue with ammo as the price is already given for the lot (not each individual bullet).
    3. Updated for 3.5.1 price method.

    Hot out the oven.. not even tested. if its broken either tell Valens or leave a shitty meme in the comments.


    Please update if you use the price multiplier.. this now includes a fix so it can't give you decimals.

  • Version 1.2.0

    1. Fixed the issue with the traders being associated to the wrong container. I kept forgetting i only grabbed a list of containers actually available even if the label is listed.
    2. Updated the zip (redownload if you have a NAN error where a trader doesn't have a Price for an item and it returns undefined - fking up the price). Fixed another issue thanks to Valens.


    Anyways thanks to Valens for bullying me to fix this and Expunge for originally discovering the issue.

  • Version 1.1.0

    This is for version 3.5.0 of SPT.. (it might work on 3.4.0 still)

    1. Added support for traders assigned to selling containers in config. If you want to keep ragfair, use "" for the trader.
    2. The correct currency (native) to the trader is added to their salesSum - means you can LoyaltyLevel your traders.
    3. Added support for specifying items to ignore selling in the containers.. just put in the IgnoreFollowingItemTPLInContainers list with the item_id you would use on something like https://db.sp-tarkov.com/search. This will not work for keys as a group since they have multiple layers - you would have to specify the id of each key in this list... what i have in the config right now is currency. Keep that there or some wierd shit happens.
  • In 1.5.3 have issue about sell weapon.Weapon mods placed on weapons will not be counted.Also bullets included in the magazine are not counted.

  • Code
    [Client Request] /raid/profile/save
    PAutoSell: Found container with label tag: @autosell
    Selling item LBT-2670 Slim Field Med Pack (Black) to trader Ragman for 12000 RUB (12000 RUB total)
    Updated sales sum for trader Ragman: 10509772 RUB
    Selling item LBT-2670 Slim Field Med Pack (Black) to trader Priscilu for 12000 RUB (12000 RUB total)
    Updated sales sum for trader Priscilu: 13106996 RUB
    Selling item LBT-2670 Slim Field Med Pack (Black) to trader Jaeger for 12000 RUB (12000 RUB total)
    Updated sales sum for trader Jaeger: 359854 RUB
    PAutoSell: Total Roubles earned: 36000 and sent to stash
    [Client Request] /client/match/offline/end

    I have a dogtag case with 3 slim backpacks full with loot.
    it seem like somehow the mod doesn't calculate all items contained in each backpack.
    Is this intentional or did I miss a config?

    • Looks like an issue on my end. thanks for report.

  • Hello! Your mod is very useful and I would like to use it. But after installing your mod, the latest version is 1.5.0 for server 3.8.0. The system of cases and containers has broken in the game, which is why now any item can be placed in any case or container. I don’t like this malfunction, since the purpose of each container is lost.

    Escape-From-Tarkov-Screenshot-2024-04-25-13-12-10-11.pngEscape-From-Tarkov-Screenshot-2024-04-25-13-12-48-84.png

    • There is a setting you need to set in the config.jsonc file. Set RemoveContainerRestriction to false.

  • will this also sell stuff to the flea if it makes a big enough profit compared to selling to a trader?

    • eh, i guess i could make the option of it giving flea prices in a later update. for now though, it only sells at highest trader price. a lot of people complained it was making too much money which is why a price multiplier option is included as well

  • Good mod but unfortunately it doesn't play well with Inventory Organizing Features. Unless you change remove container restriction to false its going to put every case into another case into another case....

    • i mean, you could set it to false in the config. But yes, then that will limit you to what you can store in a 'loot' bag. Thats unfortunate that it puts every case into another case. maybe you should use the strict labels for inventory organizing features so when you auto sort, they are locked in place and only take a certain tag like ammo

  • ammo pack cann't sell,will cause error 'TypeError: Cannot read properties of undefined (reading 'nickname')'

    because no trader can sell.

    • are you using mods? which ammo pack

    • Hello,sorry I can't speak English very well,so I use google translate.

      ammo pack:7.62x39mm PS gzh ammo pack (20 pcs)

      I tried running this mod in a clean game(only two mod) for test,I think all ammo pack will cause error.Because only trader 'fence' can sell ammo pack in game 3.7.6.But he was commented in the 'PAutoSell.ts' line 63 .I have not tested whether it runs normally after uncommenting.

      Here is log:server log

      error in line 485

    • The new version works great, thank you so much!

      Happy 1
  • Also running into the issue of no cash being in the container after selling. No errors in the logs like the others. Any way to resolve this?

    • I probably need to fix something :). i'm lazy tho

  • PAutoSell: Finding Trader for Item: WARTECH TV-109 + TV-106 chest rig

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Trader Ragman Found for Item: WARTECH TV-109 + TV-106 chest rig

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Trader Jaeger Found for Item: WARTECH TV-109 + TV-106 chest rig

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Trader Skier Found for Item: WARTECH TV-109 + TV-106 chest rig

    PAutoSell: Final Trader Found for Item: Jaeger

    PAutoSell: Trader Price for child item(s): 7.62x39mm PS gzh - (4) is 142

    PAutoSell: Trader Price for child item(s): SKS 7.62x39 ProMag SKS-A5 20-round magazine is 8584

    PAutoSell: Using Ragfair Price for child item since NaN: Pack of Russian Army pineapple juice is 21341

    PAutoSell: Trader Price for child item(s): Slickers chocolate bar is 3456

    PAutoSell: Trader Price for child item(s): WARTECH TV-109 + TV-106 chest rig is 10673

    PAutoSell: Finding Trader for Item: Spiritus Systems Bank Robber chest rig

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Trader Ragman Found for Item: Spiritus Systems Bank Robber chest rig

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Trader Jaeger Found for Item: Spiritus Systems Bank Robber chest rig

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Trader Skier Found for Item: Spiritus Systems Bank Robber chest rig

    PAutoSell: Final Trader Found for Item: Jaeger

    PAutoSell: Trader Price for child item(s): 9x19mm Luger CCI - (1) is 447

    PAutoSell: Trader Price for child item(s): MP-443 "Grach" 9x19 18-round magazine is 1842

    PAutoSell: Using Ragfair Price for child item since NaN: Pack of oat flakes is 32613

    PAutoSell: Trader Price for child item(s): MP-443 "Grach" 9x19 18-round magazine is 1842

    PAutoSell: Trader Price for child item(s): 9x19mm Luger CCI - (1) is 447

    PAutoSell: Trader Price for child item(s): MP-443 "Grach" 9x19 18-round magazine is 1842

    PAutoSell: Trader Price for child item(s): MP-443 "Grach" polymer pistol grip is 844

    PAutoSell: Trader Price for child item(s): 9x19mm Luger CCI - (1) is 447

    PAutoSell: Trader Price for child item(s): Yarygin MP-443 "Grach" 9x19 pistol is 12524

    PAutoSell: Trader Price for child item(s): TT 7.62x25 121mm homespun threaded barrel is 2407

    PAutoSell: Trader Price for child item(s): TT PM-Laser TT-206 side grips with laser sight is 3909

    PAutoSell: Trader Price for child item(s): 7.62x25mm TT P gl - (1) is 62

    PAutoSell: Trader Price for child item(s): TT 7.62x25 tt-105 8-round magazine is 1388

    PAutoSell: Trader Price for child item(s): TT DLP Tactical Precision LAM-module is 5152

    PAutoSell: Trader Price for child item(s): 7.62x25mm TT P gl - (1) is 62

    PAutoSell: Trader Price for child item(s): TT-33 7.62x25 TT pistol is 7400

    PAutoSell: Trader Price for child item(s): Spiritus Systems Bank Robber chest rig is 10013

    PAutoSell: Finding Trader for Item: 12/70 RIP ammo pack (5 pcs)

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Checking item against Trader: Skier

    Error:


    TypeError: Cannot read properties of undefined (reading 'nickname')

    TypeError: Cannot read properties of undefined (reading 'nickname')

    at Function.FindAvailableTrader (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:258:70)

    at PAutoSell.exchangeItems (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:193:27)

    at Object.action (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:102:10)

    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 IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)

    at IncomingMessage.emit (node:events:513:28)

    at endReadableNT (node:internal/streams/readable:1359:12)

    TypeError: Cannot read properties of undefined (reading 'nickname')

    TypeError: Cannot read properties of undefined (reading 'nickname')

    at Function.FindAvailableTrader (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:258:70)

    at PAutoSell.exchangeItems (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:193:27)

    at Object.action (D:\SPTarkov\AKI 3.7.5\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:102:10)

    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 IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)

    at IncomingMessage.emit (node:events:513:28)

    at endReadableNT (node:internal/streams/readable:1359:12)

  • mods i am using https://ibb.co/WFrmmTn

    mod list order https://ibb.co/89t1kzr

    cases i am using https://ibb.co/xgZ60mj


    what i just noticed is that if i sell something to a trader it wont give me the money

    Trying to find out what mod is doing that


    UPDATE: Made a new profile same mods now when i sell i get money but if i do the auto sell case it sells but it does not give the money


    so this is what went down but no money in T H I C C item case

    PAutoSell: Finding Trader for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Trader Mechanic Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Trader Prapor Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Trader Peacekeeper Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Trader Skier Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Final Trader Found for Item: Mechanic

    PAutoSell: Trader Price for child item(s): TT 7.62x25 tt-105 8-round magazine is 1388

    PAutoSell: Finding Trader for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Trader Mechanic Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Trader Prapor Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Trader Peacekeeper Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Trader Skier Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Final Trader Found for Item: Peacekeeper

    PAutoSell: Trader Price for child item(s): TT 7.62x25 tt-105 8-round magazine is 1388

    PAutoSell: Finding Trader for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Trader Mechanic Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Trader Prapor Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Trader Peacekeeper Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Trader Skier Found for Item: TT 7.62x25 tt-105 8-round magazine

    PAutoSell: Final Trader Found for Item: Skier

    PAutoSell: Trader Price for child item(s): TT 7.62x25 tt-105 8-round magazine is 1388

    PAutoSell: Finding Trader for Item: Can of beef stew (Large)

    PAutoSell: Checking item against Trader: Mechanic

    PAutoSell: Checking item against Trader: Ragman

    PAutoSell: Checking item against Trader: Jaeger

    PAutoSell: Trader Jaeger Found for Item: Can of beef stew (Large)

    PAutoSell: Checking item against Trader: Prapor

    PAutoSell: Checking item against Trader: Therapist

    PAutoSell: Trader Therapist Found for Item: Can of beef stew (Large)

    PAutoSell: Checking item against Trader: caretaker

    PAutoSell: Checking item against Trader: Peacekeeper

    PAutoSell: Checking item against Trader: Skier

    PAutoSell: Final Trader Found for Item: Therapist

    PAutoSell: Using Ragfair Price for child item since NaN: Can of beef stew (Large) is 33953

    PAutoSell: Trader Mechanic has 1388 to process

    PAutoSell: Trader Ragman has 0 to process

    PAutoSell: Trader Jaeger has 0 to process

    PAutoSell: Trader Prapor has 0 to process

    PAutoSell: Trader Therapist has 33953 to process

    PAutoSell: Trader caretaker has 0 to process

    PAutoSell: Trader Peacekeeper has 1388 to process

    PAutoSell: Trader Skier has 1388 to process

    PAutoSell: Adding Item to Player Inventory: Roubles with money count of 38117

    PAutoSell: Adding Item to Player Inventory: Roubles with money count of 38117 and itemid of 25c10e4977d2c59d44d94fe6

    • i don't think that itemid 25c10e4977d2c59d44d94fe6s is valid which is why no money is displaying. It should be the item of roubles. hmm

    • yeah I don’t know why it does that every time I try it it says a different itemid

      If you need more info from me let me know how to get it for you and I will

      Or if you want me to try something

  • Thank you this wonderful mod.


    However, with the recent update the items you put in the named container with the specified currency does not work properly currently. I have Rub. selected as my currency in the file as well as the name of my container. The first thing I noticed was when items sold after a raid it gave me USD instead of Rub. About 2 raids later it stopped working entirely. Items would disappear in named container, but no currency would be present. I tracked my currency after another raid or 2 of gathering items and dumping them into the container. But again the items disappear without being replaced with the desired currency.

  • Thank you for your work and the mod.


    I am having an issue where the items are sold from the container; however, the money is not present in the container after the selling of the items like I'm used to.

    In the spoiler you'll find all the things I thought relevant to find a solution to this problem.
    If any other information is needed please let me know, thanks in advance.

    • I've got a friend of mine who is experiencing the same thing. I can get his logs, mods, etc if that would be of any use as well.

  • Had This crash. but could be related to me having 0 Value money stacks that spawned after every raid. Then i put items in and the error happened. and yea i do have the broker still not trying to sell to him on purpose.

    https://cdn.discordapp.com/att…575206318325910/image.png

    Also look like the same error person below got. Tho this is my first of ~50 raids with no issue having the broker trader. Have only modified the config so if the config allowed specifying trader there then yea that could be why but if u made that not a thing i haven't done any code modifying compared to the other person reporting.

    Thumbs Up 1
  • Allot of times I get black screen after raid end with the following errors. I think it might be trying to sell to one of the extra traders I have. And then it gets confused for some reason. I will try to make it sell items only to the broker trader. Not sure how exactly to do it but will try


    edit 1

    ok I figured it out. It freezes only when there is ammo packs in the container. And I suspect it didn't like the ammo in mags too.


    edit 2

    ehh it doesnt add money though. It says it does in the console, but the money are not there on raid end...


    TypeError: Cannot read properties of undefined (reading 'nickname')

    TypeError: Cannot read properties of undefined (reading 'nickname')

    at Function.FindAvailableTrader (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:258:70)

    at PAutoSell.exchangeItems (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:193:27)

    at Object.action (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:102:10)

    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 IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)

    at IncomingMessage.emit (node:events:513:28)

    at endReadableNT (node:internal/streams/readable:1359:12)

    TypeError: Cannot read properties of undefined (reading 'nickname')

    TypeError: Cannot read properties of undefined (reading 'nickname')

    at Function.FindAvailableTrader (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:258:70)

    at PAutoSell.exchangeItems (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:193:27)

    at Object.action (C:\Users\PC_Big\Desktop\SPT\user\mods\props-propsautomatedselling-1.4.0\src\PAutoSell.ts:102:10)

    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 IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)

    at IncomingMessage.emit (node:events:513:28)

    at endReadableNT (node:internal/streams/readable:1359:12)

    Thinking 1
    • You can't make it sell to broker trader, it will only sell to the default traders.

      It won't add money if there is an error like this.

    • After I removed the ammo, there were no errors. In the console it said it was putting money in the container or smth like that. But when I checked the container was empty. I saw someone bellow having the same issue too.

      There are probably 2 bugs here. One with ammo boxes (or also ammo in mags). And the other one is money not being spawned in the container.

      Will check more when I have time.

      Thinking 1
    • Was this custom or modded ammo by chance?

    • Most probably un-moded ammo. The only modded one I have is the one for the shoot locked doors. Sry that I cant give more info on this. The game kept crashing on raid ends so I uninstalled the mod.

  • Just installed the yesterday update, the items does get selled "i hope so?" but idk where does the money goes, it doesnt appears in my stash anywhere, the is no error on console logs, where did I do wrong?

    • it goes into the container you tagged and sold from

    • it doesnt thou? The container after I return to raid is allways empty.

    • Maybe conflicting with softcore from svm mod? I will try it out...

      Edit: Nope, it still doesnt work, it doesnt sells the money (if i put it in manually) but the money of the sells isnt inside the case after the raid

    • Do you have any other mods that run at raid end or like something that saves your inventory from losing gear?


      you may need to load this before the other mod in load order.

    • It doesnt works too, loaded in the load order first.

  • On line 271 of PAutoSell.TS in Props-AutomatedSelling/src change the following.


    traderHelper.lvlUp(mytrader._id, sessionId);


    to


    traderHelper.lvlUp(mytrader._id, pmcData);


    to fix for 3.7.1 until Props can get the PR I've committed merged and a new version released.

    Heart 3 Thumbs Up 1
  • Alright, managed to fix the mod, for anyone interested :

    Go into the mod's folder, then src. Open PAutoSell with notepad or your editor of choice. Go to line 271 and delete traderHelper.lvlUp(mytrader._id, sessionId); it should fix the crash issue and everything seems to work fine afterwards. I recommend doing so before installing the mod, as once the game is launched a javascript file is created and I assume the same operation would have to be done to it as well.


    Most likely deleting this line does something detrimental to the system (my guess being deleting it would prevent traders from leveling up if you had crossed a threshold thanks to selling enough gear to someone), but the primary function of the mod, the autosell, appears to function absolutely fine otherwise. Also the mod seems to attribute all sales to prapor, even if it uses the flea prices, so you'll probably never need to buy or sell stuff to him again to level him up.


    Enjoy !

    Thinking 1
    • Was coming to ask if there will be published an update? still this fix can be an option.

  • Tested it, the mod does not work and crashes your game at raid end. None of the items are sold either upon restart. Tested on 3.7.0, but I doubt it will work any better on 3.7.1.

  • Anyone knows if this still works in 3.7 ?

  • If you ever update this can you make it compatible with Inventory Organizing Features


    Doesn't appear to work with this.

    Thumbs Up 1
  • I need Help.I want to make a Item Case my Autoseller.What can i do?

    • add a label to your item case then add that label to the automated selling config.

    • {

      "PriceMultiplier": 1.0,

      "Containers": {

      "Info": "Name these labels to what your tagged containers in-game are. label 1 uses currency 1 below.. etc",

      "Labels": [

      "AutoSeller"

      ],

      "Info1": "Use only euros, roubles, dollars (exact letters) in the order you want the labeled containers to return money.. eg. dollarStuff container returns items in dollars.",

      "Currency": [

      "roubles"

      ],

      "Info2": "Only enter a trader id if you want to use that trader to sell... otherwise it will use ragfair.",

      "Info3": "valid values are the nicknames all in lowercase- prapor, peacekeeper, lighthousekeeper, mechanic, ragman",

      "Trader": [

      "prapor",

      "therapist",

      "peacekeeper"

      ]

      },

      "Info2": "True if you don't want regular container restrictions",

      "RemoveContainerRestriction": true,

      "IgnoreFollowingItemTPLInContainers": [

      "5449016a4bdc2d6f028b456f",

      "5696686a4bdc2da3298b456a",

      "569668774bdc2da2298b4568"

      ]


      }


      I Tagged the item case AutoSeller and changed that config .Is that right?

    • Also check the corrency .I am a noob .I dont really know what im doing :P

    • so you can only have it sell to one trader per container. so it will only sell to prapor.

      you will need to add another label (and another label in-game) and another line for currency and that would sell to therapist.

      Heart 1
  • Does this work with SPT.3.6.1?

    • It probably still does. I will update it officially sometime..

  • Compatibility with Broker? To make it Better for Ease of use.

    • Other question: how to tag inventory depending on the setups like if u want a trader Would it be "prapor" & "case roubles" or only one of them? Would order of them also have some to say on it

    • No compatibility yet with broker.


      Order matters and you would need both the trader name and the label name of the case.

      if you put prapor first and then the case label 2nd in the list .. how would i know you wanted to use that case?

    • So it then would be tagged "case roubles prapor"?

    • no, you tag the case whatever name you want.

      Just make sure the config file with the names of the container has your tag in it.

      Its position in that list should match with the list of traders in the config positioning.


      Look in this example below. the label is case roubles (1st position in its list) so thats what you tag in game on y our container. The currency in the 1st position is roubles so your money will be given in roubles. The trader in the first position is prapor so the case roubles will sell to prapor.


      Ignore BrokerTraderSupport since i didn't get it to work yet.

      tgcRxqK.png

      Thumbs Up 1
  • If i put a rig in the container and the rig has items in it will i also get the money of those items

  • Hi, i have idea ) Can you make a version of your mod with instant selling ? I mean dont need to wait raid end, just drop something in container and it selling instantly ) Its not realistic, but funn ) Or, developing this idea, you can add in game some containers with instant selling, 1x1, 1x2, 1x3... size, every next cost more money and maby need some trader level.

    Thinking 1 Thumbs Up 1
    • This would be so Awesome to have along with Immersive raids since that mod makes raid INF length and be able to sell in raid would made it just Awesome QOL.

  • Apologies for spamming up your page, but I'd like you to take a look at this new mod and see if we can incorporate it into yours :) The Broker - New Trader

    • Next version i can add support for your broker as an option if thats what you are asking so he can be picked to be automatically sold to.

      Heart 2
  • Hello, how do I rerestrict all my containers? I didn't realize the config setting would open up all of them. I set it to false, but they are still all unrestricted

    • it should be restricted again if you set to false.

      just take the items out?

    • Nah I didn't put any items in yet lol :( everything is now unrestricted

    • show me how you wrote false in config


      image.png


      seems to work fine when i tested it. make sure you remember the comma at the end.

      It looks like i wrote the opposite of the setting lol. it should do what you want with false though.

    • Not sure how you got the embedded image in here but here's how mine looks


      "Info2": "True if you don't want regular container restrictions",

      "RemoveContainerRestriction": false,

      "IgnoreFollowingItemTPLInContainers": [

      "5449016a4bdc2d6f028b456f",

      "5696686a4bdc2da3298b456a",

      "569668774bdc2da2298b4568"

      ]

    • I think I found a workaround. I've deleted the auto selling mod and containers are back to normal. I'll just run the reinstall with the false already in place.

      EDIT: worked. I'll just use SVM to unrestrict the docs case for selling. Thanks!

  • Can you only use the vanilla tarkov containers? I have a mod that has a really large container and tried it but didnt work.

    • Nevermind im stupid. labeled the case as roubles not case roubles. gotta learn to read still. Once i saw that number tho, damn! great mod and keeps me going into raids more not having to wait for the flea market stuff to sell

      Happy 1
  • Thank you very much for this great mod, this is awesome, and saves a lot of time ! =)

    One thing, looks like there's something not quite right about ammo prices.

    if you got a pack of 30 shots, of ammunition, and then let it sell it, the price for a 30 ammo stack

    is taken for 1 cartridge. For example, i got a stack of 30 rounds which cost´s 1338 RUB (for the whole stack),

    the mod gives me 40140 RUB instead of 1338 RUB. Dunno if its supposed to be like that, but i dont think so.

    • i'm pretty sure it multiplied the price by 30. Hmm.

      maybe i need to add something in to not multiply price by quantity.


      anything else you can stack that you notice this for?

    • Hey, sry for the late response.

      No, only for the ammunition so far.

    • Yeah, mechanic seems to think a stack of 9x19 green tracer is worth 6mil lol. Based on the code, looks like he's finding the price of a stack and selling each individual bullet for the entire stack cost. Really gets out of control when you mod max bullet stack size


      Looks like sellItem. Commented out what appears to be the incorrect line.


      Thumbs Up 2
    • Already fixed in the next version, but the next version is for 3.5.1.

      You guys can copy what expunge did and comment out that MoneyTotal line with stack in it.

    • Thank you guys ! :)

  • Hello i keep getting the problem


    TypeError: Cannot read properties of undefined (reading 'toLowerCase')

    TypeError: Cannot read properties of undefined (reading 'toLowerCase')

    at PAutoSell.exchangeItems (C:\spt 3.5\user\mods\Props-AutomatedSelling\src\PAutoSell.js:166:22)

    at Object.action (C:\spt 3.5\user\mods\Props-AutomatedSelling\src\PAutoSell.js:55:26)

    at StaticRouterMod.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

    at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)

    at AkiHttpListener.getResponse (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

    at IncomingMessage.<anonymous> (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

    at IncomingMessage.emit (node:events:527:28)

    at endReadableNT (node:internal/streams/readable:1345:12)

    at processTicksAndRejections (node:internal/process/task_queues:83:21)

    TypeError: Cannot read properties of undefined (reading 'toLowerCase')

    TypeError: Cannot read properties of undefined (reading 'toLowerCase')

    at PAutoSell.exchangeItems (C:\spt 3.5\user\mods\Props-AutomatedSelling\src\PAutoSell.js:166:22)

    at Object.action (C:\spt 3.5\user\mods\Props-AutomatedSelling\src\PAutoSell.js:55:26)

    at StaticRouterMod.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

    at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)

    at AkiHttpListener.getResponse (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

    at IncomingMessage.<anonymous> (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

    at IncomingMessage.emit (node:events:527:28)

    at endReadableNT (node:internal/streams/readable:1345:12)

    at processTicksAndRejections (node:internal/process/task_queues:83:21)

    • You have an error on this lline currency.toLowerCase();

      Something must be wrong where you set the currency for your container in your config.

      Please show me your config.

    • {

      "Containers": {

      "Info": "Name these labels to what your tagged containers in-game are. label 1 uses currency 1 below.. etc",

      "Labels": [

      "1",

      "2",

      "3"

      ],

      "Info1": "Use only euros, roubles, dollars (exact letters) in the order you want the labeled containers to return money.. eg. dollarStuff container returns items in dollars.",

      "Currency": [

      "roubles",

      "euros",

      "dollars"

      ],

      "Info2": "Only enter a trader id if you want to use that trader to sell... otherwise it will use ragfair.",

      "Info3": "valid values are the nicknames all in lowercase- prapor, peacekeeper, lighthousekeeper, mechanic, ragman",

      "Trader": [

      "mechanic",

      "therapist"

      ]

      },

      "Info2": "True if you don't want regular container restrictions",

      "RemoveContainerRestriction": true,

      "IgnoreFollowingItemTPLInContainers": [

      "5449016a4bdc2d6f028b456f",

      "5696686a4bdc2da3298b456a",

      "569668774bdc2da2298b4568"

      ]


      }

    • Maybe it doesn't like that you didn't set a trader for the 3rd value.

      can you put it like this:


      "Trader": [

      "mechanic",

      "therapist",

      null

      ]

    • Hello i found the Problem its doing it because i use a custom Secure Container...

    • oh .. what you mean custom?

  • not sure how do it do with the traders name, if i have roubles as "$" and i want to sell to prapor do i do it as "$ prapor" or something else?

    • eh what

      no, prapor just needs to be in the trader name spot in the same position.


      so if your tag is first, the currency is first, then prapors name should be first in the trader name spot.


      post your config as is so i understand

    • image.png?width=1157&height=447can you give me an example when i name my container? like : [tradername] [cuurrency]
      cus i still didn't understand

    • You have too many trader's right now. You can only have one trader to one currency and label.


      For example your ! label.. (i assume you tagged your container ! in-game)

      it will sell everything and give you the money in rubles.

      because it is the first label, and the first currency is roubles. The first trader is prapor, so it will use prapor to sell too.


      For your @ label, it is in 2nd position in the labels list so it will use the 2nd currency (in the currency list) and the 2nd position in the trader list. You have peacekeeper, so it will make all sales to peacekeeper for that container.


      Labels is your container name tag in-game.. i would use something like 'Sell Prapor' or something

      for the first one

    • so for my understanding, if i want prapor accept 3 different currancy i have to do is like:


      "Labels": [

      "!",

      "!",

      "!"

      ],

      "Currency": [

      "roubles",

      "euros",

      "dollars"

      ],

      "Trader": [

      "prapor",

      "prapor",

      "prapor",

      ]


      etc, etc

      or....it just doesn't work like that

    • doesn't work like that.. you going to need 3 containers for prapor then.

      each needs a unique label name. the currency and trader section you have is fine though.