Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

The GameMenu Creation

A Tutorial for Counter-Strike: Source

Members see zero ads. Membership is 100% free
Introduction

In this tutorial, I will explain How we can customize the GameMenu in Counter-Strike: Source and 1 bonus: How we change the background.



Tools needed

  • GCFscape, to open .gcf and .vpk archives
  • VTFedit, to create .vtf files for Background
  • Notepad++, to edit .res files
  • OR the Notepad of Windows, but it can't edit .res files
  • A keyboard, with the Tab key (to make GameMenus more clean)

What is a GameMenu ?

This is the first thing to know; a GameMenu is the Menu you have when you launch your game.

And this GameMenu is customizable when you have the GameMenu.res, and you can:
  • Add lines
  • Add commands
  • Delete commands
  • Add servers IP address, to connect to them by one click
  • Enable and Disable the Console with one click
  • Do the same with some others commands (exemple: net_graph)
  • And more :)

But, if you wonder, How can I change all colors of my Game ?
So you must change somes lines in the ClientScheme.res, but I tell you, it wont be an easy task, because in the file, there are more than 2000 lines !!!
I can only give you a link for some good tutorials which explain everything to modify the ClientScheme.res, it's HERE.

Now I will explain, how you can obtain the file for the GameMenu.

How obtain the GameMenu.res ?

The file can only be found in the archive of the game, and since the SteamPipe update, the file is named cstrike\_pak\_dir.vpk

  • Go to C:\Program Files\Steam\steamapps\common\Counter-Strike:Source\cstrike


But there is a problem, because the archive extension is .vpk, and you can't open it if you don't have the program: GCFscape (click on the name).

For those who are too lazy to download GCFscape, I give you the strucure of the basic GameMenu:



"GameMenu"
{
"1"
{
"label" "#GameUI_GameMenu_ResumeGame"
"command" "ResumeGame"
"OnlyInGame" "1"
}
"2"
{
"label" "#GameUI_GameMenu_Disconnect"
"command" "Disconnect"
"OnlyInGame" "1"
}
"3"
{
"label" "#GameUI_GameMenu_PlayerList"
"command" "OpenPlayerListDialog"
"OnlyInGame" "1"
}
"4"
{
"label" ""
"command" ""
"OnlyInGame" "1"
}
"5"
{
"label" "#GameUI_GameMenu_FindServers"
"command" "OpenServerBrowser"
}
"6"
{
"label" "#GameUI_GameMenu_CreateServer"
"command" "OpenCreateMultiplayerGameDialog"
}
"7"
{
"label" "#GameUI_GameMenu_Achievements"
"command" "OpenCSAchievementsDialog"
}
"8"
{
"label" "#GameUI_ReportBug"
"command" "engine bug"
}
"9"
{
"label" "#GameUI_LaunchBenchmark"
"command" "OpenBenchmarkDialog"
}
"10"
{
"label" "#GameUI_GameMenu_Options"
"command" "OpenOptionsDialog"
}
"11"
{
"label" "#GameUI_GameMenu_Quit"
"command" "Quit"
}}


  • If you opened the archive, take the GameMenu.res and put it in C:/Program Files/Steam/steamapps/common/counter-strike source/cstrike/custom/my\_custom\_stuff/resource/ (Watch the picture 2 and the picture 3).
  • If you don't opened the archive, copy and paste the structure in the Notepad of Windows or Notepad++ (see link below).

Attention: You can edit a .res with Notepad++ but not with Notepad, so if you use the Notepad, keep a .txt with the menu (to continue the edit) and when the menu is finish, save as GameMenu.res OR keep the editor open during the edit.

Edit GameMenu's lines



To edit easily the GameMenu.res, you must download Notepad++. But if you still want to use the basic Notepad (of Windows) read the "Attention" message.

Etude of one GameMenu's line

To understand, watch this line of the GameMenu (the 5th):



"5"
{
"label" "#GameUI_GameMenu_FindServers"
"command" "OpenServerBrowser"
"OnlyInGame" "1"
}


I will explain all functions:






CommandSignificationExempleNote
Number"5"This is the name of the line. Numbers must be in the order, and don't be 2 time. Example: not "4" two timesN/AN/A
label"label"This is the word/phrase which appear on the line"label" "#GameUI_GameMenu_FindServers" where >"#GameUI_GameMenu_FindServers"> is the value you can changeThe "#GameUI_GameMenu_FindServers" can be replaced by Search Servers, if you don't like the basic Find Server
command"command"The command that will be execute"command" "OpenServerBrowser", the OpenServerBrowser is the value to changeN/A
OnlyInGame"OnlyInGame"Activate the line only during you play on a server. Set it to "0" will let the line always appear"OnlyInGame" "1", the 1 is the value you modifyIf you put "0", it's better to delete the line
notsingle"notsingle"The player see nothing until he is not in the game"notsingle" "1", the 1 is the value you modifyMore simply, we don't see the "Loading..., when connect to a server


Signification of #GameUI_GameMenu_'s titles

