Dev Notes

Architecture 5 min read

Black Flag Resynced: Fix the DX12 Error in CrossOver

Fix the DX12 launch error in CrossOver: install GPTK 4 Beta 3, configure D3DMetal and launch Black Flag Resynced with the right runtime.

A miniature pirate ship in a glass bottle connected to a laptop on a sunlit captain’s desk

Black Flag Resynced stops at “DX12 Error 0x80070057” in CrossOver? Update the D3DMetal runtime and launch the game with the matching graphics settings. With CrossOver 26.3, GPTK 4 Beta 3 and MetalFX off, the game runs normally.

The launch error was already reported across different Macs when Resynced released. It is not specific to one M-series chip. This guide walks through the Mac fix: prepare a separate CrossOver app, install the newer runtime and use a launcher that selects it every time.

What you need

  • CrossOver 26.3, with Black Flag Resynced already installed in a bottle.
  • Apple’s Evaluation environment for Windows games 4.0 Beta 3, available from the Game Porting Toolkit download page.
  • The name and location of your game’s bottle and the folder containing ACBlackFlag.exe.

This guide covers Black Flag Resynced, the remake of Assassin’s Creed IV: Black Flag. Older instructions for the 2013 game use a different graphics setup.

Before changing the runtime, quit the game and all other applications in its bottle. Back up the bottle configuration and your saves. The app copy below uses your existing bottle, so its game files and settings remain shared.

Black Flag Resynced launch error in CrossOver: DX12 Error 0x80070057
The DX12 launch error addressed by this guide.

1. Download and mount GPTK 4 Beta 3

Download Evaluation environment for Windows games 4.0 Beta 3 from Apple and open the DMG. Read the included installation instructions. Leave the disk image mounted while copying its runtime files.

The commands below use the volume name Evaluation environment for Windows games 4.0 beta 3. If Finder shows a different name, adjust the gptk path accordingly.

2. Install the runtime in a separate CrossOver app

The following commands copy /Applications/CrossOver.app to ~/Applications/CrossOver-BlackFlag.app, retain the original graphics libraries inside that copy and install the complete redist/lib runtime from Apple’s disk image. The normal CrossOver installation keeps its existing runtime.

Open Terminal and run:

#!/bin/zsh
set -eu

app="$HOME/Applications/CrossOver-BlackFlag.app"
gptk="/Volumes/Evaluation environment for Windows games 4.0 beta 3"
lib="$app/Contents/SharedSupport/CrossOver/lib64/apple_gptk"

[[ -d "$gptk/redist/lib" ]] || {
  print 'Mount the GPTK 4 Beta 3 disk image first.'
  exit 1
}
[[ ! -e "$app" ]] || {
  print 'Destination already exists. Choose a fresh app name.'
  exit 1
}

mkdir -p "$HOME/Applications"
ditto /Applications/CrossOver.app "$app"
mv "$lib/external" "$lib/external.original"
mv "$lib/wine" "$lib/wine.original"
ditto "$gptk/redist/lib" "$lib"

xattr -rd com.apple.FinderInfo "$app" 2>/dev/null || true
xattr -rd com.apple.ResourceFork "$app" 2>/dev/null || true
codesign --force --deep --sign - \
  --preserve-metadata=entitlements "$app"
codesign --verify --deep --strict "$app"

The final two commands sign the modified app locally and verify its signature. FinderInfo and ResourceFork metadata are removed from the copy beforehand because they can prevent signing.

Copy the complete runtime directory. Mixing a new D3DMetal framework with older companion DLLs creates a different setup from the one intended here.

3. Select D3DMetal and turn MetalFX off

Open the new CrossOver-BlackFlag.app, select the bottle containing the game and choose D3DMetal under its graphics settings. CodeWeavers explains the available backends here.

Use these environment settings when launching:

