Ctrl+RMB while in the tank or car sometimes gives an incorrect amount of ammo when taken from a gun turret.
I expected the gun turret to hold the following amount of ammo at the start and after each Ctrl+RMB:
200, 100, 50, 25, 13, 7, 4, 2, 1
I actually get results such as:
200, 100, 50, 36, 18, 9, 5, 3, 2, 1
It seems to me like when you hit an interval that will fill the car's active ammo slot it takes only that much, instead of whatever half the source stack would be. So the sequence of ammo for the vehicle I'm in during the above example would be:
36, 136, 186, 200, no change, ... with additional ammo going into player inventory.
Perhaps the ideal behavior is that ammo after the active gun is full overflows to the player inventory? But due to a bug or design limitation it won't split to two different entities in one 'transaction'?
I am not using any mods.
[wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
[wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
- Attachments
-
- factorio-current.log
- (4.56 KiB) Downloaded 74 times
-
- ammoBug.zip
- Save file
- (9.92 MiB) Downloaded 69 times
Re: [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
I think this works as intended,
When you ctrl+RMB with a half full ammo slot, it is targetting that slot,
Then it can only take however much that slot has remaning
After, any additional ctrl+RMB targets a different slot, so it can transfer more
However with a player it does not present this behaviour,
When you ctrl+rmb, it takes half, regardless of how much space is left in your ammo slot...
So I guess it is a bug, at least an inconsistency of behaviour
When you ctrl+RMB with a half full ammo slot, it is targetting that slot,
Then it can only take however much that slot has remaning
After, any additional ctrl+RMB targets a different slot, so it can transfer more
However with a player it does not present this behaviour,
When you ctrl+rmb, it takes half, regardless of how much space is left in your ammo slot...
So I guess it is a bug, at least an inconsistency of behaviour
Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
Not a super huge deal, but this will be consistent with player inventory in 0.17.
Thanks for the report!
Thanks for the report!
Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
I was also thinking about this: would it be more useful to have it "put into every slot that can fit" or "put into fuel first and no other slot during that ctrl click and then if nothing is put into fuel put into the main inventory" ?
If you want to get ahold of me I'm almost always on Discord.
Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle
This one pleaseRseding91 wrote:"put into fuel first and no other slot during that ctrl click and then if nothing is put into fuel put into the main inventory" ?
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.