Don't Starve

Don't Starve

Save Equipment Slots
126 Comments
LenneDalben 1 Jul @ 6:57pm 
Thanks for sharing this
It seems to work fine with the standard vanilla slots, but it doesn't work with the extra backpack slots. I have the additional backpack slots set to Separated in the config, and it would have been neat to have the tools there. At least I can just set the tools to the front of the standard vanilla slots, and keep other stuff in the extra backpack slots.
dani  [author] 18 Jul, 2024 @ 7:49am 
Hi Tropical. Glad to hear it was probably another mod, I wouldn't want my mod to cause any crashes. As for fixing other people's outdated mods, sorry that is not something I enjoy. I hope the original authors can fix it or perhaps someone else can create a working fork. All the best to you!
Tropical (CRI) 17 Jul, 2024 @ 7:03pm 
Hi dani, thank you for your kind response. Unfortunately, it was honestly some very weird crashes that completely kill 3 of my runs when entering caves. I had about 10 mods enable, most where updated besides this and other 3. I even had (Crash check mod enable) and last crash just told me "Game crash itself) lol So I was just suspicious about the 3 "outdated ones" since I could not figured out which one was causing problems. Though, I think the one that was causing issues was machine range check. Anyhow, sorry for trouble dani. If I may. Would you be interesting in taking a look at two mods that are abandon? I think they are quality of life ones, if is worth your time and effort that is. Otherwise, thank you very much for ur time and appreciation. :steamthumbsup:
dani  [author] 17 Jul, 2024 @ 12:40pm 
Hi Tropical. Is there anything specific that crashes because of my mod? I haven't touched this in years but just did a very quick test in Hamlet with the latest update and the basics seem to work. There isn't much I can do unless you have a scenario that crashes now. The mod is essentially a single Lua file, it is not compiled to a specific version of the game or anything. I cannot "update it to the latest version of DS" unless something has broken. Please check the game log files, it should show some info when your game crashes. If "SaveEquipmentSlots" is not part of the stack trace then it's probably something else. I would also expect more bug reports since this mod has been downloaded quite a bit. If it is, let me know the details and I'll try to have a look.
Tropical (CRI) 16 Jul, 2024 @ 12:57am 
Hi, dani. I was wondering if you could update this quality of life mod to the latest DS version? The game was last updated in April, 2023. I just had a few crashes. This one is outdated out of all of my mods. Thank you :)
Not Luzeria 16 Jun, 2024 @ 9:52am 
This mod seems to not work with backpacks
SirRiffsAlot 1 Apr, 2023 @ 5:31am 
Late to the party, but this is like an absolute must for games like these where ever second counts. Thanks dude!
Puriren 3 Apr, 2021 @ 10:12pm 
Thank you, this mod is really comfortable :sans:
johnsir 5 Jan, 2021 @ 1:04pm 
It might have to be done with the other slots all being full, but having a backpack for it to go into. Or it could just be that it somehow doesn't work because I'm using a controller, even though that shouldn't change anything. Items don't seem to bind to backpack slots also.

It could also just be this world hates me more than I thought, and causes problems to happen to ONLY me with no explanation yet again.
dani  [author] 5 Jan, 2021 @ 12:38am 
johnsir,

I am trying to understand which is why I asked to specify the exact steps. The first time you listed them it was amiguous. I read your second description and followed them:

1) Have Axe + Spear saved to the same slot. I use slot 3.
2) Have Spear in slot 3. Axe is on the ground.
3) Pick up the Axe. It goes to first empty slot (Spear blocks 3). Axe icon is still above slot 3.
4) Drop Spear.
5) Drop Axe
6) Pickup Axe. It goes to slot 3.

For me it all works as intended. What does not work for you, which step? Video would also be good, yes.
johnsir 4 Jan, 2021 @ 6:30pm 
The issue is more based off of how the inventory management differs in DS to DST, making it a lot less convenient for playing on controller, which I use. But that appears to be what most of the mod IS, when you pick something up it's supposed to go back to the slot that it was bound to.

It infuriates me when it just goes to some random slot because that just happened to be the last place it was in even though it has its own specified slot.

Unless you really try to understand how I've described twice how to replicate the issue, the only way you can reproduce it (it's extremely easy to reproduce btw) is if I were to somehow record a video and show you, which could have a voiceover of me flipping out when it doesn't work if you want.
johnsir 4 Jan, 2021 @ 6:26pm 
I don't think you see the issue, and honestly I didn't expect you to even care about comments though so I didn't care, just couldn't stand it and had to say something.

