GatherManager

Moved

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

4.93893/5, 131 likes
  1. Code:
     GatherManager, InstantCraft, QuickSmelt, StackSizeController and ZLevelsRemastered were compiled successfully in 1947ms
    [05/15/2017 17:22:15] Loaded plugin Gathering Manager v2.2.4 by Mughisi
    [05/15/2017 17:22:15]   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Int32.System.IConvertible.ToType (System.Type targetType, IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.GetConfigValue[Dictionary`2] (System.String category, System.String setting, System.Collections.Generic.Dictionary`2 defaultValue) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.LoadConfigValues () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.Init () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 
    How to fix?
    This happens every time i try to run a server with gather manager, seems to be something wrong with the config/.cs files
     
  2. Wulf

    Wulf Community Admin

    Your config file appears to not be formatted properly. The first line of the error is above the portions you pasted here.
     
  3. Code:
    [05/15/2017 17:30:44] Generating terrain of size 6000 with seed 26390
    [05/15/2017 17:30:45] Loading Oxide Core v2.0.3271...
    [05/15/2017 17:30:45] Loading extensions...
    [05/15/2017 17:30:45] Loaded extension CSharp v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Loaded extension MySql v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Loaded extension SQLite v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Loaded extension Unity v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Loaded extension Rust v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Using Covalence provider for game 'Rust'
    [05/15/2017 17:30:45] Loading plugins...
    [05/15/2017 17:30:45] Loaded plugin Unity Core v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] Loaded plugin Rust v2.0.3271 by Oxide Team
    [05/15/2017 17:30:45] GatherManager, InstantCraft, LootConfig, QuickSmelt, StackSizeController and ZLevelsRemastered were compiled successfully in 2190ms
    [05/15/2017 17:30:45] Loaded plugin Gathering Manager v2.2.4 by Mughisi
    [05/15/2017 17:30:45]   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Int32.System.IConvertible.ToType (System.Type targetType, IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.GetConfigValue[Dictionary`2] (System.String category, System.String setting, System.Collections.Generic.Dictionary`2 defaultValue) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.LoadConfigValues () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.Init () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GatherManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    [05/15/2017 17:30:45] Unloaded plugin Gathering Manager v2.2.4 by Mughisi
    [05/15/2017 17:30:45] No previous version to rollback plugin: GatherManager
    [05/15/2017 17:30:45] Loaded plugin InstantCraft v1.1.1 by Vlad-00003
    [05/15/2017 17:30:45] Loaded plugin LootConfig v1.0.21 by Nogrod
    [05/15/2017 17:30:45] Loaded plugin QuickSmelt v3.0.2 by Wulf/Fujikura
    [05/15/2017 17:30:45] Loaded plugin Stack Size Controller v1.9.4 by Canopy Sheep
    [05/15/2017 17:30:45] Loaded plugin ZLevelsRemastered v2.5.8 by Fujikura/Visagalis
    [05/15/2017 17:30:45] [InstantCraft] Pulled 563 skins.
    [05/15/2017 17:30:45] WebSocket RCon Started on 28016
    [05/15/2017 17:30:55] [10.3s] Loading World
    [05/15/2017 17:31:06] [10.7s] Spawning World
    [05/15/2017 17:31:08] [2.0s] Terrain Mesh
    [05/15/2017 17:31:09] [0.6s] Wire Meshes
    [05/15/2017 17:31:09] [2.8s] Procedural Generation
    [05/15/2017 17:31:09] Starting Navmesh Build with 91984 sources
    [05/15/2017 17:31:13] 1%
    [05/15/2017 17:31:15] 2%
    [05/15/2017 17:31:15] 3%
    Here is the (almost) full console log...
    how do i fix the formatting of the config file?
     
  4. Wulf

    Wulf Community Admin

    Hmmm, I'd try deleting your current config (back it up first) and then let it reset to defaults; from there you can compare what may be wrong.
     
  5. I deleted the config and then restarted the server, seems to have done the trick. thanks for the assistance.
     
  6. Okay so i installed oxide mod through fragnet where im hosting my server.. I then added this plugin and its shows that its installed but i cannot get it to work on the server. When im typing into the console the command (for example gather.rate wood 2) nothing happens. I absolutely have no idea how i am gonna get this to work, please anyone?
     
  7. I have a problem with pig and horse meat that loot that by 8 while the server is in x10,000 and that other resources works very well. Can you help me thanks
    "Google translate"
     
  8. Hi

    I added the Plugin yesterday to our server but I can't figure out how to change the amount of wood/stone you get per hit. I tried putting the comand into the console but nothing happened. Then I tried reloading the Plugin and then that happened:

    Code:
    09:10:03Loaded plugin Gathering Manager v2.2.4 by Mughisi
    09:10:03Failed to initialize plugin 'GatherManager v2.2.4' (InvalidCastException: Value is not a convertible object: System.Int32 to System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])
    09:10:03 at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    09:10:03 at System.Int32.System.IConvertible.ToType (System.Type targetType, IFormatProvider provider) [0x00000] in <filename unknown>:0
    09:10:03 at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    09:10:03 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Plugins.GatherManager.GetConfigValue[Dictionary`2] (System.String category, System.String setting, System.Collections.Generic.Dictionary`2 defaultValue) [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Plugins.GatherManager.LoadConfigValues () [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Plugins.GatherManager.Init () [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Plugins.GatherManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    09:10:03 at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    09:10:03Unloaded plugin Gathering Manager v2.2.4 by Mughisi
    09:10:03No previous version to rollback plugin: GatherManager
     
  9. Yo mine is not working at all, is there something i have put in here incorrectly?

    {
    "Messages": {
    "Dispensers": "Resource Dispensers",
    "HelpText": "/gather - Shows you detailed gather information.",
    "HelpTextAdmin": "To change the resources gained by gathering use the command:\ngather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>\nTo change the amount of resources in a dispenser type use the command:\ndispenser.scale <dispenser:tree|ore|corpse> <multiplier>\nTo change the time between Mining Quarry gathers:\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 {5} seconds.",
    "ModifyResource": "You have set the gather rate for {0} to x{10} 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": {
    "GatherDispenserModifiers": {10},
    "GatherResourceModifiers": {10},
    "MiningQuarryResourceTickRate": 5.0,
    "PickupResourceModifiers": {5},
    "QuarryResourceModifiers": {5},
    "SurveyResourceModifiers": {5}
    },
    "Settings": {
    "ChatPrefix": "Gather Manager",
    "ChatPrefixColor": "#008000ff"
    }
    }
     
  10. You dont add 10 between the {} use this one just change what you want
     

    Attached Files:

    Last edited by a moderator: May 24, 2017
  11. Hello, I was wondering how many items can be put to gather? Is there anyone that can make a complete configuration file and then put a 1 in for the amount? Notepad++ Allows multi number editing <3
     
  12. does anyone have a example of a complete config for upped rates all for 3-5x? i cant seem to get mine working being its not upping the amount u get from barrels correctly
     
  13. I'm trying to set up a x2 server where everything is times 2 except queries where i want them to 4x everything except stone. I think I may have made a mistake somewhere or I'm just not understanding how to set this up. I'm rather new at setting up a server let alone adding plugins.
    Code:
    {
    "Messages": {
    "Dispensers": "Resource Dispensers",
    "HelpText": "/gather - Shows you detailed gather information.",
    "HelpTextAdmin": "To change the resources gained by gathering use the command:\ngather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>\nTo change the amount of resources in a dispenser type use the command:\ndispenser.scale <dispenser:tree|ore|corpse> <multiplier>\nTo change the time between Mining Quarry gathers:\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": {
    "GatherDispenserModifiers": {},
    "GatherResourceModifiers": {
    "*": 2.0
    },
    "MiningQuarryResourceTickRate": 4.0,
    "PickupResourceModifiers": {
    "*": 2.0,
    "Hemp Seed": 1.0,
    "Cloth": 2.5
    },
    "QuarryResourceModifiers": {
    "*": 4.0,
    "stone": 1.0,
    },
    "SurveyResourceModifiers": {}
    },
    "Settings": {
    "ChatPrefix": "Gather Manager",
    "ChatPrefixColor": "#008000ff"
    }
    }
     
    Last edited by a moderator: May 27, 2017
  14. Try scrolling up next time before making a post
     
  15. I appreciate the feedback I did have a look at the one you posted. However, I'm not sure what I need to change in order to get a query to output 4x except stone which I would like to remain the same. I don't see pickup in here either. I don't know if it's necessary or not. Like I mentioned earlier I'm fairly new to this so explaining how things need to be changed in order to work would help me in the future and make me less relyant on the forums.

    This is the coding you posted.

    Code:
    {text}
    {
      "Messages": {
        "Dispensers": "Resource Dispensers",
        "HelpText": "/gather - Shows you detailed gather information.",
        "HelpTextAdmin": "To change the resources gained by gathering use the command:\ngather.rate <type:dispenser|pickup|quarry|survey> <resource> <multiplier>\nTo change the amount of resources in a dispenser type use the command:\ndispenser.scale <dispenser:tree|ore|corpse> <multiplier>\nTo change the time between Mining Quarry gathers:\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": {
        "GatherDispenserModifiers": {
          "Tree": 2.0,
          "Ore": 2.0,
          "Flesh": 2.0
        },
        "GatherResourceModifiers": {
          "Wood": 2.0,
          "Metal Ore": 2.0,
          "Stones": 2.0,
          "Cloth": 2.0
        },
        "MiningQuarryResourceTickRate": 4.0,
        "PickupResourceModifiers": {
          "Stones": 2.0
        },
        "QuarryResourceModifiers": {
          "Stones": 2.0
        },
        "SurveyResourceModifiers": {
          "Sulfur Ore": 2.0
        }
      },
      "Settings": {
        "ChatPrefix": "Gather Manager",
        "ChatPrefixColor": "#008000ff"
      }
    
     
    Last edited by a moderator: May 27, 2017
  16. Change the 2.0 to 4.0 if you want it at 4x
    pick up is in there
    "PickupResourceModifiers": {
    "Stones": 2.0

    If you want to add more just use the rcon commands on the overview and change what is needed

    A few examples:
    gather.rate dispenser Wood 10 - Gain 10 times as much wood from hitting trees.
    gather.rate dispenser Stones 5 - Gain 5 times as much stones when hitting those rocks.
    gather.rate dispenser Cloth 10 - Gain 10 times as much cloth when gathering from corpses.
    gather.rate pickup Stones 10 - Gain 10 times as much stones when picking up that collectible stone item.
    gather.rate quarry Stones 20 - Gain 20 times as much stones from the Mining Quarry.
    gather.rate survey "Sulfur Ore" 5 - Gain 5 times as much Sulfur Ore from using Survey Charges.

    Keep in mind that if the name of the items has one or more spaces in it that you need to use quotes! Ex: Metal Ore -> "Metal Ore"

    It is also possible to specify * as the item to increase the rate on all the items by that value, except those that were added manually, ex to have everything x10 and wood x2 you could use 'gather.rate dispenser wood 2' and 'gather.rate dispenser * 10'
    .

    Increasing the amount of items in a dispenser
    to increase the scale of the resources available in dispensers the console command dispenser.scale <dispenser:tree|ore|corpse> <multiplier> was made available.

    A few examples:
    dispenser.scale tree 5 - Trees will yield 5 times as much resources.
    dispenser.scale ore 10 - Ore rocks will yield 10 times as much resources.
    dispenser.scale corpse 2 - Corpses will yield 2 times as much resources.
     
  17. Hi

    I have issue with getting the gather amount on the same amount I have set all the amount on time`s x50 when I hit the first node and tree it looks like its working bud when I hit the sec node the amount is higher them time`s x50

    I have reinstall and hope some can help me to get the setting of the amount I want

    I want the entities on times x50 how do i get it run that way

    all support is welcome :)
     
    Last edited by a moderator: May 30, 2017
  18. Hi i need some help

    Gather amount x50 (by that I mean picking up )
    Hit amount x50 (tree, node, etc)

    rock x50 hit

    stone hatchet x150 hit
    stone pick axe x150 hit

    hatchet x200 hit
    Pick axe x200 hit

    Salvaged axe x250
    Salvaged icepick x250

    the tools are climbing up add 50% from rock to Salvaged tools

    i hope some can help me out here because it don't work for me i have include the file ass well
     

    Attached Files:

    Last edited by a moderator: May 31, 2017
  19. by looking at your config you dont have it set up so the resources you get from nodes are times by 50 but x5 as if you want x50 then the modifier for the resources should be 50.0 not 5.0
     
  20. ow okay and about tools ? :)