Mods / Sortable Storage

Category: #Storage #Tweak
Author: SpearAndFang
Side: Both
Created: Apr 4th at 3:31 AM
Last modified: 3 days ago
Downloads: 2413
Follow Unfollow 34

Put vanilla chests, labeled chests, trunks, baskets, and storage vessels back into the crafting crid to convert them into a sortable version of themselves.  The sortable version has a sort button (upper right) which will sort that inventory by display name, and merge similar stacks.  See the splash screen for clarification.

Now with Carry Capacity (link) and Extra Chests (link) support!

Heads up: You can only convert one regular chest into its sortable variant at a time, because two or more chests in one crafting grid stack references the vanilla trunk recipe.  Also, you can remove the sort functionality by simply putting that storage container back in the crafting grid.

Note:  This mod was only ever intended for "casual clickers" like myself.  If you're looking for a feature rich inventory management/sorting system, please check out Xandu's incredible Inventory Tweaks (link) mod.

Version For Game version Downloads Release date Changelog Download
v1.1.0 48 3 days ago Show
v1.0.3 742 Jun 12th at 9:11 PM Show
v1.0.2 769 Apr 25th at 2:01 AM Show
v1.0.1 687 Apr 10th at 12:29 AM Show
v1.0.0 167 Apr 4th at 3:45 AM Show

15 Comments (oldest first | newest first)

SpearAndFang, 1 hour ago

Devestatio but...but...that's what the previous version is there for (v1.0.3).  Other than that, the two versions are identical.  I'm confused.

Devestatio, 4 hours ago

Any chance we could get the mod support on 1.16 as well please? I know that many, like myself only play the release versions, not the pre versions, and 1.17 is still going to be a while before release.

SpearAndFang, 1 day ago

Devestatio Correct

Devestatio, 2 days ago

"Now with Carry Capacity (link) and Extra Chests (link) support...and a brand spankin' new sort button!"

I am guessing since I didn't see the 1.16 file updated, this update only applies to 1.17?

SpearAndFang, 3 days ago

Updated for 1.17.x

SpearAndFang, Jun 15th at 6:05 PM

This mod only works with vanilla (unmodded) storage, extra chests, and carry capacity.  No other mods, sorry.

BlueFuryDragon, Jun 15th at 4:15 AM

Does this not work with Vanilla Varients?

SpearAndFang, Jun 12th at 9:11 PM

New version up - thanks again gaborszollosy, Lohn

Lohn, Jun 8th at 7:40 PM

SpearAndFang - Ahh, that makes sense as to why their code directs to a folder on their desktop, then. It's probably from when they tested the code and a leftover path. I tried the other mod by Xandu and it doesn't crash - probably because it sorts via IDs, and something about your sorting method might be different somehow? I wouldn't know, but I figured I'd mention that if it helps fix your mod. :) It's great to have the UI and light-weight sorting this mod gives.

SpearAndFang, Jun 8th at 4:19 PM

@Lohn - Thanks, I'll see if I can recreate that.  FWIW, that user location is not mine, no.  "Nexrem" contributed some code to the vanilla game a while back and now his name appears in a lot of crash logs for some reason.

Lohn, Jun 8th at 8:11 AM

So, I just encountered a crash when clicking sort on my chest. I'll post the crash error, but I notice it's refering to a user location that might be yours, rather than anything on my PC which might be part of the reason; not entirely sure. It seems it couldn't sort an item, maybe from being modded or some other issue - but it sorts stuff like ores fine up until now. I'll attach a picture of the inventory I'm sorting, too.

Crash log:

