Thread Tools Display Modes
12/20/16, 03:15 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
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

Last edited by QuadroTony : 12/21/16 at 02:39 AM.
  Reply With Quote
12/20/16, 04:17 PM   #2
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
That's a data allotment issue. 400 is 0001 1001 0000 in binary. It actually cuts it off at 1001 0000, which is 144.
  Reply With Quote
12/21/16, 01:44 AM   #3
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
Originally Posted by Rhyono View Post
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?
  Reply With Quote
12/21/16, 02:15 AM   #4
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by AssemblerManiac View Post
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
  Reply With Quote
12/21/16, 05:41 AM   #5
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Use /bug for report ZOS bugs, it give work to customer service.
  Reply With Quote
12/21/16, 10:06 AM   #6
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Originally Posted by AssemblerManiac View Post
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."
  Reply With Quote
12/21/16, 10:17 AM   #7
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by Rhyono View Post
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"
  Reply With Quote
12/21/16, 12:25 PM   #8
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
Originally Posted by Rhyono View Post
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.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » ZOS bug with SALES history!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off