Upvote Upvoted 0 Downvote Downvoted
custom health_over_bg.vtf not working in casual
posted in Customization
1
#1
0 Frags +

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.

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.
2
#2
3 Frags +

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.

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.
3
#3
whitelist.tf
1 Frags +

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.

Move the file to [i]materials/vgui/replay/thumbnails[/i] 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.
4
#4
0 Frags +
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.

[quote=Wiethoofd]Move the file to [i]materials/vgui/replay/thumbnails[/i] 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.[/quote]

I'll give this a shot I'll see if it works.
5
#5
0 Frags +
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.

https://imgur.com/a/6vVi4He

[quote=Wiethoofd]Move the file to [i]materials/vgui/replay/thumbnails[/i] 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.[/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]
6
#6
whitelist.tf
1 Frags +
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?

[quote=ObamaGaming]currently this is what it looks like
[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?
7
#7
0 Frags +
WiethoofdObamaGamingcurrently 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?

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.

[quote=Wiethoofd][quote=ObamaGaming]currently this is what it looks like
[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.
8
#8
whitelist.tf
1 Frags +

I just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.

I just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.
9
#9
0 Frags +
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 ?

[quote=Wiethoofd]I just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.[/quote]

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 ?
10
#10
whitelist.tf
1 Frags +

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.

You should have at least the following:
[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.
11
#11
0 Frags +

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?

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?
12
#12
0 Frags +
WiethoofdYou 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.

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"
}

[quote=Wiethoofd]You should have at least the following:
[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"
}
13
#13
whitelist.tf
2 Frags +

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 reason your BG currently doesn't show is because you've set it to [i]wide & tall 0[/i]. Fix this first.

The path as it currently is with [i]../vgui/replay[/i] is correct.
14
#14
0 Frags +
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.

[quote=Wiethoofd]The reason your BG currently doesn't show is because you've set it to [i]wide & tall 0[/i]. Fix this first.

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.
Please sign in through STEAM to post a comment.