Support for Plant Fiber and ClonesSuggestion
Many Thanks
To have the gather multiplier affect player plants you have to add it under GatherDispenserModifier. Think of player plants as separate from wild plants. The seed entries there are redundant, but I just haven't bothered to change it. Ignore the plant fiber entries as they don't work last time I checked. I was just adding them in all over hoping it would be picked up somewhere. I have not checked plant fiber since he updated.
{
"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": {
"High Quality Metal Ore": 3,
"Metal Fragments": 3,
"Stones": 3,
"Sulfur Ore": 1
},
"ExcavatorResourceTickRate": 3.0,
"ExcavatorTimeForFullResources": 120.0,
"GatherDispenserModifiers": {
"Pumpkin": 3,
"Pumpkin Seed": 3,
"Corn": 3,
"Corn Seed": 3,
"Hemp Seed": 3,
"Cloth": 3,
"Potato": 3,
"Potato Seed": 3,
"Plant Fiber": 3
},
"GatherResourceModifiers": {
"Cactus Flesh": 3,
"Cloth": 3,
"High Quality Metal Ore": 3,
"Metal Ore": 3,
"Stones": 3,
"Sulfur Ore": 1,
"Wood": 3,
"Animal Fat": 3,
"Leather": 3,
"Bone Fragments": 3,
"Raw Pork": 3,
"Wolf Skull": 3,
"Raw Wolf Meat": 3,
"Raw Bear Meat": 3,
"Raw Chicken Breast": 3,
"Raw Horse Meat": 3,
"Raw Human Meat": 3,
"Raw Deer Meat": 3,
"High Quality Metal": 3,
"Metal Fragments": 3,
"Charcoal": 3,
"Plant Fiber": 3
},
"MiningQuarryResourceTickRate": 5.0,
"PickupResourceModifiers": {
"Cloth": 3,
"Corn": 3,
"Corn Seed": 3,
"Hemp Seed": 3,
"Metal Ore": 3,
"Mushroom": 3,
"Pumpkin": 3,
"Pumpkin Seed": 3,
"Stones": 3,
"Sulfur Ore": 1,
"Wood": 3,
"Diesel Fuel": 3,
"Potato": 3,
"Potato Seed": 3,
"Plant Fiber": 3
},
"QuarryResourceModifiers": {
"Crude Oil": 3,
"High Quality Metal Ore": 3,
"Metal Ore": 3,
"Stones": 3,
"Sulfur Ore": 1
},
"SurveyResourceModifiers": {}
},
"Settings": {
"ChatPrefix": "Gather Manager",
"ChatPrefixColor": "#008000ff"
}
} This did not workDuckTalesHey Nocturnalverse, don't have the answer to your question sorry. But could i ask what you added to the config to have it effect the new farming content.
Many Thanks
Hey, I wrote an override for the CanTakeCutting hook since plant cloning doesn't seem to be a normal resource gather or pickup. I tested this locally on top of Gather Manager 2.2.75 and it appears to work as expected for all growables in planters.
Could you update the plugin with this fix/update?
New method:
private object CanTakeCutting(BasePlayer player, GrowableEntity entity)
{
float modifier;
if (!GatherResourceModifiers.TryGetValue(entity.Properties.CloneItem.displayName.english, out modifier))
GatherResourceModifiers.TryGetValue("*", out modifier);
int iAmount = (int)((entity.Properties.BaseCloneCount + entity.Genes.GetGeneTypeCount(GrowableGenetics.GeneType.Yield) / 2) * modifier);
if (iAmount <= 0)
return null; //reverts to default impl
Item targetItem = ItemManager.Create(entity.Properties.CloneItem, iAmount, 0UL);
GrowableGeneEncoding.EncodeGenesToItem(entity, targetItem);
player.GiveItem(targetItem, BaseEntity.GiveItemReason.PickedUp);
if (entity.Properties.pickEffect.isValid)
Effect.server.Run(entity.Properties.pickEffect.resourcePath, entity.transform.position, Vector3.up, (Network.Connection)null, false);
entity.Die((HitInfo)null);
return true;
}The original method is from GrowableEntity.cs .TakeClones in RustDedicated_Data\Managed\Assembly-CSharp.dll
here, it still doesn't work ... plugin ver 2.2.78
Clones - NO
Worm - NO
Plant Fiber - NO
GRUB - NO
Merged post
{
"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|excavator|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.3,
"ExcavatorResourceModifiers": {
"*": 3.0
},
"ExcavatorResourceTickRate": 3.0,
"ExcavatorTimeForFullResources": 20.0,
"GatherDispenserModifiers": {
"*": 3.0
},
"GatherResourceModifiers": {
"Wood": 3.0,
"Stones": 3.0,
"Sulfur Ore": 1.5,
"Metal Ore": 3.0,
"Raw Bear Meat": 3,
"Raw Pork": 3,
"Raw Deer Meat":3,
"Leather": 1.5,
"Animal Fat": 3,
"Bone Fragments": 1,
"Cloth" : 3,
"Red Berry": 3,
"Red Berry Clone": 3,
"Red Berry Seed": 3,
"White Berry": 3,
"White Berry Clone": 3,
"White Berry Seed": 3,
"Blue Berry": 3,
"Blue Berry Clone": 3,
"Blue Berry Seed": 3,
"Yellow Berry": 3,
"Yellow Berry Clone": 3,
"Yellow Berry Seed": 3,
"Green Berry": 3,
"Green Berry Clone": 3,
"Green Berry Seed": 3,
"Black Berry": 3,
"Black Berry Clone": 3,
"Black Berry Seed": 3,
"Plant Fiber": 3
},
"MiningQuarryResourceTickRate": 1.0,
"PickupResourceModifiers": {
"Mushroom": 5.0,
"Cloth": 3,
"Hemp Seed": 3,
"Pumpkin": 3,
"Pumpkin Seed": 3,
"Corn": 3,
"Corn Seed": 3,
"Red Berry": 3,
"Red Berry Clone": 3,
"Red Berry Seed": 3,
"White Berry": 3,
"White Berry Clone": 3,
"White Berry Seed": 3,
"Blue Berry": 3,
"Blue Berry Clone": 3,
"Blue Berry Seed": 3,
"Yellow Berry": 3,
"Yellow Berry Clone": 3,
"Yellow Berry Seed": 3,
"Green Berry": 3,
"Green Berry Clone": 3,
"Green Berry Seed": 3,
"Black Berry": 3,
"Black Berry Clone": 3,
"Black Berry Seed": 3,
"Sulfur Ore": 3,
"Sulfur Ore": 3,
"Metal Ore": 3,
"Stones":3,
"Wood": 3,
"Worm": 3,
"Plant Fiber": 3
},
"QuarryResourceModifiers": {
"High Quality Metal Ore": 3.0,
"Sulfur Ore": 20,
"Metal Ore": 20,
"Stones":20
},
"SurveyResourceModifiers": {}
},
"Settings": {
"ChatPrefix": "Gather Manager",
"ChatPrefixColor": "#008000ff"
}
}