Report reply pookins Posted May 10, 2020 (edited) Getting this error (18:46:16) | Failed to run a 1.00 timer in 'CustomLoot v1.0.4' (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 <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Plugins.CustomLoot.MakeLoot (System.String config) [0x00198] in <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Plugins.CustomLoot+<PopulateContainer>c__AnonStorey1.<>m__1 () [0x0004e] in <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0 (18:46:16) | Failed to run a 1.00 timer in 'CustomLoot v1.0.4' (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 <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Plugins.CustomLoot.MakeLoot (System.String config) [0x00198] in <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Plugins.CustomLoot+<PopulateContainer>c__AnonStorey1.<>m__1 () [0x0004e] in <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0 (18:46:16) | Failed to run a 1.00 timer in 'CustomLoot v1.0.4' (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 <5abd6760f2d445aaa69fb84a6d3c085c>:0 at Oxide.Plugins.CustomLoot.MakeLoot (System.String config) [0x00198] in <5abd6760f2d445aaa69fb84a6d3c085c>:0 Edited May 12, 2020 by Death Wrapped error in code to make things more tidier for developer. Quote Share this comment Link to comment
Report reply Steenamaroo Posted May 10, 2020 I'll get back to you. Thanks. Quote Share this comment Link to comment
Report reply Guest Posted May 13, 2020 Changed Status from Pending to No Response Quote Share this comment Link to comment
Report reply pookins Posted May 14, 2020 21 hours ago, Guest said: Changed Status from Pending to No Response What does that mean ? Quote Share this comment Link to comment
Report reply pookins Posted May 15, 2020 On 5/14/2020 at 4:28 AM, Guest said: Changed Status from Pending to No Response What does that mean ? Oh well i will download it again when its working, so changing status from No Response to Not Interested Quote Share this comment Link to comment
Report reply Death Posted May 15, 2020 @pookins Support requests automatically close after 48 hours of no response. The author will change the resolution once they've reviewed the issue. Quote Share this comment Link to comment
Report reply Steenamaroo Posted May 15, 2020 Hi, Pookins, I think I know what the problem is. If you reload and do not delete /data/CustomLoot/default.json, does the problem cease? Quote Share this comment Link to comment
Report reply pookins Posted May 15, 2020 No it does not, i have unloaded, reloaded, deleted plugin and reinstalled plugin and still get the same error message. I never delete the config or data files unless the update documentation tells me to. data CustomLoot default. son.txt Quote Share this comment Link to comment
Report reply Steenamaroo Posted May 30, 2020 Hi Pookins. I'm sorry for the late reply. No idea how but I didn't see this notification. It looks like you have a mistake in your file ^. the entry for "skins" is missing under "botabag" Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 2, 2020 Changed Status from No Response to Not a Bug Quote Share this comment Link to comment
Report reply pookins Posted June 3, 2020 On 5/31/2020 at 1:17 AM, Steenamaroo said: Hi Pookins. I'm sorry for the late reply. No idea how but I didn't see this notification. It looks like you have a mistake in your file ^. the entry for "skins" is missing under "botabag" which file as i cant find bota bag in config ? Quote Share this comment Link to comment
Report reply pookins Posted June 3, 2020 49 minutes ago, pookins said: which file as i cant find bota bag in config ? Found it and fixed "error" But still spamming console on reload with same error and also found that it reset most of my config to default which is again a pain to redo. custom loot default data.txt Quote Share this comment Link to comment
Report reply pookins Posted June 3, 2020 With no new version number your update plugin does give notice of new update (?) Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 3, 2020 (edited) The error isn't fixed. "botabag": { "probability": 0, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 0, }, Skins entry is missing. "JsonSerializationException" is the plugin (any plugin) saying data or config is not as expected. Edited June 3, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 3, 2020 (edited) 29 minutes ago, pookins said: With no new version number your update plugin does give notice of new update (?) There is no update. I just made a small change to the documentation. UpdatesChecker will notify you if any of my plugins have newer versions available. @Death - ^^^. Edited June 3, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply pookins Posted June 3, 2020 1 hour ago, Steenamaroo said: The error isn't fixed. "botabag": { "probability": 0, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 0, }, Skins entry is missing. "JsonSerializationException" is the plugin (any plugin) saying data or config is not as expected. 2 hours ago, Steenamaroo said: The error isn't fixed. "botabag": { "probability": 0, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 0, }, Skins entry is missing. "JsonSerializationException" is the plugin (any plugin) saying data or config is not as expected. If you read the text file i attached to my reply you will see that i have included the fix to the plugin before i reloaded it again and got the same error message Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 3, 2020 (edited) k. You must have the same, or a similar, issue in some of your other data files then. If you're using an editor that flags errors I'd open the config and all data files and have a scan through. If not, paste the contents of each into https://jsonlint.com to verify. Edited June 3, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 3, 2020 Just tried a few things. The only way I could get the exact error you're getting was to remove one of the item names in a loot table. Like this, for example. "ammo.nailgun.nails": { "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, //Title missing here "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, "ammo.pistol.fire": { "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, Validating and repairing your loot-tables should solve any problems. Quote Share this comment Link to comment
Report reply pookins Posted June 4, 2020 (edited) 10 hours ago, Steenamaroo said: Just tried a few things. The only way I could get the exact error you're getting was to remove one of the item names in a loot table. Like this, for example. "ammo.nailgun.nails": { "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, //Title missing here "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, "ammo.pistol.fire": { "probability": 2, "maxStack": 1, "minStack": 1, "blueprintChancePercent": 90, "skins": [] }, Validating and repairing your loot-tables should solve any problems. Just checked both config and default data and both validated with no changes (?) and the only other plugin i have spamming issues with (and posted) is No Decay out of 65 plugins The only thing i could find is this and i dont know if its a duplication or correct "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 }, "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 Edited June 4, 2020 by pookins it needed to be edited Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 4, 2020 Those are the correct names ^. Might be easier if you attach a zip with your config file and contents of /data/CustomLoot. I've added error catching code to be released in the next version but that doesn't help you - It just means it'll fail with a nice message instead of red text. Quote Share this comment Link to comment
Report reply pookins Posted June 4, 2020 2 hours ago, Steenamaroo said: Those are the correct names ^. Might be easier if you attach a zip with your config file and contents of /data/CustomLoot. I've added error catching code to be released in the next version but that doesn't help you - It just means it'll fail with a nice message instead of red text. default.json.zip CustomLoot config.json.zip Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 4, 2020 (edited) The name of the first item in electrical has been deleted - "autoturret". "Electrical": { //name should be here with opening bracket "probability": 10, "maxStack": 10, "minStack": 1, "blueprintChancePercent": 0, "skins": [] }, "ceilinglight": { "probability": 10, "maxStack": 10, "minStack": 1, "blueprintChancePercent": 0, "skins": [] }, Attached is a repaired copy. default.json.zip Edited June 4, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply pookins Posted June 5, 2020 11 hours ago, Steenamaroo said: The name of the first item in electrical has been deleted - "autoturret". "Electrical": { //name should be here with opening bracket "probability": 10, "maxStack": 10, "minStack": 1, "blueprintChancePercent": 0, "skins": [] }, "ceilinglight": { "probability": 10, "maxStack": 10, "minStack": 1, "blueprintChancePercent": 0, "skins": [] }, Attached is a repaired copy. All i get if i open this is a mac file ? default.json.zip 4.96 kB · 0 downloads Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 5, 2020 Hm, OK. It's just a zipped json file. Well, to fix manually you can just replace my comment line above with "autoturret": { and add a closing } at the end of the file. Quote Share this comment Link to comment
Report reply pookins Posted June 6, 2020 On 6/5/2020 at 12:20 PM, pookins said: I deleted all files and reloaded and re edited config and data (when unloaded) it seems to be ok so fat but i have not been gathering loot as yet (still building 20x11x6 base) , it does have an annoying habit of reconfiguring config settings to default so i have to double check after reloading plugin and again edit and save the config. as yet no errors , thanks for your help Quote Share this comment Link to comment