[wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

This subforum contains all the issues which we already resolved.
Post Reply
SubtleC
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Apr 10, 2018 8:16 pm
Contact:

[wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

Post by SubtleC »

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.
Attachments
factorio-current.log
(4.56 KiB) Downloaded 60 times
ammoBug.zip
Save file
(9.92 MiB) Downloaded 51 times

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

Post by Klonan »

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

User avatar
wheybags
Former Staff
Former Staff
Posts: 328
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

Post by wheybags »

Not a super huge deal, but this will be consistent with player inventory in 0.17.
Thanks for the report!

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

Post by Rseding91 »

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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [wheybags] [0.16.36] Ctrl+RMB gives wrong amount when inside vehicle

Post by Bilka »

Rseding91 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" ?
This one please :D
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”