You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an augment that is a larger size than the item it is being placed into is inserted, an item becomes the larger size in the eyes of the client. So if an item of size 1 (small) is augmented by an augmentation of size 2 (medium), the client then sees the item as medium.
This is rare, because there are few augs greater than size small, but they do exist. Also, items that are tiny can be make small, which will impact those items fitting into tiny bags.
This became a huge issue on my server, because I had carelessly created weapon augs and ignored size (most were 2).
The bandolier is the primary victim, as it calls: CanItemFitInContainer() which is provided only with bare item data, not information about augments.
To be completely compliant, CanItemFitInContainer() and HasSpaceForItem() would both need either:
a interface parameter of the actual item instance so that augs can be checked for size
or
All places that call these two functions would need to send the larger of the item, or the items largest aug, to these functions instead of the item itself.
As 100% of the issues on my server were solved by changing all my custom augs to size 1 (should have really done size 0), I didn't tackle this.
If there is demand, I can try and make the fixes.
The text was updated successfully, but these errors were encountered:
When an augment that is a larger size than the item it is being placed into is inserted, an item becomes the larger size in the eyes of the client. So if an item of size 1 (small) is augmented by an augmentation of size 2 (medium), the client then sees the item as medium.
This is rare, because there are few augs greater than size small, but they do exist. Also, items that are tiny can be make small, which will impact those items fitting into tiny bags.
This became a huge issue on my server, because I had carelessly created weapon augs and ignored size (most were 2).
The bandolier is the primary victim, as it calls: CanItemFitInContainer() which is provided only with bare item data, not information about augments.
To be completely compliant, CanItemFitInContainer() and HasSpaceForItem() would both need either:
or
As 100% of the issues on my server were solved by changing all my custom augs to size 1 (should have really done size 0), I didn't tackle this.
If there is demand, I can try and make the fixes.
The text was updated successfully, but these errors were encountered: