Page 1 of 1

[Rseding91] [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Sun Sep 25, 2016 12:30 am
by Kirk
I'm not sure exactly how I combined two stacks of (bullet) ammo, but it was with one stack under the cursor and the other stack in the inventory, and at least one of the two stacks had a partially used magazine. I ended up with a stack of 99 magazines in my inventory, instead of the 100 one would expect, with the rest in my hand. It's possible it combined some magazines in some way.

Re: [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Sun Sep 25, 2016 12:43 am
by Rseding91
I don't understand what you're saying.

Do you have steps to reproduce the issue along with what happens and what you expect to happen?

Re: [Rseding91] [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Sun Sep 25, 2016 9:19 pm
by Kirk
Ok, I encountered it again, and this is what I think happens: When you combine two stacks of ammo, both of which have a magazine that when combined would be less than 100% full, the stack that is not in your hand ends up as a stack of 99.

Steps to reproduce:
1. In the attached autosave, find the piercing bullet ammo box. It is in the lower middle of the base.
2. Take the ammo from the box in hand (under the cursor).
3. Click the submachinegun ammo on the lower right of the screen.
4. Observe a stack of 99 under the submachine gun.

I suppose I expected a stack of 100.

Re: [Rseding91] [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Sun Sep 25, 2016 10:06 pm
by Loewchen
No idea if that needs fixing:
Animation.gif
Animation.gif (114.89 KiB) Viewed 2679 times

Re: [Rseding91] [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Mon Sep 26, 2016 2:22 pm
by Rseding91
I looked into the logic a little and any fix for the issue would add a lot of complexity to the item transfer logic that I don't think is worth it. If you click again on the stack it will transfer the durability over once the stack is full.

Re: [Rseding91] [0.14.9] Combining ammo stacks leaves stack size minus one

Posted: Tue Sep 27, 2016 10:56 pm
by Kirk
Good idea Loewchen, I should just make a GIF next time!