Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0

Please update MyMiniCopter plugin


Vnuk
 Share

Question

I get the following error

13:53 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'MyMiniCopter v0.2.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MyMiniCopter.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00044] in <d3decda29738404d92b47d35a8c26063>:0
  at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00214] in <d3decda29738404d92b47d35a8c26063>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
6 hours ago, MikeHawke said:

Трудно воссоздать ошибку ... Было ли что-то конкретное, что происходило при появлении ошибки?

It arises on its own, while the plugin works. But this error can appear in the console even several times in a row. I will also observe this if I give feedback.

Link to comment
Share on other sites

  • 0

This is to do with the decay of the MiniCopter. This NRE happens whether decay is true or false in the config. Easy to recreate the error, it happens on its own every few minutes in console output.

As Vnuk pointed out, the plugin still works as intended. The latest Rust update is causing the error with the plugin. To fix it for now until the author updates the plugin, you can insert the following below line 781:

	    if (entity.OwnerID == 0) return;

This will fix the annoying NRE error message.

Edited by ZEODE
  • Like 1
Link to comment
Share on other sites

  • 0
14 hours ago, ZEODE said:

This is to do with the decay of the MiniCopter. This NRE happens whether decay is true or false in the config. Easy to recreate the error, it happens on its own every few minutes in console output.

As Vnuk pointed out, the plugin still works as intended. The latest Rust update is causing the error with the plugin. To fix it for now until the author updates the plugin, you can insert the following below line 781:

	    if (entity.OwnerID == 0) return;

This will fix the annoying NRE error message.

if (entity == null) return;
Changed to
if (entity.OwnerID == 0) return;

And the error no longer appears! Thank you very much respected. Waiting for updates)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

7,109 files sold to 634 customers and $103,022 of payments processed this year!

×
×
  • 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.