[0.14.22] Vanishing charge for items on right click

This subforum contains all the issues which we already resolved.
qUiXui
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Mar 08, 2017 9:05 am
Contact:

[0.14.22] Vanishing charge for items on right click

Post by qUiXui »

Admittedly this is rather minor, but since the point of an early access is to find bugs I figured I'd post it anyway: When holding a partially spent item (ammo, science pack), right clicking on a full stack of the same item (wanting to drop one but being unable to do so) reduces the stacks top items charge by the deficit of the held item.

Example: One full stack of fully loaded ammo clips in one slot, one stack containing a 6/10 ammo clip in hand. When right clicking the full stack it reduces its topmost item to the same 6/10 rounds, the stack in hand doesnt change though. Right clicking again reduces it by another 4, to 2/10, with the stack in hand still unchanged. Right clicking a third time finally works, dropping the partially spent clip in hand onto the stack, with a 8/10 on top of it and the hand held stack reduced by the partially spent item.

The same happens for science packs when trying to drop a less than 100% pack on a stack with not enough space.

Edit: Shortend cut-off thread title
Rseding91
Factorio Staff
Factorio Staff
Posts: 15984
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Vanishing charge for items on right click

Post by Rseding91 »

Can you give exact steps to reproduce it? Preferably with a limited size (50x50) map that's ready to reproduce the issue?
If you want to get ahold of me I'm almost always on Discord.
qUiXui
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Mar 08, 2017 9:05 am
Contact:

Re: [0.14.22] Vanishing charge for items on right click

Post by qUiXui »

Sure. With a new game, do the following:

1. Shoot your pistol three times at a tree by hitting c
(The top clip of the 10 initial clips now reads 7/10 bullets)
2. Add another stack of ammo with /c game.player.insert{name="firearm-magazine", count=100}
(The full stack of clips overflows in your inventory, thus leaving your inventory with the 10 initial clips with a 7/10 clip on top, and 100 full clips at your pistol)
3. Open inventory and pick up the ammo (left click)
4. With the ammo on your cursor, right click on the clips for your pistol (right click the ammo slot below the pistol while still holding the ammo from your inventory)
(Both the stack in hand as well as the stack below your pistol now read 7/10)

Each subsequent right click reduces the right clicked stack by another 3 rounds.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15984
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.22] Vanishing charge for items on right click

Post by Rseding91 »

Thanks for the steps. Fixed for 0.15.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”