DayZ
Trader Bulk Sell Extension
94 Comments
☆ DeadShot87 ☆ 24 Apr, 2024 @ 9:09am 
TraderPlus no ?
SuperSa1yan0 25 Oct, 2023 @ 6:57am 
Can we make it so can sell worm , damage etc ?
R3AP3R 23 Mar, 2023 @ 1:14pm 
does this mod still work
madwest69 7 Dec, 2021 @ 8:58am 
hello my friends I ask for permission to repack in my mod pack server, with full credit and link to your mod thank you for your work
Bear 4 Nov, 2021 @ 11:17pm 
Hi, after yesterdays game update and expansion updates, this no longer works on my server. hope there is a fix. server just does not start when mod is activated
⭑⭑⭑★✪Wulv✪★⭑⭑⭑ 18 Oct, 2021 @ 4:33pm 
all works great for me just 1 problem is there anyway to make it so the person adding items is the only person that can sell the items incase anyone trolls and steels ?
Wilma Fingerdoo 15 Jul, 2021 @ 11:38am 
from what i can see this mod is no longer compatible with trader fixes and features since 1.13 update from what i can see anyway i couldn't start the server with both installed but remove one and it would launch :( anyone else having this?
Seems odd as nothing changed on either mod for the update but i guess thats just dayz update day always causes issues for modding community XD
Mr. Groove 30 Apr, 2021 @ 3:06am 
@bear-Jew, that's right ;-)
BiPolarBear 20 Apr, 2021 @ 4:14am 
Love this mod! I see that Mr. Groove was paying DayZ on Arma :)
Mr. Groove 20 Apr, 2021 @ 2:23am 
I suggest that u create a whole saler instead of using a barrel. Just create a trader where u can sell your vehicle with it's inventory with one click of a mouse button.
Jelly 5 Feb, 2021 @ 3:24pm 
Dayz @Trader Bulk Sell Extension Mod Installation Using FTP
https://youtu.be/hoLhgKaXdZU
C7kizer 30 Jan, 2021 @ 11:38am 
thanks for that help! great mod
Katami  [author] 28 Jan, 2021 @ 6:50am 
Load order is fine.
Are you sure they can be sold at a nearby trader (have a sell value)?
Are there any error messages in the logs?
If you want you can send me your trader config files and I can take a look? (add me on Discord Katami#9882 and send them there, or upload them somewhere and send me the link through Steam, whatever suits you)
C7kizer 27 Jan, 2021 @ 4:15pm 
Some items wont sell (ak-74 mags, universal lights) is there a certain load order we should have this loaded? mines loaded like this @Trader;@TraderFixesAndFeatures;@TraderBulkSellExtension
SILENTHERO 17 Jan, 2021 @ 11:02am 
that way you can place and it wont replicate
SILENTHERO 17 Jan, 2021 @ 11:01am 
<type name="Kat_Static_SellBarrel">
<lifetime>3888000</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
Uwilldie 28 Dec, 2020 @ 11:52am 
I remove expansion. its the bull... so i dont have barrel inside my VPPA for build inside my trader. is this normal?
Uwilldie 27 Dec, 2020 @ 4:23am 
ok thx. now i remove @#$%?&* Expansion and i dont see inside VPPAdmin for place inside trader zone.
Uncle Fester 25 Dec, 2020 @ 9:42pm 
Firstly, thanks! Been using this on our server for a while. A questions though, should it also be loaded server side?
Wilma Fingerdoo 25 Dec, 2020 @ 5:44pm 
Add it to the trader objects file in the trader folder rather than anywhere else or adding it with any other way and it shouldnt duplicate and i dont think you even really need it in the types file if you do it that way ( i dont have it in my types and it works fine and stays there)
Uwilldie 25 Dec, 2020 @ 10:26am 
yes

//Trader Bulk Sell Extension
<type name="Kat_Static_SellBarrel">
<nominal>0</nominal>
<lifetime>3888000</lifetime>
<restock>0</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>

and inside my .map (i use COT)

Kat_Static_SellBarrel|6680.24 151.031 6078.03|0.00 0.00 0.00
Katami  [author] 25 Dec, 2020 @ 8:33am 
Did you set the lifetime AND add it to the init script/trader config? Only do one of these.
Uwilldie 25 Dec, 2020 @ 4:05am 
Hi, the barrel duplicates after each restart. A fix please?
Wilma Fingerdoo 23 Dec, 2020 @ 3:16am 
if you use vpp to place it then use the tools that has to edit rotation (if you want) or use community online tools to edit rotation, then with vvp enabled look at the barrel press p it will copy the co-ords to clipboard Except rotation but just take that value and add it manually. Then add them and the class name of the barrel to the trader objects config, other way would be to add the barrel to the types with a very long lifetime but it would eventually go where as the trader config would stay forever, but yer you could add them to the init aswell i guess does the same as the trader object thing i think essentially
Katami  [author] 23 Dec, 2020 @ 1:49am 
AFAIK people just add them to the server init script. That way they are respawned on every start.
RabidJim 22 Dec, 2020 @ 10:05pm 
@Katami
I use VPP to spawn the barrel and then they despawn....
Do I need to add them to the trader items config?
Will 10 Dec, 2020 @ 11:19am 
Katami, you are great!!! Really thanks!!!
Wilma Fingerdoo 10 Dec, 2020 @ 11:11am 
Thankyou Katami appreciate it
Katami  [author] 10 Dec, 2020 @ 10:54am 
Updated: Barrel can no longer be turned into a fire barrel
Will 10 Dec, 2020 @ 9:16am 
Hello Katami! You did a great job !!! Thank you very much for creating this mod that helps a lot with something so "simple", but that nobody tried to do before to simplify the lives of the players!! I would just like to point out that as Wilma Fingerdoo said, unfortunately it is being possible to convert the barrel into a barrel of fire using a knife, which can significantly damage the experience. Would you like to fix this, please?
MarvinFS 6 Dec, 2020 @ 9:51pm 
:)))) Hahaha, my players didn't go so far! that action probably should have been removed...
Wilma Fingerdoo 6 Dec, 2020 @ 5:48pm 
is it possible to make it so it cant be turned into a firebarrel XD i could see that getting annoying if people keep turning them into firebarrels
Katami  [author] 25 Nov, 2020 @ 6:58am 
All known issues are now resolved.

