Don't Starve Together

Don't Starve Together

797 ratings
Save Equipment Slots
2
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
143.323 KB
22 Dec, 2018 @ 6:50am
17 Feb, 2022 @ 2:15pm
26 Change Notes ( view )

Subscribe to download
Save Equipment Slots

Description
No more updates planned
This mod will no longer receive updates.
Only when a critical bug arises I will attempt to fix it.

-----------

Saves the inventory slots of equipment items and makes sure they always return to their saved slot.
If a saved slot is occupied items will be rearranged automatically to make space.

Don't Starve
This mod originally released for Don't Starve and all its expansions, and has since been updated to also support DST.
You can find the Don't Starve version here.

Clear Slots with Controller
To clear a saved slot with a controller press LB + RB at the same time in the inventory management screen when highlighting the slot.

Changelog
See the Change Notes.

The DST version starts at v1.2.0. Versions prior to that were Don't Starve only.

Master Simulation & Client Mode
This mod runs in one of 2 fundamentally different modes depending on the scenario:
  • Master Simulation - This is when you host the game rather than connect to some other host. In this scenario your game has full control over the inventory, and this mod will run pretty much like it did in the original Don't Starve version.
  • Client Mode - Whenever you connect to some other host this mod will run in "Client Mode". This also happens when you are the host but have Caves enabled, as this spawns another server on your machine and your game connects to it. In this mode, you have far less control over the inventory, as all components including the inventory are managed on the host server. Much of the logic had to be implemented in a different way, but this has been done and the modes should behave mostly the same. Below is a list of the limitations in Client Mode.

Client Mode limitations
Below are some things that work differently in Client Mode as we do not have full control like when we run the Master Simulation.
  • Saved slots will not be restored when loading a saved game and have to be reassigned.
    • Note: As of v1.8.2 we will save all current items to their current slots when your character is spawned which should mostly fix this issue. It means sometimes when reloading a game or traveling to caves and back items may be saved to the wrong slot but many times it will be correct. This behavior can be turned off in options.
  • Animations of picked up items will target their original slot as we operate after an item was put in a slot rather than before like in Master Simulation.
  • Some delay due to communicating with server, no different than normal play.

Known Issues
  • None

If you run into anything please let me know :)

Configuration
  • Apply To Items: allows you to save slots of more than just equipment.
    • Equipment (default)
    • Equipment + Food
    • Equipment + Healing (e.g. Healing Salve, Spider Gland)
    • Equipment + Food + Healing
    • All Items (every item in the game)
  • Show Slot Icons: When enabled (default), renders icons of assigned items above their inventory slots.
  • Slot Icon Opacity: Sets the opacity of the slot icons. Default is 75%.
  • Slot Icon Scale: Sets the scale of the slot icons. Default is 75%.
  • Slot Icon Vertical Offset: Increases the vertical offset between the slot icons and their inventory slot. Only added for users of mods that add additional rows of inventory slots (e.g. "60 inventory slots"). Otherwise you probably want to leave it at Default (= right above their inventory slot).
  • Disable Save Slots Toggle: Key combination that will toggle saving slots on/off. When off, picking up items or moving them will not assign/change their slots. This is useful when you only want to save item slots in some scenarios, or only want to save a few specific items and not everything.
    • - none - (default)
    • Control + A through Control + Z
    Please note the hotkey you configure could be in use by the game or another mod as well. Make sure to pick an available one.
  • Save Slots Initial State: The initial state of the save slots behavior (default: On). Only used when a toggle key is configured. If you prefer to by default not save any items, you can set this to Off so you have explicitly turn it On first when you want to use it.
  • Disable Slot Icon Click: Controls when to disable the slot icon click action which would clear an item's saved slot:
    • Never (default): You can always click on a slot icon to clear the item's slot
    • If Save Slots: Off: When Save Slots is toggled off the slot icon click will be disabled.
  • Allow Equip For Space: When enabled (default), this mod is allowed to equip an item to make space for another item. In practice this would only occur when multiple items share a single slot and the slot is blocked. In other cases a blocking item is simply moved to some other slot.
  • Reserve Saved Slots: Controls whether or not slots that have an assigned item will be reserved for their saved items only. This means other items will not be placed there unless done manually by the player:
    • Never (default): Saved slots will never be reserved for their items. This means other items can occupy a saved slot, but will be moved out of the way when a saved item can go there.
    • If Free Slots: Saved slots will only be reserved for their items while there are other free slots available in inventory or backpack.
    • Always: Saved slots will always be reserved for their items. It means saved slots are considered "full" whenever other items are picked up, so will either be empty or contain one of their saved items.
  • DST: Save Items on Spawn: When enabled (default), the slots of all current items in the inventory will be saved when you are spawned. This helps to restore saved slots when an old game is resumed or when traveling back and forth between Caves. Without this option, all saved slots will be cleared because we cannot save any state on the server. This option respects the "Apply To Items" configuration option, so only items that would otherwise be saved will be saved on spawn. This includes the initial spawn.
202 Comments
dani  [author] 18 Jul @ 1:18am 
Thanks GranolaBean, I reported it but no idea if Steam will act on it. I see a couple more copies of my mod actually, mostly some translations. We'll see what happens. I suppose it's pretty obvious which mod is the real one based on ratings and usage so it's no big deal either way but thanks for letting me know.
GranolaBean 16 Jul @ 8:29am 
here is the mod https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3509526995&searchtext=save+equipment+slots+

sorry if im mistaken but their profile seemed sketchy and my game auto crashes when i used it. although it did let me discover your mod which works like a treat
Darkahrii 7 Apr @ 7:28am 
great mod, just wish thermal stones and eye bones were also able to be added
dani  [author] 31 Mar @ 1:04pm 
I believe it never worked on backpacks, it was always intended to work on the main inventory only. The little preview icons above the backpack slots would not really work there either since it's a vertical grid rather than a flat horizontal line. Solvable but I'm fairly certain this mod always ignored the backpack.
kilofmanGAMES 30 Mar @ 2:31pm 
Does it work on backpacks? Cause i remember it used to when i played in the past but after recently playing DST again it doesn't seem to work anymore so i am unsure if its just cause of the mod or a mod conflict.
dani  [author] 30 Mar @ 6:00am 
Hi Vulpin. There is indeed no code to handle your described cause, so item A not moving is intended. That is, equipping item B from slot 1 will indeed not automatically move item A from a random slot back to its saved slot (slot 1). It does sound useful though, if I were still actively developing this mod I probably would add it. However, I have stopped development for a while and unfortunately cannot invest time again to add this feature and at the same time risk introducing some other bugs. Thank you for the feedback though!
Vulpin 29 Mar @ 2:13pm 
Great mod.
I have this scenario: 1. I have a shared slot 1 for item A and B 2. Item A is equipped, item B rests in 1 3. I equip item C from some other slot 4. Item A lands on any free slot 5. I hit '1' on keyboard and item B is now equipped. 6. Item A shall automatically go back to own shared slot 1 but this is not happening - is it a limitation or a bug? I would like to hit '1' again to equip A.
dani  [author] 9 Feb @ 1:06am 
Thanks @m'lag Das, glad you like it!
m'lag Das 8 Feb @ 6:14pm 
Just wanted to say best mod ever. Love it, hate playing without.
Apocalypse004 11 Jan @ 7:05am 
Hi author, awesome mod, super helpful!!!
I'm wondering if its worth it to add a key to clear all saved Slot Icons. Sometimes I find my self having to click multiple stacked slot icons to clear them. If theres a key that clears all slot icon and immediately save the icon with whatever item is currently in that slot, it would be even better. Thanks!