(10:29:13) | Failed to call hook 'OnEntitySpawned' on plugin 'Inbound v0.5.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Inbound.OnEntitySpawned (SupplyDrop drop) [0x00086] in <010fc1bc758c486ebc8b6d887d8b9c73>:0
at Oxide.Plugins.Inbound.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00373] in <010fc1bc758c486ebc8b6d887d8b9c73>: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 NullReferenceException at OnEntitySpawnedError
Got this bug alot of time recently.
Failed to run a 2.00 timer in 'Inbound v0.6.0' (NullReferenceException: Object reference not set to an instance of an object)
at CargoShip.GetClosestNodeToUs () [0x00044] in <0560378795714cd9bdbfefc92148a262>:0
at Oxide.Plugins.Inbound+<OnEntitySpawned>c__AnonStorey1.<>m__0 () [0x00057] in <5216dbbfe2b24fcb81f1c1489b3d1904>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <50629aa0e75d4126b345d8d9d64da28d>:0
I'm not sure what would be causing that. I did some testing and wasn't able to reproduce it. Can you list your other plugins and post your worldsize/seed? Are you using a custom map?
Substrata
I'm not sure what would be causing that. I did some testing and wasn't able to reproduce it. Can you list your other plugins and post your worldsize/seed? Are you using a custom map?
Sure i can write down in PM my mod list. This month its a pure procedural. No RustEdit dll on the server. Only oxide and Rustio.
Seed: 29525325
Size: 4250
That's a lot of plugins. I would start by removing BCargo and maybe Automated Events, and see if that has any effect. If it is a plugin conflict, it might be a little difficult to track down, but I'm not sure what else would be causing it. So far I haven't been able to get the error to show up, but I'll continue testing.
Do you get the error when you spawn the cargo ship manually (spawn cargoshiptest)? Do you get the error every time it spawns, or only sometimes? Have you changed any of the cargoship server settings?
Can you send me your Inbound config & lang files as well?
I'd probably start by checking if each entity IsDestroyed in addition to the null checks. The actual NRE is being triggered in a Rust method though, CargoShip.GetClosestNodeToUs().Substrata
I'm not sure what would be causing that. I did some testing and wasn't able to reproduce it. Can you list your other plugins and post your worldsize/seed? Are you using a custom map?
public int GetClosestNodeToUs()
{
int num = 0;
float single = Single.PositiveInfinity;
for (int i = 0; i < TerrainMeta.Path.OceanPatrolFar.Count; i++)
{
Vector3 item = TerrainMeta.Path.OceanPatrolFar[i];
float single1 = Vector3.Distance(base.transform.position, item);
if (single1 < single)
{
num = i;
single = single1;
}
}
return num;
}I would do a test version of the plugin that implements that method in itself with added null checks and debug output to see.
Wulf
I'd probably start by checking if each entity IsDestroyed in addition to the null checks. The actual NRE is being triggered in a Rust method though, CargoShip.GetClosestNodeToUs().public int GetClosestNodeToUs() { int num = 0; float single = Single.PositiveInfinity; for (int i = 0; i < TerrainMeta.Path.OceanPatrolFar.Count; i++) { Vector3 item = TerrainMeta.Path.OceanPatrolFar[i]; float single1 = Vector3.Distance(base.transform.position, item); if (single1 < single) { num = i; single = single1; } } return num; }I would do a test version of the plugin that implements that method in itself with added null checks and debug output to see.
i will PM you my mod list. For the last wipe, i did used Procedural Map because of too much new features added to the game.
No RustEdit dll on the server. Only oxide and Rustio.
Seed: 29525325
Size: 4250
Please try the latest version and let us know if the issue continues, thanks!
i had the same problem with v 0.6.2
but i just deleted my old config file and reload the plugin, worked without problem since, if that can help anyone.
at Oxide.Plugins.Inbound+<OnEntitySpawned>c__AnonStorey1.<>m__0 () [0x00067] in <dae8e157454a4508a6cc1cfab1e80023>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <99d545163fdd4d57a562df7989f2ca0a>:0
Merged post
The console crash fail still occur at v0.6.2 whenever a Cargoship or a PatrolHeli spawn.
- 1
- 2