It's not in your exclude at all, and stone doesn't exist. It's "stones".

Magic Loot
Simple components multiplier & loot system
Total Downloads: 13,494 - First Release: Nov 13, 2016 - Last Update: Nov 2, 2017
- 5/5, 44 likes
-
i've changed it to "wood" & "stones" now -
So say you have it at x5 and they come across a rifle body. They'll get 5 (depending on what you have max set to) -
-
Hello,
I don't know if the plugin is affected, but, sometime, we found some awesomes number of objects in box...
Like binoculars, 7000 binoculars in one box, or like 2480 Metal embrazure, or like 450 homemade shells. Is it the fault of the plugin?
Here is my configfile:
Code:{ "Components": { "list": [ "bleach", "ducttape", "gears", "glue", "metalblade", "metalpipe", "propanetank", "riflebody", "roadsigns", "rope", "semibody", "sewingkit", "sheetmetal", "smgbody", "metalspring", "sticks", "tarp", "techparts", "scrap", "apple", "can.tuna", "chocholate", "granolabar", "smallwaterbottle", "cctv.camera", "targeting.computer", "metal.refined", "can.beans", "crude.oil", "lowgradefuel", "largemedkit", "syringe.medical", "bandage" ] }, "Developer": { "AmountChange": false, "Debug": false, "ExtraItem": false, "Skins": false }, "Exclude": { "list": [ "supply.signal", ] }, "ExcludeFromMultiplication": { "list": [ "crude.oil" ] }, "Loot": { "AmountMin": 1, "Enabled": true, "ItemsMax": 3, "ItemsMin": 1, "PreventDuplicates": false, "WorkshopSkins": false }, "Settings": { "Multiplier": 1, "MultiplierComponents": 2, "MultiplyOnlyComponents": true } }
-
Hi.
Can you explain to me the difference between :
Multiplier 2
Multipliercomponents 2
Code:"Settings": { "Multiplier": 2, "MultiplierComponents": 2, "MultiplyOnlyComponents": false
Thx. -
Hello, I think the Components is just a list if you don't want to multiply all rust items.
-
Code:
{ "Components": { "list": [ "bleach", "ducttape", "gears", "glue", "metalblade", "metalpipe", "propanetank", "riflebody", "roadsigns", "rope", "semibody", "sewingkit", "sheetmetal", "smgbody", "metalspring", "sticks", "tarp", "scrap", "techparts", "wood", "apple", "chocholate", "granolabar", "cctv.camera", "targeting.computer", "metal.refined", "metal.fragments", "lowgradefuel", "largemedkit", "syringe.medical", "bandage" ] }, "Developer": { "AmountChange": false, "Debug": false, "ExtraItem": false, "Skins": false }, "Exclude": { "list": [ "ammo.rocket.smoke" ] }, "ExcludeFromMultiplication": { "list": [ "supply.signal", "crude.oil" ] }, "Loot": { "AmountMin": 1, "Enabled": false, "ItemsMax": 3, "ItemsMin": 2, "PreventDuplicates": false, "WorkshopSkins": false }, "Settings": { "Multiplier": 1, "MultiplierComponents": 3, "MultiplyOnlyComponents": true } }
I ran into a strange bug where various loot crates are not fully spawning their loot. This doesn't occur with every crate, but often enough to annoy my players. What happens is the component in the box won't get it's multiplied amount, and the slot where the scrap should be is completely empty. In my config, I have "scrap" listed in components so it gets multiplied. When I remove "scrap" from the list, I stop encountering this bug.
** Update **
Kind of fixed the issue. I changed
"ItemsMin": 2 -> "ItemsMin": 1
and that seems to have fixed my issue, even though I had extra loot set to false.
** Update 2 **
Turns out changing ItemsMin to 1 didn't fix anything. Tried removing "scrap" from component list to see if it fixes issue.Last edited by a moderator: May 14, 2017 -
Sometime, crates are not affected by MagicLoot (like purple crates) or loots are * 10-15 while I put * 2... -
Last edited by a moderator: May 16, 2017 -
@Norn
@Wulf
With a lot of testing and debugging the mod, I've gotten closer to the answer but hit a roadblock. This mod updates the loot contents of all containers when the mod is loaded. Then it will update the container when it spawns in, triggering OnEntitySpawned(BaseNetworkable entity). The crates that are bugged are ones that haven't been looted for a while. Crates that just spawned will always have the loot multiplier applied, but if i check areas players haven't been through for a while, all of the crates are bugged. I ran some debug logs I wrote on the mod for several hours, the crates that are bugged never show up being spawned in, not triggering OnEntitySpawned(BaseNetworkable entity). My theory is that the containers are somehow being refreshed if they've been around a while, but not spawning in. Is it possible this refresh happens if a LootContainer tries to spawn in the same location, but OnEntitySpawned hook doesn't catch it, or it is a refresh and need a different hook to catch it? -
As for refreshing, I could set a timer that would simply refresh every container but I honestly had no idea that containers even refreshed in vanilla. I assumed they existed until death. As for the hooks and stuff regarding refresh changes, you'd have to speak to @Wulf or someone with a bit more knowledge on the subject. I will definitely try and work your testing into new updates though.
-
I need to set limits in /data/MagicLoot.json even with this config file?
Code:{ "Components": { "list": [ "bleach", "ducttape", "gears", "glue", "metalblade", "metalpipe", "propanetank", "riflebody", "roadsigns", "rope", "semibody", "sewingkit", "sheetmetal", "smgbody", "metalspring", "sticks", "tarp", "techparts", "scrap", "apple", "can.tuna", "chocholate", "granolabar", "smallwaterbottle", "cctv.camera", "targeting.computer", "metal.refined", "can.beans", "crude.oil", "lowgradefuel", "largemedkit", "syringe.medical", "bandage" ] }, "Developer": { "AmountChange": false, "Debug": false, "ExtraItem": false, "Skins": false }, "Exclude": { "list": [ "supply.signal", ] }, "ExcludeFromMultiplication": { "list": [ ] }, "Loot": { "AmountMin": 2, "Enabled": true, "ItemsMax": 5, "ItemsMin": 2, "PreventDuplicates": true, "WorkshopSkins": false }, "Settings": { "Multiplier": 1, "MultiplierComponents": 2, "MultiplyOnlyComponents": true } }
-
-
-
-
Hey I've been trying to make the barrels balance with my 5x all server but for some reason the barrel loot still doesn't drop a 5x multiplier towards components however it drop random loot out of purple containers? I've been going through the config but nothing happened yet. any way to fix this?
-
-
@Norn
@Wulf
Did another experiment today. I reloaded the mod to refresh all loot, and marked 12 crates at power plant monument and wrote down what was in each crate. Each one had x3 loot and all seemed to be in order. I checked in on the crates about every 15 minutes, each time there being a new crate that was bugged. Also interestingly, I found that the original loot changed. For example, one of the crates originally had 6 springs and 24 scrap. When I checked it 30 minutes later, it only had 1 smg part and 8 scrap. I found this consistent with every other crate after some undetermined amount of time. So the crates are definitely refreshing their loot, but not sure what is causing it and the mod isn't catching it.
** Followup **
Checked on crates an hour later, they refreshed again and have different loot, still not 3xLast edited by a moderator: May 18, 2017 -