|
|
#1 |
![]() Join Date: Jan 2011
Reputation: 2
Posts: 73
|
Hey all.
Well, I'm making a mod and I've got a loose end: the logo. It wouldn't be that cool for the player to read "HALF-LIFE 2 Episode Two" when it's my own mod, so I need to change that. I've browsed through Valve's wiki but I didn't find any answers, the only article about adding a logo is short and doesn't expand the subject enough for, at least, my undertanding. Right now what I've got is a pink and black rectangle where my logo image should be.. And besides, the "HALF LIFE 2 Episode Two" logo still shows, I need to take that out! Here's my GameLogo.res file, wich Valve's wiki says you need to create: Code:
resource/GameLogo.res
{
GameLogo
{
ControlName EditablePanel
fieldName GameLogo
xpos 0
ypos 0
zpos 50
wide 400
tall 100
autoResize 1
pinCorner 0
visible 1
enabled 1
offsetX -20
offsetY -15
}
Logo
{
ControlName ImagePanel
fieldName Logo
xpos 0
ypos 0
zpos 50
wide 400
tall 100
visible 1
enabled 1
image vgui/modLogo
scaleImage 1
}
}
I also created a .vmt file, assuming it'll be needed, althought that step is not indicated in the wiki. Code:
"UnlitGeneric"
{
"$basetexture" "vgui/modLogo"
"$vertexcolor" 1
"$vertexalpha" 1
"$ignorez" 1
"$no_fullbright" "1"
"$nolod" "1"
}
thanks to all! |
|
|
|
|
|
#2 |
![]() Join Date: Jul 2011
Reputation: 59
Posts: 45
|
Hi.
a .VMT file is needed in order to let the game find your logo. You must add all the texture settings in it, and of course, its path. Code:
"UnlitGeneric"
{
"$basetexture" "vgui/modLogo"
"$vertexcolor" 1
"$vertexalpha" 1
"$ignorez" 1
"$no_fullbright" "1"
"$nolod" "1"
}
If you get a black & purple checkboard, it's because the game can't find your texture. Check the console for any given error. Also, I suggest you to post Source SDK related posts here: http://forums.steampowered.com/forum...play.php?f=192 as you will probably get more attention!
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|