Closed retrouncle closed 1 year ago
Hello @retrouncle , thanks for opening the issue. Can you please also attach the config file? You can find it in the Valheim install folder under BepInEx/configs. It should be called com.chebgonaz.ChebsNecromancy or something like that.
Edit: if you play on a server, the server's config is the one I need. Thanks
The short version: The Neckro is finding a container, but the container is missing an inventory or other vital component.
Why? I don't know. Other mods may be changing the way containers are structured.
The reason for your problem: The Neckro Gatherer has found a container but certain critical things (perhaps the m_piece
or the inventory
) are missing. I don't know why the container's m_piece
would be missing, or why the inventory
would be missing on the container, but that's the only reason I can think of for this error.
I can add guards to prevent the error, but if these things are missing then the Neckro cannot function. The best I can do is stop the error from spamming the log and the Neckro will just stand around ignoring containers which are missing these vital components.
Edit2: This is probably happening due to the following lines of code, which can be reinforced to stop the error, but it will not permit the Neckro to deposit the items because if m_piece
is null or GetInventory
is null then no deposit is possible:
var closestContainer = FindClosest<Container>(transform, DropoffPointRadius.Value, pieceMask,
c => c.m_piece.IsPlacedByPlayer()
&& allowedContainers.Contains(c.m_piece.m_nview.GetPrefabName())
&& c.GetInventory().GetEmptySlots() > 0, true);
This should be alleviated in version 3.2.3 - just publicly released on Nexus and Thunderstore. If it does not help, please let me know and I'll check again.
i tried to attach it but couldnt due to the site not accepting cfg files, i did convert it to txt which is the second link there
also as i said on nexus, it seemed to work on my single player world but im not 100% sure if thats due to the fact that it was single player of if it was due to there bing extra drops on the ground
and i will update you when i get the chance to @jpw1991
Ohh, ok I see. I can't seem to get at the file via the link. It seems to just bring me to the website's homepage. Would you mind opening the config file in a text editor like notepad and copying and pasting the text here? I can read it that way
Edited for readability:
Thanks @retrouncle . Seems like nothing is wrong with the Neckro Gatherer portion of it. Did the new version help?
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
(wrapper dynamic-method) InventoryGrid.DMD
upon loading up with the new update i recieved this error and the gatherer totem no longer has a visible inventory. it will accept items but i am unable to see whats in there. also im not sure if it is related to the mod but when i try to split (on controller) the item i am splitting gets stuck on my cursor. even when i empty the slot or leave my inventory the item persists. upon removing the mod i am able to split just fine. unfortunately for the moment i will have to be playing without the mod for the time being. if you keep me updated on mod updates i will keep you updated on testing.
i also bieleve the problem i was having before was due to being on a server as when i was playing solo the necks were attempting to move to the chests but again i am unsure if it is due to there being more items on the ground as i couldn't continue testing.
The last error you reported is an old one. More info here. I didn't find a fix for it yet but opening any other container first stops it from happening.
alright, i just wanted to let you know because i hadnt had that problem until i updated
LogOutput.log https://sendeyo.com/updownload/file/script/0c0149ca0cbc2208791194a8dcdc9c93.txt
nekro gatherer will not deposit full inventory into nearby chest. unknown if it is a locally hosted server problem or something else.