Space Engineers

Space Engineers

Hunting and Food Mechanics (Complex)
Annastasya 27 Apr, 2018 @ 10:43am
Text adjustment request!
Hi there! First let me say that I really love your mod. Ever since I found it, it is a requirement for all my Space Engineering!

In regard to the text display in the HUD I have a couple of small requests if you don't mind. The friends I play with and I have found the text display is somewhat counter-intuitive. For example the HUD shows "Thirst: 100%" which would intuitively mean that you are 100% thirsty. What I have done in my snooping is simply change the HUD display of "Thirsty: " to "Water: ", "Hungry: " to " Food: " and "Fatigue: " to " Rest: " so that it displays as: (Periods used as space holders since the page was ignoring the spaces!)

Water: 100%
.Food: 100%
..Rest: 100%

I know it's maybe a silly thing but it makes more sense for the way you are choosing to display the data. Also, I have moved the displays for Thirst, Hunger and Fatigue up by 0.2 each (+0.05, -0, -0.05 respectively) to prevent overlapping of HUD elements from some of the nicer, newer HUD displays.

I tried to "patch" it in with just the Client.cs file but sadly it will not work as a single file patch and requires the entire mod contents to be included. If you find these adjustments suitable I'd really apreaciate the changes and I think it would make using the mod a little easier for most due to the intuitive nature of the changes. And to be honest I would mutch rather use your mod as you decide to publish it than an edit of my own.

I have the mod linked HERE but it is set to Friends Only as I don't want to make it readily available to others since it is wholey yours. I have sent a friend request so you can view the mod and the changes. The only adjustments were to the Client.cs file as mentioned above (lines 39, 40, 44, 45, 138, 146 and 156)


if (words.Length > 1 && words[1] == "detail") MyAPIGateway.Utilities.ShowMessage("FoodSystem", "Food: " + mPlayerData.hunger + "% Water: " + mPlayerData.thirst + "% Rest: " + mPlayerData.fatigue + "%");
else MyAPIGateway.Utilities.ShowMessage("FoodSystem", "Food: " + Math.Floor(mPlayerData.hunger) + "% Water: " + Math.Floor(mPlayerData.thirst) + "% Rest: "+ Math.Floor(mPlayerData.fatigue)+"%");
...
if (words.Length > 1 && words[1] == "detail") MyAPIGateway.Utilities.ShowMessage("FoodSystem", "Food: " + mPlayerData.hunger + "% Water: " + mPlayerData.thirst + "%");
else MyAPIGateway.Utilities.ShowMessage("FoodSystem", "Food: " + Math.Floor(mPlayerData.hunger) + "% Water: " + Math.Floor(mPlayerData.thirst) + "%");
...
mHud.CreateAndSend(1, (mPlayerData.thirst <= 1) ? 10 : 1000, new Vector2D(-0.98f, +0.05f), "" + ((mPlayerData.fatigue <= 0) ? yellow : grey) + "Water: " + numbercol + Math.Floor(mPlayerData.thirst) + "%");
...
mHud.CreateAndSend(2, (mPlayerData.hunger <= 1) ? 10 : 1000, new Vector2D(-0.98f, -0f), "" + grey + " Food: " + numbercol + Math.Floor(mPlayerData.hunger) + "%");
...
mHud.CreateAndSend(3, 1000, new Vector2D(-0.98f, -0.05f), "" + grey + " Rest: " + numbercol + Math.Floor(mPlayerData.fatigue) + "% ");




Additionally, I have found occasionally the ConfigData.xml in FoodSystem will reset to defaults (maybe from a mod adjustment/update?) which causes fatigue to revert to "false" in the XML file. Other than making it a read only file (which I have done but would like to refrain from since that means it won't update if you change something in its formatting or contents) is there a way to keep the overwriting of this file from happening? I do like using all the complexity that you have put so much effort into creating!


Last edited by Annastasya; 27 Apr, 2018 @ 10:47am