Game Version: v1.16.5 (Stable)
Loaded Mods: armordurability2@1.0.0, ancienttools@1.4.3, backpackpackplus@1.0.3, betterarchery@3.0.0, bettercrates@1.4.1, betterpoultice@1.0.0, buzzwords@1.0.0, cavecontent@1.0.1, composter@1.0.4, cottagewindows@1.0.8, craftables@1.1.1, cralutweaks@1.0.1, detonate@1.0.0, extrachests@1.5.2, fulldrop@1.0.0, reducedarmornegatives@1.0.2, mineralinguistics@1.0.0, moredrifterloot@1.5.4, moredrygrass@0.2.0, necessaries@1.1.2, nomolding@2.0.0, nooffhandhunger@1.0.0, orepulverizer@1.1.1, preservationmod@1.0.0, quickerbarrel@1.1.0, simpleelevator@1.3.0, sortablestorage@1.0.2, stackables@2.0.5, locustmod@2.3.5, usefulscrap@2.0.2, viesblocks@2.0.4, viescraftmachines@1.17.1, visibleore@1.0.1, game@1.16.5, captureanimals@2.1.1, carrycapacity@0.6.5, easylightlevels@1.0.2, extraoverlays@1.1.0, fancyplanters@1.0.5, farmlanddropssoil@1.4.0, hudclock@2.7.0, tpnet@1.5.1, creative@1.16.5, survival@1.16.5, xlib@0.6.9-rc.1, xskills@0.6.9-rc.1
2022-06-08 3:58:41 AM: Critical error occurred
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at SortableStorage.ModSystem.GuiDialogSortableBlockEntityInventory.CollapseStacks(SortedDictionary`2 dictionary)
at SortableStorage.ModSystem.GuiDialogSortableBlockEntityInventory.OnSortClick(Int32 num)
at SortableStorage.ModSystem.GuiElementIconItemGrid.OnMouseDownOnElement(ICoreClientAPI api, MouseEvent args)
at Vintagestory.API.Client.GuiElement.OnMouseDown(ICoreClientAPI api, MouseEvent mouse)
at Vintagestory.API.Client.GuiComposer.OnMouseDown(MouseEvent mouseArgs)
at Vintagestory.API.Client.GuiDialog.OnMouseDown(MouseEvent args)
at Vintagestory.Client.NoObf.GuiManager.OnMouseDown(MouseEvent args)
at Vintagestory.Client.NoObf.ClientMain.OnMouseDown(MouseEvent args)
at Vintagestory.Client.NoObf.ClientPlatformWindows.Mouse_ButtonDown(Object sender, MouseButtonEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.Platform.Windows.WinGLNative.WindowProcedure(IntPtr handle, WindowMessage message, IntPtr wParam, IntPtr lParam) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\Platform\Windows\WinGLNative.cs:line 792
at OpenTK.Platform.Windows.Functions.DispatchMessage(MSG& msg)
at OpenTK.Platform.Windows.WinGLNative.ProcessEvents() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\Platform\Windows\WinGLNative.cs:line 1551
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 369
at _7zNxEbLnuy6Bq08TdMSIu9ZbrKf._vvUTh6X5xLRNnjtX2xSE7z8yMeh(_SUsdg1ytavxaRcNNkhfDrODGhGP , String[] )
at _yA4PJazdKq1OMm8H6js6v5AhQB._vvUTh6X5xLRNnjtX2xSE7z8yMeh(ThreadStart )

Picture of current items I'm sorting:

Let me know if anything else could help figure it out. :) I love this mod. I do have the chests stacked on top of each other currently, and sorted the bottom chest - but I don't think that would make a difference. (They're trunks)

SpearAndFang, Jun 7th at 2:16 PM

@gaborszollosy - there appears to be a rather odd thing going on with charcoal specifically.  But it appears that if you target the top of the chest rather than the front you can write on it,  That doesn't seem to be an issue at all for other things like chalk.  Weird.  I'll investigate.  Thanks!

gaborszollosy, Jun 6th at 6:10 AM

Great mod! Thanks for this. One question though: how do I write the label on the container once it's placed? The charcoal just stacks in front of it for me. Thanks!

SpearAndFang, Apr 25th at 2:03 AM

I've done it.  It's the latest version.  And thanks!


GruntyThrst, Apr 22nd at 5:54 AM

Wonderful and simple QoL mod! Would it be possible to support Dauron's "Extra Chests" mod as well? I want that extra storage space but I hate giving up the sorting and automatic stack compression I get with the sorting chests.

delete edit