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.
Gather Manager stopped working, does not accept gather.rate code and error when reloading.Solved
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!