CX_GRAPHICS_BACKEND=d3dmetal
D3DM_ENABLE_METALFX=0
ROSETTA_ADVERTISE_AVX=1
  • CX_GRAPHICS_BACKEND=d3dmetal selects the DirectX-to-Metal backend.
  • D3DM_ENABLE_METALFX=0 disables MetalFX for this configuration.
  • ROSETTA_ADVERTISE_AVX=1 exposes AVX support to the Windows application.

The launcher in the next step supplies all three automatically.

4. Create a launcher for the updated runtime

Save the following script as Black Flag.command. Set bottle_root, bottle and game_dir to your installation. The example uses a bottle named BlackFlag and a game folder named BlackFlagResynced.

If your bottles live on an external drive, use that location for bottle_root. Keep runtime pointed at the app copy created in step 2.

#!/bin/zsh
set -eu

runtime="$HOME/Applications/CrossOver-BlackFlag.app/Contents/SharedSupport/CrossOver"
bottle_root="$HOME/Library/Application Support/CrossOver/Bottles"
bottle='BlackFlag'
game_dir="$bottle_root/$bottle/drive_c/Games/BlackFlagResynced"
log_dir="$HOME/Library/Logs/BlackFlag-CrossOver"

[[ -x "$runtime/bin/wine" && -f "$game_dir/ACBlackFlag.exe" ]] || {
  print 'Runtime or game missing. Check the paths first.'
  exit 1
}

mkdir -p "$log_dir"
log_file="$log_dir/$(date +%Y%m%d-%H%M%S).log"

CX_BOTTLE_PATH="$bottle_root" "$runtime/bin/wine" \
  --bottle "$bottle" \
  --env 'CX_GRAPHICS_BACKEND=d3dmetal D3DM_ENABLE_METALFX=0 ROSETTA_ADVERTISE_AVX=1' \
  --debugmsg '-all' \
  --workdir "$game_dir" "$game_dir/ACBlackFlag.exe" \
  >"$log_file" 2>&1

Make the file executable with chmod +x, followed by its path, then double-click it to start the game. Complete your game store’s normal sign-in if required.

Use this launcher for subsequent starts as well: it selects the updated runtime explicitly. Starting through your original CrossOver app would use its original graphics libraries.

5. Launch Black Flag Resynced

The DX12 error is gone, the graphics render correctly and Black Flag Resynced runs normally. Choose your preferred in-game graphics settings and head back to the Caribbean.

Black Flag Resynced running in CrossOver with GPTK 4 Beta 3, showing Edward in the main menu
Black Flag Resynced running with the updated D3DMetal runtime.

If the DX12 error still appears

Check the app you launched. The most easily missed detail is opening the regular CrossOver installation instead of the copy with GPTK 4 Beta 3. The launcher’s runtime path must point at CrossOver-BlackFlag.app.

Check the complete runtime. Install the whole redist/lib directory from the same Apple download, rather than replacing individual DLLs from different versions.

Check the bottle and game paths. The launcher needs your real bottle name and the directory containing ACBlackFlag.exe. A script copied with the example paths will need those values changed.

Quit the bottle before switching runtimes. Close its running applications before moving between the original CrossOver app and the updated copy.

Leave older Beta 2 byte patches out of this setup. They target a different library build. GPTK 4 Beta 3 runs this configuration without that additional patch.

Keep the working setup handy

Keep the launcher alongside your game shortcuts. It preserves the runtime choice and graphics variables, so the next session starts with the same settings. To return to the original runtime, quit the bottle’s applications and open the normal CrossOver app.

The important part is the matching combination of CrossOver 26.3, GPTK 4 Beta 3, D3DMetal and MetalFX off. Once that is in place, the ship can finally leave port.

Downloads and further reading

The cover is an editorial illustration. The error dialog and game image are actual screenshots.

  • #CrossOver
  • #Black Flag Resynced
  • #macOS
  • #D3DMetal
  • #GPTK
  • #Apple Silicon
  • #Debugging
Share LinkedIn X
A blue creature relaxes in a beach chair with a drink

Ready to start?

Tell me what you want to build or improve on an existing website.