Difference between revisions of "Half-Life 2"
(further cleanup) |
|||
Line 22: | Line 22: | ||
{{Compatibility/macOS | {{Compatibility/macOS | ||
− | |native = | + | |native = playable |
− | |native notes = | + | |native notes = Can be run with an EP1/2 installation with <code>-game hl2</code>, saves and achievements do not sync. See [[#Fixes & Tweaks]]<ref>{{Refdevice |
|user=PBeGood4 | |user=PBeGood4 | ||
|date=29 April 2023 | |date=29 April 2023 | ||
Line 49: | Line 49: | ||
}} | }} | ||
− | ==Native | + | ==Native== |
− | + | Guides originally written by [https://www.youtube.com/watch?v=mMuSXs0SF_g James Hug]. This method builds a native port for older Source engine games, such as Half-Life 2, its episodes, and Portal. | |
− | Enter these commands into Terminal, Homebrew | + | Enter these commands into Terminal, Homebrew & Xcode Command Line Tools are required: |
1. Install prerequisites from Homebrew and clone Repository (added the jpeg-turbo dependency from instructions): | 1. Install prerequisites from Homebrew and clone Repository (added the jpeg-turbo dependency from instructions): | ||
Line 67: | Line 67: | ||
3. Configure, build and install the game into your Documents Folder: | 3. Configure, build and install the game into your Documents Folder: | ||
− | <pre>python3 waf configure -T release | + | <pre>python3 waf configure -T release --prefix='' --build-games=[game folder] && python3 waf build && python3 waf install --destdir='~/Documents/Build/[game folder]' |
</pre> | </pre> | ||
Valid Game Folder Names: | Valid Game Folder Names: | ||
*cstrike (Counter-Strike Source) | *cstrike (Counter-Strike Source) | ||
− | *episodic (Half-Life 2: Episode 1/ | + | *episodic (Half-Life 2: Episode 1) |
+ | *ep2 (Half-Life 2: Episode 2, can be played without <code>python3 waf build</code>) | ||
*hl1 (Half-Life: Source) | *hl1 (Half-Life: Source) | ||
*hl2 | *hl2 | ||
Line 79: | Line 80: | ||
*hl2mp (Half-Life 2: Deathmatch) | *hl2mp (Half-Life 2: Deathmatch) | ||
− | 4. Open your Half-Life 2 Folder | + | 4. Open your "Half-Life 2" Folder. (Portal and/or Day of Defeat Source, if you're installing those games) |
+ | ''(Right-Click > "Browse local files" on Steam.)'' | ||
− | 5. Modify Installation Files: | + | 5. Modify Installation Files |
+ | (If you're installing multiple games, you only need to replace the files from "[game folder]/bin"): | ||
*Delete the root and game folder <code>"bin"</code> directories and <code>"hl2_osx"</code> executable | *Delete the root and game folder <code>"bin"</code> directories and <code>"hl2_osx"</code> executable | ||
**Move your <code>"bin", "[game folder]/bin"</code> folders and <code>"hl2_launcher"</code> executable to your Half-Life 2 folder, | **Move your <code>"bin", "[game folder]/bin"</code> folders and <code>"hl2_launcher"</code> executable to your Half-Life 2 folder, | ||
Line 87: | Line 90: | ||
Congratulations! You (hopefully) successfully built a working Native Source Port! | Congratulations! You (hopefully) successfully built a working Native Source Port! | ||
− | == | + | ==Fixes & Tweaks== |
− | + | '''THESE CONSOLE COMMANDS WILL NOT SAVE!''' | |
− | + | '''Quality/Performance''' | |
− | <code>-noborder -windowed | + | *MBP Notch Fix (Put these in your Steam Launch Options, Right-Click > "Properties..."): |
+ | <code>-noborder -windowed</code> | ||
− | + | *Asynchronous Audio (Forces audio asynchronization. Removes audio stuttering in some cases.): | |
− | + | <code>snd_async_fullyasync 1 | |
+ | snd_async_minsize 0;snd_noextraupdate 1</code> | ||
− | + | *Texture Quality Improvement | |
+ | <code>mat_picmip -1;mat_antialias 4;mat_forceaniso 8</code> | ||
− | + | *Software AA: Maximum Quality (Helps to remove further aliasing, such as power lines.) | |
− | < | + | <code>mat_software_aa_quality 8 |
− | + | mat_software_aa_strength 2;mat_software_aa_strength_vgui 2;mat_software_aa_blur_one_pixel_lines 0.5;mat_software_aa_edge_threshold .8</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | mat_software_aa_quality 8 | ||
− | mat_software_aa_strength 2 | ||
− | mat_software_aa_strength_vgui 2 | ||
− | mat_software_aa_blur_one_pixel_lines 0.5 | ||
− | mat_software_aa_edge_threshold .8 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | '''Fixes''' | |
+ | *HL2 Flashlight Fix | ||
− | + | <code>r_newflashlight 0</code> (Replaces buggy HL2 flashlight with HL1 counterpart) | |
− | |||
+ | *<code>r_lod 0</code> (Disable nearby culling.) | ||
==Known bugs== | ==Known bugs== | ||
− | + | *When playing with Airpods, the audio starts stuttering randomly. '''Fix:''' Mute and unmute the audio on the Macbook. | |
− | + | *Counter-Strike: Source, Half-Life 2: Deathmatch and Day of Defeat: Source show a black screen has no HUD on macOS Sonoma | |
+ | *Father Gregori & The Cart Ride are bugged in the last part of "We don't go to Ravenholm...", with the cart ride section being culled out until you enter it and Father Gregori not showing at all. | ||
{{References}} | {{References}} | ||
[[Category:Games]] | [[Category:Games]] |
Revision as of 06:09, 9 December 2023
Developers | |
---|---|
Valve Corporation | |
Publishers | |
2005-present | Valve Corporation |
Engines | |
Source | |
Release dates | |
macOS | May 26, 2010 [1] |
Reception | |
Metacritic | 96 |
IGDB | 91 |
Taxonomy | |
Series | Half-Life |
Resources | |
Codeweavers | |
WineHQ | |
macOS Compatibility
Method | Rating | Notes |
---|---|---|
Native | Can be run with an EP1/2 installation with -game hl2 , saves and achievements do not sync. See #Fixes & Tweaks[2]
[3] |
|
Rosetta 2 | ||
Compatibility layer | ||
CrossOver | Installed via Steam on CrossOver 21, extreme fps drops during shootouts and explosions. | |
Wine | Tested on M1 max with settings set to high and resolution set to 2056x1329. Runs at over 120 fps with no vertical sync. Slight stuttering in load areas. | |
Virtualization | ||
Parallels | Playable.[4] |
Native
Guides originally written by James Hug. This method builds a native port for older Source engine games, such as Half-Life 2, its episodes, and Portal.
Enter these commands into Terminal, Homebrew & Xcode Command Line Tools are required:
1. Install prerequisites from Homebrew and clone Repository (added the jpeg-turbo dependency from instructions):
brew install sdl2 freetype2 fontconfig pkg-config opus libpng libedit python3 jpeg jpeg-turbo && brew cleanup git clone --recursive https://github.com/nillerusr/source-engine && cd source-engine
2. Set pkg path:
export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"
3. Configure, build and install the game into your Documents Folder:
python3 waf configure -T release --prefix='' --build-games=[game folder] && python3 waf build && python3 waf install --destdir='~/Documents/Build/[game folder]'
Valid Game Folder Names:
- cstrike (Counter-Strike Source)
- episodic (Half-Life 2: Episode 1)
- ep2 (Half-Life 2: Episode 2, can be played without
python3 waf build
) - hl1 (Half-Life: Source)
- hl2
- portal
- dod (Day of Defeat: Source)
- hl2mp (Half-Life 2: Deathmatch)
4. Open your "Half-Life 2" Folder. (Portal and/or Day of Defeat Source, if you're installing those games) (Right-Click > "Browse local files" on Steam.)
5. Modify Installation Files (If you're installing multiple games, you only need to replace the files from "[game folder]/bin"):
- Delete the root and game folder
"bin"
directories and"hl2_osx"
executable- Move your
"bin", "[game folder]/bin"
folders and"hl2_launcher"
executable to your Half-Life 2 folder, - and rename
"hl2_launcher"
to"hl2_osx"
- Move your
Congratulations! You (hopefully) successfully built a working Native Source Port!
Fixes & Tweaks
THESE CONSOLE COMMANDS WILL NOT SAVE!
Quality/Performance
- MBP Notch Fix (Put these in your Steam Launch Options, Right-Click > "Properties..."):
-noborder -windowed
- Asynchronous Audio (Forces audio asynchronization. Removes audio stuttering in some cases.):
snd_async_fullyasync 1
snd_async_minsize 0;snd_noextraupdate 1
- Texture Quality Improvement
mat_picmip -1;mat_antialias 4;mat_forceaniso 8
- Software AA: Maximum Quality (Helps to remove further aliasing, such as power lines.)
mat_software_aa_quality 8
mat_software_aa_strength 2;mat_software_aa_strength_vgui 2;mat_software_aa_blur_one_pixel_lines 0.5;mat_software_aa_edge_threshold .8
Fixes
- HL2 Flashlight Fix
r_newflashlight 0
(Replaces buggy HL2 flashlight with HL1 counterpart)
r_lod 0
(Disable nearby culling.)
Known bugs
- When playing with Airpods, the audio starts stuttering randomly. Fix: Mute and unmute the audio on the Macbook.
- Counter-Strike: Source, Half-Life 2: Deathmatch and Day of Defeat: Source show a black screen has no HUD on macOS Sonoma
- Father Gregori & The Cart Ride are bugged in the last part of "We don't go to Ravenholm...", with the cart ride section being culled out until you enter it and Father Gregori not showing at all.
References
- ↑ News - Steam For Mac Launch: Week 3 - last accessed on 2023-07-02
- ↑ Verified by User:PBeGood4 on 29 April 2023
- Device: M1 MacBook Pro
- Method: Compiled Source Engine Leak
- Resolution: 1920x1080
- Settings: high
- Framerate: 120+ FPS
- ↑ Verified by User:mokMan23 on 2023-09-25
- Device: 16GB M1 Mac Mini
- OS: macOS Sonoma 14.0 RC2
- Resolution: 2560x1440
- Settings: Very High
- ↑ Verified by User:gp on 7 Sep 2021
- Device: Mac M1 16 GB RAM
- OS: Windows 11 (latest Insider ISO)
- Method: Parallels 17
- Resolution: 1080p
- Settings: Medium
- Framerate: 50~60 FPS