Don't Starve Together

Don't Starve Together

Health Info
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
star  [udvikler] 26. sep. 2016 kl. 3:58
Mod Settings
Show Type
This is type of health indicator.
  • Value (default). It shows exact health and maximum health of creature. Example:
    Spider <100 / 100>
  • Percentage. Example:
    Spider <100%>
  • Both - means value and percentage. Example:
    Spider <100 / 100 100%>
  • Variation. This is option for those who like hardcore. It hides a part of information about health. Example:
    Spider <90 (±10%)>

Divier Type
Type of brackets in indicator. Note that DST supports all brackets but DS (single player version) doesn't support some brackets. Examples:
100/100 -100/100- [100/100] (100/100) {100/100} <100/100>

Use Black List
Black List of prefabs. It's enabled by default. It's recommended to use this option, because it improves compatibility. On the other hand some mods can add health to standard objects and you won't see it. For example, some mod may add health to rocks or grass.
Note that there is White List deep in the mod and it's always enabled. It contains all known prefabs with health. Sometimes I update it.
NB: Don't try to change white or black list manually! You can only disable Black List in settings if you like but this is usually not necessary.

Unknown Objects
Automatic detection of unknown objects. More types of objects, less compatibility.
The mod uses game tags system to check whether the necessary the addition of health. Usually it is safe. But if your low quality mod adds known tag not in pristine state, Health Info will crash. That's why there is possibility to turn this option off.
Options:
  • Ignore. 100% compatibility but you won't see health of mod items, mod characters and mod creatures. Also you won't see health of new objects from fresh updates of the game.
  • Players (deafult). The mod will check only "player" tag. Very high compatibility. You will see health of ANY mod character on your server. But very rare low quality character mods may crash client if user chose that character.
  • Creatures. The mod will check only "player", "monster", "animal", "smallcreature", "largecreature" and "epic" tags.
  • All. All known tags will be used, e.g. "chess", "insect", "hostile" etc. Minimum compatibility with bad mods but Health Info will be still compatible with most popular mods in Steam Workshop.

Send Error Reports
You may enable this option so unknown new prefabs will be sent to a web server. Later I will be able to update the mod.

Chance Fluctuation
This option makes sense only if Show Type == Variation.
Health is inaccurate. Maximum health is hidden. You can set value of variation.

Randomize Interval
This option makes sense only if Show Type == Variation.
Interval for generating random health values.
Sidst redigeret af star; 23. aug. 2019 kl. 6:29
< >
Viser 1-1 af 1 kommentarer
star  [udvikler] 26. sep. 2016 kl. 5:28 
For mod creators
Add common tags only in pristine state, please:
inst:AddTag("animal") --------> ADD TAGS HERE inst.entity:SetPristine() --------> NOT HERE! if not TheWorld.ismastersim then return inst end --------> AND NOT HERE!

How to force enable Health Info support
First check black_white_lists.lua. Your prefab may already be there.
Otherwise if your prefab doesn't have common tags, add this line in pristine state:
inst:AddTag("healthinfo")

How to disable Health Info support
If you want to provide your own health interface for the prefab in your mod, add this tag in pristine state:
inst:AddTag("no_healthinfo")
Sidst redigeret af star; 28. dec. 2016 kl. 17:43
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50