GatherManager

Moved

Total Downloads: 59,074 - First Release: Oct 23, 2014 - Last Update: Aug 27, 2017

4.93893/5, 131 likes
  1. Any chance anyone could help me adjust my gather so that items that are picked up off the ground are more than 50? After adjusting the gathermanager file to pick up more HQ in a recent post by the developer, it appears that all rocks, sulfur rocks, quarry, and everything just simply went back to normal gather rates. Ive adjusted by manually typing the command within the console and it acknowledges the changes but doesnt work. Gather for the HQ though is working great.

    Any help would be greatly appreciated. Im sure its most likely something on my end. In case its needed this is the change ive applied to the gather file. Everything else is default . Not too familiar with the coding so not sure how to apply the change.

    private void OnDispenserGather(ResourceDispenser dispenser, BaseEntity entity, Item item)
    {
    System.Random rand = new System.Random();
    if (!entity.ToPlayer()) return;

    var player = entity.ToPlayer();
    var amount = item.amount;
    var gatherType = dispenser.gatherType.ToString("G");

    if (GatherResourceModifiers.ContainsKey(item.info.displayName.english))
    item.amount = (int)(item.amount * GatherResourceModifiers[item.info.displayName.english]);
    else if (GatherResourceModifiers.ContainsKey("*"))
    item.amount = (int)(item.amount * GatherResourceModifiers["*"]);
    if(item.info.displayName.english.Contains("Metal"))
    {
    var rands = rand.Next(1, 10);
    int HQ = 100;
    if(HQ <= 0)
    {
    var gatherRate = 1;
    if (GatherResourceModifiers.ContainsKey("High Quality Metal Ore"))
    gatherRate = (int)GatherResourceModifiers["High Quality Metal Ore"];
    else if (GatherResourceModifiers.ContainsKey("*"))
    gatherRate = (int)GatherResourceModifiers["*"];
    HQ = 1 * gatherRate;
    }
    player.inventory.GiveItem(ItemManager.CreateByItemID(2133577942, HQ), player.inventory.containerMain);
    }
    if (!GatherDispenserModifiers.ContainsKey(gatherType)) return;

    var dispenserModifier = GatherDispenserModifiers[gatherType];

    dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount += amount - item.amount / dispenserModifier;

    if (dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount < 0)
    item.amount += (int)dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount;
    }
     
  2. having the same issue, i can't get it to work
    [DOUBLEPOST=1500121424][/DOUBLEPOST]
    doesn't work
     
  3. gather.rate dispenser * 10
    Multiplying by 10 everything from dispenser
     
  4. so i'd like to get the gather rates on all metals, sulfur, wood and stone to times 1000, but i tried the gatherrate dispenser command and it does not work, i did see that it's due to the game etc so i was wondering if someone could tell me what would work for my purpose, thank you in advance.

    Dominic
     
  5. Try that dispenser.scale ore 1000
     
  6. do i have to restart my server after trying it because i still get only 10 items from ores, wood or anything else after this command
     
  7. No restart needed, it should be directly affected while you gather, did your config file is updated when you tip the command ?
     
  8. could you send me an example because i think i may be putting it in the wrong place
     
  9. "Options": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": {
    "*": 1000.0
    },
     
  10. so like this?

    "Options": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": {},
    "*": 1000.0
    },
    "MiningQuarryResourceTickRate": 5.0,
    "PickupResourceModifiers": {},
    "QuarryResourceModifiers": {},
    "SurveyResourceModifiers": {}



    and should i add that 1000,0 clause to every single modifier i'd like modified, such as pickup and quarry?
     
  11. I tried these options but no go.
     
  12. could i get a responce on my example from saturday?
    is it like option A
    "Options": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": {},
    "*": 1000.0
    },
    "MiningQuarryResourceTickRate": 5.0,
    "PickupResourceModifiers": {},
    "QuarryResourceModifiers": {},
    "SurveyResourceModifiers": {}



    or option B
    "Options": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": 1000,0,
    "MiningQuarryResourceTickRate": 5.0,
    "PickupResourceModifiers": {},
    "QuarryResourceModifiers": {},
    "SurveyResourceModifiers": {}

    or something different alltogether?
     
  13. It's more like option c :

    Code:
    "Options": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": {
    "*": 1000.0
    },
    "MiningQuarryResourceTickRate": 5.0,
    "PickupResourceModifiers": {},
    "QuarryResourceModifiers": {},
    "SurveyResourceModifiers": {}
     
  14. i tried this and it worked great, could i ask though if it's possible to exclude certain things, for example i'd love items coming from skinning to stay but not from vegetables such as pumpkins or corn (right now i'm getting 2K corn from a corn plant, and i'd like that to stay normal)
    i'm sorry if i'm stupid though haha
     
  15. setup it all up, set stone to 10k stack and it wont stack what matter what i do. i have restarted the server serval times, made sure i saved the edits, ect. everything else is working
     
  16. i think you have the wrong plugin for that, or at least you're responding on the wrong plugin, here take a look at this
    Stack Size Controller for Rust | Oxide
     
  17. With the command you can do it like:
    gather.rate "Corn or whatever is the name" 1
     
  18. Hey man , an you please send me your Gather Manager config file please
     
  19. Don't work with "High Quality Metal Ore" ?

    Can I up rate from loots on barrels or crates ?
     
  20. Read all post above...


    BetterLoot or other barrel loot modifier