Jump to content

Spamming consol

Not a Bug 1.0.4

pookins
pookins

Posted (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 by Death
Wrapped error in code to make things more tidier for developer.
  • Administrator
Steenamaroo

Posted

I'll get back to you.

Thanks.

Guest

Posted

Changed Status from Pending to No Response

pookins

Posted

21 hours ago, Guest said:

Changed Status from Pending to No Response

What does that mean ?

pookins

Posted

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

  • Administrator
Death

Posted

@pookins Support requests automatically close after 48 hours of no response. The author will change the resolution once they've reviewed the issue.

  • Administrator
Steenamaroo

Posted

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?

pookins

Posted

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

  • Administrator
Steenamaroo

Posted

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"

  • Administrator
Steenamaroo

Posted

Changed Status from No Response to Not a Bug

pookins

Posted

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 ?

pookins

Posted

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

pookins

Posted

With no new version number your update plugin does give notice of new update (?)

  • Administrator
Steenamaroo

Posted (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 by Steenamaroo
  • Administrator
Steenamaroo

Posted (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 by Steenamaroo
pookins

Posted

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

  • Administrator
Steenamaroo

Posted (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 by Steenamaroo
  • Administrator
Steenamaroo

Posted

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.

pookins

Posted (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 by pookins
it needed to be edited
  • Administrator
Steenamaroo

Posted

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.

pookins

Posted

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

  • Administrator
Steenamaroo

Posted (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 by Steenamaroo
pookins

Posted

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

 

  • Administrator
Steenamaroo

Posted

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.

pookins

Posted

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

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
158.9k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.