Don't Starve Together

Don't Starve Together

DJPaul's Sort Inventory (repost, fix)
70 Comments
Eslorex 12 Apr @ 10:31am 
Fix for Wortox pls.
exactly what i was looking for, thank you
Coisini 6 Jan @ 1:40am 
又开始崩溃了,求求更新
AAA家用心想事成许愿机 26 Sep, 2024 @ 9:21am 
CAN IT WORK?
MEXAH 18 Aug, 2024 @ 2:31pm 
Can you add "Ham Bat" to "food" list? For sort it to the insulated backpack
OctaPuise 12 Jan, 2024 @ 12:39pm 
anybody could fix this?
Reimu 5 Jan, 2024 @ 10:05am 
Does it still work?
Puriren 26 Nov, 2023 @ 1:29am 
:meepstarry::meepstarry::meepstarry::meephappy::meephappy::meephappy:
skillslave 2 May, 2023 @ 12:35am 
가방을 제외한 정렬 버튼이 있으면 좋겠는데 shift + g 라던지
Lunatic 26 Mar, 2023 @ 4:23am 
if an item stack is at the end of a backpack, and i have another stack of the same item, when sorting, the extra stack will be dropped on the floor

it is very annoying
Knuckles5577 8 Jan, 2023 @ 6:02pm 
[00:19:28]: [workshop-2189004162 (Insight)]: A crash has occured.
[00:19:28]: [workshop-2189004162 (Insight)]: Title: WARNING!
[00:19:28]: [workshop-2189004162 (Insight)]: Text: [string "../mods/workshop-2815192618/modmain.lua"]:157: attempt to index local 'item' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-2815192618/modmain.lua:157 in (method) RemoveItem (Lua) <144-182>
../mods/workshop-1462979419/modmain.lua:313 in (upvalue) sortInventory (Lua) <221-375>
../mods/workshop-1462979419/modmain.lua:398 in (field) fn (Lua) <384-408>
scripts/events.lua:46 in (method) HandleEvent (Lua) <42-49>
scripts/input.lua:187 in (method) OnRawKey (Lua) <184-191>
scripts/input.lua:434 in () ? (Lua) <433-435>
Knuckles5577 8 Jan, 2023 @ 6:01pm 
causes a crash with insight
Vision丶紫枫灬 13 Dec, 2022 @ 10:07am 
I don't know English. This is a mechanical translation. There is a problem. The gears will appear between two foods. Obsessive compulsive disorder means that it is very difficult. I hope there is a solution.
superdh 30 May, 2022 @ 8:14am 
With the recent addition of the crafting menu search field; when typing in the text field mods key binds will fire. Is it possible to add additional key binds outside of a-z?
xingmot 30 Jan, 2022 @ 2:14am 
崩溃了,我使用了错误追踪mod,就像另一个人说的,错误追踪mod提示该模组与游戏本体代码冲突。这是错误报告: https://codeshare.io/0gp9rL
Jägermeister 18 Jan, 2022 @ 7:13am 
Did you update the mod to use Kleis latest API which can dynamic calculate weapon damage?
Because the original mod uses outdated api, which cause crashes in some cases when sorting.
Leinad 5 Jan, 2022 @ 10:04am 
So, when I put the torch count to the max (10), the mod will put up to 10 torches in the first slots of the inventory, but the other light items, like the Lantern, Miner hat and Moggles(that are much more useful outside of the early game), still go to the end of the inventory. Maybe they are being classified as misc and going to the end slots because of this, but I'm not sure. Do you think it would be possible to make these light items have more priority in the sorting process?

(Btw, thanks for keeping this really wonderfull mod alive! )
myxal  [author] 5 Jan, 2022 @ 1:22am 
@Leinad - IIRC DJPaul's intention with the light bag was to pick a specific number of light sources to main inventory, this is what the "Preferred torch count" option does. You should be able to achieve what you want by setting this to high value. Does this work for you?
Leinad 4 Jan, 2022 @ 9:39pm 
Hey, myxal! So, I have been using this mod for a while now and something I have noticed is that light items like the Lantern, Miner Hat and Moggles are usually sorted to the backpack when there's a full inventory. I belive it would make more sense for them to be in the main inventory (I normally put light items after weapons and before armor). I even noticed that, in the codes, the light Bag has the most priority, but these items are not going to the expected place. Do you think this is something that could be changed?
33852904 25 Dec, 2021 @ 6:48pm 
Can set a Controller key?
黑网吧枪神 5 Aug, 2021 @ 9:10am 
关闭冰背包然后按排序键会崩
Coisini 28 Feb, 2021 @ 10:52pm 
Used very long time very good use, but recently always collapse, excuse me is how to return a responsibility:steamsad:
DeathBurst 19 Feb, 2021 @ 3:59pm 
@myxal: "To those asking for sorting chests - how exactly do you expect that to work?"

I'm not the original asker, but I also felt the need for that feature today, and here's how I see things.

1) Just sorting the chest content itself is already more valuable than you might think. Having a sensible order between items (instead of the random order in which you stored them), and ensuring that duplicate stacks of the same item are next to each other, that's cool.

2) If we can have interactions between the chest and the player inventory, when an item has a stack in both the chest and the inventory, both stacks should be merged in the same container. I think from inventory to chest is a sensible default, but ideally it could be a toggle option (to chest/to inventory/to smaller stack/to bigger stack).

