Go Back   Steam Users' Forums > Steam Game Discussions > H - L > Half-Life 2

Reply
 
Thread Tools Display Modes
Old 04-18-2012, 11:28 AM   #1
SGJackson
 
 
 
Join Date: Jan 2011
Reputation: 2
Posts: 73
Red face Change my mod's logo on menu screen?!

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		
	}
}
In the wiki, it said the logo should be in materials/vgui/ ... there is no vgui/ folder under materials/ , so I created one.
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"
}
Really need help with this guys :S
thanks to all!
SGJackson is offline  
Reply With Quote
Old 04-21-2012, 01:59 PM   #2
Zombienator
 
 
 
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"
}
$basetexture must point to a valid .VTF file (you must not add "materials/" and the ".vtf" extension), and you must make it with mipmaps and LOD disabled, as said here: https://developer.valvesoftware.com/...go_to_the_Menu
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!
Zombienator is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Game Discussions > H - L > Half-Life 2


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.