ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   ZOS bug with SALES history! (https://www.esoui.com/forums/showthread.php?t=6695)

QuadroTony 12/20/16 03:15 AM

ZOS bug with SALES history and POISONS
 
I sold 400xpoison in guild store

but guild sales history showing i sold only 144x
always the same with this item
1)tested many times
2)in different guilds
3) always stack of 400(didnt test other amounts)
4) always same poison(didnt test other poisons)

because of this average price of this item in MM also is 3xbigger than intended

WEIRD!
your guesses?

the link to an item - |H1:item:76827:308:50:0:0:0:0:0:0:0:0:0:0:0:0:36:0:0:0:0:138240|h|h

Rhyono 12/20/16 04:17 PM

That's a data allotment issue. 400 is 0001 1001 0000 in binary. It actually cuts it off at 1001 0000, which is 144.

AssemblerManiac 12/21/16 01:44 AM

Quote:

Originally Posted by Rhyono (Post 29188)
That's a data allotment issue. 400 is 0001 1001 0000 in binary. It actually cuts it off at 1001 0000, which is 144.

So basically, it's truncating a long int(4 bytes) to a short int(2 bytes). That's troubling. You can sell up to 255 potions without losing data.

Tony: Maybe only sell 200 at a time?

Anyone know if this is a shortcoming of the ESO guild store handling, or something in an addon?

QuadroTony 12/21/16 02:15 AM

Quote:

Originally Posted by AssemblerManiac (Post 29192)
So basically, it's truncating a long int(4 bytes) to a short int(2 bytes). That's troubling. You can sell up to 255 potions without losing data.

Tony: Maybe only sell 200 at a time?

Anyone know if this is a shortcoming of the ESO guild store handling, or something in an addon?

its not an addon
afaik addons cant change strings in Sales history of a guild

Ayantir 12/21/16 05:41 AM

Use /bug for report ZOS bugs, it give work to customer service.

Rhyono 12/21/16 10:06 AM

Quote:

Originally Posted by AssemblerManiac (Post 29192)
So basically, it's truncating a long int(4 bytes) to a short int(2 bytes). That's troubling. You can sell up to 255 potions without losing data.

Tony: Maybe only sell 200 at a time?

Anyone know if this is a shortcoming of the ESO guild store handling, or something in an addon?

Short (2 bytes) to Byte, actually.

Have poisons always stacked to 400 since the beginning or did it come along later? I always assumed the (mostly) 200 cut offs were because ZoS was trying to keep inventory quantities to a byte each, but poisons being in stacks of 400 suggests they are using a short instead. Whoever wrote the code for the guild stores likely didn't keep this in mind and thought "max stack is 200, we'll use just a byte to store this."

QuadroTony 12/21/16 10:17 AM

Quote:

Originally Posted by Rhyono (Post 29197)
Short (2 bytes) to Byte, actually.

Have poisons always stacked to 400 since the beginning or did it come along later? I always assumed the (mostly) 200 cut offs were because ZoS was trying to keep inventory quantities to a byte each, but poisons being in stacks of 400 suggests they are using a short instead. Whoever wrote the code for the guild stores likely didn't keep this in mind and thought "max stack is 200, we'll use just a byte to store this."

you can list up to 1000 poisons
in guild history such deals displayed like "1k"

AssemblerManiac 12/21/16 12:25 PM

Quote:

Originally Posted by Rhyono (Post 29197)
Short (2 bytes) to Byte, actually.

Have poisons always stacked to 400 since the beginning or did it come along later? I always assumed the (mostly) 200 cut offs were because ZoS was trying to keep inventory quantities to a byte each, but poisons being in stacks of 400 suggests they are using a short instead. Whoever wrote the code for the guild stores likely didn't keep this in mind and thought "max stack is 200, we'll use just a byte to store this."

Good catch. I was reading the original binary values as bytes when it was nybles. My bad.


All times are GMT -6. The time now is 07:06 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI