Gather Manager stopped working, does not accept gather.rate code and error when reloading.Solved

The GatherManager was working yesterday, but today I was told the gathering was very slow. When I checked the system and tried to add this code" oxide.grant group default gather.rate dispenser Wood 5" to raise it from 3 to 5 times rate, it gave me this error code Permission 'gather.rate' doesn't exist.

I reloaded the plugin with oxide.reload GatherManager and got the below error. So I then uninstalled the mod and reinstalled to see if that would fix it but it just brought me back in the error loop. 

Failed to initialize plugin 'GatherManager v2.2.75' (InvalidCastException: Invalid cast from 'System.Int32' to 'System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.) at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in :0 at System.Int32.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 at Oxide.Plugins.GatherManager.GetConfigValue[T] (System.String category, System.String setting, T defaultValue) [0x00040] in :0 at Oxide.Plugins.GatherManager.LoadConfigValues () [0x00036] in :0 at Oxide.Plugins.GatherManager.Init () [0x00000] in :0 at Oxide.Plugins.GatherManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00038] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in :0
Unloaded plugin Gathering Manager v2.2.75 by Mughisi
No previous version to rollback plugin: GatherManager

It appears that your configuration was edited wrongly. Did you edit anything manually?

I didn't make any changes from when it was working yesterday, and when it stopped working today. Previously I had tried to increase it only in the config file because I was trying to "cheat" and not do the indivdual console commands. It has been 2 years since I ran a rust server and I was trying to remember how to do everything, but I figured since it wasn't working I needed to go all in and remember the previous commands.

What my config is:

{
"Messages": {
"Dispensers": "Resource Dispensers",
"Excavators": "Excavators",
"HelpText": "/gather - Shows you detailed gather information.",
"HelpTextAdmin": "To change the resources gained by gathering use the command:\r\ngather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>\r\nTo change the amount of resources in a dispenser type use the command:\r\ndispenser.scale <dispenser:tree|ore|corpse> <multiplier>\r\nTo change the time between Mining Quarry gathers:\r\nquarry.tickrate <seconds>",
"HelpTextMiningQuarrySpeed": "Time between Mining Quarry gathers: {0} second(s).",
"HelpTextPlayer": "Resources gained from gathering have been scaled to the following:",
"HelpTextPlayerDefault": "Default values.",
"HelpTextPlayerGains": "Resources gained from {0}:",
"InvalidArgumentsDispenserType": "Invalid arguments supplied! Use dispenser.scale <dispenser:tree|ore|corpse> <multiplier>",
"InvalidArgumentsGather": "Invalid arguments supplied! Use gather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>",
"InvalidArgumentsMiningQuarrySpeed": "Invalid arguments supplied! Use quarry.rate <time between gathers in seconds>",
"InvalidDispenser": "{0} is not a valid dispenser. Check gather.dispensers for a list of available options.",
"InvalidMiningQuarrySpeed": "You can't set the speed lower than 1 second!",
"InvalidModifier": "Invalid modifier supplied! The new modifier always needs to be bigger than 0!",
"InvalidResource": "{0} is not a valid resource. Check gather.resources for a list of available options.",
"MiningQuarries": "Mining Quarries",
"ModifyDispenser": "You have set the resource amount for {0} dispensers to x{1}",
"ModifyMiningQuarrySpeed": "The Mining Quarry will now provide resources every {0} seconds.",
"ModifyResource": "You have set the gather rate for {0} to x{1} from {2}.",
"ModifyResourceRemove": "You have reset the gather rate for {0} from {1}.",
"NotAllowed": "You don't have permission to use this command.",
"Pickups": "pickups",
"SurveyCharges": "Survey Charges"
},
"Options": {
"ExcavatorBeltSpeedMax": 0.1,
"ExcavatorResourceModifiers": {},
"ExcavatorResourceTickRate": 3,
"ExcavatorTimeForFullResources": 120,
"GatherDispenserModifiers": 3,
"GatherResourceModifiers": 3,
"MiningQuarryResourceTickRate": 5,
"PickupResourceModifiers": 3,
"QuarryResourceModifiers": 3,
"SurveyResourceModifiers": 3
},
"Settings": {
"ChatPrefix": "Gather Manager",
"ChatPrefixColor": "#008000ff"
}
}

According to the above, your config was edited wrongly. Each of those "Modifiers" settings should not be just a number. I'd suggest removing the modified config and letting the plugin generate a new one.

What is odd, I deleted the app but when I reinstalled i noticed the config was still changed, I will delete it from the config and data files to make sure it isn't saved and reinstall again

Merged post

Ok, I have completely deleted and reinstalled and now it is back to default settings. I didn't make any changes to the config this time and just tried doing these 2 console commands to see if it would work but I get the following error (same error but replace dispenser with gather): Permission 'dispenser.scale' doesn't exist. Good news is when I reload Gather Manager, I no longer get the error so the config is working :). 



