Max Not Working

Setting the min/max doesn't seem to faze this plugin's config.  You can set the Hackable Oil Rig crate's max to anything and it will choose on its own how many items to put in.  Have it set to fill the crate with 5 items and scrap and have the Max set at 6 (I had it set at 12 before and nothing changed), but it's a crapshoot on how many items it will show.  I've seen another post a month ago about this and nothing was done.  Reporting this bug again in hopes it will be seen and fixed asap.

My Config:

"assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab": {
"Enabled": true,
"ItemList": {
"wood": {
"Max": 30000,
"Min": 20000
},
"stones": {
"Max": 30000,
"Min": 20000
},
"metal.fragments": {
"Max": 30000,
"Min": 20000
},
"sulfur": {
"Max": 20000,
"Min": 10000
},
"metal.refined": {
"Max": 10000,
"Min": 5000
}
},
"ItemsMax": 5,
"ItemsMin": 5,
"MaxBPs": 0,
"Scrap": 1000
},

And here's what it shows with this config:  zvO0n9vKdNWxsLO.png

I am having the exact same problem. WIsh this could be fixed.

PickleRicky

I am having the exact same problem. WIsh this could be fixed.

I've messaged TryHard (hopefully, they're still the one maintaining this plugin).  We'll see.

Try setting the items max to a different number than the min. you need only increase it by 1 or 2 numbers. it is worth a try but the same problem exists with FancyDrop,DangerousTreasures and GuardedCrate regarding min and max amounts. i dont worry about it as there is probably too much loot on my server anyway :)

It's most likely getting stuck in a loop and just giving up. because you requre 5 items, and only have just 5 items to choose from and it won't pick the same item twice.

Find this at line 588, increase the maxRetry number to like 20 or 50, and add the debug.log to confirm that's what's going on.

            var maxRetry = 10;
            for (int i = 0; i < itemCount; ++i)
            {
                if (maxRetry == 0)
                {
                    Debug.Log("Betterloot maxretry reached. giving up.");
                    break;
                }
​