Cunning fox Posted September 26, 2020 Share Posted September 26, 2020 (edited) Most of the HUD mods replace the HUD's textures themselves. That means that every time Klei updates the HUD's textures, those mods'll have to be updated too. This guide will help you make a mod that changes HUD without replacing textures! Download my HUD skins library from here Copy hud_skins.lua file to your mod's folder. In your modmain.lua file paste this line: modimport("hud_skins.lua") Create a scripts folder with img_override_data.lua file in it. Place this code in it: return { } And that's it! The setup is done. But we still need to tell the lib what textures are we using. Let's say that we want to replace a texture named clock_hand.tex from images/hud.xml atlas with our image named somename.tex with atlas images/somename.xml. To do this, you need to modify img_override_data file like this: return { ["images/hud.xml"] = -- Atlas to replace textures in { ["clock_hand.tex"] = -- Texture that we're replacing { "images/somename.xml", -- Atlas with image that we're replacing clock_hand with "somename.tex" -- Texture that we're replacing clock_hand with }, }, } And that's it, your mod should work just fine now!P.S. This lib automatically adds all of your textures referenced in img_override_data file to assets, so you don't need to manually add them.Mods that use this lib: https://steamcommunity.com/sharedfiles/filedetails/?id=2238885511 https://steamcommunity.com/sharedfiles/filedetails/?id=2329943377 Edited February 19, 2021 by Cunning fox 10 1 Link to comment Share on other sites More sharing options...
Baguettes Posted November 17, 2020 Share Posted November 17, 2020 @Cunning fox How do I know the names of the textures? I'm not a programmer, but I'm somehow into changing textures of my favorite games. And are there ways to locate original textures in the game files? I need them as a base. Thanks in advance! Link to comment Share on other sites More sharing options...
Cunning fox Posted November 19, 2020 Author Share Posted November 19, 2020 On 11/18/2020 at 2:09 AM, Baguettes said: @Cunning fox How do I know the names of the textures? I'm not a programmer, but I'm somehow into changing textures of my favorite games. And are there ways to locate original textures in the game files? I need them as a base. Thanks in advance! I have a script on python that splits all textures for me, but you can use this: 1 Link to comment 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