Jump to content

​​​​​​​Failed to call hook 'OnDispenserGather

Closed 1.0.4 1.0.5

hi got a new error message today

players have problem me and open the /rbag.

Failed to call hook 'OnDispenserGather' on plugin 'Professions v1.0.4' (IOException: Sharing violation on path x:\TCAFiles\Users\oxide\data\Professions\players.json) at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in :0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool) at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in :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 :0 at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00007] in :0 at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <46ff2b534abb4b35952608167523b7ec>:0 at Oxide.Plugins.Professions.SaveData (Oxide.Plugins.Professions+SaveType type) [0x00006] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.UpdateLevel (BasePlayer player, System.Double xp, System.String job) [0x001b2] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x0037f] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c92] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0

Edited by svenna

Share this comment


Link to comment
On 6/5/2022 at 12:37 AM, svenna said:

hi got a new error message today

players have problem me and open the /rbag.

Failed to call hook 'OnDispenserGather' on plugin 'Professions v1.0.4' (IOException: Sharing violation on path x:\TCAFiles\Users\oxide\data\Professions\players.json) at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in :0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool) at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in :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 :0 at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00007] in :0 at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <46ff2b534abb4b35952608167523b7ec>:0 at Oxide.Plugins.Professions.SaveData (Oxide.Plugins.Professions+SaveType type) [0x00006] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.UpdateLevel (BasePlayer player, System.Double xp, System.String job) [0x001b2] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x0037f] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.Professions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c92] in <54f25fe3a79e4081b6f89813ae6f0531>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0

This error isn't anything to do with the rbag from what I can see.
It is being triggered somewhere in OnDispenserGather, which is when a resource node is harvested.

Maybe try a fresh install and see how it goes.

  1. Delete the plugin
  2. Delete the data files
  3. Delete the config
  4. Delete the lang
  5. Install the plugin

 

Share this comment


Link to comment

it helped thanks for the tip but now I got this error message some players can open and some can not open the bag


Creating item with less than 1 amount! (Battery - Small)

Failed to call hook 'ResourceBagCommand' on plugin 'Professions v1.0.4' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Professions.OpenBag (BasePlayer player) [0x00236] in <2e6e4c083ed74323b35bf53685ddc4c9>:0 at Oxide.Plugins.Professions.ResourceBagCommand (BasePlayer player) [0x0003c] in <2e6e4c083ed74323b35bf53685ddc4c9>:0 at Oxide.Plugins.Professions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x014a0] in <2e6e4c083ed74323b35bf53685ddc4c9>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0

Share this comment


Link to comment

Will be fixed in the next release

In the meantime you can unload the plugin, open the data file up, and attempt to find the item in there with a quantity that is equal to or less than 0, and manually set its value to 1 or delete it.

Edited by imthenewguy

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.5k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.