Wanna see Black Mesa Source running natively on OS X?[/SIZE]
I played around a bit yesterday evening and got Black Mesa “kind of” running natively on Mac OS X Mountain Lion (10.9.4) using the hl2_osx launcher *:
imgur Gallery with all pics: https://imgur.com/gallery/FCyxQ/[/SIZE]
* This was neither hacking nor porting, but just putting files in the right place and getting required contents using SteamPipes. But many things weren’t right, as resources have been loaded from the original Half-Life 2 instead of Black Mesa’s content. So it’s more a fun proof of concept, rather than a playable version! Or to put it differently: it’s HL2 with Black Mesa Menu and Maps at the moment.
Guide and documentation[/SIZE]
-
Pre-requisite: Install the “Source SDK Base 2013 Singleplayer” within Steam (from Library > Tools)
-
Pre-requisite: Download the BMS Zip-File from moddb
-
Move the “Black Mesa” mod folder to
~/Library/Application Support/Steam/SteamApps/sourcemods/
- Rename the mod’s folder to “bms” (previously “Black Mesa”)
- Open Terminal.app and “cd” into the BMS directory
$ cd ~/Library/Application\ Support/Steam/SteamApps/sourcemods/bms/
- Open Black Mesa’s “/gameinfo.txt” with vim/pico/TextEditor (or any similiar)
- In the “SearchPaths { }” section, add the following lines just after “Game episodic” (kudos to lambdageneration.com):
game sourcetest game+mod |gameinfo_path|. platform |gameinfo_path|. game_lv hl2/hl2_lv.vpk game+mod ep2/ep2_english.vpk game+mod ep2/ep2_pak.vpk game |all_source_engine_paths|episodic/ep1_english.vpk game |all_source_engine_paths|episodic/ep1_pak.vpk game |all_source_engine_paths|hl2/hl2_english.vpk game |all_source_engine_paths|hl2/hl2_pak.vpk game |all_source_engine_paths|hl2/hl2_textures.vpk game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk game |all_source_engine_paths|hl2/hl2_sound_misc.vpk game |all_source_engine_paths|hl2/hl2_misc.vpk platform |all_source_engine_paths|platform/platform_misc.vpk mod+mod_write+default_write_path |gameinfo_path|. game+game_write |gameinfo_path|. gamebin sourcetest/bin game |all_source_engine_paths|episodic game |all_source_engine_paths|hl2 platform |all_source_engine_paths|platform
- Save the updated “gameinfo.txt”
- Place a symbolic link (alias) to the BMS directory inside the Source SDK Base 2013 folder:
$ ln -s ~/Library/Application\ Support/Steam/SteamApps/sourcemods/bms ~/Library/Application\ Support/Steam/SteamApps/common/Source\ SDK\ Base\ 2013\ Singleplayer/bms
- Time to launch the game! In Terminal type the following command:
$ ../../common/Source\ SDK\ Base\ 2013\ Singleplayer/hl2.sh -game bms -dev -debug -novid -console -allowdebug -window -h 720 -w 1280
(for a reference of all valid command line arguments see developer.valvesoftware.com)
- If you did everything right, hl2_osx should load and let you play
Issues[/SIZE]
A) SOLVED Sadly the whole thing was a one time success (so far) - because when I quit the game and tried to relaunch it, it always crashed the hl2_osx utility with the following error (see also attached txt-files)
FIX: i pointed the Steampipe to a wrong gamebin folder. If used with “episodic/bin” the game launches again!
B ) Many resources in the game are not from BMS, but from the original Half-Life 2, because of the Steampipe directives. So a lot of stuff doesn’t work, like…
- triggered events or such
- e.g. the Health Charging stations look like from HL2
- the suit’s HUD is not displayed
- weapons have to be spawn manually (give weapon_xy)
- minor sound issues
- and much much more for sure, I just played around like 10 minutes
- …but hey, the water was there!!
Next Steps[/SIZE]
-
DONE! Well first of all, I’d be more than happy to get the game running a second time.
So I will try to investigate what causes the crashes (eg. cache) and verify different command line arguments to use. - It be great to load some more resources from BMS instead of HL2. Once point #1 is fixed, this will be the next thing to approach (as I cannot verify it when the game is not running at all, of course).
Looking forward for some feedbacks and inputs from the community.
hl2_osx-output-dump.txt (1.61 KB)
hl2_osx-terminaldump.txt (1.52 KB)