Jump to content

Error code after clicking laptop

Pending 1.2.1

KeyNotFoundException: The given key 'Tab_KpucTaJl' was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <694551e795764b938030a3128fac2b36>:0
  at Oxide.Plugins.DefendableBases.CreateTabs (BasePlayer player, System.Collections.Generic.Dictionary`2[TKey,TValue] tabs) [0x00106] in <b18dce66ad1140c585b45021af136d7d>:0
  at Oxide.Plugins.DefendableBases+ControllerDefendableBase+<StartEvent>d__80.MoveNext () [0x00146] in <b18dce66ad1140c585b45021af136d7d>:0
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <f90b5d60566c42cc8b1d1412300b3616>:0
Failed to call hook 'OnItemPickup' on plugin 'DefendableBases v1.2.1' (KeyNotFoundException: The given key 'Tablet_KpucTaJl' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <694551e795764b938030a3128fac2b36>:0
  at Oxide.Plugins.DefendableBases.CreateLaptop (BasePlayer player) [0x001cb] in <b18dce66ad1140c585b45021af136d7d>:0
  at Oxide.Plugins.DefendableBases.OnItemPickup (Item item, BasePlayer player) [0x00054] in <b18dce66ad1140c585b45021af136d7d>:0
  at Oxide.Plugins.DefendableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f71] in <b18dce66ad1140c585b45021af136d7d>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

I haven't touched the loot table or anything just yet, was trying out the plugin fresh and this happens, when you click the laptop it puts one into your inventory which then put this error out

Edited by Ross Hunt

Share this comment


Link to comment

When you reload the plugin it likely might tell you what exactly is missing. Ensure though that you have all of the data files moved into your server from the download. Including empty folders which get skipped often. The empty folder needs to be created manually otherwise @Ross Hunt. It could potentially be config related but that is the most common reason for this issue.

Share this comment


Link to comment

This is what I get on a reload and full reinstall

l

[DefendableBases] DefendableBases has ended

[DefendableBases] DefendableBases has ended

Unloaded plugin DefendableBases v1.2.1 by KpucTaJl

[DefendableBases] Loading files on the /oxide/data/DefendableBases/Base/ path has started...

[DefendableBases] File A has been loaded successfully!

[DefendableBases] File B has been loaded successfully!

[DefendableBases] Loading files on the /oxide/data/DefendableBases/Config/ path has started...

[DefendableBases] File A has been loaded successfully!

[DefendableBases] File B has been loaded successfully!

[DefendableBases] Loading files on the /oxide/data/DefendableBases/CustomMap/ path has started...

Failed to call hook 'OnServerInitialized' on plugin 'DefendableBases v1.2.1' (DirectoryNotFoundException: Could not find a part of the path 'oxide\data\DefendableBases\CustomMap'.)

at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x0004d] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00050] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Enumeration.FileSystemEnumerable`1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable`1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Directory.InternalEnumeratePaths (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x0003c] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <694551e795764b938030a3128fac2b36>:0

at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00007] in <694551e795764b938030a3128fac2b36>:0

at Oxide.Core.DataFileSystem.GetFiles (System.String path, System.String searchPattern) [0x0000c] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

at Oxide.Plugins.DefendableBases.LoadCustomMapLocations () [0x0001a] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.DefendableBases.OnServerInitialized () [0x00097] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.DefendableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a9a] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

Calling 'OnServerInitialized' on 'DefendableBases v1.2.1' took 105ms

Loaded plugin DefendableBases v1.2.1 by KpucTaJl

 

and the second I click the laptop

 

KeyNotFoundException: The given key 'Tab_KpucTaJl' was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <694551e795764b938030a3128fac2b36>:0

at Oxide.Plugins.DefendableBases.CreateTabs (BasePlayer player, System.Collections.Generic.Dictionary`2[TKey,TValue] tabs) [0x00106] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.DefendableBases+ControllerDefendableBase+<StartEvent>d__80.MoveNext () [0x00146] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <f90b5d60566c42cc8b1d1412300b3616>:0

UnityEngine.MonoBehaviour:StartCoroutineManaged2(MonoBehaviour, IEnumerator)

UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)

Oxide.Plugins.<SpawnEntities>d__77:MoveNext()

UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Failed to call hook 'OnItemPickup' on plugin 'DefendableBases v1.2.1' (KeyNotFoundException: The given key 'Tablet_KpucTaJl' was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <694551e795764b938030a3128fac2b36>:0

at Oxide.Plugins.DefendableBases.CreateLaptop (BasePlayer player) [0x001cb] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.DefendableBases.OnItemPickup (Item item, BasePlayer player) [0x00054] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.DefendableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f71] in <4e47119619224ec2a3bf9cdb5cdac3aa>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

Edited by Ross Hunt

Share this comment


Link to comment

The error points you in the right direction. An empty folder has not been created or moved into the server. This happens sometimes since the folder is empty. You can manually create it.

DirectoryNotFoundException: Could not find a part of the path 'oxide\data\DefendableBases\CustomMap'.

Just create a folder named CustomMap in your data/DefendableBases/ directory @Ross Hunt.

Share this comment


Link to comment

Are you by chance in the Mad Mapper Discord and could you open a ticket there @Ross Hunt?

There is another error in your last message from your edit.

KeyNotFoundException: The given key 'Tablet_KpucTaJl' was not present in the dictionary.

You are still missing some files or folders.

Share this comment


Link to comment

Usually it is the empty custom folder that does not copy over @Ross Hunt that is the most common issue. Because it doesn't find the folder the plugin never fully loads properly and causes this error.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.7k

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.