Don't Starve Together

Don't Starve Together

55 ratings
Synchronized Food Values
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
132.024 KB
May 10, 2022 @ 1:40pm
Aug 15, 2022 @ 12:11pm
8 Change Notes ( view )

Subscribe to download
Synchronized Food Values

In 1 collection by Ziro2k
DST Minus
7 items
Description
Another food values mod?
This mod, like many others before it, adds visible stat values when mousing over food items that show how much hunger, sanity, and health they restore when eaten. Positive values are shown in green, and negative values are shown in red, like so:



Most mods with a similar function are purely client-side, which has its advantages, but Synchronized Food Values is both a client and server mod, with three goals:
  • Calculate food values dynamically and synchronize them between server and clients so there is no mismatch between the tooltip and the actual value when eaten.
  • Maintain compatibility with current and future characters that have food value modifiers (Warly, Wurt, Wortox, Wormwood) as well as favorite foods.
  • Maintain compatibility with mods that introduce new foods, modify existing foods, or give food value modifiers to new or existing characters.

The intention is to be as dynamic as possible- restoration amounts are calculated by the server using the same methods that are used when it's actually eaten, instead of hardcoding a predetermined set of values. For example, food values will update for Warly depending on the foods he has eaten recently:




What this mod doesn't do...
Synchronized Food Values is not as robust as something like Ryuu's Item Info - it only includes food tooltip values for hunger, sanity, and health restoration. I generally think that the game does a decent job at communicating statistics like food perish time, item durability, etc. through the interface, but it is severely lacking when it comes to showing what the food will actually do when eaten. This UI issue is exacerbated by the inclusion of characters with food modifiers, favorite foods, and mods (you shouldn't need the wiki and a calculator to figure out if you should eat a bowl of meatballs).


Compatibility
With the way this mod is implemented, it should be compatible with other mods that modify food values, add new foods, or add characters with food modifiers in the same vein as Wurt, Wortox, Warly, or Wormwood. Incompatibility may result if the mod in question makes changes to the "eater" component or bypasses the standard food calculations completely. This mod will also likely be incompatible with other mods that add tool tips to food items.


NOTE: DST Minus API is required for this mod to work. View its workshop page for more info.
17 Comments
Dabbiks May 20 @ 5:25pm 
Can you make this work with Uncompromising mode? UM applies sanity and health over time and its not detected
Nor'Mal Hu'Man May 11 @ 5:49pm 
what does it mean, it's both server and client side? do all players need the mod or not?
RanDumb Aug 6, 2024 @ 10:23pm 
does this work with the insight mod?
Nen☆niN Jun 26, 2023 @ 9:00am 
I have encountered a really annoying bug. Hovering over anything in a fridge and then walking away from the fridge to make it automatically close causes the values from this mod to be eternally hovering over the mouse. The only way to fix it is to rehost.
cheri Sep 8, 2022 @ 6:54pm 
will there be wanda support?
Ziro2k  [author] Aug 15, 2022 @ 12:16pm 
Servers without caves and the Don't Starve Alone mod are now supported.

Controller support is on my radar but probably not any time soon. I've never actually used a controller with Don't Starve so I'd need to familiarize myself with how the game works in that state before I could even try.
SSyl Jul 30, 2022 @ 3:22pm 
Any possibility for controller support? Works fine with a mouse, but doesn't show values when using a controller.
Hasan Jul 25, 2022 @ 12:31am 
so is this server side only?
Ziro2k  [author] Jul 17, 2022 @ 8:30am 
@Easyist

Are you playing on a server without caves or using Don't Starve Alone? Unfortunately this mod doesn't support either of those for now, just a standard server with caves. They cause the game to run in a hybrid server/client mode that isn't supported with the way I do my network code.
Easyist Jul 17, 2022 @ 8:16am 
it doesn't display values for me