Scooty's Armor Swap


Adds a key binding (default: the "\" key) that equips the next armor in your inventory and sets your player color to the color that was last used with that armor. Rapidly cycle among color-coded armors specialized for different purposes!

Content
2 months ago
1.1
3.38K
Armor

Changelog

Version: 0.1.0
  Features:
    - Mod is working!
  
  Known issues:
    - The Equip Next Armor key is now set to backslash (the "\" key) at first launch. This can be set under Settings -> Controls -> Mods
    - Under Settings -> Controls -> Mods, an error message "Unknown key: controls.scootys-armor-swap" is displayed
Version: 0.1.1
  Features:
    - Thumbnail added
    - Description updated
    - Uploaded to mod portal
Version: 0.2.0
  Features:
    - Armor Swap will now associate player colors with armors. Select a player color while wearing a particular armor and Armor Swap will restore it when you switch back to that armor using the mod.
    - changelog.txt added
    - Thumbnail gaucheness reduction of 15%, potentially even 20%

  Bug Fixes:
    - The Equip Next Armor key should now be properly set to backslash (the "\" key) at first launch.
    - Fixed crashes related to having no armor equipped, no armor in inventory, etc.
    - Fixed localization error in Settings -> Controls -> Mods
Version: 1.0.0
  Features:
    - Armor Swap will now skip any armors in your inventory that would cause you to drop items on the ground.
Version: 1.1.0
  Bug Fixes:
    - If player inventory contained gaps armor swap would stop looking for armors after encountering the first gap. Thanks to user gap_ for discovering this.
Version: 1.2.0
  Features:
    - Some mods delete and re-create the player and their inventory under some circumstances which made SAS unable to find the armors in the cache based on their item number. Added a backup search for armor based on item name and grid contents to compensate for this.
    - Added a "clear color cache" key (default: Control + \) to delete the color cache as it can grow large in multiplayer or with lots of armors.
    - Updated Russian translation. I hope it's good!

  Bug Fixes:
    - Re-fixed crash when no armor equipped or no armor in inventory. Thanks to user sporefreak for discovering this.
Version: 1.2.1

  Bug Fixes:
    - Fixed crash introduced in 1.2.0 when cycling armors with no grid.
Version: 1.3.0

  Features:
    - Now works with locked slots. Thanks to user Zacous for discovering this.

  Bug Fixes:
    - Player coloring updates now occur any time a player changes armor instead of only when using the Equip Next Armor key. This should be particularly useful when equipping emergency armor used for corpse runs.
    - Most "Fuzzy Match" issues have been fixed, such as activating a jetpack cycling identical armors with a different color.
Version: 1.4.0

  Features:
    - Now updates player color when using a Jetpack (https://mods.factorio.com/mod/jetpack). Thanks to user naiad for discovering a fix to the Jetpack mod, and Jetpack mod contributor Quezler for suggesting a way to fix it locally instead.

  Bug Fixes:
    -- Fixed a crash. Thanks to user Eldrinn for reporting this.
Version: 1.4.1

  Features:
    -- Added exception handling in all event handling funcs. This should make this mod much less likely to cause crashes in the future. Thank you to naiad for suggesting this.

  Bug Fixes:
    -- Fixed a crash involving using a jetpack near a spaceship. Thanks to user naiad for reporting this.
Version: 1.4.3

  Features:
    -- Better "fuzzy matching" of armors. This should improve interactions with mods that destroy and re-create armors (namely, Jetpack). Thanks to user guyns for reporting this.