2 console commands: 
oxide.grant group default dispenser.scale tree 5
oxide.grant group default gather.rate dispenser Wood 5

Current config (unchanged from default)
{
"Messages": {
"Dispensers": "Resource Dispensers",
"Excavators": "Excavators",
"HelpText": "/gather - Shows you detailed gather information.",
"HelpTextAdmin": "To change the resources gained by gathering use the command:\r\ngather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>\r\nTo change the amount of resources in a dispenser type use the command:\r\ndispenser.scale <dispenser:tree|ore|corpse> <multiplier>\r\nTo change the time between Mining Quarry gathers:\r\nquarry.tickrate <seconds>",
"HelpTextMiningQuarrySpeed": "Time between Mining Quarry gathers: {0} second(s).",
"HelpTextPlayer": "Resources gained from gathering have been scaled to the following:",
"HelpTextPlayerDefault": "Default values.",
"HelpTextPlayerGains": "Resources gained from {0}:",
"InvalidArgumentsDispenserType": "Invalid arguments supplied! Use dispenser.scale <dispenser:tree|ore|corpse> <multiplier>",
"InvalidArgumentsGather": "Invalid arguments supplied! Use gather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>",
"InvalidArgumentsMiningQuarrySpeed": "Invalid arguments supplied! Use quarry.rate <time between gathers in seconds>",
"InvalidDispenser": "{0} is not a valid dispenser. Check gather.dispensers for a list of available options.",
"InvalidMiningQuarrySpeed": "You can't set the speed lower than 1 second!",
"InvalidModifier": "Invalid modifier supplied! The new modifier always needs to be bigger than 0!",
"InvalidResource": "{0} is not a valid resource. Check gather.resources for a list of available options.",
"MiningQuarries": "Mining Quarries",
"ModifyDispenser": "You have set the resource amount for {0} dispensers to x{1}",
"ModifyMiningQuarrySpeed": "The Mining Quarry will now provide resources every {0} seconds.",
"ModifyResource": "You have set the gather rate for {0} to x{1} from {2}.",
"ModifyResourceRemove": "You have reset the gather rate for {0} from {1}.",
"NotAllowed": "You don't have permission to use this command.",
"Pickups": "pickups",
"SurveyCharges": "Survey Charges"
},
"Options": {
"ExcavatorBeltSpeedMax": 0.1,
"ExcavatorResourceModifiers": {},
"ExcavatorResourceTickRate": 3,
"ExcavatorTimeForFullResources": 120,
"GatherDispenserModifiers": {},
"GatherResourceModifiers": {},
"MiningQuarryResourceTickRate": 5,
"PickupResourceModifiers": {},
"QuarryResourceModifiers": {},
"SurveyResourceModifiers": {}
},
"Settings": {
"ChatPrefix": "Gather Manager",
"ChatPrefixColor": "#008000ff"
}
}


Merged post

I appreciate your help, I figured out what I was doing wrong. I blame lack of sleep and "getting back in the game".  I was trying to over complicate the commands and added oxide.grant group default in front of the comands and it isn't a command for a group or player, but a command for server and that is where it is screwing up

What I was putting: 

oxide.grant group default gather.rate dispenser Wood 5
oxide.grant group default gather.rate dispenser Stones 5
oxide.grant group default gather.rate dispenser Cloth 5
oxide.grant group default gather.rate pickup Stones 5
oxide.grant group default gather.rate quarry Stones 5
oxide.grant group default gather.rate survey "Sulfur Ore" 5

What the correct way is: 

gather.rate dispenser Wood 5
gather.rate dispenser Stones 5
gather.rate dispenser Cloth 5
gather.rate pickup Stones 5
gather.rate quarry Stones 5
gather.rate survey "Sulfur Ore" 5

Wanted to close the loop in case someone else has an oops moment!
Locked automatically