Black Mesa

Black Mesa

74 ratings
Playing Custom Maps from Menu instead of Console (and how to make them work) aka Bonus Maps feature
By dragon99919
What Black Mesa is currently missing is Xen Bonus Maps feature, like the one from Portal.
Until such system is provided, most of the maps must be opened with the console, and not everybody wishes to play with that each time they want to play something custom. This guide solves this out by adding "Bonus Maps" interface to the menu.
   
Award
Favorite
Favorited
Unfavorite
What are we gonna do
We are gonna add new button to the Main Menu, called Bonus Maps. This will basically work exactly the same way it works in Portal (which you probably played, so you know the drill). This guide will show you how to enable button in-game menu, and also will provide tips how to make your maps visable in that menu (so if you create some Workshop maps, you can make them visable there). Let's do this!
Making button in the game menu
What you have to do is copy this stuff:

"GameMenu" { "1" { "label" "#GameUI_GameMenu_ResumeGame" "command" "ResumeGame" "OnlyInGame" "1" } "2" { "label" "#GameUI_GameMenu_Disconnect" "command" "Disconnect" "OnlyInGame" "1" "notsingle" "1" } "3" { "label" "#GameUI_GameMenu_PlayerList" "command" "OpenPlayerListDialog" "OnlyInGame" "1" "notsingle" "1" } "4" { "label" "" "command" "" "OnlyInGame" "1" } "5" { "label" "#GameUI_GameMenu_NewGame" "command" "OpenNewGameDialog" "color" "255 155 0 255" } "6" { "label" "#GameUI_GameMenu_BonusMaps" "command" "OpenBonusMapsDialog" } "7" { "label" "#GameUI_GameMenu_LoadGame" "command" "OpenLoadGameDialog" } "8" { "label" "#GameUI_GameMenu_SaveGame" "command" "OpenSaveGameDialog" "OnlyInGame" "1" } "9" { "label" "" "command" "" } //"9" //{ // "label" "#GameUI_GameMenu_Workshop" // "command" "OpenWorkshopDialog" //} "10" { "label" "#GameUI_GameMenu_FindServers" "command" "OpenServerBrowser" } "11" { "label" "#GameUI_GameMenu_CreateServer" "command" "OpenCreateMultiplayerGameDialog" } "12" { "label" "#GameUI_GameMenu_Character" "command" "OpenCharacterDialog" } "13" { "label" "#GameUI_GameMenu_Addons" "command" "OpenAddonDialog" } "14" { "label" "" "command" "" } //"12" //{ // "label" "#GameUI_LoadCommentary" // "command" "OpenLoadSingleplayerCommentaryDialog" // "notmulti" "1" //} "15" { "label" "#GameUI_GameMenu_Achievements" "command" "OpenAchievementsDialog" } "16" { "label" "#GameUI_GameMenu_Options" "command" "OpenOptionsDialog" } "17" { "label" "#GameUI_GameMenu_Quit" "command" "Quit" } }

and paste it into newly created file called GameMenu.res, and paste it to the platform directory of the Black Mesa game. If you have no idea what I am talking about, then well, the default directory for this file will be like C:\Program Files\Steam\SteamApps\Common\Black Mesa\platform\resource\GameMenu.res. To make sure it'll work and won't be overrided, you can also paste it to the hl2 and bms directories. So we'll make three files, exactly the same, in the directories:

C:\Program Files\Steam\SteamApps\Common\Black Mesa\platform\resource\GameMenu.res
C:\Program Files\Steam\SteamApps\Common\Black Mesa\hl2\resource\GameMenu.res
C:\Program Files\Steam\SteamApps\Common\Black Mesa\bms\resource\GameMenu.res

Now the button should appear in game.

If the menu will be updated, I'll try to update this guide with the new code for the menu too.

If you have some experience in making custom VGUI menus in Source games, you might wanna customize it by yourself based on original file. This one is located in bms_misc_dir.vpk.
Making maps visable in the interface (for dem mappers, or ppl who want to enable custom maps there)
If you want to make a map visable in that menu, you'll need a .bns file for each map that you want to see in the interface. If you have experience in making bonus maps for Portal, you can probably ship this part. This file is placed just next to .bsp file, and it's a simple notepad script that looks like that:

"Your Map Name" { "map" "Your Map Name" "comment" "Your Map Discription" "lock" "0" }

For example, I've got an OpposingForce.bsp map in my maps directory. Then I must create a OpposingForce.bns right next to it with code like that:

"Opposing Force" { "map" "Opposing Force" "comment" "Opposing Force map downloaded from gamebanana" "lock" "0" }

Now it works!


It's a good idea to place these files with your map for Workshop, cause it's not really big, it does not hurt to create one, and people will see your map in Bonus Maps interface that way!
Outro
Anny suggestions, comments? Everything is clear? If not - gimme a comment, and I'll try to follow all the tips and feedback.

Cheers! Have fun playing!
47 Comments
XsilverwaterX 2 Oct, 2022 @ 11:52pm 
does that mean we have to wait until the modders recreate the linkage to steam workshop. sod, I wanted to play Shepard bet now got of the amazing custom map.
Underqualified Gunman 22 Dec, 2020 @ 12:50pm 
also this method no longer works becuase they've changed the main menu
Underqualified Gunman 5 Aug, 2020 @ 9:34pm 
as of 1.0's release there is now an ability to make custom maps appear in the main menu when selecting the maps from the main menu.
Marvius 7 Jul, 2020 @ 6:20pm 
how do i create a .res file
Chapmike 1 Mar, 2020 @ 8:19am 
@craftablescience Where ? I don't see a Bonus Maps tab or anything like that.
craftablescience 16 Feb, 2020 @ 3:05pm 
The beta currently supports this with the new menu. No more fiddling around with the files :p2chell:
THE Burger King 20 Jan, 2020 @ 12:23pm 
that's because you're creating it, not looking for it as it doesn't already exist
Red.c@ke 8 Dec, 2019 @ 9:15am 
look i cant find gamemenu.rus in my black mesa
Biggity Swigger 13 Oct, 2019 @ 7:50pm 
all this does is make the menu buttons go away
doblej 3 Jul, 2019 @ 10:37am 
i dont know the part where i must make my maps visable.HELP