Economics

Moved

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

5/5, 43 likes
  1. Is there any system for him to earn 1 "coin" per hour or get "coin" for "kit"?
     
  2. Wulf

    Wulf Community Admin

    "The `.' operator cannot be applied to operand of type `Newtonsoft.Json.JsonSerializerSettings'"

    For those having this issue, it is due to an update to Newtonsoft.Json to version 8.x in Rust that is conflicting with what some plugins are expecting. Oxide builds with Newtonsoft.Json 6.x for compatibility with other games, but we're looking into a way to resolve that this time and going forward to avoid other potential compatibility issues.

    A temporary "fix" is provided in this thread that involves downgrading the version of Newtonsoft.Json that comes with Rust to the one that Oxide compiles with. Keep in mind that this may cause unforeseen issues with Rust, so do so at your own risk.
    Install location: RustDedicated_Data/Managed/Newtonsoft.Json.dll

    If you are using a host that does not allow uploading or modifying DLL files under the Managed folder, you'd need to contain them or wait for a new build of Oxide that remedies this.

    Please refrain from posting the error more, we're aware of it. ;)
     

    Attached Files:

  3. Code:
    Failed to call hook 'OnServerSave' on plugin 'Economics v2.0.5' (IOException: Sharing violation on path /home/blablapath/oxide/oxide/data/Economics.json)
    (10:22:07) | at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
    at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
    at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
    at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[Dictionary`2] (System.Collections.Generic.Dictionary`2 config, Boolean sync, System.String filename) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Economics.SaveEconomics () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Economics.OnServerSave () [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 (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.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Failed to call hook 'Unload' on plugin 'Economics v2.0.5' (IOException: Sharing violation on path /home/blablapath/oxide/oxide/data/Economics.json)
    (10:22:59) | at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
    at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
    at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
    at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[Dictionary`2] (System.Collections.Generic.Dictionary`2 config, Boolean sync, System.String filename) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Economics.SaveEconomics () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Economics.Unload () [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 (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.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Unloaded plugin Economics v2.0.5 by Nogrod
    Thank yes it's ok lots plugin can use and depend from itself this issue reset data file. I replaced a backup file it run again so what else...
    Br
     
    Last edited by a moderator: Aug 2, 2017
  4. hi i installed this plugin on my server to help GUI shop but i cant get it working i type balance and it says unknown command
     
  5. Wulf

    Wulf Community Admin

    That generally means the plugin isn't loaded. Check your oxide/logs for errors and confirm it is loaded.
     
  6. [Playtime Tracker] Unable to find any supported reward plugins. This may be caused by PTT loading before them. Will check again in 1 minute
    But I use Economics already...
     
  7. Hello, times ne ask how can I insert the the money after nen wipe reset
     
  8. Hi,

    There is a problem with Economics

    It doesn't work with quests and all events :/

    Someone can fix it please?

    But work with GUIShop
     
  9. Hi,

    I'm having the same problem with Quests, it works fine with GUI Shop but with Quests the coins have stopped being awarded.
     
  10. For me, work fine with Quests now, but nothing with EventManager with "UseEconomicsAsToken": true
     
  11. Same with me here, it wasnt working with quests, vote reward, and racetrack plugins as rewarding coins for the evnt.
     
  12. Wulf

    Wulf Community Admin

    Make sure you're fully updated with Oxide.
     
  13. Ok I will try that Wulf. Has it been updated since this last friday?
     
  14. Wulf

    Wulf Community Admin

    Yes, there have been two updates, the first of which fixes your issue. Release build changes | Page 13 | Oxide
     
  15. Works fine for me now, but doesn't work with EventManager with "UseEconomicsAsTokens" set to true
     
  16. Ok Wulf, doing It now! I try and do it every few days, and It was due for update today! Thanks for the response!
     
  17. how i use .cs file ?
     
  18. Wulf

    Wulf Community Admin

  19. Does anyone know where is the part to give players a set amount of money for free every hours or so ?