Jump to content

Unable to start Plugin

Closed 1.0.0

CupsOhJoe
CupsOhJoe

Posted

Failed to call hook 'OnServerInitialized' on plugin 'DynamicMonuments v1.0.0' (UnauthorizedAccessException: Access to the path "/home/container/oxide/data/DynamicMonuments/save.json" is denied.)
  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 <f98723dd4586469db5213ec59da723ca>: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) [0x00000] in <f98723dd4586469db5213ec59da723ca>: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)
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00026] in <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x0000f] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Plugins.DynamicMonuments.LoadDataFile[Type] (System.String path) [0x00020] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.TryLoadData () [0x0019c] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.OnServerInitialized () [0x00017] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000e0] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0 
Loaded plugin DynamicMonuments v1.0.0 by Adem
Failed to call hook 'Unload' on plugin 'DynamicMonuments v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.DynamicMonuments+CustomMonument.KillAllMonuments () [0x00000] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.Unload () [0x00005] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00697] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0 
Unloaded plugin DynamicMonuments v1.0.0 by Adem

CupsOhJoe

Posted

I have manually created the save.json file and it loads but fails with the following message when creating Monuments:

Failed to call hook 'OnContainerPopulate' on plugin 'DynamicMonuments v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.DynamicMonuments+CustomMonument.GetLootContainerData (System.UInt64 netID) [0x00000] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.OnContainerPopulate (LootContainer lootContainer) [0x00013] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00379] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0 

Adem

Posted (edited)

5 hours ago, CupsOhJoe said:

I have manually created the save.json file and it loads but fails with the following message when creating Monuments:

Failed to call hook 'OnContainerPopulate' on plugin 'DynamicMonuments v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.DynamicMonuments+CustomMonument.GetLootContainerData (System.UInt64 netID) [0x00000] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.OnContainerPopulate (LootContainer lootContainer) [0x00013] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00379] in <04d758f84ca94bb2bed5729bd80d9549>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0 

After you created this file, did the monuments start to spawn?

Edited by Adem
laodu

Posted

(12:04:21) | Failed to call hook 'OnEntitySpawned' on plugin 'DynamicMonuments v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.DynamicMonumentsExtensionMethods.ExtensionMethods.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments+CustomMonument.GetMonumentByEntity (BaseEntity entity) [0x0000d] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments.OnEntitySpawned (BaseLock baseLock) [0x00020] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063d] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

 

I can't start events either.

Adem

Posted

12 minutes ago, laodu said:

(12:04:21) | Failed to call hook 'OnEntitySpawned' on plugin 'DynamicMonuments v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.DynamicMonumentsExtensionMethods.ExtensionMethods.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments+CustomMonument.GetMonumentByEntity (BaseEntity entity) [0x0000d] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments.OnEntitySpawned (BaseLock baseLock) [0x00020] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.DynamicMonuments.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063d] in <a7143259d4c64f8d9455c94640456f35>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

 

I can't start events either.

Hello. Put spawnmonument submarine to server console and send me a screenshot of what you get.

laodu

Posted

23 minutes ago, Adem said:

Hello. Put spawnmonument submarine to server console and send me a screenshot of what you get.

/spawnmonument submarine    After using this command, the console displays:
(12:58:52) | NullReferenceException: Object reference not set to an instance of an object

Adem

Posted

If the problem persists, create the ticket again.

Adem

Posted

Changed Status from Pending to Closed

2.3m

Downloads

Total number of downloads.

10.7k

Customers

Total customers served.

154k

Files Sold

Total number of files sold.

3.3m

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.