Don't Starve Together

Don't Starve Together

Chest Memory
69 Comments
Yururu Well 8 Mar @ 2:46pm 
Have been suffering crashes upon opening chests built before I entered a server.
мразь 1 Mar @ 8:40pm 
nice addition for me collection of cheat mods
_faust_ 5 Jan @ 3:41am 
very good client mod save me from a lot of headache, think u so much modder :)
SpaceBug 25 Nov, 2024 @ 2:22pm 
I have a question. You think you can make a client mod that shows you Beefalo stats? As far as I know they are always the same so just adding values after each food item and removing value as time goes on (also adding domestication of course) sounds possible. I would do it myself but unfortunately I don't know how to make mods.
Cheggf 10 Jun, 2024 @ 3:32pm 
I'm not going to follow your directions. I'm going to navigate to the client_saves folder manually because I know where its secrets lie... My file is only 1,235 KB. You won the filesize competition :steamsad:

Anyways thanks for the workaround, but needing to manually go in there and delete the file periodically is just going to be really annoying so I'm keeping the mod disabled until someone goes on a JoJo's Bizarre Adventure to wake the mod author up from his cryostasis and convinces him to put out a better fix for it.
bjanmanjs 10 Jun, 2024 @ 12:34pm 
I believe this same issue was causing me to have considerably longer loading screens when leaving the caves, loading screens during which I could be killed by monsters without having a chance to do anything; I got licked to death by frogs from a frog rain once, loading in with 10 health left and not having enough time to run away.

I did some brief testing, and it seems that the lagspikes only occur on the surface, and not in the caves. I saw that there's a separate file below the massive one called "workshop-2188383679-_caves", suggesting that there's one list for chests on the surface and one for the caves, with the one for the caves naturally being much smaller since people don't often build chests in caves; for me the file has a size of only 37 KB.

Presumably you'll have to periodically delete both files to "reset" the dawn lagspike back to vanilla levels, with the non-cave file naturally needing to be deleted much more often.
bjanmanjs 10 Jun, 2024 @ 12:34pm 
@loopuleasa
@Raishou
@Chegg Finance

I found a fix for the lagspike issue:

1. Start DST.
2. Click the "Data" button in the main menu.
3. Open the folder called "client_save".
4. Find and delete the file called "workshop-2188383679-".

It'll presumably have an extremely large file size; mine had a size of 1,279 KB.

Note that deleting this file will presumably delete all your chest memory in every server, but that's a small price to pay for making daybreak incredibly smooth.

My assumption is that the mod slowly builds up a list of every chest in every server you've ever played on, and sifts through that list every morning, causing a lag spike that slowly grows in size as you play DST, so the fix is to just delete that list to reset it; the mod'll create a new one with a size of 1 KB.
martosss 19 Apr, 2024 @ 4:39pm 
The mod resets chest memory when there's rain and chests get wet, or it's winter and snow changes chests' appearance. Can you fix that, please?
Cheggf 17 Feb, 2024 @ 8:34pm 
This mod has made me stop playing the game for half a year because I thought my computer was fucked up and freezing my game for 20 seconds every time it transitioned from night into day, but my unparalleled genius intellect has deduced this mod to be the culprit. Please fix! This mod is the #1 best mod on the workshop! I'll pay you! I'll pay you in exposure! I'll tell one (1) of my friends that this mod is good!
Raishou 15 Feb, 2024 @ 11:14am 
I also stopped using because of what loopuleasa said
loopuleasa 28 Jan, 2024 @ 6:21am 
hi sauktux,
I noticed this mod has a ton of "morning lag", even on a fresh server
I died 50 times over the course of a year from morning lag, and I was wondering which mod was most causing this lag. And I disabled mods one by one and it seems this one adds the most lag on some kind of processing action in the morning.

The morning lag trigger is so large I lose control of my char for 5-10 seconds.

