Page 1 of 1

.14.22 - Ammo bar changes size after prototype change

Posted: Fri Mar 10, 2017 9:43 am
by Nexela
I thought I seen a bug report resembling this before but I can't find it. So I will post it here. Apologies if this has already been reported.

Changing the magazine size of an existing ammo item causes the ammo bar to grow beyond the icon size as well as the item keeping the old magazine_size as current ammo count.


Steps to reproduce:

Load Factorio.
Give yourself a couple of stacks of firearm magazines.
Put them in a chest.
Save and quit Factorio.
Edit demo-ammo.lua and change the magazine_size to 5.
Load your save and observe the ammo in the chest.
ammobars.png
ammobars.png (40.91 KiB) Viewed 1447 times

Re: .14.22 - Ammo bar changes size after prototype change

Posted: Fri Mar 10, 2017 12:23 pm
by Ranakastrasz
Heh, this isn't really so much a bug as a result of someone really trying to break the game.
After all, there is absolutely no method to cause this to occur (except maybe using a command to set ammo count, which might not have a safety check) aside from changing mods, which really shouldn't count.


Saw this before when I was messing with combat balance, but ignored it since it has no impact on gameplay.

Re: .14.22 - Ammo bar changes size after prototype change

Posted: Tue Mar 14, 2017 6:00 pm
by Rseding91
We might fix this one day but for now I'm just going to leave it as it is.