So yesterday I made my own hudplayerhealth changes and one of them was an animated background for the health_over_bg.vtf file. It worked perfectly when I tested it on cp_badlands with bots. However on casual, it doesn't seem to work, it's only the default health_over_bg.vtf file. Is there a way to fix it? Cheers.
It's blocked by sv_pure, there might be a way to preload it, but I'm not 100% sure. You could maybe try and use the main menu preload workaround.
Move the file to materials/vgui/replay/thumbnails and make a VMT for it (copy the original) and point your hudplayerhealth image to the changed path.
The image should now work with sv_pure 2 without preloading.
The image should now work with sv_pure 2 without preloading.
WiethoofdMove the file to materials/vgui/replay/thumbnails and make a VMT for it (copy the original) and point your hudplayerhealth image to the changed path.
The image should now work with sv_pure 2 without preloading.
I'll give this a shot I'll see if it works.
The image should now work with sv_pure 2 without preloading.[/quote]
I'll give this a shot I'll see if it works.
WiethoofdMove the file to materials/vgui/replay/thumbnails and make a VMT for it (copy the original) and point your hudplayerhealth image to the changed path.
The image should now work with sv_pure 2 without preloading.
Hmm I dunno, currently this is what it looks like let me know if I did it correctly because it doesn't seem to work at the moment.
The image should now work with sv_pure 2 without preloading.[/quote]
Hmm I dunno, currently this is what it looks like let me know if I did it correctly because it doesn't seem to work at the moment. [img]https://imgur.com/a/6vVi4He[/img]
ObamaGamingcurrently this is what it looks like
https://imgur.com/a/6vVi4He.png
Did you also extract the .vmt with the VTF in the new folder when you moved it?
[img]https://imgur.com/a/6vVi4He.png[/img][/quote]
Did you also extract [url=http://wiethoofd.info/other/health_over_bg.vmt]the .vmt[/url] with the VTF in the new folder when you moved it?
WiethoofdObamaGamingcurrently this is what it looks likeDid you also extract the .vmt with the VTF in the new folder when you moved it?
https://imgur.com/a/6vVi4He.png
I did move the VMT and VTF inside of my hud's folders. But looks like the VMT you sent me doesn't have the same directory.
[img]https://imgur.com/a/6vVi4He.png[/img][/quote]
Did you also extract [url=http://wiethoofd.info/other/health_over_bg.vmt]the .vmt[/url] with the VTF in the new folder when you moved it?[/quote]
I did move the VMT and VTF inside of my hud's folders. But looks like the VMT you sent me doesn't have the same directory.
I just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.
WiethoofdI just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.
Heres the thing, do I have to put all my things inside of the tf directory or inside of tf/custom/myhud/materials/vgui/replay/thumbnails ?
Heres the thing, do I have to put all my things inside of the tf directory or inside of tf/custom/myhud/materials/vgui/replay/thumbnails ?
You should have at least the following:
/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vmt // fixed path to vtf
/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vtf // custom bg image
/tf/custom/yourhud/resource/ui/hudplayerhealth.res // modified hud file
/tf/custom/yourhud/info.vdf // hud { ui_version 3 }
In theory the above should work.
[code]/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vmt // fixed path to vtf
/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vtf // custom bg image
/tf/custom/yourhud/resource/ui/hudplayerhealth.res // modified hud file
/tf/custom/yourhud/info.vdf // hud { ui_version 3 }[/code]
In theory the above should work.
Alright that's what I needed to know, however would the vmt and hudplayerhealth.res directory be materials/vgui/replay/thumbnails/health_over_bg or /vgui/replay/thumbnails/health_over_bg?
WiethoofdYou should have at least the following:In theory the above should work./tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vmt // fixed path to vtf /tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vtf // custom bg image /tf/custom/yourhud/resource/ui/hudplayerhealth.res // modified hud file /tf/custom/yourhud/info.vdf // hud { ui_version 3 }
Okay I've done it, currently, my VMT looks like this
"UnlitGeneric"
{
"$translucent" "1"
"$baseTexture" "vgui\replay\thumbnails\health_over_bg"
"$alpha" "1"
"$vertexalpha" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
"$ignorez" "1"
"%keywords" "tf"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$basetexture"
"animatedtextureframenumvar" "$frame"
"animatedtextureframerate" "15"
}
}
}
And my hudplayerhealth.res looks like this
"PlayerStatusHealthImageBG"
{
"ControlName" "ImagePanel"
"fieldName" "PlayerStatusHealthImageBG"
"xpos" "73"
"xpos_minmode" "58"
"ypos" "33"
"zpos" "3"
"wide" "0"
"tall" "0"
"visible" "1"
"enabled" "1"
"image" "../vgui/replay/thumbnails/health_over_bg"
"scaleImage" "1"
}
[code]/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vmt // fixed path to vtf
/tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vtf // custom bg image
/tf/custom/yourhud/resource/ui/hudplayerhealth.res // modified hud file
/tf/custom/yourhud/info.vdf // hud { ui_version 3 }[/code]
In theory the above should work.[/quote]
Okay I've done it, currently, my VMT looks like this
"UnlitGeneric"
{
"$translucent" "1"
"$baseTexture" "vgui\replay\thumbnails\health_over_bg"
"$alpha" "1"
"$vertexalpha" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
"$ignorez" "1"
"%keywords" "tf"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$basetexture"
"animatedtextureframenumvar" "$frame"
"animatedtextureframerate" "15"
}
}
}
And my hudplayerhealth.res looks like this
"PlayerStatusHealthImageBG"
{
"ControlName" "ImagePanel"
"fieldName" "PlayerStatusHealthImageBG"
"xpos" "73"
"xpos_minmode" "58"
"ypos" "33"
"zpos" "3"
"wide" "0"
"tall" "0"
"visible" "1"
"enabled" "1"
"image" "../vgui/replay/thumbnails/health_over_bg"
"scaleImage" "1"
}
The reason your BG currently doesn't show is because you've set it to wide & tall 0. Fix this first.
The path as it currently is with ../vgui/replay is correct.
The path as it currently is with [i]../vgui/replay[/i] is correct.
WiethoofdThe reason your BG currently doesn't show is because you've set it to wide & tall 0. Fix this first.
The path as it currently is with ../vgui/replay is correct.
Oh I got it work perfectly now, thanks you helped alot.
The path as it currently is with [i]../vgui/replay[/i] is correct.[/quote]
Oh I got it work perfectly now, thanks you helped alot.