recipe.lua AllRecipes[slug].sortkey local function SortByKey(a, b) return a.sortkey < b.sortkey end
DJPaul's Sort Inventory for Don't Starve Together
Automatically stacks and sorts your inventory into a sensible order.
Download the latest release and extract it into \Steam\SteamApps\common\Don't Starve Together Beta\mods\
, or find it in the Steam Workshop.
Press the g
key to sort your inventory.
When you sort your inventory, the mod looks at every item you have, and decides what kind of thing it is. For example, is it a weapon, is it a tool, is it food, and so on. Similar items are then sorted into groups and ordered, where possible, by some relevant value for that group (e.g. weapons are sorted by damage, tools sorted by durability, and food is sorted by how much it feeds or heals you).
The item groups themselves are then sorted into an optimum order determined by playtesting. Finally, each item is then re-inserted into your inventory in its new position. Where possible, items are stacked together to save space.
- Fix: Sort the Mining Lantern into the Lights group.
- Fix: Sort Pitchfork into the Tools group (was Weapons).
- New: Add "Fun Mode" (disable/enable to sort key sound effect).
- Fix: Don't handle sort key press when in chat, props ShineSong.
- New: Add Nitre to Resources category.
- New: When sorting, where possible, items are now stacked together to save space.
- Fix: Prevent backpacks being overfilled (the items were being dropped to the floor).
- New: Connecting to a server running this mod will now download the mod if you do not already have it.
- Fix: Crash when trying to sort inventory in main menu.
- New: Added mod logo.
- First release!
- New: Rocks are sorted into the resources category.
- New: Backpack support.
- New: Setting to control what kind of items are sorted into your backpack.
- New: Setting to change the keybind for the sort key (defaults to "g").
- New: More item categories (resources, armour).
- Fix: Misc. code improvements.
- New: Mod option to set the maximum number of torches sorted.
- New: Don't sort anything if the player is a ghost.
- Fix: Now works on game clients. :)
- Fix: Minor misc. code improvements.
- New: Gears are sorted with other food.
- New: Foods are sorted by their health bonus (instead of hunger) if player is seriously injured.
- Fix: Code has been tidied up.
- Fix: Manylots improvements to inventory sorting logic.
- Fix: Tools are always sorted before Weapons.
- Initial release for private testing.
Copyright © 2015, Paul Gibbs.
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.
Find this mod on Github at https://github.com/paulgibbs/DJPaul-Sort-Inventory