饥荒联机版

饥荒联机版

57 个评价
Synchronized Food Values
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
132.024 KB
2022 年 5 月 10 日 下午 1:40
2022 年 8 月 15 日 下午 12:11
8 项改动说明 ( 查看 )

订阅以下载
Synchronized Food Values

在 Ziro2k 的 1 个合集中
DST Minus
7 件物品
描述
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 条留言
Dabbiks 5 月 20 日 下午 5:25 
Can you make this work with Uncompromising mode? UM applies sanity and health over time and its not detected
Nor'Mal Hu'Man 5 月 11 日 下午 5:49 
what does it mean, it's both server and client side? do all players need the mod or not?
RanDumb 2024 年 8 月 6 日 下午 10:23 
does this work with the insight mod?
Nen☆niN 2023 年 6 月 26 日 上午 9:00 
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 2022 年 9 月 8 日 下午 6:54 
will there be wanda support?
Ziro2k  [作者] 2022 年 8 月 15 日 下午 12:16 
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 2022 年 7 月 30 日 下午 3:22 
Any possibility for controller support? Works fine with a mouse, but doesn't show values when using a controller.
Hasan 2022 年 7 月 25 日 上午 12:31 
so is this server side only?
Ziro2k  [作者] 2022 年 7 月 17 日 上午 8:30 
@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 2022 年 7 月 17 日 上午 8:16 
it doesn't display values for me