What I'm talking about is that the mod will "forget" an item slot if it was being used by something else, (such as you pick up an axe with a spear and axe bound to the same slot, with the spear in the slot) and will no longer go to that slot when even you make sure it's empty. (if you drop it and then pick it up again) And I meant how bad the issue of how much worse it works was when I said "how bad it is".
dani  [author] 4 Jan, 2021 @ 3:57am 
[1/2]
hi johnsir,

I can tell you are unhappy, but please keep comments constructive. That is, don't use all caps stuff like "BAD". Anyways, your feedback is appreciated. Keep in mind the DST version is a direct port of this one and they share a lot of code. Any differences in behavior are not intended. If anything DST should be worse as I have less control over the game (no server mod).

I would like to reproduce the issue you described, so please be more explicit in the steps. If I do it like this, I cannot reproduce.

My inventorybar is completely empty and I equip a Pickaxe so my hands are full. Then:

1) Pick up Axe, this binds it to slot 1.
2) Drop Axe, pick up Spear. This also binds Spear to slot 1.
3) Drop Spear (is that what you meant by "drop it"?)
4) Pick up Spear (goes back to slot 1)
5) Move Spear to slot 2 (this binds it to slot 2)
6) Drop Spear
7) Pick up Spear (it will go to slot 2, as it's bound there).
dani  [author] 4 Jan, 2021 @ 3:57am 
[2/2]
This all works as intended. Tried multiple variations but don't see any issues. You probably have a slightly different use case. Please describe using explicit equiment (I use Axe & Spear) and slots (I use 1 & 2) then I will try to reproduce.

An item should always go back to its slot, unless it is already occupied by another item that is also bound there. So if you have both Axe & Spear bound to slot 1 and Spear is already in slot 1 and you pick up an Axe, Axe will go to the first empty slot it can find and not to slot 1.

Thanks!
johnsir 2 Jan, 2021 @ 7:49pm 
This mod doesn't work NEARLY as good as the Don't Starve Together version, which annoys the HECK out of me. The main difference in how bad it is can be tested by anyone, simply bind an item to any slot, bind something else in that slot, drop it, pick it up, move the item out of the slot, then drop and pick it up again. It will NOT go back to its slot that it is SHOWN to always go in. That really peeves me a LOT, I'd unsubscribe right now if I didn't realize the mod DOES actually work for when you're equipping, unequipping, and swapping out tools for example.
onebunchmugen 7 Oct, 2020 @ 8:45am 
this mod is amazing and works great in hamlet. Now i cant even think about playing without this. Absolute time saver. Game is more FLUID now. :steamhappy:
对巴丁犯过错 2 May, 2020 @ 3:11pm 
omfg thx for the mod, saved my ocd!
月空 16 Feb, 2020 @ 12:47am 
保存设备项的库存槽,并确保它们始终返回到保存的槽。

如果保存的插槽已占用,则将自动重新排列项目以腾出空间。
会怕的蜗牛 5 Feb, 2020 @ 12:51am 
大佬翻译一下
加大大户 7 Dec, 2019 @ 1:57am 
朕的皇家翻译官呢
dani  [author] 25 Nov, 2019 @ 10:43am 
Thanks Bigspoon, glad you like it :)!
RobotDad 21 Nov, 2019 @ 7:54am 
Excellent Mod! Works great, tons of options which are well documented, exactly what I wanted, thanks Dani.
dani  [author] 27 Oct, 2019 @ 8:07am 
@revienne Perhaps yes, but cannot promise anything the development of this mod is mostly stopped and just fixing bugs if new ones appear :)
anton 27 Oct, 2019 @ 7:40am 
@dani
Ok, thanks for the explanation.
But maybe cycle through all items would be good idea for next mod? ;)
dani  [author] 27 Oct, 2019 @ 2:02am 
@revienne
Thanks for the giphy, very useful! That's actually how it's supposed to work. The current equipped item will go back to the slot, and whichever item is in the slot will then be equipped. The third item is in another slot at the moment and is indeed not part of the switch. It was not meant as a cycle through all items.
anton 26 Oct, 2019 @ 1:26pm 
@dani
It's working like this: https://giphy.com/gifs/WpV27q6APNejqDagMC/fullscreen

In my opinion it should switch with all items attached to сell, but maybe it should work like that working now and it's more correct than I think
dani  [author] 26 Oct, 2019 @ 9:43am 
@revienne
About the backpack, I'm sorry that functionality will not be added. I have looked at it in the past but mainly the UI will be ackward (where to place icons). Also I am not really developing this mod as I think it is feature complete and I'm not playing the game myself anymore either.

