Closed vankk closed 7 years ago
@vankk Hello, where you put the max value per ground? Thanks.
I think you changed expected with actual behaviour not only in this issue. About the issue, I think we should limit it to 256, in order to save bytes of "counter" too
Half- and quarter-word value types might be less performant while not saving worthy amounts of memory.
@darkjav The value 0xFFFF on tile.cpp L624 is equal to 65535 items, I did some changes to edit this value on config.lua and I seted it to 500 items.
@vankk So if i put there, the value: 0x1F4, must work correctly true?
i've tried many ways to reproduce this, nothing happens even with 65535 items on tiles up/down of stair tile.
Yes @vankk Here is a decimal to hex converter http://www.binaryhexconverter.com/decimal-to-hex-converter If your not up for the math you can always just paste in google "0x1F4 to decimal" and you will get the calculator with the answer 500
I've tried to reproduce this also but it didn't crash, either way I did the change too.
An idea for the limit: www.tibia.com/news/?subtopic=newsarchive&id=3667
@Kamenuvol
if (items && items->size() >= 3E8) {
return RETURNVALUE_NOTPOSSIBLE;
}
OTServ SVN actually has this feature for quite a few years, why hasn't been included here yet? Also, need to know the exact cause for this to happen, given the client only accepts stacks in orders of 1~10.
@TwistedScorpio because not everything gets implemented into the official distro... I've been learning c++ more lately and I doubt anything I have added to the sources will be accepted as part of the official distribution not because the code I am writing is shit lol.. well maybe it is :p but because it isn't "tibia" related, not to say that this issue isn't real or isn't needed to be fixed.
I tried to reproduce, 420 pages of items created and no crash here.
Closing issue due to old age. If the issue persists please reopen.
Too much items on stack
Expected behaviour
Not crash or maybe set a limit for sqm?
Actual behaviour
The step three.
Environment
I don't have any kinda of logs, because I already fixed this problem a few months ago. The system is Ubuntu 14.04.
Fix
Seted the max value per ground in 500.