You are viewing a potentially older version of this package. View all versions.
Hex_Viking-HexQuickStackStorage-1.1.0 icon

HexQuickStackStorage

Quick stack, sort and delete items from your inventory.

Date uploaded 2 weeks ago
Version 1.1.0
Download link Hex_Viking-HexQuickStackStorage-1.1.0.zip
Downloads 2067
Dependency string Hex_Viking-HexQuickStackStorage-1.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

HexQuickStackStorage

Inspired by Goldenrevolver's Quick Stack Store Sort Trash mod.

This mod adds Quick Stack, inventory sorting, chest sorting, trash management, and item favorites.

ServerSync is currently not supported, and the mod has not been tested in multiplayer. Multiplayer behavior may be inconsistent.

Any multiplayer feedback is welcome. I don't have testers for multiplayer scenarios.

Instructions

Quick Stack

Click the Q button in your inventory or use the configured Quick Stack keyboard shortcut (default P).

Items will only be moved if:

  • The item is not equipped
  • The item is not in your hotbar
  • The item is not favorited
  • The item is inside the normal player inventory
  • A nearby container created by your player already contains that item type
  • The container has enough room for the item

Items will not be stored in empty containers or containers that do not already contain that item type.

Sort Inventory

Click the S button in your inventory to sort your normal player inventory.

Sorting will:

  • Leave hotbar items in their current slots
  • Leave equipped items in their current slots
  • Leave favorited items in their current slots
  • Consolidate compatible item stacks
  • Sort the remaining inventory items

Sort Chests

When a chest is open, click the Sort button beneath the chest inventory to sort it.

Automatic chest sorting can also be enabled in the configuration. When enabled, supported chests will be sorted when opened.

Favorite Items

Hold Left Control and Right Click an item to favorite or unfavorite that item type.

Favorited items have a gold border and:

  • Cannot be Quick Stacked
  • Will not be moved or consolidated when sorting your inventory
  • Cannot be deleted

Favorites apply to the entire item type. For example, favoriting Wood Arrows will cause all Wood Arrow stacks to be treated as favorites.

The Favorite modifier key can be changed in the configuration.

Delete Items

There are two ways to delete items.

Drag and Delete

Drag an item from your inventory, then click the trash icon.

Items cannot be deleted if they are:

  • Equipped
  • In the hotbar
  • Favorited

Mark Items as Trash

Hold Left Shift and Right Click an item to mark or unmark that item type as trash.

Items marked as trash have a red border.

Click the trash icon to delete all currently marked trash items from your inventory.

Trash applies to the entire item type. Newly picked up items of the same type will also be treated as trash.

Items cannot be marked as trash if they are equipped, in the hotbar, or favorited.

Marking an item as trash removes its favorite state.

The Trash modifier key can be changed in the configuration.

Favorite and Trash Storage

Favorite and trash selections are stored as text files in the BepInEx config directory.

  • HexQuickStackStorage.favorites.txt stores favorited item types
  • HexQuickStackStorage.junk.txt stores item types marked as trash

Each file contains the internal item names used by the mod, with one item type per line.

These files are loaded when the mod starts and updated automatically whenever you favorite, unfavorite, mark, or unmark an item type.

Deleting either file will clear the corresponding saved selections the next time the mod starts.

Container Ownership

Quick Stack and chest sorting only work with containers created by your player.

Naturally generated and world containers are ignored.

Multiplayer

  • Client-side mod
  • Does not currently support ServerSync
  • Has not been tested in multiplayer
  • Quick Stack and chest sorting only use containers created by your player

Configuration

Configuration options include:

  • Quick Stack search radius
  • Quick Stack keyboard shortcut
  • Trash modifier key
  • Favorite modifier key
  • Automatic chest sorting

The Trash and Favorite modifier keys cannot use the same key.

Support

Discord support:

https://discord.gg/wU2FXD94v4

Source

GitHub:

https://github.com/guillenjgg/valheim-hex-quick-stack-store

CHANGELOG

Changelog

v1.4.3

Added

  • Compiled against Valheim v1.0.16.

Changed

  • Changed the container sort button from "Sort" to "S".
  • Repositioned the container sort button to prevent it from overlapping the inventory grid.

v1.4.2

Added

  • Added a tooltip explaining Quick Stack is unavailable while a container is open.

Fixed

  • Fixed the Quick Stack keyboard shortcut not working while movement or other unrelated keys are held.
  • Quick Stack is now disabled while a container is open to avoid conflicting with the container's Place Stacks action.

v1.4.1

Added

  • Compiled against Valheim v1.0.14.

Fixed

  • Fixed Accessible container access mode allowing Quick Stack to use world-generated containers.
  • World-generated containers are now excluded using Valheim's player-placed container detection.
  • Fixed compatibility with custom container mods that use Valheim's Place Stacks functionality.
  • Fixed the container Sort button appearing on unsupported custom container inventories.

v1.4.0

Added

  • ServerSync integration.
  • Configuration option to auto stack trophies.

v1.3.0

Added

  • Added a confirmation dialog before deleting items.
  • Added a configurable option to enable or disable delete confirmation.
  • Added a "Don't show this confirmation again" checkbox to the delete confirmation dialog.
  • Added a confirmation message when items are successfully deleted.

Changed

  • The delete confirmation dialog can be dragged to reposition it.
  • Delete confirmation is skipped when it has been disabled through the configuration or confirmation dialog.
  • Item deletion messages are now displayed in the center of the screen.
  • The "Items Deleted" message is only shown when at least one item was actually deleted.

v1.2.0

Added

  • Added configurable container access modes for Quick Stack.
  • Added CharacterOwned mode to only Quick Stack into containers created by the current character.
  • Added Accessible mode to Quick Stack into any public container the character can access.

Changed

  • Quick Stack now respects ward-protected container access.
  • Quick Stack now supports stacking into carts.
  • The vanilla Place Stacks and hold-to-stack actions now respect favorited items.

Fixed

  • Fixed Quick Stack failing on containers due to Valheim's restricted container access methods.
  • Fixed Quick Stack failing on carts due to restricted ZNetView access.
  • Fixed Quick Stack failing when targeting an already-open container.
  • Fixed Place Stacks moving favorited items into containers.

v1.1.0

Added

  • Compiled with Valheim v1.0.12.
  • Added the ability to favorite item types.
  • Favorited items are protected from quick stacking, sorting, and deletion.
  • Favorite selections persist between game sessions.
  • Added a configurable Favorite modifier key.
  • Added a Sort button to opened chests.
  • Added an option to automatically sort chests when opened.

Changed

  • Auto chest sorting is now a configuration option and is disabled by default.
  • Quick Stack keyboard shortcut now works while the inventory is open.
  • Inventory sorting now consolidates compatible item stacks.
  • Hotbar, equipped, and favorited items remain in their current slots when sorting.

Fixed

  • Fixed chest auto-sorting not respecting its configuration setting.
  • Fixed Quick Stack not working while the inventory is open.
  • Fixed Quick Stack not partially transferring an item stack when a chest only has room for part of the stack.

v1.0.1

Fixed

  • You can now delete items marked as trash by clicking the trash icon.

v1.0.0

  • Initial release