Project Zomboid

Project Zomboid

Avatar offline [MP/SP]
Latest update bug report
When logging out, Lines 114 and 839 of the lua cause errors, both of which are related to inventory.

When logging out and logging back in, this seems to reset certain inventory objects. specifically it is affecting the severed limb items from The Only Cure, resetting it and causing the arm to regrow on the character model.
< >
Showing 1-15 of 22 comments
AuD  [developer] 11 Sep, 2023 @ 4:19am 
i need the function too ^^
AuD  [developer] 11 Sep, 2023 @ 4:39am 
Have you ever lost an item due to these problems? Or on the contrary, have you ever received duplicate items?
Jane Helldiver 11 Sep, 2023 @ 9:50pm 
This is what I found:

1- Incompatible with the mod: The Only Cure.

When you have a character with a missing limb, when you log out, then log back in, Avatar Offline notifies you with the following message:

"An item has been taken from you"
"An item has been given to you"

it's removing the "severed limb" item from The Only Cure, the giving it back, which basically Resets the missing limb of the character.

This gives the illusion that your character has regrown the previous missing limb and it places the "severed limb" permanently into their inventory, which cannot be deleted even in admin or -debug mode.

2- Some items do get duplicated, but I don't know why. I suspect it is because of other mods as well. Some object held in hands like a hammer or sword may get duplicated when taken or given.

Mods like Fancy Handiwork, Brutal Handiwork, Visible Carried Items, Gun Stock Attack,More Slings, and other mods change how items are held and placed on a character.

So I think that these items get duplicated because they are not in the characters basic inventory, but rather "in hand" or "on belt" or "on tactical vest".

It looks like an item held in the right hand is fine, but if held in the left it is at risk of being duplicated.

I also duplicated a generator. Holding a generator, while using Visible held items, I then took the generator from the offline character, making two of them. The original stayed on the offline character so when they logged in, the generator was still there.
AuD  [developer] 11 Sep, 2023 @ 10:33pm 
thank you for all these details, I will see all this in the code, however there should be no duplication, I will redo all these tests to see it, I am thinking of reviewing the code, but I do not know if I will succeed to release something reliable...
Jane Helldiver 11 Sep, 2023 @ 10:35pm 
I think your code is probably fine. Just looks like how it interacts with other mods.

Like the "severed arm" from The Only Cure is treated as a clothing item that is worn by the character to make the limb vanish.
AuD  [developer] 11 Sep, 2023 @ 10:39pm 
Thanks again for your testing, it's exactly what I wanted, and the more details, the more it allows us to assess the problem.

I will restrain and exclude the only cure items
Jane Helldiver 11 Sep, 2023 @ 11:05pm 
Let me know and I'll re-activate the mod on my server and test it again. Appreciate the input.
AuD  [developer] 11 Sep, 2023 @ 11:13pm 
why don't you just disable item sharing? I don't understand ^^
AuD  [developer] 11 Sep, 2023 @ 11:14pm 
Since the last update, I fixed the problem, which analyzes the inventory when reconnecting.
AuD  [developer] 11 Sep, 2023 @ 11:17pm 
what only cure mod plz? i have 6 choices ^^
Jane Helldiver 12 Sep, 2023 @ 12:44am 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2703664356&searchtext=The+only+cure

This is the most recent version, and the best version of the mod that works. All the other versions have bugs and other issues
AuD  [developer] 12 Sep, 2023 @ 12:46am 
i have tested with generator, no problem for me, is not duplicated
AuD  [developer] 12 Sep, 2023 @ 2:13am 
all work fine for the moment, i have tested in video : https://youtu.be/z33ZO3W2tUE
AuD  [developer] 12 Sep, 2023 @ 2:15am 
test = item rename, put or give item, item is attached or not, item is in container or not ...
Jane Helldiver 12 Sep, 2023 @ 2:17am 
thank you! I'll do some more tests myself.
< >
Showing 1-15 of 22 comments
Per page: 1530 50