Jump to content

On Plugin Unload nothing gets despawned

Pending 1.4.0

SlayersRust

Posted

When unloading the plugin I get these errors and also nothing despawns

Failed to call hook 'Unload' on plugin 'ArmedDeployment v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
  at RpcTarget.NetworkGroup (System.String funcName, BaseNetworkable entity) [0x00010] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseMountable.DismountPlayer (BasePlayer player, System.Boolean lite) [0x0029b] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.EnsureDismounted () [0x0000e] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.OnDied (HitInfo info) [0x000e8] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at ScientistNPC.OnDied (HitInfo info) [0x00000] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Die (HitInfo info) [0x0008b] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.Die (HitInfo info) [0x000ce] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Hurt (HitInfo info) [0x002b8] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.Hurt (HitInfo info) [0x0047f] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at HumanNPC.Hurt (HitInfo info) [0x00018] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Hurt (System.Single amount, Rust.DamageType type, BaseEntity attacker, System.Boolean useProtection) [0x0002f] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at CH47HelicopterAIController.DismountAllPlayers () [0x00040] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseMountable.DoServerDestroy () [0x00000] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseHelicopter.DoServerDestroy () [0x00007] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseNetworkable.DoEntityDestroy () [0x00026] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BaseNetworkable.Kill_Patch1(BaseNetworkable,BaseNetworkable/DestroyMode)
  at Oxide.Plugins.ArmedDeployment.Unload () [0x0016b] in <49247d1f58734238b09c7425a6820f21>:0 
  at Oxide.Plugins.ArmedDeployment.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000e2] in <49247d1f58734238b09c7425a6820f21>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
Unloaded plugin ArmedDeployment v4.1.0 by CodeBrothers

Screenshot 2026-01-19 165341.png

Code Brothers

Posted

4 hours ago, SlayersRust said:

When unloading the plugin I get these errors and also nothing despawns

Failed to call hook 'Unload' on plugin 'ArmedDeployment v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
  at RpcTarget.NetworkGroup (System.String funcName, BaseNetworkable entity) [0x00010] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseMountable.DismountPlayer (BasePlayer player, System.Boolean lite) [0x0029b] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.EnsureDismounted () [0x0000e] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.OnDied (HitInfo info) [0x000e8] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at ScientistNPC.OnDied (HitInfo info) [0x00000] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Die (HitInfo info) [0x0008b] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.Die (HitInfo info) [0x000ce] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Hurt (HitInfo info) [0x002b8] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BasePlayer.Hurt (HitInfo info) [0x0047f] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at HumanNPC.Hurt (HitInfo info) [0x00018] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseCombatEntity.Hurt (System.Single amount, Rust.DamageType type, BaseEntity attacker, System.Boolean useProtection) [0x0002f] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at CH47HelicopterAIController.DismountAllPlayers () [0x00040] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseMountable.DoServerDestroy () [0x00000] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseHelicopter.DoServerDestroy () [0x00007] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at BaseNetworkable.DoEntityDestroy () [0x00026] in <34c1ecf46a7b410ca8dc7d76602da46f>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BaseNetworkable.Kill_Patch1(BaseNetworkable,BaseNetworkable/DestroyMode)
  at Oxide.Plugins.ArmedDeployment.Unload () [0x0016b] in <49247d1f58734238b09c7425a6820f21>:0 
  at Oxide.Plugins.ArmedDeployment.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000e2] in <49247d1f58734238b09c7425a6820f21>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
Unloaded plugin ArmedDeployment v4.1.0 by CodeBrothers

Screenshot 2026-01-19 165341.png

Fixing, for now end the event before unloading, thank you.

2.2m

Downloads

Total number of downloads.

10.1k

Customers

Total customers served.

146.5k

Files Sold

Total number of files sold.

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