Jump to content

Error

Closed 1.0.0 1.0.1

TeeJayAwreka
TeeJayAwreka

Posted (edited)

Failed to call hook 'OnPlayerCorpseSpawned' on plugin 'MedicalItems v0.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.MedicalItems.OnPlayerCorpseSpawned (BasePlayer player, PlayerCorpse corpse) [0x00027] in <5b261542935443f3b25a30dbe48d47e6>:0

at Oxide.Plugins.MedicalItems.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0034c] in <5b261542935443f3b25a30dbe48d47e6>:0

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

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

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

Edited by TeeJayAwreka
TeeJayAwreka

Posted

this as well, apparently is not updated

 

[UpdatesChecker] Codefling has updates for the following plugins.

(01:24:56) | [UpdatesChecker] 1 : BradleyTiers

(01:24:56) | [UpdatesChecker] 2 : Clans

(01:24:56) | [UpdatesChecker] 3 : Friends

(01:24:56) | [UpdatesChecker] 4 : MedicalItems

TeeJayAwreka

Posted (edited)

Failed to call hook 'OnPlayerCorpseSpawned' on plugin 'MedicalItems v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.MedicalItems.OnPlayerCorpseSpawned (BasePlayer player, PlayerCorpse corpse) [0x00040] in <2d181f105a054c2aa4a2a52796f91818>:0

at Oxide.Plugins.MedicalItems.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0034c] in <2d181f105a054c2aa4a2a52796f91818>:0

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

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

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

Edited by TeeJayAwreka
imthenewguy

Posted

5 hours ago, TeeJayAwreka said:

Failed to call hook 'OnPlayerCorpseSpawned' on plugin 'MedicalItems v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.MedicalItems.OnPlayerCorpseSpawned (BasePlayer player, PlayerCorpse corpse) [0x00040] in <2d181f105a054c2aa4a2a52796f91818>:0

at Oxide.Plugins.MedicalItems.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0034c] in <2d181f105a054c2aa4a2a52796f91818>:0

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

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

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

Very strange. Do you know what type of corpse is spawning when this fires?

 

TeeJayAwreka

Posted

16 hours ago, imthenewguy said:

Very strange. Do you know what type of corpse is spawning when this fires?

 

Nope no idea, but i know i have bot spawn npcs customized with my own skinned kits, and i have ZombieHordes if that helps

imthenewguy

Posted

2 hours ago, TeeJayAwreka said:

Nope no idea, but i know i have bot spawn npcs customized with my own skinned kits, and i have ZombieHordes if that helps

Have added another layer to confirm that the corpse belongs to a real player, and added try/catch to handle the exception so you aren't riddled with NRE errors. If the corpse is relevant to the plugin, it should be handled fine now, otherwise if it encounters an NRE, it should just ignore it, since it isn't relevant.

  • Love 1
TeeJayAwreka

Posted

18 hours ago, imthenewguy said:

Have added another layer to confirm that the corpse belongs to a real player, and added try/catch to handle the exception so you aren't riddled with NRE errors. If the corpse is relevant to the plugin, it should be handled fine now, otherwise if it encounters an NRE, it should just ignore it, since it isn't relevant.

Awesome mate great work, awesome plugin, giving you a 5 review for this

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.