As for your bug; I don't really follow. Please provide a bit more detail. What happens exactly, and what did you expect to happen?
anton 26 Oct, 2019 @ 4:31am 
BUG (maybe)
When I have 3 saved slots (3 hats for example) in one cell and switch it by right-click on current equiped hat, switch working only with 2 hats.
(Sorry for my English, but I guess you have understood me)
anton 26 Oct, 2019 @ 4:09am 
Very good, but can you add the ability to save slots in backpack ?
h-z 21 Aug, 2019 @ 12:01pm 
Thank you, the new update seems to work fine!
dani  [author] 21 Aug, 2019 @ 2:38am 
@h-z I uploaded a new version that contains a new config option to disable the click action. Note that the icons are still "in the way" on the boat so it is not optimal but now clicking them would not do anything.
h-z 21 Aug, 2019 @ 12:46am 
I mean, more options will never hurt, right?
Misclicks happen, and actually this can be partial solution to boat problem, since the biggest problem is not just visual overlap, but misclicks on item icons.
dani  [author] 20 Aug, 2019 @ 1:02pm 
@h-z. Ah, sorry you did mention cargoboat and I checked a regular boat. I see now what you mean, and indeed I am afraid there is not a good solution for that problem unfortunately.

I'll think about your suggestion of making the icons unclickable when saving is disabled, certainly is easy to add but I have personally never accidently clicked on the icons ever in all my playthroughs so not sure if it's really that necessary :-) Anyway will probably add it soon as a config option and then I'll post an update here.
h-z 20 Aug, 2019 @ 12:23pm 
First, about icons toggle:
I want it because you can setup items the way you want, disable saving to slots, and then accidentaly click on item icon and remove that item from binded slot, forcing you to reenable saving and put item in that slot again.
However, thinking about it, I think it would be better and more logical to just make icons unclickable when saving is disabled.

Now about boat overlap:
You can't see overlap because you're using boat without container inventory, try "cargoboat" or "encrustedboat" and you will see.
dani  [author] 20 Aug, 2019 @ 11:35am 
@h-z, I just checked for the boat overlap issue. I can only see a small overlap for the last slot of the inventory when multiple items are saved there. Is that what you mean, or do you see something else. I put a screenshot here: https://imgur.com/a/f7OcBJD
I do not see a clean way to fix that overlap like you already concluded yourself.

As for your request, I also worked on that and I can add it fairly easily so I can upload that soon. First I'll wait for a bit more explanation of why you want to hide the icons when disabled.
dani  [author] 20 Aug, 2019 @ 11:06am 
Hi h-z, I'm also not sure if anything can be done about it unfortunately.

Adding the option to hide icons when disabled would be possible, although I'm not really sure about it. Can you explain a bit more about the use case? Are you usually playing with save slots disabled and would prefer a more clean UI? Do keep in mind that the disabled state only disables saving items to slots, it still returns items to their saved slots etc, so removing the UI in that case would also remove the ability to clear an item's slot. I could also add a toggle for the icons if you just want to get rid of the icons when playing but still want to be able to change saved item slots.
h-z 17 Aug, 2019 @ 3:12am 
I'm not sure what can be done with it, I mean, you can move either item icons or boat inventory out of the way, but I think it will look odd.
Also after playing with your mod for some time I have feature request, can you add an option for Disable Save Slots Toggle so that it also automatically hides icons when in disabled state, and shows them back when enabled?
dani  [author] 17 Aug, 2019 @ 1:36am 
Hi h-z, thanks for your report! I am a bit busy with other things lately but I will check this out soon-ish to see if there's anything that I can do about that issue.
h-z 12 Aug, 2019 @ 4:45am 
Hello, nice mod, however I have found a small oversight and decided to report it.
When on cargo boat (or any boat with inventory for items I suppose), item icons from this mod overlap with boat's inventory. Not sure what can be done with it though...
dani  [author] 17 Jun, 2019 @ 9:32am 
@Da Rogue eskimo [2/2]
- As for saving all items; yes, if you enable that and literally save all your items that will obviously lead to a giant mountain of icons. That's not really recommended anyway and will not really be useful imo. That option is meant to be used together with "disable save slots toggle", so a user can enable it, save some items he wants, then disable the save slots behavior again.

I'm not sure when I can actually look into the backpack feature and your other requests (about controller stuff) but when I do I'll post an update here.
dani  [author] 17 Jun, 2019 @ 9:32am 
@Da Rogue eskimo [1/2]

