Page 2 of 2
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 9:35 pm
by nathanj
Thanks Tony,
Don't see that message, I assume it would be a warning. ATM I'm only getting info messages.
K, I'll check if there is anything different with my player's inventory.
Thanks again,
Nathan
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 9:48 pm
by nathanj
Actually, I just tried removing a weapon and it worked, maybe is does have to do with the item categories.
What would the syntax be fore Variable["PlayerName"] and ".Food"be?
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 10:01 pm
by Tony Li
Hi Nathan,
Please try this patch:
DS_UCCLuaPatch_2021-02-15.unitypackage
The original code I got from Opsive assumed that all items were slotted (equippable) items. This should remove other item categories, too. We updated UCCSaver and uccAddItem() to handle other item categories but didn't update uccRemoveItem().
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 10:11 pm
by nathanj
Beauty!
Thanks Tony,
One thing if the item count is 0 the item is still in the inventory but with a count of 0, it's not removed completely. I mean, it's not an issue but thought you might like to know.
Thank you again and again.
Sorry for bothering you so late in the day, you should log off, mate
Nathan
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 10:25 pm
by Tony Li
I forgot to add that line! Here's an updated update.
DS_UCCLuaPatch_2021-02-15a.unitypackage
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 10:28 pm
by nathanj
Perfect.
Thanks again, Tony. You are the best.
Nathan
Re: uccRemoveItem issue
Posted: Mon Feb 15, 2021 10:35 pm
by Tony Li
Glad to help!