Page 1 of 2

Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 5:52 pm
by Heffernan
Hello, not sure if anyone else had this or could try but when i have something on the RIGHT side of a large inventory and pick it up i cant drop it on those spots again only on the left or bottom..

Image

picked up the Jar Glasses and could only drop therm to the bottom.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 6:38 pm
by Taipion
Yea I have that too sometimes.

Try to place on the bottom line, and if that does not work for whatever reason, then remember CTRL-G (iirc) opens your backpack...

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 6:39 pm
by TotalyMeow
Did you try this without Kandarim's sort?

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 6:42 pm
by Taipion
TotalyMeow wrote:Did you try this without Kandarim's sort?


I am pretty sure it is related to that sorting feature, but then again, (non-continous) sorting is too good to not use it....

[edit:] That bug usually goes along with some occurrences of 2 items being displayed in 1 inventory slot.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 7:46 pm
by Kandarim
yes yes my sorting is messed up in horrible horrible ways. I should find time to finally fix it soon TM.

Specific reason for this: my sorting code allows inventories wider than 32 slots, whereas the server does not allow this. Hence dropping it in the 33rd row is a command that is simply ignored by the server.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 7:47 pm
by Reviresco
When that happens to me I have to place it in the middle of the bottom row. Always works.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 8:07 pm
by Taipion
Kandarim wrote:yes yes my sorting is messed up in horrible horrible ways. I should find time to finally fix it soon TM.

Specific reason for this: my sorting code allows inventories wider than 32 slots, whereas the server does not allow this. Hence dropping it in the 33rd row is a command that is simply ignored by the server.


You tell me you don't map the clients slots to those on the server correctly?! :lol:

[edit:] ...when you decide to fix this, as you are already at it maybe also add an option to set the inventorys width to a fixed amount of columns.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 8:11 pm
by Kandarim
the mapping is done correctly, but when you try to put it in a slot that has no mapping, it simply sends the drop command for that particular slot -- I simply never encountered such a wide inventory in my testing, I think.

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 10:40 pm
by Taipion
Kandarim wrote:the mapping is done correctly, but when you try to put it in a slot that has no mapping, it simply sends the drop command for that particular slot -- I simply never encountered such a wide inventory in my testing, I think.


I remember the layout of your inventory changed at some point, the point where it started to add columns to the right after a certain row/column-ratio was exceeded (a behaviour which I btw never liked)...

Anyways, if there is a slot without a mapping, then it's not done correctly! :P
As you seem to know what the problem is and how the slots are handled server sided, why not just put in a check that redirects item placement into invalid slots to valid slots (at the end of the inventory)? (As an interim solution)
Then you'd only need to remember which (server side) slot it went to, and map that to the actual (client side) slot that the user clicked, easy as that?

Re: Inventory Drop Problem

PostPosted: Sat Sep 03, 2016 11:30 pm
by black89hawk
I have this problem from long time

but dont forget that when you hold tons stuff you will drop it because of lots numbers of stuff
also some time you cant pickup stuff or it will replace on other stuff