- As for opacity 0%: you can simply set "Show slot icons" to disabled in that case, that will hide the icons completely. Opacity 0% would actually still render them but since they would be invisible that would not make sense, which is why 0% is not included.
- Clearing slots with controller should be possible with LB+RB at the same time when managing the inventory and highlighting a slot.
- Saving slots when moving items is also how it works with keyboard/mouse, that is intended that way. I'm not sure if that'll be changed. However, I suppose the "Disable Save Slots Toggle" needs a controller key at some point, cause then you can just enable/disable the saving slots (or "favorite" as you call it), and that way control when items will be saved (favorited).
Da Rogue Omnath 16 Jun, 2019 @ 3:31pm 
Of course these are only requests/suggestions, and I recognize that I know nothing about the coding that would be required for any of it. As a result, if this is too burdensome, or even unfeasible, no pressure about and I could understand not going forward with it.

Otherwise, thanks even for the response! I appreciate the feedback.
Da Rogue Omnath 16 Jun, 2019 @ 3:31pm 
The other main thing I ran into was when I picked up and moved items with the controller in the inventory menu (again by pressing RT then selecting and moving an item with A) it seemed to auto-favorite the item slot. One alternative I thought of might be certain assign/reset buttons in the paused inventory menu. For instance, when in the inventory menu when it pauses the game, when hovering over the item, the player has to option of "saving" the item currently in slot. That way it would not favorite any items in any slots unless done specifically. Saving could be maybe left on the D-Pad, as there is no command that does anything there (only A to pick up, X to pick up half, etc.). Then if you did that, you could also make right on D-Pad be the reset option rather than LB+RB if you wanted to. That would potentially work really well with the other ideas of the icons only showing up when the inventory menu is pulled up, but then it raises the problem of the backpack UI slots as you said.
Da Rogue Omnath 16 Jun, 2019 @ 3:31pm 
With respect to opacity, I used the option that saved equipment slots to all items. However, when moving items around with controller it was saving a lot of different items to some of my miscellaneous slots that I personally save anything to. As a result, the icons for some slots reached up beyond half of the screen. I planned on just using a workaround of setting the opacity to just 0%, but the minimum is 5%. While it is almost completely invisible other than in total darkness, I was wondering if a 0% option could be implemented so that way I could just go by memory. Or maybe an option of the icons being invisible during play and just showing up when the player pulls up the inventory menu (pressing Right Trigger pauses the game and enlarges the inventory and backpack slots to move things around).
Da Rogue Omnath 16 Jun, 2019 @ 3:30pm 
@dani

Thanks for the response! I know that it is a fairly specific request for a niche group, so I definitely understand if the costs outweigh the benefits for it. And if the main issue falls into where the UI is, I'd understand if the trade-off for getting backpack save slots would be not having icons for them.

Additionally, if you do decide to go forward and include it in an update for the future, would it also be possible to include (1) an opacity of 0% option for icons, and (2) a specific controller command for assigning and clearing favorited slots?
dani  [author] 16 Jun, 2019 @ 3:48am 
@Da Rogue eskimo It would indeed be possible to save backpack slots. I would have to rework a couple things in the code but nothing too major. It would indeed also be hard UI-wise to show the icons somewhere. I might have a look at this this month but cannot promise if or when it'll be included in the mod. Though I completely understand your situation and the request makes sense so I will have a look at it soon for sure.
Da Rogue Omnath 15 Jun, 2019 @ 5:58pm 
Do you think you could optionally add the ability to add favorites for the backpack?

I love the idea behind this mod, as I try to organize certain essentials into very specific slots. However, I use controller and also naturally organize my tools in my backpack (keeping weapons, armor, and healing in inventory) since the backpack slots are just right below.

I know you mentioned the UI issue of where to put icons if backpack slots are used, but if I just change the opacity so that none of the icons are visible, could you then allow backpack slots to be favorited? I'm reluctant to train myself out of how I keep all of my items, let alone how I prioritize tools when getting attacked (I think tools are least valuable if you need to swap to armor and run).

Would that be feasible?
Sir Murica 17 May, 2019 @ 12:08pm 
@dani thanks!!
dani  [author] 16 May, 2019 @ 11:30am 
@Murica Hamlet indeed has introduced a second resource file for images, for some reason. That's why the Stalking Stick (and presumably some other items) didn't have an icon in my mod.

I just released v1.5.2 which fixes the problem. If you run into anything else let me know :)
dani  [author] 16 May, 2019 @ 10:00am 
@Murica I just did some quick tests. It appears the item is in fact recognized as equipment and saved accordingly, but for some reason it does not render a preview image above the slot. So the UI doesn't show you it is saved. However, when you equip another item the stick is always moved back to it's original slot like it should.

Perhaps something was changed regarding images in Hamlet only equipment. This mod even works fine with custom weapons added by mods so I'm a bit puzzled why a built-in icon does not work. I do expect this can be fixed fairly easily I just have to see what they did differently about this one compared to all other icons :)