Page 1 of 1

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

Posted: Tue Apr 10, 2018 8:44 pm
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.

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

Posted: Tue Apr 17, 2018 2:11 pm
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

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

Posted: Fri Apr 20, 2018 3:17 pm
by wheybags
Not a super huge deal, but this will be consistent with player inventory in 0.17.
Thanks for the report!

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

Posted: Fri Apr 20, 2018 5:27 pm
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" ?

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

Posted: Fri Apr 20, 2018 5:32 pm
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