Jump to content

Not working

Pending 1.2.4

J-sleazy182
J-sleazy182

Posted

No matter what I do I cannot get this plugin to populate corpses. I have tried everything I've even gone through every item one by one and set custom probabilities and min and max amounts, I've enabled everything that needs to be, and still won't populate corpses nor work at all with NPCRandomRaids which is specifically designed to work with this plugin and the reason I'm trying this plugin out at all because the only other option is alpha loot. But I'm at a complete loss.

  • Administrator
Steenamaroo

Posted (edited)

Hi,
I'd recommend starting off with as simple a table as possible, just for testing.
 

When NPCRandomRaids makes a call for loot, using the profile name you put in its config,
CustomLoot will check for an existing profile of that name and use it, if it exists,
or notify you that it doesn't exist and create it in the config under 'API'.

For testing I'd do the latter (use a name that doesn't exist) so that creation of a new API entry is confirmation of things working.
You will need to kill a random raid npc, though, to trigger creation of the new entry.


You'd then need to go and find that config entry in /oxide/config/CustomLoot.json.
and specify a valid loot table name for it, save the file, then reload CustomLoot plugin.

If you enter a loot table name that doesn't exist, CustomLoot will create a brand new default (all 0) loot table .json for you in /oxide/data/CustomLoot/

Again, I'd do the latter for testing - Enter a name that doesn't exist, so that creation of the new loottable/file is confirmation of things working.

 

Once you have a profile and loot table,
go in to the /data/CustomLoot/YourNewName.json loot table and find categories > Resources to probability '1' (near the top)
then scroll down to find the wood item under Resources and set that to probability  '1'.
Save + reload CustomLoot.

You should now have a loot table that always gives out wood.


If that doesn't work come back and let me know and we'll try to figure out why.
If it does work, at least now you know and you can start customising that table the way you want it.

Edited by Steenamaroo
  • Like 1
J-sleazy182

Posted

It did not work. Does this plugin interfere with Magic Loot at all? I figured it should be safe since magic loot really just allows you to set a loot multiplier that only affects crates and Custom Loot I intended to make only affect NPCs. But I've definitely been wrong before.

  • Administrator
Steenamaroo

Posted (edited)

Ok.
You can certainly use CustomLoot to only affect npcs.
By default it affects nothing so you have to manually enable and set up the various container/corpse types.

Whether CustomLoot will work nicely with MagicLoot, or any other loot plugin...I can't say for sure.
If magic loot is only meant to affect crates then it sounds like there shouldn't be a problem,
but you could temporarily unload MagicLoot (and any other loot plugins) just for confirmation.

Edited by Steenamaroo
  • Administrator
Steenamaroo

Posted (edited)

Can you give more detail?
Did CustomLoot notify you in console that the profile (specified in your npc plugin config) didn't exist,
then create that entry under its config/API section?


After typing in your own lootTable name for that profile and reloading CustomLoot, did it create a corresponding /data/Custom/NameHere.json?

Edited by Steenamaroo
J-sleazy182

Posted

No errors in console at all. When I installed and set it up the loot changed but not even remotely to what I set it to. Like bandages have a min stack of 5, and every NPC should have 3-5 slots of loot, meanwhile, more times than not, they have 1 or 2 slots of loot, and the stacks aren't even remotely what I have set up in the config. And even with the config disabled the loot doesn't go back to vanilla. Also the Random Raids NPCs don't drop any loot at all when configured to use Custom Loot. Whereas before custom loot they at least had vanilla loot on them.

J-sleazy182

Posted

I tried it without magic loot and no change.

  • Administrator
Steenamaroo

Posted

"And even with the config disabled the loot doesn't go back to vanilla."
 

Makes me think you're seeing loot from some other plugin.
Unload all plugins except CustomLoot on a test environment, or main server when there's no pop.

I'd even test with some less complicated loot source - like manually spawning crate-elite, or something that is unused on your server.


If you can't get the example I outlined to consistently give nothing but wood item, then something's not right.

Forget about number of items min/max, for now.
With a wood-only loot table it might give 10, 15, 30, 20 and 5 wood..You'll just see that as 80 wood.

2m

Downloads

Total number of downloads.

9.3k

Customers

Total customers served.

136.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.