Game Menu Problem - New SP Mod...

  • Thread starter Thread starter cmdtower
  • Start date Start date
C

cmdtower

Guest
Greetings,

I hope you guys can help. There are two issues that I can't seem to get around.

See attached pics and arrows for reference.

#1: These graphics are now in my Single player mod. I didn't put them there, they just showed up. How can I get rid of them??

#2: The "New Game" dialog has an unattractive glitch in it. Shows a checkbox in upper left, with "#HL2"...

Thanks for any help !!

CMD
 

Attachments

  • screenshot1.jpg
    screenshot1.jpg
    40.8 KB · Views: 264
  • screenshot2.jpg
    screenshot2.jpg
    35.9 KB · Views: 257
The first one is caused by the wrong font for the title in your SourceScheme.res file. It's located in your resource\ folder, that is YourModName\resource\SourceScheme.res. If it's not there already, you can extract it into there using CFG Scape or something. Open it with Notepad and search for TitleFont

Code:
		TitleFont
		{
			"1"
			{
				"name"		"HalfLife2"
				"tall"		"72"
				"weight"	"400"
				"antialias"	"1"
				"custom"	"1"
			}
		}

Change the font HalfLife2 (which is used here to get those Half-Life 2 specific icons into the title) to something else like Tahoma, Verdana, etc. an existing Windows font.

I am not all 100% sure what's causing the second bug. I don't seem to have it myself so I must have done something. It could be the commentary check box, but I don't remember doing anything about it. It might have been even resolved because of the GameApp I was using. The label is showing #HL2_something because it's trying to an entry from a resource file, for example, resource\yourmodfoldername_english.txt, resource\valve_english.txt, resource\hl2_english.txt, etc. In one of these files there would be an entry called #HL2_something and #HL2_something would be replaced by the text from the resource file of your chosen language.
 
That's incredible, thanks for your help - Au-Heppa!
Yeah, I searched high and low on google and found only 3 posts of people complaining of the exact same thing. It's funny, that ON ALL 3 different posts - no one had an answer to fix it!
I was thinking the same thing that a config res file somewhere had glitched and parsed incorrectly and that I could simply "hack it" to make it work. Your clues are a good starting point.

Again, thanks.

CMD
 
Update

UPDATE:

The solution to the first issue was as you said, EXCEPT it was the ClientScheme.res file. FYI.
Thanks.

Here's a bug from 2006, which you would think should be fixed by now...
----------------------------------------------------------------------------------------------------
http://developer.valvesoftware.com/wiki/August_2006_Community_Buglist

EXCERPT:
There is no way to hide the commentary option in the New Game dialog without hacking it to appear outside the dialog's borders. Seeing as it's fair to say that most modders won't be using commentary, this is a fairly large issue. Could Source not check for the existence of *_commentary.txt before showing the option?

* When you do use commentary, the background texture for the checkbox and label is missing.
----------------------------------------------------------------------------------------------------

I'll play around with it more. But the suggestion to move it outside of the dialog is a hack that should work...

Note, this problem may be specific to Episode 1 mods only, which mine is. Not sure about Orange (I have both). But wanted to create a basic template that most HL2 players could possibly play.

CMD
 
Try this: export root\episodic\resource\NewGameDialog.res from episode 1 shared.gcf to your resource folder, open it in Notepad, and remove the two entries that refer to Commentary.

Code:
	"Commentary"
	{
		"ControlName"		"CheckButton"
		"fieldName"		"Commentary"
		"xpos"		"60"
		"ypos"		"262"
		"wide"		"264"
		"tall"		"24"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
		"tabPosition"		"5"
		"labelText"		"#HL2_Enable_Commentary"
		"textAlignment"		"west"
		"dulltext"		"0"
		"brighttext"		"0"
		"wrap"		"0"
		"Default"		"0"
	}
	"CommentaryIcon"
	{
		"ControlName"		"ImagePanel"
		"fieldName"		"CommentaryIcon"
		"xpos"		"25"
		"ypos"		"258"
		"wide"		"43"
		"tall"		"42"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
		"tabPosition"		"0"
		"image"		"hud/icon_commentary_small"
		"scaleImage"		"0"
	}
 
Fixed :)

You the man. Thanks for pushing me in the right direction.

Pic attached which includes the removal of the commentary box.

These were the change I made (there are 3 entries involved) to resource\NewGameDialog.res:

Code:
	"ImagePanel1"
	{
		"ControlName"		"ImagePanel"
		"fieldName"		"ImagePanel1"
		"xpos"		"22"
		"ypos"		"254"
		"wide"		"308"
		"tall"		"40"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"0"   // was 1        [B]<--- modified[/B]
		"enabled"		"0"   // was 1        [B]<--- modified[/B]
		"tabPosition"		"0"
		"image"		"resource/black_round_rect"
		"scaleImage"		"0"
		"zpos"	"-1"
	}
	"Commentary"
	{
		"ControlName"		"CheckButton"
		"fieldName"		"Commentary"
		"xpos"		"60"
		"ypos"		"1000"  // was 262 originally  [B]<--- modified[/B], this insures it's not visible...
		"wide"		"264"
		"tall"		"24"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"0"      // was 1   [B]<--- modified[/B], but not enough, so I moved it off the dialog (see above)
		"enabled"		"0"      // was 1   [B]<--- modified[/B]
		"tabPosition"		"5"
		"labelText"		"#HL2_Enable_Commentary"
		"textAlignment"		"west"
		"dulltext"		"0"
		"brighttext"		"0"
		"wrap"		"0"
		"Default"		"0"
	}
	"CommentaryIcon"
	{
		"ControlName"		"ImagePanel"
		"fieldName"		"CommentaryIcon"
		"xpos"		"25"
		"ypos"		"258"
		"wide"		"43"
		"tall"		"42"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"0"   // was 1         [B]<--- modified[/B]
		"enabled"		"0"   // was 1         [B]<--- modified[/B]
		"tabPosition"		"0"
		"image"		"hud/icon_commentary_small"
		"scaleImage"		"0"
	}

Good team work.
Thanks again!
CMD
 

Attachments

  • screenshot3.jpg
    screenshot3.jpg
    31.4 KB · Views: 257
Back
Top