Economics
Moved
Total Downloads: 13,848 - First Release: Nov 10, 2014 - Last Update: Jan 10, 2018
- 5/5, 43 likes
-
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:
-
-
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
BrLast edited by a moderator: Aug 2, 2017 -
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
-
Wulf Community Admin
-
[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... -
Hello, times ne ask how can I insert the the money after nen wipe reset
-
why i can't see anything in my shop ? i just upload the plugin and i didn't edit the config yet .
screenshot : Imgur: The most awesome images on the Internet -
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 -
Hi,
I'm having the same problem with Quests, it works fine with GUI Shop but with Quests the coins have stopped being awarded. -
For me, work fine with Quests now, but nothing with EventManager with "UseEconomicsAsToken": true
-
Same with me here, it wasnt working with quests, vote reward, and racetrack plugins as rewarding coins for the evnt.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Works fine for me now, but doesn't work with EventManager with "UseEconomicsAsTokens" set to true
-
-
how i use .cs file ?
-
Wulf Community Admin
-
Does anyone know where is the part to give players a set amount of money for free every hours or so ?