Mod is excellent, but wanted to report on this. I have to disable the mod for now.
Banana flavored banana 30 Dec, 2023 @ 2:56pm 
good
Cừu 󰀉 4 Dec, 2023 @ 2:47am 
Crash when open chest
https://pastebin.com/caHadWPM
Cừu 󰀉 4 Dec, 2023 @ 2:36am 
Work yesterday, crash today :steamfacepalm:
Raishou 14 Apr, 2023 @ 3:02pm 
Can something like this be done for bundling wraps? It would be huge for my lack of memory, lol
Anyways, Thx for the mod!
SozaOutsider 11 Feb, 2023 @ 5:22am 
this mod works very well on most of my games... but on the last one in progress, it suddenly started to crash the game as soon as I press the toggle key or sometimes at startup. I don't know what to do, can someone help me?
loopuleasa 4 Oct, 2022 @ 10:04am 
this mod works excellently with the clear HUD mod
if you go in show contents on hover, it is now transparent btw
数字哥 5 Sep, 2022 @ 10:10pm 
This doesn't work for chester
godrax 16 Jun, 2022 @ 5:27am 
Is crashing the game
loopuleasa 14 Apr, 2022 @ 2:13am 
yo, @sauktux, I had an idea:
what about a similar mod called "Bundle Wrap Short Term Memory"
it could use similar code and UI from chest memory, and show bundle contents on hover
loopuleasa 29 Mar, 2022 @ 3:27am 
if you change defaults, maybe add a new screenshot that shows "Hover mode" how it works
loopuleasa 29 Mar, 2022 @ 3:27am 
this mod is literally my favorite client mod
me and my SO were massively sad when finder mod was broken
loopuleasa 29 Mar, 2022 @ 3:25am 
yo sauktux, can the default options be changed for this mod, I feel new players might benefit from a different default experience:

What I suggest and love to use:
Highlight Active Item > True
Highlight Ingredient > True
Display Type > Hover
Icebox Memory > True
Saltbox Memory > True
Peanut Brain 12 Jan, 2022 @ 4:29pm 
excuse me, is it possible to do it with backpack? Similar to finder mod.
I use backpack as chest sometimes.
sauktux  [author] 29 Dec, 2021 @ 6:34am 
In terms of trust, let's imagine a scenario where a player picks up your known Bundled Supplies and then drops what seems to be the same ones. If you're the only one with access to Bundling Wraps then sure, that's the same one, but if you aren't, then the person could have just dropped some other Bundled Supplies.
sauktux  [author] 29 Dec, 2021 @ 6:31am 
@Cheggf Yeah, that sounds plausible. It's not that hard to keep track of the contents if the Bundle Wraps are always in your inventory or if the entities are always loaded. There's just the nuisance of trust for when you "lose sight" of the Bundling Wrap.
Ignoring Bundled Supplies just being gone, only the scenario of stacked Bundled Supplies being unloaded and loaded is where you can't retrieve the memory. This is just the limitation of saving entity data for the client. I think the only possible/effective way to save entity data for the client on unloaded entities is to use the entity's position and prefab. If the entities are stacked on top of each other, their positions are the same, thus you can't differentiate between them.
Cheggf 28 Dec, 2021 @ 6:31pm 
There used to be a client mod which properly tracked what was inside bundling wraps as long as they remained in your inventory. I don't remember if it kept track when you put them in chests, it might have as long as they stayed in that exact slot.

I'm pretty sure it would remember the ones in your inventory just fine even through reconnects like going into caves.
Raishou 28 Dec, 2021 @ 4:32pm 
Wow, thank you for such detailed explanation! Yeah, I imagined that would pose a problem, even going in and out of caves I suppose messes it up. The ones on the ground I usually mark with something to remember but the ones in inventory sometimes give me trouble. I usually play on multiple servers and after a while I will always forget.
sauktux  [author] 28 Dec, 2021 @ 4:32am 
@Dexter Tracking Bundling Wrap contents would require far different methods than tracking a structure's inventory. That's not to say that it isn't impossible, but there are problems for tracking a storage item that can be stacked on itself(Upon reloading the entities through a reconnect or moving out and into the area, it is impossible to know which storage item is which if they're the same item, thus you lose the memory) or placed in storage containers(If it’s the same type of item(eg. Bundled Supplies), it's impossible to know if it's the same one as the one placed in the same slot, i.e. it could’ve been swapped out, rewrapped, etc.). At best, a client-side mod/feature of tracking Bundling Wraps could remember the ones in your inventory, non-stacked ones on the ground and all of this only when YOU wrapped it. Currently Chest Memory doesn't support Bundling Wraps and doesn't have anything to work for Bundling Wraps.
Raishou 27 Dec, 2021 @ 8:51pm 
Can something like this also work for Bundling Wraps?
sauktux  [author] 29 Sep, 2021 @ 8:53am 
@大肚子qq821603923 You can change the widget size via the option "Widget Size" if you feel it's too small. And for the grids, I feel like showing 1 tile wouldn't give you enough information about the contents of the chest. I'd recommend changing your "Display Type" to "Single" if you're getting overwhelmed by too many seperate grids.
大肚子 28 Sep, 2021 @ 5:05am 
Very good mod, but the icons displaying 9 grids at the same time are too small to see clearly. I hope you can add an option to display only the first grid. You can enlarge the icons a little, just like a small wooden card.
大肚子 28 Sep, 2021 @ 5:04am 
非常不错的模组,但是同时显示9个格子的图标太小了,看不清楚,希望可以增加一个只显示第一个格子的选项,可以把图标放大点,就像小木牌一样。
Rabbit 24 Jun, 2021 @ 7:07am 
Hi, is it possible to exclude the drop-down menu when hovering the mouse over the chest? That is, when you pick up any object, only the chest was illuminated and not its contents?
sauktux  [author] 23 May, 2021 @ 4:41am 
@Keller Max Haven't been able to reproduce the issue, but I've changed the cycling method, which should make it not stick to one value. The new cycling method has been pushed to mod version 1.5.
Keller Max 21 May, 2021 @ 5:56am 
Constantly. If i press J, it will disable Chests display with text Chest Widget Display: Disabled.
And after i press J again, it will say the same thing. I spam J and nothing happens, exept this text "Chest Widget Display: Disabled"
sauktux  [author] 21 May, 2021 @ 5:37am 
@Keller Max Does the issue appear consistently? If so, are there any specific steps you do to make it happen?
Keller Max 20 May, 2021 @ 7:03pm 
I can't turn it on after turning it off with J. Unless i go to cave and out
sauktux  [author] 26 Jan, 2021 @ 1:25am 
@joan15901 If you're talking about only showing the squares, which contain your held item, then it is possible to implement that, but I feel like it would look really weird. I don't think it would be useful either as most chests don't have that many item slots(Max non-modded is 12 slots in a Scaled Chest) and a simple glance should be enough to see in which slots the highlighted item is.

