Barotrauma

Barotrauma

458 ratings
Sort Container UI
2
3
5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
19.386 KB
20 Nov, 2022 @ 9:36am
22 Dec, 2022 @ 4:45am
13 Change Notes ( view )

Subscribe to download
Sort Container UI

Description
Client-side Lua Script to add an UI to containers which has sort functionality.

There are 5 buttons in total:
  1. Sort by Alphabet, sort every item in the container by alphabetical order
  2. Sort by Category
  3. Merge Stacks, if possible, merge identical items together.
  4. Toggle Recursive Sort: If an item inside this container is a container itself, and this option is on, then the inside of that item and containers deeper inside will all be sorted.
  5. Toggle TreatContainersAsTheirFirstItem: If this option is on, all items in this container that are containers themselves will be viewed by the sorting algorithm as its first item. i.e. A Storage Container filled with Iron will be sorted as if it's an "Iron" item instead of "Storage Container", and a "Stun Baton" filled with a "Battery Cell" will be sorted as if it's a Battery Cell.

There is also a search bar to search for items.

Installation Notes:
  1. Install the client Lua For Barotrauma
  2. Subscribe to this mod
  3. If the in-game console does not automatically output running information, enter cl_reloadlua on the console
  4. (You don't need to enable this content package; once you complete the steps above, the script will run automatically)

Disable instructions:
  1. Unsubscribe or delete this folder: %LocalAppData%\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\2891181800

credits:
Idea originally proposed by Cicada
Many code snippets taken from Better Fabricator UI by whosyourdaddy
70 Comments
Pee Warmer 16 Dec, 2023 @ 8:34am 
Don't use it unless you want your game to crash
horse 19 Oct, 2023 @ 7:24am 
Some of the functonality of this mod has been interigated into vanilla. Take a peek?
Lasagner 30 Jul, 2023 @ 2:54pm 
I can't get it to sort into or between storage containers inside of a locker/other standing storage container entity
Gofarovich 29 Jul, 2023 @ 4:52pm 
"Merge Stacks" does not work with uranium fuel rods.
Create "voids filling" and "auto-filtering" buttons.
This mod is fantastic! Thanks
TheRedThread 15 Jul, 2023 @ 2:08am 
Is this mod compatible with mod which make stack size like 128x with lua ? Cauz for me and my friends it doesn't work and bring an error like "maximum packet size exceeded" .
SerSearo 17 Jun, 2023 @ 5:39pm 
Feature request; similar to Carryonaire's

Make the "Merge Stacks" button usable from a crate you are currently holding to merge any possible items inside it and filling storage containers with the same items in a cabinet; iirc the mod is already able to recognize the storage containers with what's in their first slot.
RageAgainstTheillegalAliens 6 Jun, 2023 @ 1:35am 
@Carryonnaire supposedly this mod does what you are looking for...

i have seen it around but im only gonna try it today.

https://steamproxy.com/sharedfiles/filedetails/?source=Facepunch.Steamworks&id=2564376484
Carryonnaire 13 May, 2023 @ 11:07am 
Feature request: put same items into container
If a container only has iron, then it will collect all iron from cabinet and put into that container (if enough space).
Toggled options:
- also put items from inventory
- also from tool belt
- also from pockets (medic outfit)
喵斯卡✯鸢桜沫忆 14 Apr, 2023 @ 6:21pm 
UI is malfunctioning and taking effect
☠Millennium☠ 8 Apr, 2023 @ 2:31pm 
All windows in general.