Mods / Sortable Storage

Category: #Storage #Tweak
Author: SpearAndFang
Side: Both
Created: Apr 4th at 3:31 AM
Last modified: Oct 23rd at 2:57 PM
Downloads: 6871
Follow Unfollow 86

Put vanilla chests, labeled chests, trunks, baskets, and storage vessels back into the crafting grid 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 screen shot above for clarification. Includes Carry Capacity and Extra Chests 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 mod.

Italian translation courtesy of Yota.  Thanks Yota!



Version For Game version Downloads Release date Changelog Download
v1.6.0 1054 Oct 23rd at 2:57 PM Show SortableStorage160.zip
v1.5.0 1369 Aug 13th at 5:55 PM Show SortableStorage150.zip
v1.4.0 381 Jul 19th at 3:53 AM Show SortableStorage140.zip
v1.3.0 142 Jul 15th at 2:01 AM Show SortableStorage130.zip
v1.2.0 150 Jul 5th at 11:47 PM Show SortableStorage120.zip
v1.1.0 118 Jul 2nd at 5:16 AM Show SortableStorage110.zip
v1.0.3 1689 Jun 12th at 9:11 PM Show SortableStorage103.zip
v1.0.2 1002 Apr 25th at 2:01 AM Show SortableStorage102.zip
v1.0.1 743 Apr 10th at 12:29 AM Show SortableStorage1.0.1.zip
v1.0.0 223 Apr 4th at 3:45 AM Show SortableStorage1.0.0.zip

23 Comments (oldest first | newest first)

💬 Mendall, Nov 1st at 5:02 PM

SpearAndFang thanks for the info,  with that in mind I think ill remake all of my copper chests so I can use this.

not to worried about a backup though I colllected all this crap once I can do it again if it disapears.

💬 SpearAndFang, Oct 25th at 4:48 AM

@Mendall - Agreed.  This mod will work properly with extra chests if you start using both at the same time, or add extra chests afterwards.  If you add this mod after you already have some extra chests placed in the world, you'll have to break those seemingly broken chests (which will dump their contents) and then place them again.

Regardless, make a backup before you add/remove any storage type mods.  Or any mods really  ;)

💬 Mendall, Oct 24th at 6:24 PM

be careful with this one if you run a lot of mods. I installed this and all my copper chests from the more chests mod changed to comman chests and could not be opened at all. luckily removeing it put everything right.

full disclosure I use an unusualy large amount of mods so its no telling what it was conflicting with.

💬 SpearAndFang, Oct 9th at 7:01 AM

@MIghtyGooga I cannot do that, so sorry!

💬 MIghtyGooga, Oct 8th at 9:23 PM

Any chance wyou can add compatibility with WoodenChests mod? The one that allows you to build all wood types chests?

💬 SpearAndFang, Jul 15th at 2:03 AM

Released v1.3.0 which is a required update for people using Vintage Story 1.17.pre.4.
EDIT: Use v1.4.0 for v1.17.0-pre.5

💬 SpearAndFang, Jul 6th at 6:58 AM

Devestatio I did add support for Carry Capacity and Extra Chests back in v1.0.3 and tested both aok under 1.16.5.  But I've heard that 1.16 can be a little unreliable when it comes to applying such patches.  Nobody has reported that it doesn't work so I can only assume that it does.  shrug.  And yes, there is no support for other modded chests, just vanilla and Extra Chests.

💬 Devestatio, Jul 6th at 6:30 AM

@SpearAndFang I understand that 1.0.3 is for 1.16, but the mod support for Carry Capacity and Extra chests was an update you only added on the 1.17 version, at least that's what you said before, and based on the file date, as well as the fact that the sort button doesn't show up on extra chests (on the v1.0.3 for 1.16 file), also confirms the lack of support on the modded chests, unless there is some kind of config option I am not aware of?

💬 SpearAndFang, Jul 5th at 8:41 PM

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, Jul 5th at 6:07 PM

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, Jul 4th at 2:00 AM

Devestatio Correct

💬 Devestatio, Jul 3rd at 2:59 PM

"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, Jul 2nd at 5:18 AM

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: imgur.com/a/HKq1iya

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

💬 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.

(edit comment delete)