Black Mesa Guide

Playing Custom Maps from Menu instead of Console (and how to make them work) aka Bonus Maps feature for Black Mesa

Playing Custom Maps from Menu instead of Console (and how to make them work) aka Bonus Maps feature

Overview

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.

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 FilesSteamSteamAppsCommonBlack MesaplatformresourceGameMenu.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 FilesSteamSteamAppsCommonBlack MesaplatformresourceGameMenu.res
C:Program FilesSteamSteamAppsCommonBlack Mesahl2resourceGameMenu.res
C:Program FilesSteamSteamAppsCommonBlack MesabmsresourceGameMenu.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!

Useful Links

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!

SteamSolo.com