Don't Starve Together

Don't Starve Together

31 ratings
DJPaul's Sort Inventory Modifiable Keys
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.187 MB
19 Jul, 2018 @ 10:28pm
24 Feb, 2024 @ 3:59pm
4 Change Notes ( view )

Subscribe to download
DJPaul's Sort Inventory Modifiable Keys

Description
Press - or F1 to sort your inventory. Now configurable with up to 4 active keys.

That's it.

Applies to all players on your server.





PSA for owners of dedicated servers:

This is a sample of how your modoverrides.lua section might look like if written correctly.
Use upper case for the values and use the value false to disable a keygroup.
Check modinfo.lua for possible values for each keygroup

--Sort Inventory ["workshop-1445690391"]={ configuration_options={ keybind_function="KEY_F10", keybind_control="KEY_RCTRL", keybind_special="KEY_PERIOD", keybind_letters="KEY_Z", }, enabled=true },
31 Comments
NVZ 9 May @ 6:49am 
Rabbit King Cudgel can cause the module to crash.
prod-o 30 Nov, 2024 @ 2:23pm 
In Beta branch atm. Sorting with the new Wortox Soul Jar crashes the game. Mod likely attempts to sort the Soul jar into the backpack, but it can't be moved in.
Vecho 29 Sep, 2024 @ 4:50pm 
Thanks for the reply. I would be looking forward to update.

I used to play in DS and get used to automatically sorting. It is really convenient this way.
Cooptimus Prime  [author] 29 Sep, 2024 @ 11:46am 
@Vecho I can probably make the server do a periodic call for auto sorting (chosen based on a config option). Will apply to all players though since this mod is server-side.

@Sir_Wun Not entirely sure. My idea is maybe have an editable config file that each player can choose to modify to their preferences, but I can't promise this will work/ I'll be able to figure it out. I think right now it's probably doing it alphabetically in those categories, but I haven't looked at this mod in a very long time and wasn't the original author, just the patcher
Vecho 29 Sep, 2024 @ 5:02am 
Is it possible to sort automatically instead of manually? I tired after pressing to sort frequently.
Sir_Wun 1 Sep, 2024 @ 6:42am 
Can i modify the order of tools / resources myself?
I see i can modify which resources are in the priority list, but how can i select the order?
(For example twigs at the end does not seem logic, i want them next to cut grass)
Rey 24 May, 2024 @ 1:14pm 
lantern doesnt sort into the light when the torch does
Kain Morgen  [author] 29 Jan, 2024 @ 8:39am 
@Cooptimus Prime
Found multiple copies of folders named 1445690391 and tested the following change to assign the '-' key (for me thats left from right-shift).
GLOBAL.TheInput:AddKeyDownHandler(92, function()
GLOBAL.TheInput:AddKeyDownHandler( 45 , function()

A folder for simple ingame-hosted DST
...\Steam\steamapps\workshop\content\322330\1445690391
Changes here will have effect on servers hosted from within the game client.
My inventory in a ingame-hosted world got sorted after pressing '-'.

Several folders for dedicated server hosting - one folder copy for each master cluster (Cluster_1, Cluster_2, etc)
...\Steam\steamapps\common\Don't Starve Together Dedicated Server\ugc_mods\Cluster_1\Master\content\322330\1445690391
Changes here don't appear to have effect here. My inventory in this dedicated server remained unsorted after pressing '-'.

I either can't override your code for dedicated servers OR the if-condition lines 386-393 might be broken.
Kain Morgen  [author] 29 Jan, 2024 @ 12:34am 
@Cooptimus Prime

Would be great If you can make the keybind configurable again.

If you want to have a look at a german Keyboard while doing so, please google for QWERTZ Keyboard DE Layout.
We switch out Y and Z and do lots of symbols Like parentheses, ., ?,! etc different as Well as having Umlauts (ä, ö, ü) like Wigfrid.
Cooptimus Prime  [author] 28 Jan, 2024 @ 10:01am 
@Kain Morgen

Definitely still sorts stuff. I was using it recently. As for your specific issues, I actually have no idea, but I'm rewriting the system for Throwable Weapons and will be learning about changing and adding keybindings, so I could then potentially make this configurable on the client to address specific keyboard issues.

Seems like every key I choose has issues haha