Jump to content

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

Closed 1.0.9

Default01

Posted

```

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

```

The_Kiiiing

Posted

Try deleting the file /oxide/data/Loottable/gatherconfig.json and reload the plugin

Default01

Posted

I still get the error, my current server is running 1x gathering atm.

The_Kiiiing

Posted

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.

Default01

Posted

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

The_Kiiiing

Posted

Could you please send me the contents of the file /oxide/data/Loottable/editorconfig.json

Default01

Posted

{
  "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
  }
}

 

The_Kiiiing

Posted

I just tried it myself and I had the same error. I will fix this problem with the next update

The_Kiiiing

Posted

Changed Status from Pending to Work in Progress

The_Kiiiing

Posted (edited)

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
The_Kiiiing

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

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.