Getting this error atm
On start up and its repeated15 20 times, Im thinking maybe instanced conatiner mod ?

18:06 [Error] Failed to call hook 'OnItemAddedToContainer' on plugin 'Headquarters v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Headquarters.GetHeadquarterAtPosition (UnityEngine.Vector3 position) [0x00000] in <581d115d7f724c1aac2fc796ce3712cd>:0

at Oxide.Plugins.Headquarters.OnItemAddedToContainer (ItemContainer container, Item item) [0x00074] in <581d115d7f724c1aac2fc796ce3712cd>:0

at Oxide.Plugins.Headquarters.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00846] in <581d115d7f724c1aac2fc796ce3712cd>:0

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

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

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

I get the same symptoms on start-up.

 

Failed to call hook 'OnItemAddedToContainer' on plugin 'Headquarters v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Headquarters.GetHeadquarterAtPosition (UnityEngine.Vector3 position) [0x00000] in <4bcd0e58b2fc4a7a986791fbc4563141>:0
  at Oxide.Plugins.Headquarters.OnItemAddedToContainer (ItemContainer container, Item item) [0x00074] in <4bcd0e58b2fc4a7a986791fbc4563141>:0
  at Oxide.Plugins.Headquarters.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00846] in <4bcd0e58b2fc4a7a986791fbc4563141>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0
Failed to call hook 'OnItemAddedToContainer' on plugin 'Headquarters v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)

Hi there, to be honest, I have no idea why this happens.  I have added another check to see if it helps.  Please let me know if its still happening.

yea i loaded the update and restarted still getting it on start up...

I ve loaded rust dedicated on my home lab and going through mods to see if theres an issue with one of them let ya know what i find

09:07 [Error] Failed to call hook 'OnItemAddedToContainer' on plugin 'Headquarters v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Headquarters.GetHeadquarterAtPosition (UnityEngine.Vector3 position, System.Single radius) [0x00022] in <e39577cba2d941a7b5626c947278bcdb>:0

at Oxide.Plugins.Headquarters.OnItemAddedToContainer (ItemContainer container, Item item) [0x00084] in <e39577cba2d941a7b5626c947278bcdb>:0

at Oxide.Plugins.Headquarters.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0084e] in <e39577cba2d941a7b5626c947278bcdb>:0

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

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

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


Merged post

so i
removed all the mods cept the map  required one and i still got the error  so its not a mod issue

ill try a procedural map see if its  rust edit thing

Merged post

doesnt do it on a procgen map

Merged post

okay figured it out its previous map data  between  mod update if you delete the  map savs the error goes away

Hmm ok thanks for investigating this.  By any chance do you know of a way I could deal with this from the plugin itself?  I thought about unsubscribing my the hook for OnItemAddedToContainer at the plugin init.  Not sure if there's anything else I could do.