Jump to content

Error using Zones

Can't Reproduce 1.3.3 1.4.1

Gay Sparkly T-Rex
Gay Sparkly T-Rex

Posted

So I am using DynamicPVP to make airfield a PVP zone, the rest of the server is PVE.... I have attached my config. True PVE is set to allow players to damage players. But Im getting the following error:

(15:54:46) | Failed to call hook 'OnEntityTakeDamage' on plugin 'PunishAttacker v1.3.3' (InvalidCastException: Null object cannot be converted to a value type.)

at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0

at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0

at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Plugins.PunishAttacker.IsClanMemberOrAlly (System.String playerId, System.String targetId) [0x00026] in <d47939b638ac43ac9f49b846438a0cda>:0

at Oxide.Plugins.PunishAttacker.IsAlly (System.UInt64 playerId, System.UInt64 targetId) [0x00028] in <d47939b638ac43ac9f49b846438a0cda>:0

at Oxide.Plugins.PunishAttacker.OnEntityTakeDamage (BasePlayer victim, HitInfo info) [0x00116] in <d47939b638ac43ac9f49b846438a0cda>:0

at Oxide.Plugins.PunishAttacker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003f2] in <d47939b638ac43ac9f49b846438a0cda>:0

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

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

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

 

Also damage is not being negated by punish attacker outside of the zone.

PunishAttacker.json

MON@H

Posted

"ZoneManager include mode (true = include mode / false = exclude mode)": false

Set this option to false. Try the latest version and tell me if the problem is still exist

Gay Sparkly T-Rex

Posted

Latetest version and changed the above still getting:

(17:47:11) | Failed to call hook 'OnEntityTakeDamage' on plugin 'PunishAttacker v1.3.4' (InvalidCastException: Null object cannot be converted to a value type.)

at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0

at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0

at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <0fbce81d88d64454b3e7abb24df7026b>:0

at Oxide.Plugins.PunishAttacker.IsClanMemberOrAlly (System.String playerId, System.String targetId) [0x00026] in <60531ba9fdda43209f1f1b1b8a5a03cb>:0

at Oxide.Plugins.PunishAttacker.IsAlly (System.UInt64 playerId, System.UInt64 targetId) [0x0002f] in <60531ba9fdda43209f1f1b1b8a5a03cb>:0

at Oxide.Plugins.PunishAttacker.OnEntityTakeDamage (BasePlayer victim, HitInfo info) [0x00144] in <60531ba9fdda43209f1f1b1b8a5a03cb>:0

at Oxide.Plugins.PunishAttacker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003f2] in <60531ba9fdda43209f1f1b1b8a5a03cb>:0

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

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

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

PunishAttacker.json

MON@H

Posted

Disable Clans plugin in options and see if error still appears. Seems like your Clans plugin works not as expected.

"Use Clans": false,

 

Gay Sparkly T-Rex

Posted

Im using clans from UMOD and same one as from the other 2 servers I run... but Ill disable it and take a look

MON@H

Posted

There is no other way that error could appear. Check the Clans plugin settings/version/datafile/etc.

MON@H

Posted

Changed Status from Pending to Can't Reproduce

Changed Fixed In to 1.3.4

MON@H

Posted

Changed Fixed In from 1.3.4 to 1.4.1

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

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.