Jump to content

i get this error when i try to set the global gather multiplier

Closed 1.0.9

```

at Oxide.Plugins.Loottable+EditorConfig.get_UnlockGatherMultiplier () [0x00006] in <2890af3763f249638e6ee640265167ae>:0
  at Oxide.Plugins.Loottable.CMD_cmd (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args_0) [0x01bf6] in <2890af3763f249638e6ee640265167ae>:0
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0124e] in <2890af3763f249638e6ee640265167ae>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0
Failed to call hook 'CMD_cmd' on plugin 'Loottable v1.0.9' (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

```

Share this comment


Link to comment

You could try another thing: Unload the plugin, delete the file /oxide/data/Loottable/editorconfig.json, then reload the plugin. Make sure to unload the plugin before deleting the file otherwise it won't work.

Share this comment


Link to comment

i get this error when changing the global gather multiplier:

at Oxide.Plugins.Loottable+EditorConfig.get_UnlockGatherMultiplier () [0x00006] in <fe9bd3f6c0a74981b035f04b086ddd6e>:0
  at Oxide.Plugins.Loottable.CMD_cmd (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args_0) [0x01bf6] in <fe9bd3f6c0a74981b035f04b086ddd6e>:0
  at Oxide.Plugins.Loottable.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0124e] in <fe9bd3f6c0a74981b035f04b086ddd6e>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0

Share this comment


Link to comment
{
  "version": 2,
  "ItemLimit": 1000000,
  "GatherMultiplier": {
    "min": 1.0,
    "max": 1000.0
  },
  "FurnaceMultiplier": {
    "min": 0.1,
    "max": 100.0
  },
  "flags": {
    "Debug": false,
    "UnlockGatherMultiplier": false,
    "DisableItemLimit": false,
    "UnlockFurnaceMultiplier": false
  }
}

 

Share this comment


Link to comment

In case you don't want to wait for the update you can fix it yourself. Open the file Loottable.cs and go to line 149. It should look like this:

public bool UnlockGatherMultiplier => flags["UnlocGatherMultiplier"];

Add a 'k' to UnlocGahterMultiplier. The line should look like this then.

public bool UnlockGatherMultiplier => flags["UnlockGatherMultiplier"];

That's it 🙂. Was just a small typo that caused this problem.

Edited by The_Kiiiing
  • Love 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.8k

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.