jpw1991 / chebs-necromancy

Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.
The Unlicense
10 stars 4 forks source link

Ghosts from Spirit Pylon causing errors #271

Open Visteus opened 2 weeks ago

Visteus commented 2 weeks ago

Attached the logfile as well, but here's the relevant error: logfile.txt

`[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: (wrapper dynamic-method) Humanoid.DMD(Humanoid,VisEquipment,bool) (wrapper dynamic-method) Humanoid.DMD(Humanoid) (wrapper dynamic-method) Humanoid.DMD(Humanoid,ItemDrop/ItemData,bool) Humanoid.GiveDefaultItem (UnityEngine.GameObject prefab) (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.GiveDefaultItems () (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.Start () (at <67f3c386e04446c49523ecfd5b8921c2>:0)

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: (wrapper dynamic-method) Humanoid.DMD(Humanoid,VisEquipment,bool) (wrapper dynamic-method) Humanoid.DMD(Humanoid) (wrapper dynamic-method) Humanoid.DMD(Humanoid,ItemDrop/ItemData,bool) Humanoid.GiveDefaultItem (UnityEngine.GameObject prefab) (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.GiveDefaultItems () (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.Start () (at <67f3c386e04446c49523ecfd5b8921c2>:0)

[Info : Unity Log] 06/18/2024 09:55:26: Valid True

[Info : Unity Log] 06/18/2024 09:55:26: On death False

[Info : Unity Log] 06/18/2024 09:57:54: Spawn time :2.0216 ms

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: (wrapper dynamic-method) Humanoid.DMD(Humanoid,VisEquipment,bool) (wrapper dynamic-method) Humanoid.DMD(Humanoid) (wrapper dynamic-method) Humanoid.DMD(Humanoid,ItemDrop/ItemData,bool) Humanoid.GiveDefaultItem (UnityEngine.GameObject prefab) (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.GiveDefaultItems () (at <67f3c386e04446c49523ecfd5b8921c2>:0) Humanoid.Start () (at <67f3c386e04446c49523ecfd5b8921c2>:0)

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: (wrapper dynamic-method) Humanoid.DMD(Humanoid,VisEquipment,bool) (wrapper dynamic-method) Humanoid.DMD(Humanoid) (wrapper dynamic-method) Humanoid.DMD(Humanoid,ItemDrop/ItemData,bool) Humanoid.EquipBestWeapon (Character targetCreature, StaticTarget targetStatic, Character hurtFriend, Character friend) (at <67f3c386e04446c49523ecfd5b8921c2>:0) MonsterAI.Start () (at <67f3c386e04446c49523ecfd5b8921c2>:0)`

The "NullReferenceException" appears whenever a Spirit Pylon summons a new ghost. Said ghosts often don't move at all, mostly do not attack, and sometimes even get ignored by hostile mobs.

jpw1991 commented 2 weeks ago

Hello, thanks for providing your log file.

I can confirm this is a problem that I can also reproduce. Hopefully it will be fixed with the next update