Project Zomboid

Project Zomboid

56 ratings
Quick Sort
6
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
30.822 KB
11 Jul, 2020 @ 9:08pm
14 Jul, 2020 @ 12:38am
3 Change Notes ( view )

Subscribe to download
Quick Sort

Description
Adds a Quick Sort option to items in your inventory/bags.

NOTE: This mod hasn't been tested by me beyond build 40.43.

When used on a single item, it will search explored containers within 10 squares (items like Medkits and other similar containers are ignored) for ones that contain the item you're Quick Sorting. If containers with the item are found, it will transfer all non-favorited, non-equipped items from the same source inventory to those containers. This functionality was inspired by the Terraria "Quick Stack to Nearby Chests" button, which I have missed dearly.

More Details/Features:
- It is possible to queue multiple "Quick Sort" actions back to back to quickly sort large amounts of items.
- Multiple containers will be used if multiple containers are nearby that contain the item, but one container cannot fit all of the items being sorted.
- "From the same source" inventory means if you, for example, have a Book in both your main inventory and a backpack, and you use Quick Sort on the one in your main inventory, the one in your backpack will not be transferred. This applies vice-versa as well.
- Using Quick Sort on an item in a backpack (or any container you access in your inventory) will first transfer the item to your main inventory, and then to the container.


Disclaimers:
- "Explored containers" means that you should have to have seen the inventory of the container before your character "knows" what items are there. The aim of this is to avoid being able to search for items in unexplored containers by using one you already have, without having to really look around. This seems to work, but it has not been tested long term and I'm not 100% sure on the mechanics of this.


Known Issues:
- Depending on the closest adjacent/open tile to a container, your character might deposit items through a wall sometimes. I might try to fix this at some point in the future but for now it seems Good Enough TM

Workshop ID: 2163270729
Mod ID: RPQuickSort
25 Comments
Bad Cop 5 Sep, 2023 @ 3:36am 
HOW DO I USE IT
Robob27  [author] 29 Aug, 2021 @ 3:47pm 
Hey folks! Based on the advice from Hikka.exe, I finally created an updated version of the mod that appears to work on build 41. Just in case it breaks for previous builds, I published it separately. It can be found here:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2588721141

Thanks again Hikka.exe for diagnosing that for me. Making that change seemed to fix things up right away.
Nextia 29 Aug, 2021 @ 8:49am 
Throwing an error on load on 41.53, not sure if it's causing any problems while in game though
onebunchmugen 14 May, 2021 @ 3:45am 
i have an OCD and if this is working on 41.50 then you are god send to me. I waste so much time on organizing stuff so much that my character gets depressed all the time because of my obsessive inventory management. If you accept any suggestions i would give you one and it will solve very crucial problem for OCD people of Zomboid there is an "unpack" mod in workshop and with only one key stroke mod unpacks everything to nearby containers according to their categories however alot of people are using mods and their custom items are badly categorized. So when you hit that unpack button sometime hell may break lose. Your mod is specialized on individual items and thats fucckking wonderful. I was wondering if you could implement quick sort button that sorts everything to nearby containers for ıwbum 41.50. Did i say u are god send my friend:steamhappy:
Hikka.exe 8 Oct, 2020 @ 2:50pm 
Change shared to client in build 41.
Robob27  [author] 17 Jul, 2020 @ 8:46am 
@Stick2TheShadows hmmm, I wonder if it has to do with the fact that I had 40.43 installed, then installed IWBUMS without completely uninstalling? I will do a test today completely uninstalling 40.43, install IWBUMS and see if I can replicate.
Stickoslav(e) 17 Jul, 2020 @ 7:59am 
It's a super fresh install, totally vanilla, just this mod installed. I'm rendered clueless.
Stickoslav(e) 17 Jul, 2020 @ 7:58am 
Ok, so i did a fresh install on another PC, installed this mod, and here's what i've come to. I'm still getting that red error box while launching the game, on the main menu screen. And after i started a new save, i didn't even get the "Quick sort" prompt at all (no errors showed up while creating a new save, only once, when launching PZ). Here's a full log [pastebin.com]. ISInventoryTransferAction shows up twice here, first time in the exception, second time here:
LOG : Lua, 1594996675185> Loading: media/lua/client/TimedActions/ISInventoryTransferAction.lua
star 17 Jul, 2020 @ 4:02am 
Useful :)
Stickoslav(e) 16 Jul, 2020 @ 10:30pm 
P.s. - i've tried it both on existing save (disabling mods via "More..."->"Mods" button) and on a new save.