Economics

Moved

Total Downloads: 13,848 - First Release: Nov 10, 2014 - Last Update: Jan 10, 2018

5/5, 43 likes
  1. Best question ever... but helped me so, thank you ^^
     
  2. Now that you've quoted it, I see that I said "proceed" when I meant "precede" but I'm glad my rambling helped!
     
  3. Hey Guys I hope anyone can help me with that error:

    Code:
    [2/28/2016 12:39:25 PM] [Oxide] 12:39 PM [Debug]   at Oxide.Plugins.Economics.GetPlayerMoney (UInt64 playerId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  4. the full error would be helpful, there must be a message right before...
     
  5. Code:
    [Oxide] 4:12 PM [Error] Failed to call hook 'OnRunCommand' on plugin 'rustcore v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 4:12 PM [Debug]   at Oxide.Plugins.Economics.GetPlayerMoney (UInt64 playerId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.cmdBalance (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (.BasePlayer sender, System.String name, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (.BasePlayer sender, System.String name, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.RustCore.OnRunCommand (.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] 4:13 PM [Error] Failed to call hook 'Deposit' on plugin 'Economics v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 4:13 PM [Debug]   at Oxide.Plugins.Economics.GetPlayerMoney (UInt64 playerId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.Deposit (UInt64 playerId, Double money) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
    And

    Code:
    [Oxide] 4:13 PM [Error] Failed to call hook 'Deposit' on plugin 'Economics v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 4:13 PM [Debug]   at Oxide.Plugins.Economics.GetPlayerMoney (UInt64 playerId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.Deposit (UInt64 playerId, Double money) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Economics.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  6. Wulf

    Wulf Community Admin

    Sounds like your datafile for the plugin is somehow corrupt, unload the plugin, backup the datafile for it under oxide/data, delete the datafile, and load the plugin again and see if t that fixes it. If so, then you'd need to try to fix the datafile or start fresh.
     
  7. OK thanks it works
     
  8. Maybe anyone an idea about the requested Bank system ?
     
  9. Fuck, no one helps me.
     
  10. Is there a Plugin that allows people to earn money for killing animals and players. When a animal is killed it can reward $5-10 through the economics plugin? Is there a addon for this?
     
  11. Wulf

    Wulf Community Admin

    Yes, GatherRewards. Check it's thread.
     
  12. I cant seem to get this working. I installed this and it loads it perfectly fine. Whenever I download Shop for Rust plugin that requires this plugin, it says that Economics needs to be installed in order to work.
     

    Attached Files:

  13. Wulf

    Wulf Community Admin

    The Shop plugin is not updated for this plugin yet.
     
  14. So what kind of alternatives is there? For running a Shop where people can trade with an NPC? I mean, trade 20.000 wood for an AK etc
     
  15. Wulf

    Wulf Community Admin

    I don't know of any. The solution would be for Shop to be updated, else use an old version of Economics, but using an old would mean using an old of every plugin that uses it.
     
  16. Okay. Very sad :-( Thanks for your help.
     
  17. How can a player earn money?
     
  18. Wulf

    Wulf Community Admin

    You'd need to find a plugin that does that. There is at least one option, maybe more.
     
  19. It would be nice to do Permissions on commands admin.
     
  20. Hey, I was wondering if there was any support, or support planned, for multiple currencies? I suppose I could just copy the mod and rename the required areas (including copying the mods that I intend to have use this second currency) but it feels like I might be in for a LOT of trouble with any update or other change not to mention any "unforseens" in the process of altering an already functioning mod. What I'd like to do is have two totally independent shops that cannot interact with each-other in terms of players trading between them. Money made trading to one cannot be used to trade to the other. That sort of thing. Any thoughts at least?