Stack maximum is 256, why?

Stack maximum is 256, why?

in Bugs: Game, Forum, Website

Posted by: Drcfan.3692

Drcfan.3692

My Bank can storage up to 1000 materials on one stack (before gemstore upgrade, a stack contains 250 materials max regular).

Ctrl+Left click will post it in chat but only 232 material instead of 1000!

So here is my research:

1byte=8bit= 256 = highest number that can be shown in chat
(257 items will show empty chat message)
1000 – (3*256)=232

I’m not a programmer but could it be that Anet uses the “char variable” instead of “int variable” ?
“char variable” can count up to 256 (as far as i know)
“int variable” can count up to 65536

This bug very annoying bug and it would be pretty easy to fix (i think)

Sry for my bad english

Stack maximum is 256, why?

in Bugs: Game, Forum, Website

Posted by: KiwiHop.1092

KiwiHop.1092

That’s it, your assumptions are more or less correct.

“char” type, stores its value on 8 bits and can store a value between 0-255, while “short”, the next smallest type, has 16 bits and can store a value between 0-65535.

In terms of storage, this change would make double the size of the “inventory” databases. They also would have to rewrite part of the code to use new types and reorganize part of the database.

So, resolving this “bug” would be pretty expensive and it will have near to zero improvement on QoL.

I hope my answer is useful, sorry for my awful english xD

Stack maximum is 256, why?

in Bugs: Game, Forum, Website

Posted by: Drcfan.3692

Drcfan.3692

Ok thank you