Report reply pookins Posted April 26, 2020 Still the same error in the config file (01:04:16) | CustomLoot was compiled successfully in 1984ms (01:04:16) | CustomLoot v1.0.3: Failed to load config file (is the config file corrupt?) (Additional text encountered after finished reading JSON content: ,. Path '', line 453, position 3.) (01:04:16) | ExType: JsonSerializationException (01:04:16) | Failed to call hook 'OnServerInitialized' on plugin 'CustomLoot v1.0.3' (ArgumentException: Could not cast or convert from System.Boolean to Oxide.Plugins.CustomLoot+Settings.) at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <7126fb4f5c5b40029458a4f975f98d13>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <7126fb4f5c5b40029458a4f975f98d13>:0 (01:04:16) | Loaded plugin CustomLoot v1.0.3 by Steenamaroo Here is my config *which is valid only if i remove the API{} } Which i removed to get a vaidation ) but still get consol error message ? { "GlobalSettings": { "allowDuplicates": true, "corpseTypePerBotSpawnProfile": true, "Include_DM_Crates": true }, "CorpseTypes": { "BanditTown": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "CargoShip": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "CompoundScientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "Excavator": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "HeavyScientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "JunkPileScientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "MilitaryTunnelScientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "MountedScientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "Murderer": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "OilRig": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "ScareCrow": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "Scientist": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "BotSpawn": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false } }, "ContainerTypes": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "loot_barrel_2": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "loot-barrel-1": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "loot-barrel-2": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "oil_barrel": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "bradley_crate": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "codelockedhackablecrate": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_basic": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_elite": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_mine": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_normal": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_normal_2": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_normal_2_food": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_normal_2_medical": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_tools": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_underwater_advanced": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "crate_underwater_basic": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "foodbox": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "giftbox_loot": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "heli_crate": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "minecart": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "presentdrop": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "supply_drop": { "enabled": true, "lootTable": "default", "maxItems": 18, "minItems": 14, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false }, "trash-pile-1": { "enabled": true, "lootTable": "default", "maxItems": 8, "minItems": 6, "gunsWithAmmo": true, "noGuns": false, "MaxBps": 0, "MinWeaponCondition": 100, "MaxWeaponCondition": 100, "ClearContainerFirst": false } }, Quote Share this comment Link to comment
Report reply pookins Posted April 26, 2020 edited config as suggested and reloaded plugin , now get this error Failed to run a 1.00 timer in 'CustomLoot v1.0.3' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <437ba245d8404784b9fbab9b439ac908>:0 at Oxide.Plugins.CustomLoot.GetCategory (System.String lootTable) [0x00000] in <d7664ec599d343f69db55de1d0e30e63>:0 at Oxide.Plugins.CustomLoot.MakeLoot (System.String config) [0x00158] in <d7664ec599d343f69db55de1d0e30e63>:0 at Oxide.Plugins.CustomLoot+<PopulateContainer>c__AnonStorey1.<>m__1 () [0x0004e] in <d7664ec599d343f69db55de1d0e30e63>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0 edited CustomLoot.txt Quote Share this comment Link to comment
Report reply Steenamaroo Posted April 26, 2020 (edited) The only way I can see this happening is if 'default' loottable has been deleted and isn't in use, then some other plugin makes a call for a config entry that doesn't exist. Under those circumstances 'default' is used, and may not exist. Obviously I need to patch that but, if that is the case, reloading will create default.json and fix it. Edited April 26, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply pookins Posted April 27, 2020 6 hours ago, Steenamaroo said: The only way I can see this happening is if 'default' loottable has been deleted and isn't in use, then some other plugin makes a call for a config entry that doesn't exist. Under those circumstances 'default' is used, and may not exist. Obviously I need to patch that but, if that is the case, reloading will create default.json and fix it. Do you mean the default config from \oxide\data\CustomLoot\default.json ? default.txt Quote Share this comment Link to comment
Report reply Steenamaroo Posted April 27, 2020 Loottable, but yes. If that exists and you've reloaded and are still getting the same issue then I'm not sure what it is. Can't replicate so far, other than how I described. Quote Share this comment Link to comment
Report reply Guest Posted April 30, 2020 Changed Status from Pending to No Response Quote Share this comment Link to comment