ZOS mail attachement bug
video without addons
i meet it many times and still cannot find a reason - everytime its different items, with different quality just sometimes whel i put item in 6th slot its placed to 5th instead and it cannot be fixed by reloadui, you need just change the order no matter how i do it - by mouse or by E www.youtube.com/watch?v=OXJ4Q-t0qOM |
guys how to fix with addons?
|
I have it also few times, and need to guess hwich are the correct ones to "fix" them...
I'll wait a bit, for myself, game is so buggy right now. |
The problem is caused by the method GetQueuedItemAttachmentSlotIndex in inventoryslot.lua.
According to the comments on the function, it should return nil if it is called on an inventory slot that is not attached, but instead it will return slotIndex in that case. This becomes a problem when the slotIndex is between 1 and 6. For example when we have two items A and B with a slotIndex of 1 and 42 respectively, the following happens: Code:
No attachments: Code:
No attachments: Lua Code:
What it should be: Lua Code:
RemoveQueuedAttachment also needs to be adjusted, otherwise it would remove the item in the first attachment slot when nil is returned. |
Thanks for the info. We'll get it fixed.
|
thsnks!
UPD. sometimes not only 5th and 6th slots messed, but 4th and 5th for example |
I found another bug related to mail attachments.
When I have attachements added and close the menu, they get reattached when I open it again. This works fine as long as there are no empty attachment slots. For example if I have items added in slot 1,2 and 4, the item in slot 4 won't get reattached. This is because ZO_MailSendShared_SavePendingMail in mailsend_shared.lua does not add an object to g_pendingAttachments for empty slots, but ZO_MailSendShared_RestorePendingMail uses ipairs to iterate over g_pendingAttachments, which does not work if there is a hole in the array. Instead it should use for i = 1, MAIL_MAX_ATTACHED_ITEMS do and check if the element is nil plus some other changes that may be required. |
Quote:
|
All times are GMT -6. The time now is 05:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI