GatherManager

Moved

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

4.93893/5, 131 likes
  1. Thanks for the speedy response! One more thing... is the json file supposed to be blank? or did clanforge screw up?

    Thanks man. Sorry for the noob questions!
     
  2. Clanforge always screws this one up, I'll post you mine when I get home later today.
     
  3. Code:
    {
      "Settings": {
        "ChatName": "Gatherer",
        "ResourceContentMultiplier": 1,
        "Version": "1.0",
        "GatherMultiplier": 1
      },
      "Messages": {
        "ResourceAmount": "Resources in nodes are set to: x{multiplier}!",
        "GatherRate": "Resources from gathering is set to: x{multiplier}!",
        "HelpTextPlayer": "Use /gather to check the gathering rate!",
        "HelpTextAdmin": [
          "Use '/gather' to check the gathering rate!",
          "Use '/gather <multiplier>' to increase all resources gather and the amount of resources in the nodes by <multiplier>!",
          "Use '/gather <gatherMultiplier> <resourceAmountMultiplier>' to increase all resources gathered by <gatherMultiplier> and increase the amount of resources in the nodes by <resourceAmountMultiplier>!"
        ],
        "Error": "The new multiplier must be a positive number!"
      }
    }
     
  4. This mod is great but I have a question. On my server it appears to be running correctly, except it seems like for every 20 trees, 1 is actually increased. I successfully implements '/gather 2 2'. Is this normal, if not how do I fix it?
     
  5. Thank you dev!! works perfect now :)
     
  6. So I am new to all of this...very new!
    Can anyone care to explain to meexactly what I do to put this downloaded file into Firefox FTP and then what do I do?
    All i want to do is change how much wood is collected from piles
     
  7. Im experiencing the same issue as JOZY103 as when I increase the gather rate and the node amount it only affects some trees and not all of them. Please help!!
     
  8. I'm planning to rewrite the entire plugin to use a new OnGather hook but have to wait until the hook is added to the newest Oxide build.
     
  9. Ok cool thanks for the heads up :)
     
  10. Maybe not important...
    Code:
    [Error] m-GatherRate: [string "m-GatherRate.lua"]:194: attempt to index field 'svActiveItem' (a nil value)
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jul 19, 2015
  11. For some reason it seems that the plugin is unable to get the player's active weapon and then it throws this error, might happen sometimes but shouldn't be that frequent. When I can I'll be rewriting the plugin but currently busy with some changes to the teleport plugin.
     
  12. Mughisi updated Increased Gather Rate with a new update entry:

    Small change for latest Oxide build.

     
  13. Mughisi updated Increased Gather Rate with a new update entry:

    Message clarification

     
  14. Code:
    [Oxide] 5:55 AM [Error] Failed to initialise plugin m-GatherRate (ArgumentException: An element with the same key already exists in the dictionary.)[Oxide] 5:55 AM [Debug]   at System.Collections.Generic.Dictionary`2[System.String,Oxide.Rust.Libraries.Command+ChatCommand].Add (System.String key, ChatCommand value) [0x00000] in <filename unknown>:0   at Oxide.Rust.Libraries.Command.AddChatCommand (System.String name, Oxide.Core.Plugins.Plugin plugin, System.String callbackname) [0x00000] in <filename unknown>:0   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    [DOUBLEPOST=1420342222][/DOUBLEPOST]All right! I just can not put the code :D
     
  15. Code:
    [Oxide] 10:43 AM [Error] Failed to load plugin m-GatherRate ([string "m-GatherRate.lua"]:62: '}' expected (to close '{' at line 56) near 'self')
    [Oxide] 10:43 AM [Debug]   at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.LoadString (System.String chunk, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Lua.Plugins.LuaPlugin.Load () [0x00000] in <filename unknown>:0
      at Oxide.Lua.Plugins.LuaPluginLoader.Load (System.String directory, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.LoadPlugin (System.String name) [0x00000] in <filename unknown>:0
    [Oxide] 10:43 AM [Error] rustcore: Object reference not set to an instance of an object
      at Oxide.Rust.Plugins.RustCore.cmdLoad (.Arg arg) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    > oxide.load m-GatherRate 


    I could not get this latest version to load no idea why. went back to last version loaded straight away , any idea?
     
  16. Did you modify messages in the lua file perhaps as this error is pointing to the default messages for the config?
     
  17. the only thing i changed in the lua was gather rate nothing else
     
  18. You don't really need to make any modifications to the lua file, might have been missing a , or something. If you're flagged as moderator or owner on the server you can just use the command /gather x where x is the amount of times you want to increase the resources.
     
  19. yup was me with not enough caffiene sorry i redownloaded a fresh one just to check and it worked ok this time. i shall go hide my head in the corner and face palm.

    ( i like to change them in the file. it helps with my learning coding part of my degree. I'm old and any practise in readng code helps) :p
     
  20. Haha, it's all good :) This happens to a lot of us ;)