Hope it helps, and thanks for the super useful mod in any case.

See ya o/
悦下檀莹空人心 6 Feb, 2021 @ 10:05pm 
good
Abyss 3 Jan, 2021 @ 6:45pm 
Awesome mod, has it been updated after the 16 Dec issues :/?
myxal  [author] 16 Dec, 2020 @ 2:28am 
I'll have a look over the weekend (sorry, not using the mod myself anymore).

To those asking for sorting chests - how exactly do you expect that to work?

Sorting only the chest contents (ie not touching the player's inventory) when a chest is opened might be doable, but I don't see how this is worth the effort, unless you're using really huge, modded chests like the Storm Cellar, on a large scale. (I use storm cellar, but rarely have more then 2 per base, and even then it's only used for low-traffic, mostly non-stacked items (clothing, hats, staffs, goodies...).
gosari 16 Dec, 2020 @ 12:03am 
There is an error in this mode after the update. I'm using a translator, so language delivery may not be smooth.
EL REY DE LAS CANTINAS 14 Dec, 2020 @ 7:02am 
Love this mod. But this should work with chests as well
CABBAGE SELLER 94 10 Dec, 2020 @ 11:44am 
Sometimes when sorting inventory , items just drop out , more prominent with full inventory
Eslorex 21 Nov, 2020 @ 5:54am 
make it for chest pls
Zoe 27k 7 Nov, 2020 @ 12:03pm 
can you make it work with chest?
myxal  [author] 25 Sep, 2020 @ 4:17am 
Thanks @󰀃Leonn, merged and publihed.
ICEBERGLOVER 23 Sep, 2020 @ 4:27pm 
As @Love&Peace said, the "resource" recognizer doesn't work when server language is non-English. I put a pull request on your GitHub and fixed the problem. :D
뾰족머리 삼돌이 30 Jun, 2020 @ 1:12pm 
can you make it work with chest?
God Poing 11 Apr, 2020 @ 8:29am 
can you make abigail flower be placed on 1s slot?
Love&Peace 11 Mar, 2020 @ 11:27pm 
Another idea: Could this trouble be caused by Language?
Love&Peace 11 Mar, 2020 @ 11:22pm 
Hi~, I find a question about this mod. I am used to setting the 'store these in backpack' as 'resource'. However, SOMETIMES it does not work: all the resources are still in my item bar while my backpack is empty. Everytime I meet this trouble, I change the setting to 'tools'. Then my ax is move to backpack automatical. So I think the trouble may be only about 'resource'. Do you have any idea? Thank you!
Puriren 16 Feb, 2020 @ 1:04am 
Danke~!!!:steamhappy:
silver lining 10 Feb, 2020 @ 9:46pm 
delete = 127
up = 273
down = 274
right = 275
left = 276
insert = 277
home = 278
end = 279
page_up = 280
page_down = 281
silver lining 10 Feb, 2020 @ 9:44pm 
想要自定义成f1-f12的话, 可以打开workshop-1462979419文件夹, 编辑其中的modinfo.lua文件. 把22行的103改为282(这样就是按F1整理, 283是F2以此类推). 并把第26行改为276(282-6=276).

希望可以使用更多的自定义按键而不只是字母键.
Daxt 22 Sep, 2019 @ 3:10pm 
If my backpack (regular one) is full of items, when I press sort, the additional items of the same class that do not fit in the backpack are dropped. Is this intentional?
Ahimaaz 20 Sep, 2019 @ 11:25pm 
thank you and one thing is that i think the function ItemIsLight, line 60, might has a bug in the return statement in " int.HasTag = "light" " i think it should be "inst:HasTag("light")" and so lantern will get sort :D
klarth 18 Aug, 2019 @ 5:32pm 
Vim pelo magnum of spades hehe xD
Serp 30 Jul, 2019 @ 7:56pm 
ok, thank you, changed the line now to:
local e = TheSim:FindEntities(x, y, z, 20, {"_container"}, {"player", "DECOR", "FX", "NOCLICK" , "INLIMBO", "outofreach"}) or {}
(just found out all containers have this tag, so we can directly look for them)

But I think the FindEntities function will find everything within 20 radius and then checks for the Tags. So the difference is only in what it returns... so in the end it might be faster to have no search tags at all and only do our own checks... hm... But since I'm not sure how it internally works, I will leave it the way above.
myxal  [author] 30 Jul, 2019 @ 11:17am 
Hi Serp. No, no issue observed with FinderMod after removing NOBLOCK tag from exclusions (used with both client-hosted and dedicated). Should be safe.
Serp 29 Jul, 2019 @ 8:44pm 
hi myxal, just wanted to know if you found out sth about the Finder mod and the NOBLOCK Tag you wanted to remove. Is it save to do so? Or did you find another solution / more fixes?
God Poing 28 Jul, 2019 @ 1:40pm 
Im trying to change the key to sort but game wont save the change
myxal  [author] 16 Jul, 2019 @ 1:32am 
@Quintex: Not within the mod/game, sorry. You could probably use one of those tools that maps controller buttons to keyboard keys?
Quintex33 15 Jul, 2019 @ 8:08pm 
Is there any way to configure this mod to work with a controller?
myxal  [author] 26 May, 2019 @ 4:06am 
@kiko, does this happen immediately after starting the game? Also, which backpack are you using? (The candybag is ignored when sorting, you have to put the items in manually)