If you're talking about not showing squares in general when you're holding an item, then you can just enable the display mode to "Hidden" for that. The "Hidden" display mode is available when the "Toggle Display Type" is set to "All+Hide".
JoanxD 25 Jan, 2021 @ 1:58pm 
Is there a way that the squares of the contents of the chest are not shown but the highlight of the item that is held in hand?
dommy 18 Jan, 2021 @ 6:12am 
Thank you so much! You're the best :steamhappy:
Cheggf 9 Jan, 2021 @ 11:14pm 
Absolutely amazing. This mod will be incredibly useful for whenever anyone other than myself sets up the chest system, and even if the chests are organized so I don't need the help in finding items, this mod will be monumentally useful in tracking items that have been taken. I love the memory you've given it where you can see what the chests were like and when they were like that, it really adds so much more functionality to the mod than just trying to make sense of strangers' messes.
sauktux  [author] 22 Dec, 2020 @ 4:57am 
@Redeven Thanks for the report, but I'm more interested in why the t1[k] or t2[k] values are nil. The function CreateBasicItemInfoForItem should guarantee that all container slots are either empty tables or have some kind of info about an item in that slot. Do the custom container mods add extra container slots under specific conditions after the container has already been built?
Redeven 22 Dec, 2020 @ 3:47am 
The mod crashes with some custom container mods. I could fix it by changing line 53 of scripts/widgets/chestdisplay.lua to

if t1[k] ~= nil and t2[k] ~= nil and not ((t2[k].prefab == t1[k].prefab) and t2[k].stacksize == t1[k].stacksize and t2[k].finiteusespercent == t1[k].finiteusespercent) then

Basically checking for nil values before accessing properties prefab/stacksize/finiteusespercent.
sauktux  [author] 14 Nov, 2020 @ 5:51am 
@Anima mala There shouldn't be any conflict between the mods. The only problem that might happen is highlight colours overwriting one another if you have the "Highlight Active Item" or "Highlight Ingredient" option turned on in my mod.
sauktux  [author] 14 Nov, 2020 @ 5:49am 
@Knowbodie Thanks for the suggestions. I've added your suggested feature in Version 1.4.2 as an option "Highlight Ingredient".
nobody 10 Nov, 2020 @ 11:09pm 
Definitely an underrated mod considering it is client-side, I think most people typically search "finder" instead of this because it has a similar function so maybe adding that into the description can help more people find this when looking for a similar mod.

I do have a suggestion, would you be able to add a feature that highlights chests when hovering over a crafting component? Such as when crafting boards, you can easily find the chests holding logs when hovering over the image of the logs.
sauktux  [author] 20 Sep, 2020 @ 6:38am 
@daleeto Added an option for that in Version 1.3.6.
Diane 20 Sep, 2020 @ 1:58am 
Thanks for the update! It works great but the highlighted widget is a little too big, imo. It'd be nice if we could have the option to select the highlight size like we can with widget.