Still planning on adding some quality of life features (notifications, inventory cleanup, maybe a GUI) but nothing definitive yet.
Katami  [author] 25 Nov, 2020 @ 6:58am 
Could not have done it without you :)
MarvinFS 25 Nov, 2020 @ 6:48am 
I want to pay huge respect to Katami for his kind support and taking efforts to eliminate bugs! Thank you Sir!
MarvinFS 24 Nov, 2020 @ 12:06pm 
If you want - you may test on my test instance, so it wouldn't bother the whole mod owners... just contact me if required - my discord below
MarvinFS 24 Nov, 2020 @ 11:23am 
Sadly same... tried 2 traders
SCRIPT : [Kat_BulkSell] ERROR >> GetTradersInRange: missing m_Trader_TraderIDs
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId

and yes there are multiple same items within traders some times
Katami  [author] 24 Nov, 2020 @ 10:31am 
now properly supports multiple traders with the same items.

regarding the missing trader data objects: they are added to the player object and then a flag is set that should indicate that all the data exists. I was previously only checking for the existance of the flag, but also check each individual data object.
Still not sure when those are not available. might be if the action is executed too early when the player has just joined the server, but then the flag should not be set either... hm.
MarvinFS 24 Nov, 2020 @ 1:11am 
Hmm one more observation, on my Altar trader I can sell small stuff like steak knife and on GM I can't sell it... traders are more or less the same on all trade camps...
MarvinFS 24 Nov, 2020 @ 1:06am 
What if the class is missing from all traders?
Here are more logs selling rags again

