45 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Quick Stack To Containers
 | |
| 
 | |
| A Barotrauma mod that allows you to quickly stack items from your inventory into containers by pressing the F key.
 | |
| 
 | |
| ## Features
 | |
| 
 | |
| - Press F to quickly stack items from your inventory into containers
 | |
| - Supports stacking into multiple containers in your inventory (backpacks, pouches, toolbelts, etc.)
 | |
| - Prioritizes the main backpack in the bag slot
 | |
| - Items are stacked with matching items in containers when possible
 | |
| - Automatically skips hand slots and diving gear
 | |
| - Provides feedback messages in chat
 | |
| 
 | |
| ## Installation
 | |
| 
 | |
| 1. Place the "QuickStackToBag" folder in your Barotrauma's "LocalMods" directory
 | |
| 2. Enable the mod in the game's mod menu
 | |
| 
 | |
| ## Configuration
 | |
| 
 | |
| You can modify the following settings in the `QuickStackToBag.lua` file:
 | |
| 
 | |
| - `TRIGGER_KEY`: The key to press for quick stacking (default: F)
 | |
| - `BAG_TAGS`: Tags that identify bags/containers
 | |
| - `MAX_ITEMS_TO_PROCESS`: Safety limit to prevent infinite loops
 | |
| - `PREFER_EXISTING_STACKS`: Whether to prefer stacking into existing item stacks
 | |
| - `CHECK_ALL_CONTAINERS`: Check all containers in inventory, not just primary bag slot
 | |
| - `PRIMARY_BAG_SLOT`: Slot number for the primary bag (typically slot 8)
 | |
| - `SKIP_HAND_SLOTS`: Skip hand slots when processing items
 | |
| - `HAND_SLOTS`: Slot numbers for hands (typically slots 6 and 7)
 | |
| - `SKIP_DIVING_GEAR`: Skip diving gear when processing items
 | |
| - `DIVING_GEAR_TAGS`: Tags for diving gear to skip
 | |
| 
 | |
| ## How It Works
 | |
| 
 | |
| When you press F:
 | |
| 1. The mod identifies all containers in your inventory
 | |
| 2. It then checks each item in your inventory (except those in your hands or diving gear)
 | |
| 3. For each item, it tries to stack it into a matching stack in a container
 | |
| 4. If no matching stack is found, it tries to place it in any valid slot
 | |
| 5. Items are moved in order of container priority (main backpack first, then other containers)
 | |
| 
 | |
| ## Credits
 | |
| 
 | |
| Based on the "Press R to Reload" mod structure.  |