Quick Ammo Switcher

by Banderi

Allows one to quickly load and unload different ammo types without having to fiddle with inventory items.

Tweaks
10 months ago
1.1 - 2.0
572
Combat Storage

b Crash

10 months ago
(updated 10 months ago)

When switching ammo using hot key from explosive rocket to normal rocket in heli from HelicopterRevival mod which has all the inventory filtered

The mod Quick Ammo Switcher (1.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event QuickAmmoSwitch::switch_ammo_next (ID 276)
QuickAmmoSwitch/control.lua:117: Arguments count error for 'spill_item_stack': Expected 1 argument but 2 were given
stack traceback:
[C]: in function 'spill_item_stack'
QuickAmmoSwitch/control.lua:117: in function 'moveItems'
QuickAmmoSwitch/control.lua:281: in function 'swapAmmo'
QuickAmmoSwitch/control.lua:301: in function <QuickAmmoSwitch/control.lua:300>

10 months ago

Hey there! Let me know if 2.1 solved it!

9 months ago

Hello.

Bug is still there in 2.2.0

The mod Quick Ammo Switcher (2.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event QuickAmmoSwitch::switch_ammo_next (ID 210)
Unknown quality name: uncommon
stack traceback:
[C]: in function 'get_item_count'
QuickAmmoSwitch/control.lua:151: in function 'is_present_in_inventories'
QuickAmmoSwitch/control.lua:244: in function 'find_best_fit_next_ammo'
QuickAmmoSwitch/control.lua:586: in function 'scroll_ammo'
QuickAmmoSwitch/control.lua:617: in function <QuickAmmoSwitch/control.lua:616>

9 months ago
(updated 9 months ago)

Hello.

Bug is still there in 2.2.0

The mod Quick Ammo Switcher (2.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event QuickAmmoSwitch::switch_ammo_next (ID 210)
Unknown quality name: uncommon
stack traceback:
[C]: in function 'get_item_count'
QuickAmmoSwitch/control.lua:151: in function 'is_present_in_inventories'
QuickAmmoSwitch/control.lua:244: in function 'find_best_fit_next_ammo'
QuickAmmoSwitch/control.lua:586: in function 'scroll_ammo'
QuickAmmoSwitch/control.lua:617: in function <QuickAmmoSwitch/control.lua:616>

This seems to be a completely separate bug, however I can't seem to reproduce it - I just updated my game to 2.0.23 and it's all still working correctly. The quality names are working as normal.
Would you be able to show exactly how your setup looks like when crashing (if it stills crashes)? What the inventory is, what ammo you have, what you were trying to scroll, if you have any mod that alters quality properties of items etc. etc.

New response