Now I explain what the text in labels means.
For exemple, #GameUI\_GameMenu\_ResumeGame is an entity which will make appear a text relative to the language set by the user.
So you don't need to make differents GameMenu for all languages.












Entity TitleSignification
#GameUI_GameMenu_ResumeGameRESUME GAME
#GameUI_GameMenu_DisconnectDISCONNECT
#GameUI_GameMenu_PlayerListPLAYER LIST
#GameUI_GameMenu_FindServersFIND SERVERS
#GameUI_GameMenu_CreateServerCREATE SERVER
#GameUI_GameMenu_AchievementsACHIEVEMENTS
#OpenCSAchievementsDialogACHIEVEMENTS (different and better than the other one)
#GameUI_ReportBugREPORT BUG
#GameUI_LaunchBenchmarkVIDEO STRESS TEST
#GameUI_GameMenu_OptionsOPTIONS
#GameUI_GameMenu_QuitQUIT


Include other commands

You can also add some other useful command; in the following list, I will show you all commands you can use but only useful commands:

  • Enable the Console and Disable it with one click: "12" { "label" "Console ON/OFF" "command" "engine toggleconsole" }
  • Net_Graph On/Off (for FPS + Ping, and more): "13" { "label" "NET_GRAPH" "command" "engine net_graph 1 0" }
  • Connect fast to a server: (this is the B&W's bhop server, it's just an exemple) "14" { "label" "Bhop Bl4ck & White" "command" "engine connect 87.98.144.170:27615" }
  • On/Off commands, you can do it for all commands which have two values: 0 (OFF) and 1 (ON). Follow this exemple with sv\_cheats "15" { "label" "SV_CHEATS ON/OFF" "command" "engine sv_cheats 1 0" } As you see the first value (1) I put, is the max value the command will reach and the second value (0) is when the command is Off. When you finished your GameMenu, save it as GameMenu.res with Unicode, in C:/Program Files/Steam/steamapps/common/counter-strike source/cstrike/custom/my\_custom\_stuff/resource/. You can now go in game to see your custom GameMenu :) Now, you know how to modify the GameMenu. I will explain, how we change the background.

    Change the background of CS:S

    First you need to download the software: VTFedit (click on the name). Install the software then launch it, you will find an interface like in the picture 4.
    1. Click on Files, then Import.
    2. Now you must choose the picture, you want (for the background), so go to the location where it is save. When you choosed it, click on Ok.
    3. A window, will be open, touch nothing, and click on OK again (Watch the picture 5).
    4. Wait some seconds, and your picture will appear (Watch the picture 6 ).
    5. Now go to Files, then Save As.
    6. Save the picture in C:/Program Files/Steam/SteamApps/common/Counter-Strike: Source/cstrike/custom/my_custom_stuff/materials/console (if there is no console folder, create it). Name it background01.vtf.
    7. Then re-save the picture in the same location but name it background01_widescreen.vtf.
    8. Launch CS:S, and watch your background.

    ____________________________

    You reached the end of the Tutorial :), thanks to read it, please give feedback and rate. If you have a question don't hesitate to ask me in comments.

Comments

Sign up to access this!
  • Moltard avatar
    Moltard Joined 7y ago
    Offline
    2,449 points Ranked 20160th
    20 medals 1 legendary 2 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 6 years a member Medal icon
    • Scripter of the Month, March 2013 Medal icon
    • Tutorial Contest Entrant Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    access_time 6y
    > **Posted by KoKoRoV** > And please next time when you make another tutorial [if you will] please don't make it unnecessary long like this one The tutorial is long because I can't make table on GameBanana, so the entity explication is very long.
    (• _• )
    URL to post:
  • [Kokorov] avatar
    [Kokorov] username pic Joined 7y ago
    ZzZzZzZz...!
    12,022 points Ranked 467th
    55 medals 3 legendary 8 rare
    • Submitted 60 Sprites Medal icon
    • Returned 5000 times Medal icon
    • Submitted 60 Effects Medal icon
    • 3rd Place - Winter Textures Contest Medal icon
    • Received thanks 50 times Medal icon
    • Submitted 30 Sprites Medal icon
    access_time 6y
    I could make a "sin list" for this tutorial but it will take a lot of time and I will probably get stamped for being rude so I won't do dat. Instead I will tell you to simple check your grammar before uploading tutorials for contests. And please next time when you make another tutorial [if you will] please don't make it unnecessary long like this one, the judges are not judging the tutorials based on how long they are. But sincerely good luck anyway. :) [I would give it an 8\10, but I am in the contest as well so that wouldn't be very fair, apparently :D].
     avatar
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Moltard
Writter

Submitter

Moltard Joined 7y ago
Offline
2,449 points Ranked 20160th
20 medals 1 legendary 2 rare
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • 6 years a member Medal icon
  • Scripter of the Month, March 2013 Medal icon
  • Tutorial Contest Entrant Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
Moltard
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Beginner

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 2
  • remove_red_eye 10.1k
  • mode_comment 2
  • access_time 6y
  • access_time 3y

More from Submitter

menu

More Other/Misc Tutorials