Created
August 13, 2023 15:03
-
-
Save brodock/be28cd5f7e92387d188a2b429b2ad743 to your computer and use it in GitHub Desktop.
Capture Age on Linux
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
#!/bin/bash | |
set -x | |
PROTON="GE-Proton8-4" | |
APPID=813780 | |
CAPTURE_AGE_VERSION=1.6.1 | |
STEAM_PATH="${HOME}/.steam" | |
STEAMAPPS="${STEAM_PATH}/root/steamapps" | |
COMPATIBILITY_TOOLS="${STEAM_PATH}/root/compatibilitytools.d" | |
PROTON_BIN="${COMPATIBILITY_TOOLS}/${PROTON}/proton" | |
# Proton Experimental | |
PROTON_BIN="${STEAMAPPS}/common/Proton - Experimental/proton" | |
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${STEAM_PATH}" | |
export STEAM_COMPAT_DATA_PATH="${STEAMAPPS}/compatdata/${APPID}" | |
export WINEPREFIX="${STEAM_COMPAT_DATA_PATH}/pfx" | |
download() { | |
# Donwload both: | |
# https://captureage.com/api/cade/download/prod/latest-setup | |
# https://captureage.com/api/cade/download/prod/latest | |
# | |
# Move to ${WINEPREFIX}/drive_c | |
wget https://captureage.com/api/cade/download/prod/latest-setup -o "${WINEPREFIX}/drive_c/CaptureAge ${CAPTURE_AGE_VERSION} Setup.exe" | |
wget https://captureage.com/api/cade/download/prod/latest -o "${WINEPREFIX}/drive_c/CaptureAge-${CAPTURE_AGE_VERSION}-x64.nsis.7z" | |
} | |
setup() { | |
"${PROTON_BIN}" run "${WINEPREFIX}/drive_c/CaptureAge ${CAPTURE_AGE_VERSION} Setup.exe" | |
} | |
proton_run() { | |
"${PROTON_BIN}" run ${WINEPREFIX}/drive_c/users/steamuser/AppData/Local/Programs/CaptureAge/CaptureAge.exe | |
} | |
wine_run() { | |
wine run ${WINEPREFIX}/drive_c/users/steamuser/AppData/Local/Programs/CaptureAge/CaptureAge.exe | |
} | |
download | |
setup | |
proton_run |
@SmallJoker Cool. But I imagine the two apps still cannot communicate?
@luisvalenzuelar Interestingly, CA does find the game process and can in fact tell it to load and play back the record. That's as far as I could get because connection is afterwards lost for no obvious reason. My CA is currently not in a usable state beyond having access to its main screen and a list of saved games.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With CaptureAge 1.10.0 I face the following error after setup via Proton 8.0-5:
After upgrading to Proton 9.0 (Beta), there is no longer a terminal output from Capture Age (regression?) but
PROTON_LOG=1
reveals the following:#pragma
is found in the DLLsd3dcompiler_47.dll
andlibGLESv2.dll
. Renaming/moving/deleting both made CaptureAge start up successfully.EDIT: If CA is started first, it can make AoE 2 DE to load the record, but then somehow fails with the error "Age 2 connection lost" and tries to start the game (again, which fails).
Doing the opposite - CA button in the AoE 2 DE replay mode - results in the popup "Failed to open CaptureAge to spectate the current game." Wonderful.