Jump to content

Boss Monster NRE on NpcSpawn reload

Pending 2.1.9

MrLiquid
MrLiquid

Posted

BossMonster 2.1.9

NpcSpawn 3.4.1 

NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) [0x00018] in <7ef4b7e39e5e4212acadbf6d2e50d7fa>:0
at UnityEngine.Transform.get_position () [0x00006] in <7ef4b7e39e5e4212acadbf6d2e50d7fa>:0
at Oxide.Plugins.BossMonster+CustomSphereCollider.UpdatePosition () [0x00006] in <0632dd11fd864556af527fb2ef422a98>:0
at InvokeHandlerBase`1[T].DoTick () [0x00120] in <d8c888fa16c04960a1ce12d53406e420>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0002b] in <d8c888fa16c04960a1ce12d53406e420>:0

BossMonster’s custom radius collider cached the boss NPC’s transform and accessed it every second. Reloading NpcSpawn destroyed the NPC, but the collider briefly continued invoking UpdatePosition(), causing the null reference.

aimacak

Posted

2 hours ago, MrLiquid said:

BossMonster 2.1.9

NpcSpawn 3.4.1 

NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) [0x00018] in <7ef4b7e39e5e4212acadbf6d2e50d7fa>:0
at UnityEngine.Transform.get_position () [0x00006] in <7ef4b7e39e5e4212acadbf6d2e50d7fa>:0
at Oxide.Plugins.BossMonster+CustomSphereCollider.UpdatePosition () [0x00006] in <0632dd11fd864556af527fb2ef422a98>:0
at InvokeHandlerBase`1[T].DoTick () [0x00120] in <d8c888fa16c04960a1ce12d53406e420>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0002b] in <d8c888fa16c04960a1ce12d53406e420>:0

BossMonster’s custom radius collider cached the boss NPC’s transform and accessed it every second. Reloading NpcSpawn destroyed the NPC, but the collider briefly continued invoking UpdatePosition(), causing the null reference.

Hello, I have passed the information on to KpucTaJI, thanks.

aimacak

Posted (edited)

@MrLiquid
Can you check the server logs to see if there were any errors after compiling BossMonster or 10 seconds after that, when the Bosses spawned?
Or reload BossMonster and check it again please.

Edited by aimacak
MrLiquid

Posted

all I can see is this

[BossMonster] Loading files on the /oxide/data/BossMonster/Bosses/ path has started...
[BossMonster] File Brook has been loaded successfully!
[BossMonster] File Clown has been loaded successfully!
[BossMonster] File Evil has been loaded successfully!
[BossMonster] File Franken has been loaded successfully!
[BossMonster] File Frankenstein has been loaded successfully!
[BossMonster] File Heavy has been loaded successfully!
[BossMonster] File Horror has been loaded successfully!
[BossMonster] File Jason has been loaded successfully!
[BossMonster] File King of the Night has been loaded successfully!
[BossMonster] File Michael Myers has been loaded successfully!
[BossMonster] File Oni has been loaded successfully!
[BossMonster] File Raptor D has been loaded successfully!
[BossMonster] File Scary has been loaded successfully!

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3m
Total downloads
Customers
12k
Customers served
Files Sold
170.7k
Total sales
Payments
3.7m
Processed total
×
×
  • 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.