Skip to content

theit8514/Stationeers-InventoryTweaks

Repository files navigation

Stationeers Inventory Tweaks

Description

This mod is designed to improve the inventory management aspect of Stationeers.

Current features include:

  • Combine items into existing stacks when moving via double click
  • Add keybind for hitting "Next" on your current active item (for example, the Advanced Tablet)
  • Fixes weird gaps between inventory windows
  • Fixes tracking of original slots so that items return to their proper place via double click.
  • Ability to lock slots to an item type (e.g. Cable Coil)

Installation

Usage

This mod adds several new keybinds. All keybinds can be changed from the Controls setting page.

The "Z" keybind presses the "Next" button on your currently held item. This is useful to switch cartridges on an Advanced Tablet via keybind.

The middle mouse button will lock or unlock the currently hovered slot. Locked slots can only contain the type of item that it is locked to. For example, if you want only cable coil to go into a tool belt and no other items, place a cable coil in each slot and middle click each one. To unlock a slot, remove the item and middle click the empty slolt to remove the lock.

Configuration

This mod creates a configuration file which can enable certain options. The configuration file is \Stationeers\BepInEx\config\InventoryTweaks.cfg and will be created on first load of the mod.

  • EnableRewriteOpenSlots (default: true): This will enable or disable the Rewrite Open Slots feature. If enabled, it will rewrite your save data for Open Slots so that tablets, tools, etc will remain open when loading your save.

    This option rewrites the StringHash (an integer value) with the ReferenceId (a long value) of the slot that is open. When loading it will attempt to open the windows matching the StringHash first, then the ReferenceId. There should not be a problem with loading a save that has been modified this way, as Stationeers ignores unknown Open Slot StringHash values.

  • EnableSaveLockedSlots (default: false): This will enable or disable the save feature of Locked Slots. If enabled, this will save the locked slots into a new InventoryTweaks.xml file in your game save.

    This does not modify the existing world save, only creates a new file in the world folder as the game is saving.

Future Plans

Thoughts on additional features:

  • Add refill hand from inventory on construction/placement and sort items to inventory on deconstruction.

Contributions

If you want to contribute with this mod, feel free to create a pull request.