ailailou Posted January 15, 2015 Share Posted January 15, 2015 (edited) Good evening fellow dst moders, I'm wondering if it would be a hard task to make a simple mod that hides the HUD during ingame one way or another, such as pressing a key combination. I have no knowledge whatsoever about lua scripting or moding don't starve. What I do know is the console command for hiding the HUD:ThePlayer.HUD:Toggle(1)ThePlayer.HUD:Toggle(0)%(1) <-- hides the HUD%(0) <-- unhides the HUDI remember there being a mod doing what the console commands above do, but the mod was available for vanilla Don't Starve. (workshop link, I plan on testing it to see if it still works) Would anyone be up for the task or at least offer me an idea on how difficult it would be to have such a feature as a mod on the steam workshop? Edited January 15, 2015 by ailailou Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/ Share on other sites More sharing options...
Kzisor Posted January 15, 2015 Share Posted January 15, 2015 (edited) @ailailou, that's pretty simple. Here you go, there isn't an icon for the mod, however, if you want to provide an Icon I will add you to the author and put the icon in it for others to see. Simply press H to turn on or off the HUD. I even uploaded it to the workshop for you to use. http://steamcommunity.com/sharedfiles/filedetails/?id=375509193 Edited January 15, 2015 by Kzisor Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602302 Share on other sites More sharing options...
ailailou Posted January 15, 2015 Author Share Posted January 15, 2015 (edited) Oh my, works like a charm! Thank you! After starting the thread I had a quick glance at the Lua scripting language and the FAQ around here on the mods subforum and after looking through the files you've included in the mod zip I was curious to see if I could add the image icon myself and some other minor details. I included the image for the icon but for it to load in the ingame Mod menu it should have a .tex file and a .xml as well, am I right? So, I did some research around here on the forums and found some tools, I got my hand on the .tex and .xml files, and everything shows up pretty nice in the mod menu. Other stuff I added:forumthread, redirects to this threada short description for the mod -edit- Oh my, it's even already on the Steam Workshop, was about to mention if that would be possible but you were 2 steps ahead of me. I am really thankful @Kzisor! It was really interesting trying to learn some basic lua scripting stuff! Toggle HUD.zip Edited January 15, 2015 by ailailou Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602343 Share on other sites More sharing options...
Kzisor Posted January 15, 2015 Share Posted January 15, 2015 @ailailou, excellent work on the icon, I will get the mod updated at this moment! Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602346 Share on other sites More sharing options...
ailailou Posted January 15, 2015 Author Share Posted January 15, 2015 (edited) Thank you!^^ Oh, and one more thing, which I just couldn't fix myself and I can't tell why it doesn't work. Before replying to the thread I had a second version of the icon with a border so that it would stand out more: made the .tex file and whatnot, and once the mods menu loads I start scrolling down and just before the mod should appear in the list the game crashes. No idea why this happens. The version without borders works fine. Also, I prepared 2 screenshots as well in case you want to add them to the steam workshop. As for the thumbnail in the steam workshop, I saw that some mods have this really nice gif as a preview. So I made a gif as well. Feel free to add them to the steam page if you want to. Toggle HUD (no border).zipToggle HUD (with border).zipScreenshots+Gif.zip Edited January 15, 2015 by ailailou Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602355 Share on other sites More sharing options...
Kzisor Posted January 15, 2015 Share Posted January 15, 2015 @ailailou, the reason the one with the border crashes the game is the image isn't a power of 2. From log.txt file:../mods/Toggle HUD/modicon.tex is 138x138 but compressed textures must have power of 2 dimensions. Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602357 Share on other sites More sharing options...
ailailou Posted January 15, 2015 Author Share Posted January 15, 2015 I have no idea how the .png with the border ended up with that dimension because I was working in the same template in Gimp in which I created the border-less one. Alrighty then, I'm attaching the last version of the mod with the newest and correctly sized icon. I tested it out and it should work. I made the text color the same as the border one, because Steam Workshop has a dark background so only the border was visible in the mod list. Thank you for the the great collaboration @Kzisor!^^ Toggle HUD (last icon version).zip Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602367 Share on other sites More sharing options...
Kzisor Posted January 15, 2015 Share Posted January 15, 2015 @ailailou, You're welcome and thank you for taking your time to put an icon to the mod. I've uploaded it to Klei workshop area and the Steam workshop area with the new icon. Link to comment https://forums.kleientertainment.com/forums/topic/49189-mod-request-hide-interfacehud/#findComment-602371 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now