Jump to content

Plugin doesnt work after update

Pending 1.2.7

NewTimes96
NewTimes96

Posted

Plugin stopped working after the bee update of march. The console shows this:

 

(16:41:30) | [CSharp] Started Oxide.Compiler v successfully

(16:41:34) | Error while compiling SimplePVE: 'BasePlayer' does not contain a definition for 'GetNearestBuildingPrivledge' and no accessible extension method 'GetNearestBuildingPrivledge' accepting a first argument of type 'BasePlayer' could be found (are you missing a using directive or an assembly reference?) | Line: 4527, Pos: 24

 

Hopefully a quick fix since I especially rely on this plugin for my main PVE protection.

 

Cheers

Somescrub

Posted

I receive the same - hopefully a quick fix, as I cannot run my server without this.

  • Like 1
Shark-A-Holic

Posted

Same issue here…anyone find a quick fix or have a solution yet?

Iftebinjan

Posted

19 hours ago, NewTimes96 said:

Plugin stopped working after the bee update of march. The console shows this:

 

(16:41:30) | [CSharp] Started Oxide.Compiler v successfully

(16:41:34) | Error while compiling SimplePVE: 'BasePlayer' does not contain a definition for 'GetNearestBuildingPrivledge' and no accessible extension method 'GetNearestBuildingPrivledge' accepting a first argument of type 'BasePlayer' could be found (are you missing a using directive or an assembly reference?) | Line: 4527, Pos: 24

 

Hopefully a quick fix since I especially rely on this plugin for my main PVE protection.

 

Cheers

hey which version you are using?

Iftebinjan

Posted

6 hours ago, Shark-A-Holic said:

Same issue here…anyone find a quick fix or have a solution yet?

Did you guys not updated to latest version for some reason?
image.png.c60cee70724e0ea3d2174e90598617a6.png

NewTimes96

Posted

yes im always updating each month or when someone drops an update. I have your latest version of the plugin inside and it doesnt work

Somescrub

Posted

On latest version - can confirm loot protection is working, but player bases can be damaged by anyone at the moment. Sent you my config files in Discord.

Iftebinjan

Posted

5 hours ago, Shark-A-Holic said:

Yep, latest version here too.

can you dm me in discord pls

 

NewTimes96

Posted

Downloaded it again and replaced it just in case, still doesnt work

NewTimes96

Posted

(01:33:25) | Could not initialize plugin 'SimplePVE v1.2.7' (ArgumentException: Could not cast or convert from System.String to Oxide.Core.VersionNumber.)

at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <271c58b7a8684db5a2c92be17a81f252>:0

Iftebinjan

Posted

28 minutes ago, NewTimes96 said:

(01:33:25) | Could not initialize plugin 'SimplePVE v1.2.7' (ArgumentException: Could not cast or convert from System.String to Oxide.Core.VersionNumber.)

at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <271c58b7a8684db5a2c92be17a81f252>:0

remove the old config file of simplepve the reload the plugin

Somescrub

Posted

1 hour ago, NewTimes96 said:

(01:33:25) | Could not initialize plugin 'SimplePVE v1.2.7' (ArgumentException: Could not cast or convert from System.String to Oxide.Core.VersionNumber.)

at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <271c58b7a8684db5a2c92be17a81f252>:0


I was able to resolve my issues - but there is an extra step to get the plugin to load when coming from a previous version. You need to delete both the SimplePVE config file and the SimplePVE data folder in your data directory. If you don't do that then the plugin won't load correctly when the new config is generated in 1.2.7.

Also, when I went to the next version I had some permissions randomly get changed on my player permission, which was making it appear like the plugin was not working (all were enabled, were all disabled before) - so make sure to check that as well.

NewTimes96

Posted

did that thanks its working now, ty guys

LMD22

Posted

Same problem 

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 
Failed to call hook 'CanLootEntity' on plugin 'SimplePVE v1.2.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.SimplePVE.IsAlliedWithPlayer (System.UInt64 playerId, System.UInt64 targetId) [0x0005c] in <0ef9f107473645fba43cbd60dd2b5b43>:0 
  at Oxide.Plugins.SimplePVE.CanLootEntity (BasePlayer player, StorageContainer container) [0x000d8] in <0ef9f107473645fba43cbd60dd2b5b43>:0 
  at Oxide.Plugins.SimplePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0079c] in <0ef9f107473645fba43cbd60dd2b5b43>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0 

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.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.