SCRIPT : [action] SurvivorM_Peter:038 end ActionOpenBarrel<df901e70> item=null
SCRIPT : [action] SurvivorM_Peter:038 started ActionBulkSell<df9077b0> item=null
SCRIPT : OnStartAnimationLoop
SCRIPT : [Kat_BulkSell] ERROR >> GetTradersInRange: missing m_Trader_TraderIDs
SCRIPT : [Kat_BulkSell] ERROR >> GetItemSellValue: missing m_Trader_ItemsTraderId
SCRIPT : string s = 'ActionBase.c | ActionBaseCB | OnFinish called : false'
SCRIPT : [action] SurvivorM_Peter:038 end ActionBulkSell<df9077b0> item=null
Katami  [author] 23 Nov, 2020 @ 2:50pm 
thanks for the logs. added more extensive error checking. it seems that in some cases the trader data is not complete on the player object. should now print logs instead of throwing errors.

internally items always have a sell value if they are set in the trader. it's a (magic) negative number though and is ignored.
MarvinFS 23 Nov, 2020 @ 1:19pm 
Also some items from trader may have only sell value OR only purchase value OR both... that should make sense with trader selecting logic
MarvinFS 23 Nov, 2020 @ 1:18pm 
But it worked for steak knife which was pristine just fine!
MarvinFS 23 Nov, 2020 @ 1:16pm 
But missing traderID still not showing in logs - null pointer message is the same
MarvinFS 23 Nov, 2020 @ 1:12pm 
Ok it seems that it stuck when item is missing from trader - that's after update

SCRIPT (E): NULL pointer to instance
Function: 'GetTradersInRange'
Stack trace:
Kat_BulkSell/World/actionbulksell.c:139
Kat_BulkSell/World/actionbulksell.c:76

SCRIPT : [Kat_BulkSell] ERROR >> Item missing in trader data: Rag
SCRIPT (E): NULL pointer to instance
Function: 'GetItemSellValue'
Stack trace:
Kat_BulkSell/World/actionbulksell.c:169
Kat_BulkSell/World/actionbulksell.c:109

MarvinFS 23 Nov, 2020 @ 1:00pm 
Man don't worry - totally understand your frustration! Will now test traderid and share logs after that update. If you prefer discord please ping me MarvinFS#6579
Katami  [author] 23 Nov, 2020 @ 11:51am 
I already spent too much time today looking at it... <.< I don't have a DayZ server, the only thing I can do quickly is to run in locally (and it works fine there).
Might be an undocumented change in DayZ 1.10 (can't see anything relevant in the changelog, probably would have to go through the code itself to see if something changed.), or perhaps a change in the Trader mod (it was updated for 1.10, but the variables in question still exist with the same names).
I see one possible problem if there is more Traders than Traderpositions (don't ask me how that is possible, but.. eh I'll write a fix for that and update in a bit.)
MarvinFS 23 Nov, 2020 @ 11:02am 
Is it possible to do something to troubleshoot it? And I totally understand you about Bohemia! :)
Katami  [author] 23 Nov, 2020 @ 10:18am 
Go thank Bohemia for undescriptive error messages and an undocumented scripting language.
MarvinFS 22 Nov, 2020 @ 12:41pm 
Hmm Katami doesn't work for me (chernorus map no expansion) It spams null pointer to logs when you try to sell contents... and doesn't sell anything. placed the barrel right in the center of GM trader...

DAYZ, 23.11 2020 01:38:39
NULL pointer to instance
Function: 'GetTradersInRange'
Stack trace:
Kat_BulkSell/World/actionbulksell.c:138
Kat_BulkSell/World/actionbulksell.c:75
scripts/4_World/classes\useractionscomponent\actions\actioncontinuousbase.c:203
scripts/4_World/classes\useractionscomponent\actioncomponents\cacontinuousbase.c:12
scripts/4_World/classes\useractionscomponent\actioncomponents\cacontinuoustime.c:53
scripts/4_World/classes\useractionscomponent\animatedactionbase.c:60
scripts/4_World/classes\useractionscomponent\animatedactionbase.c:345
scripts/4_World/classes\useractionscomponent\actions\actioncontinuousbase.c:28