[Fixt] Bug, Inventory amount duplication madness when trying to drop items.

Status
Not open for further replies.

Katz007

Well-Known Member
Mar 23, 2021
224
5
38
At first

1640230732280.png

go to drop items

note i have 43 sky sap

1640230772245.png

move all sky sap to drop list

1640230804687.png

cancel then go back to inventory again

not now i have more sky sap

1640230872614.png

76 sky sap !

1640230897056.png

Sell and cancel again, now i have even more sky sap

1640230946628.png
 

Attachments

  • Katz (H) - 7Hrs 29Mins, 130 Days - Casstech Z14, SPACE.json
    632.2 KB · Views: 0

lowercase_donkey

Scientist
Apr 27, 2016
1,536
207
i THINK this is the same bug I mentioned over here:


It's something in groupItems(), which is the function that tries to show one "item" representing all 43 of your SkySap. However, it's writing data back into your inventory, which should not be happening.
 

lowercase_donkey

Scientist
Apr 27, 2016
1,536
207
FINALLY figured this out. Fix is up on dev.

Turns out I was very close, and the simpler matching code in the item drop screen was the key. Fixing that was a matter of moving a single ), and then I was able to keep poking the sales code until it worked.
 
Status
Not open for further replies.