Jump to content

Error spam in chat and Tool Cupboard disapearing and bases decaying

Can't Reproduce 2.0.8

Keep getting this error spam in chat:

Failed to call hook 'OnEntityKill' on plugin 'LimitEntities v2.0.8' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0 
  at ListDictionary`2[TKey,TVal].get_Item (TKey key) [0x00000] in <e4ac8f17b32d48cf8800a9ff30bbe52c>:0 
  at Oxide.Plugins.LimitEntities.OnEntityKill (BaseEntity entity) [0x0003a] in <f11ebac79b84417ba506380fdd3f887c>:0 
  at Oxide.Plugins.LimitEntities.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c2] in <f11ebac79b84417ba506380fdd3f887c>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 

Also players having issues I witnessed with players when making multiple Tool Cupboard bases with the middle TC being deleted and also entire base decaying even with full materials.

Here is my Config if it helps:

{
  "Enable GameTip notifications": true,
  "Enable notifications in chat": false,
  "Chat steamID icon": 76561198059348841,
  "Commands list": [
    "limits",
    "limit"
  ],
  "Warn when more than %": 80.0,
  "Excluded list": [
    "assets/prefabs/building/ladder.wall.wood/ladder.wooden.wall.prefab",
    "assets/prefabs/deployable/bed/bed_deployed.prefab",
    "assets/prefabs/deployable/large wood storage/box.wooden.large.prefab",
    "assets/prefabs/misc/halloween/coffin/coffinstorage.prefab",
    "assets/prefabs/deployable/research table/researchtable_deployed.prefab",
    "assets/prefabs/deployable/locker/locker.deployed.prefab",
    "assets/prefabs/deployable/repair bench/repairbench_deployed.prefab",
    "assets/prefabs/deployable/tier 1 workbench/workbench1.deployed.prefab",
    "assets/prefabs/deployable/tier 2 workbench/workbench2.deployed.prefab",
    "assets/prefabs/deployable/tier 3 workbench/workbench3.deployed.prefab",
    "assets/prefabs/deployable/woodenbox/woodbox_deployed.prefab",
    "assets/prefabs/deployable/sleeping bag/sleepingbag_leather_deployed.prefab"
  ],
  "Permissions": [
    {
      "Permission": "limitentities.default",
      "Priority": 0,
      "Limits Global": {
        "Limit Total": 5000,
        "Limits Entities": {
          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 500,
          "assets/prefabs/building core/foundation/foundation.prefab": 500,
          "assets/prefabs/deployable/campfire/campfire.prefab": 20,
          "assets/prefabs/deployable/ceiling light/ceilinglight.deployed.prefab": 50,
          "assets/prefabs/deployable/furnace.large/furnace.large.prefab": 20,
          "assets/prefabs/deployable/furnace/furnace.prefab": 25,
          "assets/prefabs/deployable/oil jack/mining.pumpjack.prefab": 1,
          "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab": 5,
          "assets/prefabs/deployable/planters/planter.large.deployed.prefab": 50,
          "assets/prefabs/deployable/planters/planter.small.deployed.prefab": 50,
          "assets/prefabs/deployable/quarry/mining_quarry.prefab": 2,
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 10,
          "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab": 50,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 10,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 25,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 5
        }
      },
      "Limits Building": {
        "Limit Total": 5500,
        "Limits Entities": {
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 5,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 5,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 25,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 5
        }
      }
    },
    {
      "Permission": "limitentities.vip",
      "Priority": 1,
      "Limits Global": {
        "Limit Total": 7500,
        "Limits Entities": {
          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 1000,
          "assets/prefabs/building core/foundation/foundation.prefab": 1000,
          "assets/prefabs/deployable/campfire/campfire.prefab": 20,
          "assets/prefabs/deployable/ceiling light/ceilinglight.deployed.prefab": 50,
          "assets/prefabs/deployable/furnace.large/furnace.large.prefab": 20,
          "assets/prefabs/deployable/furnace/furnace.prefab": 20,
          "assets/prefabs/deployable/oil jack/mining.pumpjack.prefab": 1,
          "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab": 5,
          "assets/prefabs/deployable/planters/planter.large.deployed.prefab": 50,
          "assets/prefabs/deployable/planters/planter.small.deployed.prefab": 50,
          "assets/prefabs/deployable/quarry/mining_quarry.prefab": 2,
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab": 60,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 35,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 8
        }
      },
      "Limits Building": {
        "Limit Total": 8000,
        "Limits Entities": {
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 35,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 8
        }
      }
    },
    {
      "Permission": "limitentities.elite",
      "Priority": 2,
      "Limits Global": {
        "Limit Total": 16000,
        "Limits Entities": {
          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 2500,
          "assets/prefabs/building core/foundation/foundation.prefab": 2500,
          "assets/prefabs/deployable/campfire/campfire.prefab": 50,
          "assets/prefabs/deployable/ceiling light/ceilinglight.deployed.prefab": 100,
          "assets/prefabs/deployable/furnace.large/furnace.large.prefab": 50,
          "assets/prefabs/deployable/furnace/furnace.prefab": 50,
          "assets/prefabs/deployable/oil jack/mining.pumpjack.prefab": 1,
          "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab": 5,
          "assets/prefabs/deployable/planters/planter.large.deployed.prefab": 50,
          "assets/prefabs/deployable/planters/planter.small.deployed.prefab": 50,
          "assets/prefabs/deployable/quarry/mining_quarry.prefab": 2,
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab": 75,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 50,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 10
        }
      },
      "Limits Building": {
        "Limit Total": 16500,
        "Limits Entities": {
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 50,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 20
        }
      }
    },
    {
      "Permission": "limitentities.diamond",
      "Priority": 3,
      "Limits Global": {
        "Limit Total": 20000,
        "Limits Entities": {
          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 3000,
          "assets/prefabs/building core/foundation/foundation.prefab": 3000,
          "assets/prefabs/deployable/campfire/campfire.prefab": 50,
          "assets/prefabs/deployable/ceiling light/ceilinglight.deployed.prefab": 100,
          "assets/prefabs/deployable/furnace.large/furnace.large.prefab": 50,
          "assets/prefabs/deployable/furnace/furnace.prefab": 50,
          "assets/prefabs/deployable/oil jack/mining.pumpjack.prefab": 1,
          "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab": 5,
          "assets/prefabs/deployable/planters/planter.large.deployed.prefab": 50,
          "assets/prefabs/deployable/planters/planter.small.deployed.prefab": 50,
          "assets/prefabs/deployable/quarry/mining_quarry.prefab": 2,
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab": 100,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 50,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 20
        }
      },
      "Limits Building": {
        "Limit Total": 20500,
        "Limits Entities": {
          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 50,
          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 50,
          "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 50,
          "assets/prefabs/npc/sam_site_turret/sam_site_turret_deployed.prefab": 20
        }
      }
    }
  ],
  "Log Level (Debug, Info, Warning, Off)": "Off"
}

Share this comment


Link to comment

OnEntityKill (from the error you posted) is called when an entity is destroyed. This error does not affect anything related to real entities on your server, just as the plugin itself doesn't.

All this plugin does is prevent players from placing new entities if the limit is reached, so it has nothing to do with "TC being deleted and also the entire base decaying."

You should look for the reason elsewhere. Try unloading plugins related to entities, etc.

As for the error itself, I can't reproduce it. In the next version, I will add an additional check to avoid logs, but just to clarify, there is nothing broken on the plugin's part. It seems that you have some sort of plugin that is destroying entities in an unexpected manner.

Edited by MON@H

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.5k

Files Sold

Total number of files sold.

1.6m

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.