-
Notifications
You must be signed in to change notification settings - Fork 26
Add MacOS instructions for playing the weekly releases. #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
706c61a
Add MacOS instructions for playing the weekly releases.
wormeyman 9bd025a
Clarify GPTK and finding Logs
wormeyman 4d022de
Add Link to MacOS Guide
wormeyman 8660386
Fix MD Lint errors.
wormeyman dd2f69d
Address review feedback on macOS release build guide
wormeyman 1134f38
Updates after uninstalling and re-installing
wormeyman 396164a
Update version numbers for accuracy.
wormeyman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,153 @@ | ||
| # Running Generals Zero Hour on macOS (Apple Silicon) | ||
|
|
||
| The game runs through Wine-CrossOver via Heroic Launcher, no native macOS build exists yet. | ||
|
|
||
| ## What you need | ||
|
|
||
| - A Mac with Apple Silicon (M1 or later) | ||
| - macOS Tahoe (or recent macOS — older versions should work but aren't tested here) | ||
| - [Heroic Games Launcher](https://heroicgameslauncher.com/) (tested with 2.22.0) | ||
| - A Steam account that owns *Command & Conquer: Generals - Zero Hour* (app ID `2732960`) | ||
| - [Homebrew](https://brew.sh/) installed | ||
|
|
||
| ## Step 1: Install SteamCMD | ||
|
|
||
| ```bash | ||
| brew install steamcmd | ||
| ``` | ||
|
|
||
| Then clear the macOS Gatekeeper quarantine from the install, otherwise steamcmd will fail to load its | ||
| own libraries on first run (see Step 2): | ||
|
|
||
| ```bash | ||
| xattr -dr com.apple.quarantine /opt/homebrew/Caskroom/steamcmd/*/MacOS | ||
| ``` | ||
|
|
||
| ## Step 2: Download the game files | ||
|
|
||
| Run this command. Replace `YOUR_USERNAME` with your Steam username. | ||
|
|
||
| ```bash | ||
| steamcmd +@sSteamCmdForcePlatformType windows +login YOUR_USERNAME +app_update 2732960 validate +quit | ||
| ``` | ||
|
|
||
| The `+@sSteamCmdForcePlatformType windows` flag forces Steam to download the Windows version of the game. | ||
|
|
||
| On the first run, steamcmd self-updates and re-downloads its libraries, so macOS may quarantine them again | ||
| even though you cleared it in Step 1. If that happens you'll see one or both of these: | ||
|
|
||
| - A popup saying **"Breakpad.framework" was not opened** with **Move to Trash** / **Done** buttons. | ||
| Click **Done** - do NOT click Move to Trash. | ||
| - steamcmd quits with `Failed to load steamconsole.dylib ... library load disallowed by system policy`. | ||
|
|
||
| Just clear the quarantine again and re-run the steamcmd command above: | ||
|
|
||
| ```bash | ||
| xattr -dr com.apple.quarantine /opt/homebrew/Caskroom/steamcmd/*/MacOS | ||
| ``` | ||
|
|
||
| Steam Guard will ask you to confirm on your phone. The download is about 3 GB. | ||
|
|
||
| Files end up in: | ||
|
|
||
| ```bash | ||
| ~/Library/Application Support/Steam/steamapps/common/Command & Conquer Generals - Zero Hour/ | ||
| ``` | ||
|
|
||
| ## Step 3: Install the community patch | ||
|
|
||
| - Go to the [GeneralsGameCode releases page](https://github.com/TheSuperHackers/GeneralsGameCode/releases) | ||
| - Download the latest `weekly-*-generalszh` build. | ||
|
|
||
| Extract the files directly into the game folder from Step 2. | ||
| If it asks to replace any existing files, check **Apply to All** and choose **Replace**. | ||
| The patch ships its own executable (`generalszh.exe`) rather than replacing the original `generals.exe`, | ||
| so your base game stays intact. | ||
|
|
||
| ## Step 4: Install Wine-CrossOver in Heroic | ||
|
|
||
| Open Heroic Games Launcher. Go to **Wine Manager** (in the sidebar or settings) and install **Wine-CrossOver-Latest**. | ||
| Version 23.7.1-1 was used when this was written. | ||
|
|
||
| ## Step 5: Add the game to Heroic | ||
|
|
||
| 1. Open Heroic and go to **Library** | ||
| 2. Click **Add Game** | ||
| 3. Fill in: | ||
| - **Name**: Generals Zero Hour (or whatever you want) | ||
| - **Platform**: Windows | ||
| - **Executable**: browse to `generalszh.exe` in the game folder | ||
|
|
||
| Heroic creates the Wine prefix automatically. No need to configure it manually. | ||
|
|
||
| ## Step 6: Set the Wine version | ||
|
|
||
| Click the menu icon (three lines) below your Generals Zero Hour game. | ||
| On the **Wine Settings** tab, select **Wine-CrossOver** (not GPTK). | ||
| You do not need to change any other settings. | ||
|
|
||
| ## Step 7: Launch and play | ||
|
|
||
| Hit play. No Winetricks dependencies are needed, it runs out of the box with Wine-CrossOver. | ||
|
|
||
| Set your resolution in the game's graphics options. 1900x1200 works on a 14" MacBook Pro display. | ||
|
|
||
| ## Known issues | ||
|
|
||
| ### Mouse gets stuck after changing resolution | ||
|
|
||
| The mouse cursor can get trapped or stop responding after the game launches. | ||
| This happened after selecting the new 1900x1200 resolution. | ||
| What fixed it: **Cmd+Tab** out of the game, force quit it, then relaunch. The mouse worked again after that. | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| ### steamcmd: "Failed to load steamconsole.dylib" or a Breakpad.framework popup | ||
|
|
||
| This is macOS Gatekeeper quarantining steamcmd's self-updated libraries, covered in Step 2. | ||
| Click **Done** on any "Breakpad.framework" popup (never Move to Trash), then clear the quarantine and re-run: | ||
|
|
||
| ```bash | ||
| xattr -dr com.apple.quarantine /opt/homebrew/Caskroom/steamcmd/*/MacOS | ||
| ``` | ||
|
|
||
| ### Game won't start in Heroic | ||
|
|
||
| If the game won't start, right-click the game icon in Heroic and select **Logs**. | ||
| Common things to look for: D3D errors, missing DLL calls, or Wine prefix initialization failures. | ||
|
|
||
| ## What was (not) tested | ||
|
|
||
| Tested on an M4 Pro MacBook Pro (24 GB RAM) running macOS Tahoe 26.4, | ||
| with Heroic 2.20.1 and Wine-CrossOver-Latest 23.7.1-1. | ||
| Performance and audio were both fine. | ||
|
|
||
| Not tested: | ||
|
|
||
| - Online multiplayer | ||
| - The base *Generals* game (only *Zero Hour* was tested) | ||
| - Intel Macs | ||
| - Mods | ||
|
|
||
| > **Note:** Cross-platform online multiplayer isn't possible yet. | ||
| > An Apple Silicon Mac can't play against Windows players or Intel Macs - | ||
| > the game desyncs and ends in a mismatch early on. | ||
|
|
||
| ## Background: Why not Game Porting Toolkit? | ||
|
|
||
| GPTK was tested but crashes on the splash screen. | ||
| The crash is a memory allocation assertion inside Wine's virtual memory layer when running 32-bit executables | ||
| through the `x86_32on64` translation path. | ||
| Generals is a 32-bit DX8 game, and GPTK's 32-bit-on-64-bit emulation can't handle it. | ||
|
|
||
| The relevant error from the Heroic log: | ||
|
|
||
| ```bash | ||
| Assertion failed: (end <= pages_vprot_size << pages_vprot_shift), function alloc_pages_vprot, file virtual.c, line 1032. | ||
| 0024:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception. | ||
| ``` | ||
|
|
||
| This is a bug in GPTK, not something configurable on your end. | ||
| Wine-CrossOver handles 32-bit apps through a more mature emulation path and doesn't hit this issue. | ||
| If a future GPTK version fixes 32-bit virtual memory allocation on ARM64, | ||
| it may be worth retrying since Apple's DirectX-to-Metal translation is theoretically a better long-term path. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.