Difference between revisions of "Half-Life 2"
(Further changes to building from source instructions) |
|||
Line 78: | Line 78: | ||
python3 waf configure -T release --64bits --prefix='' --build-games=cstrike | python3 waf configure -T release --64bits --prefix='' --build-games=cstrike | ||
</pre> | </pre> | ||
+ | |||
+ | 6. Build the game | ||
+ | <pre> | ||
+ | python3 waf build | ||
+ | </pre> | ||
+ | |||
+ | 7. Create '''Build folder''' Install build into directory, this can be located anywhere ideally append with hl2, episodic, portal, cstrike etc. | ||
+ | <pre> | ||
+ | python3 waf install --destdir='~/Documents/Source games/hl2' | ||
+ | </pre> | ||
+ | |||
+ | 8. Open '''Build folder''' in new Finder window | ||
+ | |||
+ | 9. Create '''Steam folder''' In Mac version of Steam, install games e.g Half-Life 2, Episode 1, Episode 2, Portal, Counter-Strike: Source etc. | ||
+ | |||
+ | 10. Open '''Steam folder''': in new Finder window: right-click on game in Steam library, go to Manage and Browse local files | ||
+ | |||
+ | 11. In '''Steam folder''': | ||
+ | |||
+ | *Delete /bin/ folder | ||
+ | *replace with /bin/ folder from '''Build folder''' | ||
+ | |||
+ | *Navigate inside 'game' folder (e.g. /hl2/ or /episodic/ or /portal/ or /cstrike/) | ||
+ | *Delete the bin subfolder (e.g. /hl2/bin/) | ||
+ | *From the '''Build folder''' go to game folder (e.g. /hl2/) and move/copy from the '''Build folder''' to the '''Steam folder''' into the game (e.g. /hl2/) | ||
+ | |||
+ | 12. In the '''Steam folder''': | ||
+ | *Delete <code>hl2_osx</code> | ||
+ | *Copy/move <code>hl2_launcher</code> | ||
+ | *Rename the <code>hl2_launcher</code> into <code>hl2_osx</code> | ||
+ | |||
+ | 13. Now the respective game can be launched from within Steam. | ||
{{References}} | {{References}} | ||
[[Category:Games]] | [[Category:Games]] |
Revision as of 19:07, 23 May 2023
macOS Compatibility
Method | Rating | Notes |
---|---|---|
Native | Compiled the Source Engine Leak. https://jameshug.notion.site/Guide-to-Installing-Portal-Using-Source-Engine-on-macOS-660803f9ced149cfa1647d38fd5a7092[1] | |
Rosetta 2 | ||
Compatibility layer | ||
CrossOver | Installed via steam on crossover 21, extreme fps drops during shootouts and explosions | |
Wine | ||
Virtualization | ||
Parallels | Playable.[2] |
Native ARM build from leaked source
Compiled the Source Engine Leak, modified instructions from James Hug.
Updated instructions - use these Terminal commands:
1. Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew help
Remember to set the path.
2. Install Xcode Command Line Tools (Optional)
xcode-select --install
3. Install required packages from Homebrew (added the jpeg-turbo dependency from instructions)
brew doctor brew cleanup brew install sdl2 freetype2 fontconfig pkg-config opus libpng libedit python3 jpeg-turbo
4. Clone the Source Engine GitHub repository
git clone --recursive https://github.com/nillerusr/source-engine cd source-engine
5. Configure game builds:
Half-Life 2:
python3 waf configure -T release --64bits --prefix='' --build-games=hl2
Half-Life 2 Episodes:
python3 waf configure -T release --64bits --prefix='' --build-games=episodic
Portal:
python3 waf configure -T release --64bits --prefix='' --build-games=portal
Counter-Strike: Source
python3 waf configure -T release --64bits --prefix='' --build-games=cstrike
6. Build the game
python3 waf build
7. Create Build folder Install build into directory, this can be located anywhere ideally append with hl2, episodic, portal, cstrike etc.
python3 waf install --destdir='~/Documents/Source games/hl2'
8. Open Build folder in new Finder window
9. Create Steam folder In Mac version of Steam, install games e.g Half-Life 2, Episode 1, Episode 2, Portal, Counter-Strike: Source etc.
10. Open Steam folder: in new Finder window: right-click on game in Steam library, go to Manage and Browse local files
11. In Steam folder:
- Delete /bin/ folder
- replace with /bin/ folder from Build folder
- Navigate inside 'game' folder (e.g. /hl2/ or /episodic/ or /portal/ or /cstrike/)
- Delete the bin subfolder (e.g. /hl2/bin/)
- From the Build folder go to game folder (e.g. /hl2/) and move/copy from the Build folder to the Steam folder into the game (e.g. /hl2/)
12. In the Steam folder:
- Delete
hl2_osx
- Copy/move
hl2_launcher
- Rename the
hl2_launcher
intohl2_osx
13. Now the respective game can be launched from within Steam.
References
- ↑ 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: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