Jump to content

A resource item with a probability set to 1.0 doesn’t appear in the TC.

Pending 3.0.7

maxalt
maxalt

Posted

I’m sorry for always asking so many questions…
Actually, I’m having trouble because a resource item set with a 1.0 probability sometimes doesn’t appear in the TC.
The strange thing is, in **Nightmare** difficulty it always appears, but in **Easy** or **Medium** it sometimes does and sometimes doesn’t.
The item’s probability is definitely 1.0 in `Difficulty_Loot/Easy.json`, and the Amount value is fine (it’s the same as in `Nightmare.json`).
Also, in the config file, the item isn’t listed among those excluded from appearing in the TC.
What could be causing this?

nivex

Posted (edited)

hi, that's how difficulty loot works. items are picked at random from Difficulty loot tables. if you want some items to always spawn then you can put a few items in the base loot table, and enable Always Spawn Base Loot Table in the profile

this is explained in more detail in the documentation 

Edited by nivex
maxalt

Posted

Thank you for your reply.

 

So, if I add dogtag to Base_Loot/Easy.json and set the option you mentioned in the profile to True, that would make it appear 100% of the time, while the regular loot items would still be selected from Difficulty_Loot/Easy.json — is that correct?

However, even though Base_Loot/Nightmare.json is also empty like Easy, the TC always drops a dogtag in Nightmare.

Why is that?

nivex

Posted

hi, yes, that is how it works.

you probably have too few items in Nightmare. if that is the case then you will always see every item. add more items

maxalt

Posted

Thank you so much!

Just to make sure I understand correctly —

 

The issue I want to solve is that for some difficulties, the dogtag sometimes appears and sometimes doesn’t, but I want it to always appear.

 

For Nightmare, I’m actually happy with the current behavior (the dogtag always drops), even if that’s because the loot table is small — that’s the intended result.

However, for Easy and Medium, there’s no guarantee that it will appear, and I want to make it always drop.

 

If I use RBLootEditor, and load Base_Loot/Easy.json, then add the dogtag there with a 1.0 probability, will that solve the issue?

nivex

Posted

yep, almost,  enable Always Spawn Base Loot Table too.

  • Love 1
maxalt

Posted

Sorry, I still have a few questions.
On my server, I’m only using the Difficulty_Loot files.

For Easy, about 150 items are loaded with 30 loot rolls.
Because of that, the dog tag rarely appears — maybe about 2 out of 10 times.

For Medium, 236 items are loaded with 60 loot rolls.
The dog tag usually appears, but not always — maybe 6 out of 10 times.

For Nightmare, 293 items are loaded with 150 loot rolls.
The dog tag always appears.

Currently, in each Difficulty_Loot, for example in Easy,
I have C4 = amountMin 3, amountMax 7, probability 0.5.
For Medium, it’s a bit higher, and for Nightmare, quite a bit higher —
but the probability for all of them is 0.5.

So, if I set the probability to 0.5 in Base_Loot, what happens?
Will it still always appear?

Also, if I set amountMin 0, amountMax 5, probability 1.0,
since amountMin is 0, does that mean it still might not appear
even though the probability is 1.0?

In my case, would it be better to just use Base_Loot only?
Or should I use both Difficulty_Loot and Base_Loot?
What would be the best setup?

The items I want to always appear are the dog tag and resource-type items like scrap.
Other things — like C4 or M249 — can appear or not, that’s fine!

nivex

Posted (edited)

hi, that is how it should work. if you have everything in difficulty loot then it should pick from it randomly. if you have too few like with Nightmare then it will pick everything. otherwise items must be chosen for selection before probability can be rolled. like shopping: you pick something off the shelf or look at it first, then decide whether it goes in the cart. 

if you set it to 0.5 in base loot then it has a 50% chance. if you want to always spawn then you must set it to 1.0 and enable Always Spawn Base Loot Table in the profiles. if you have too few loot items and notice duplicates then you can disable that with Do Not Duplicate Base Loot in the config file. likewise, if you only want to exclude duplicates for items with probability lower than 1.0 then you can enable Check Lower Probability Once Per Loot Item in the profiles. if you have 150 items in the easy difficulty loot and want 30 to spawn then you won't see duplicates  unless you have that duplicate in the base loot and difficulty loot files, then there's a chance for difficulty loot to randomly roll it a second time.

correct, if you set min to 0 and max to 5 and it lands on 0 then it cannot spawn 0 of the item. it must be at least 1 to spawn.

the best setup is using both base loot and difficulty loot. put a few items in base loot that you want to always spawn, and leave the rest in difficulty loot. enable Always Spawn Base Loot Table in the profile

Edited by nivex
  • Love 1
maxalt

Posted

You’re truly a genius.

Thank you so much!

I haven’t tested it yet, but I’ll give it a try. 🔥

  • Love 1
2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.2k

Files Sold

Total number of files sold.

2.9m

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.