Jump to content

loot stack sizes

Closed 2.9.9

Klutch
Klutch

Posted

im just curious if i can make the loot spawn using my current stack sizes, while still spawning the right amount of that item?. in doing so filling up a box instead of just the first row with wild stack sizes. i tried changing the config to true on line 780, it spawned the right stack sizes but they didnt match the numbers in the loot tables. example ( loot table set to spawn 10k wood, using my stack sizes of 2k, it would fill 5 slots with 2k wood). it currently spawns 10k wood in 1 stack or only 2k wood in one slot. i could be missing something in the loot tables or config.

nivex

Posted (edited)

hi

Quote

example ( loot table set to spawn 10k wood, using my stack sizes of 2k, it would fill 5 slots with 2k wood).

yes, that is how Use Stack Size Limit For Spawning Items functions

Quote

it currently spawns 10k wood in 1 stack or only 2k wood in one slot

the remaining 8k would be in the TC. it will always spawn what it is supposed to spawn. otherwise that wood was from another loot table, or another plugin is conflicting.

if Move Resources Into Tool Cupboard is enabled then it can horde wood as intended

Resources Not Moved To Cupboards can prevent specific resources from going into TC

if you want to DM your config and loot table then I can take a look.

Edited by nivex
nivex

Posted (edited)

hi, explain abnormally for a specific weapon given a specific requirement. 

your config doesn't have "Use Stack Size Limit For Spawning Items" enabled either

Edited by nivex
Klutch

Posted (edited)

stacks should be max 20 for all but gp which is 2k

this is with line 780 set to false when i change it to true the stacks dont exceed max but it appears theres less loot in the bases

Capture.PNG

Edited by Klutchq
nivex

Posted

"Loot Amount Multiplier": 4.0,

you have the multiplier set to 4x

so if fuse is 2 min and 10 max then it can be 8 min and 40 max with that multiplier

Klutch

Posted

I guess what im asking is how do i get the boxes to fill up more while holding my stack limit??

 

Klutch

Posted

Just now, nivex said:

"Loot Amount Multiplier": 4.0,

you have the multiplier set to 4x

so if fuse is 2 min and 10 max then it can be 8 min and 40 max with that multiplier

that was my attempt to get more loot in the boxes but with the same stack size if i reduce the loot multiplier and increase the loot min and max in loot table will i get the desired effect?

nivex

Posted

no,  Use Stack Size Limit For Spawning Items is set false

so this is going to spawn a single stack.

  {
    "shortname": "fuse",
    "name": null,
    "text": null,
    "blueprint": false,
    "skin": 0,
    "amount": 9,
    "amountMin": 9,
    "probability": 1.0,
    "stacksize": -1
  },  

image.png.45a1b9ed47561a97b562ddde620e2fae.png

 

if you enable that setting and have the servers stacksize set to 3 then it will spawn this

image.png.1222f7c5ae8b8e5e8c518b57da5da600.png

if you change the loot amount multiplier to 4x then you will get this

image.png.e30769b3f98e055abb5655de794a5008.png

 

Klutch

Posted

OK so if im understanding correctly im going to set Use Stack Size Limit For Spawning Items to true, which keeps my stack sizes at 20. reduce the multiplier down to 1.0(default setting). and then increase the amount of possible loot in each stack to spawn thus filling out the boxes more and keeping my stack limit. ill give this a try if i still have issues ill shoot another message

 

nivex

Posted

29 minutes ago, Klutchq said:

stacks should be max 20 for all but gp which is 2k

this is with line 780 set to false when i change it to true the stacks dont exceed max but it appears theres less loot in the bases

it's not less items though. if you split a single item into 2 stacks then that single item becomes 2 items. which are counted towards the total.

if you don't want splits to count towards the total then you should enable Amount Of Items To Spawn Increased By Item Splits

nivex

Posted

3 minutes ago, Klutchq said:

OK so if im understanding correctly im going to set Use Stack Size Limit For Spawning Items to true, which keeps my stack sizes at 20. reduce the multiplier down to 1.0(default setting). and then increase the amount of possible loot in each stack to spawn thus filling out the boxes more and keeping my stack limit. ill give this a try if i still have issues ill shoot another message

 

you should read my last response and form your own opinion on what you want to do.

it must be the split counting towards the total that was confusing you.

Klutch

Posted (edited)

I got it figured out thanks for your guidance it was very helpful

Just submitted a 5 star review keep up the awesome work man its appreciated.

Edited by Klutchq
nivex

Posted

no problem glad its sorted

thanks:)

nivex

Posted

Changed Status from Pending to Closed

1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

117.6k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.