Doodle Monster Posted October 24, 2025 Share Posted October 24, 2025 Hi! so i've been wanting to do this for awhile now and only recently gave a crack at it. I wanted to have my character Wramp's sanity ui replaced with another color. So I started looking around to see if making a custom badge was possible and followed a tutorial on how to get it to work. right now i'm stuck on: [00:00:31]: [string "scripts/mainfunctions.lua"]:1626: attempt to call global 'SetGlobalErrorWidget' (a nil value) And here's what my modmain looks like with the function that adds the widget --METER STARTS HERE wramp_shadowbadge = require "widgets/wramp_shadowbadge" AddClassPostConstruct("widgets/statusdisplays", function(self) if self.owner.prefab ~= 'wramp' then return end self.name = self:AddChild(wramp_shadowbadge(self.owner)) self.name:SetPosition(-125, 75, 0) --Best to change these all to zero and start the game to see where it is. Then change the numbers one by one to get a better idea of what each number does. end) --METER ENDS I'm pretty sure it's missing some nessesary parts. Any help would be really awesome! My character IS on the workshop now if anyone wants to try him Link to comment https://forums.kleientertainment.com/forums/topic/168494-help-with-createing-custom-sanity-badge/ Share on other sites More sharing options...
Doodle Monster Posted October 27, 2025 Author Share Posted October 27, 2025 nevermind, I got the badge working! I just don't know how to replace sanity yet but I think Wanda's code should help with that. if anyone has any pointers on how I would go about it, I'd really appreciate it. Link to comment https://forums.kleientertainment.com/forums/topic/168494-help-with-createing-custom-sanity-badge/#findComment-1840831 Share on other sites More sharing options...
Doodle Monster Posted October 27, 2025 Author Share Posted October 27, 2025 So i've got my resource meter to gain and lower properly; the issue is I have no idea how to give it a texture. I'm going to do a little testing to see If I can figure something out. if anyone has any resources on adding UI Icons please send them my way! Link to comment https://forums.kleientertainment.com/forums/topic/168494-help-with-createing-custom-sanity-badge/#findComment-1840974 Share on other sites More sharing options...
Doodle Monster Posted October 27, 2025 Author Share Posted October 27, 2025 Still trying to figure out how to get my icon anim to show ingame. no sucess so far but atleast the meter functions Link to comment https://forums.kleientertainment.com/forums/topic/168494-help-with-createing-custom-sanity-badge/#findComment-1840992 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