Don't Starve

Don't Starve

Not enough ratings
One-click into box
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
227.642 KB
13 Oct @ 6:59am
13 Oct @ 11:29am
2 Change Notes ( view )

Subscribe to download
One-click into box

Description
One-click into box module

Introduction
This mod adds a one-click inventory function to the game. The inspiration for this feature comes from the Taxue mod and is now provided as an independent mod, compatible with various container types. The notable feature is its compatibility with the portable cellar by iceamei (https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2972769037), as well as the original refrigerator and wooden chest.



Core Features
- One-click Storage: Press a shortcut key to automatically store items in nearby chests.
- Smart Recognition: Only store items of types already present in the chest.
- Multi-container Support: Handle multiple nearby containers simultaneously.
- Backpack Support: Process items in both the player's inventory and backpack.
- Ground Items: Option to collect items on the ground or not.

Compatibility
- Supported Containers
- Portable Cellar - Fully compatible with the Portable Cellar mod
- Vanilla Chests - Supports the game's original chests
- Vanilla Refrigerators - Supports the game's original refrigerators

Note: This mod does not support Don't Starve Together (Online Version).

Configuration Options
- Key Settings
- Default Key: Z
- Available Keys: R, T, Y, U, G, H, J, Z, X, C, V, B, N, K, L, O, P

Search range
- Optional ranges: 10, 15, 20, 25, 30
- Default value: 20

Function Switches
- Include Ground Items: Whether to collect ground items (Default: Yes)
- Support Portable Cellar: Whether to be compatible with Portable Cellar (Default: Yes)
- Support Vanilla Chests: Whether to be compatible with vanilla chests (Default: Yes)
- Support Vanilla Refrigerators: Whether to be compatible with vanilla refrigerators (Default: Yes)

Usage Method
- Enable the mod: Activate this mod in the game mod menu.
- Configure keys: Set your preferred shortcut keys in the mod configuration.
- Prepare the container: Place at least one item in the container as a "template".
- Trigger the function: Stand near the container and press the configured shortcut key.
- Complete storage: The mod will automatically store matching items in the container.

Storage Logic
- Scan Containers: Search for all valid containers within the specified range
- Identify Templates: Read the existing item types in the container
- Match Items: Search for matching items in the player's inventory, backpack, and on the ground
- Smart Stacking: Prioritize stacking onto existing items, then occupy empty slots
- Feedback Information: Display the operation result through character dialogue

Implementation details

The core functionality of this mod is adapted from the one-click inventory mechanism of the Taxue mod. The main improvements include:

Independent module architecture, not dependent on specific characters

Expand container support and be compatible with the original version container.

Optimize the code structure to enhance maintainability.

Add configuration options to provide a better customization experience.



Update Log
v1.0 (2025-01-13)

- Initial version release
- Core one-click box function implemented
- Supports Portable Cellar, original boxes and refrigerators
- Adds complete configuration options



Original implementation: Taxue module author - Boss Mei

Module Adaptation: One-click Boxing Function Based on Taxue Module

Portable Cellar: Thanks to iceamei's Portable Cellar mod.