goddessfreya / hookey

Enables all the DLCs. Like Creamapi but just for linux and a subset of Paradox games.
123 stars 32 forks source link

"Launcher not found, retrying..." #40

Closed okinawadreaming closed 2 years ago

okinawadreaming commented 2 years ago

Installation script gets stuck on a loop because it can't find the Paradox Launcher.

This was tested with EU4. The installation does not finish and the DLCs are not enabled.

This is the text input that repeats every 10 seconds, past a certain point in the ./install_copy script:

v+./apps/eu4/override_prep:16> echo /home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.1 /home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.8
+./apps/eu4/override_prep:16> basename '/home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.1 /home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.8'
+./apps/eu4/override_prep:17> source ./common
+./common:3> var_keys=( INSTALLS INSTALL INSTALL_STR APP APP_ROOT APP_MARK_EXEC_LOC APP_MARK_EXEC )
+./common:13> declare -A var_types=([$'\M-"'INSTALLS[file$'\M-"'[INSTALLfile[$'\M-"'INSTALL_STR[eval$'\M-"'[APPeval[$'\M-"'APP_ROOT[eval$'\M-"'[APP_MARK_EXEC_LOCeval[$'\M-"'APP_MARK_EXEC )
+./common:24> declare -A vars=([$'\M-"'INSTALLS['"./.installs"'$'\M-"'[INSTALL'"./.install"'[$'\M-"'INSTALL_STR['"$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'$'\M-"'[APP'"$(echo "$INSTALL_STR" | cut -d" " -f1)"'[$'\M-"'APP_ROOT['"$(echo "$INSTALL_STR" | cut -d" " -f2-)"'$'\M-"'[APP_MARK_EXEC_LOC'"$(pwd)/apps/${APP}/executables"'[$'\M-"'APP_MARK_EXEC )
+./common:34> declare -A var_deps=([$'\M-"'INSTALLS['()'$'\M-"'[INSTALL'()'[$'\M-"'INSTALL_STR['(INSTALLS INSTALL)'$'\M-"'[APP'(INSTALL_STR)'[$'\M-"'APP_ROOT['(INSTALL_STR)'$'\M-"'[APP_MARK_EXEC_LOC'(APP)'[$'\M-"'APP_MARK_EXEC )
+./common:45> declare -A vars_done=( )
+./common:72> populate
]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=+populate:1> key=INSTALLS
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.installs"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.installs"'
+(eval):1> local file=./.installs
+populate:12> [[ -f ./.installs ]]
+populate:13> cat ./.installs
+populate:13> export $'INSTALLS=eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa\\ Universalis\\ IV/\neu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.install"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.install"'
+(eval):1> local file=./.install
+populate:12> [[ -f ./.install ]]
+populate:13> cat ./.install
+populate:13> export 'INSTALL=2'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL_STR
+populate:2> eval 'local this_deps=(INSTALLS INSTALL)'
+(eval):1> local this_deps=( INSTALLS INSTALL )
+populate:3> dep=INSTALLS
+populate:4> [[ 1 != 1 ]]
+populate:3> dep=INSTALL
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export INSTALL_STR="$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+(eval):1> echo $'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa\\ Universalis\\ IV/\neu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> head -n2
+(eval):1> tail -n1
+(eval):1> export INSTALL_STR='eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:20> vars_done[$key]=1
+populate:1> key=APP
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP="$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+(eval):1> echo 'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> cut '-d ' -f1
+(eval):1> export APP=eu4
+populate:20> vars_done[$key]=1
+populate:1> key=APP_ROOT
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_ROOT="$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+(eval):1> echo 'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> cut '-d ' -f2-
+(eval):1> export APP_ROOT='/home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC_LOC
+populate:2> eval 'local this_deps=(APP)'
+(eval):1> local this_deps=( APP )
+populate:3> dep=APP
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(pwd)/apps/${APP}/executables"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_MARK_EXEC_LOC="$(pwd)/apps/${APP}/executables"'
+(eval):1> pwd
+(eval):1> export APP_MARK_EXEC_LOC=/home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC
+populate:2> eval 'local this_deps=(APP_MARK_EXEC_LOC)'
+(eval):1> local this_deps=( APP_MARK_EXEC_LOC )
+populate:3> dep=APP_MARK_EXEC_LOC
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=file
+populate:9> local var='"$APP_MARK_EXEC_LOC"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="$APP_MARK_EXEC_LOC"'
+(eval):1> local file=/home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:12> [[ -f /home/okinawadreaming/Documents/hookey/apps/eu4/executables ]]
+populate:13> cat /home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:13> export $'APP_MARK_EXEC=./steam_api64.dll\n./launcher-installer-linux\n./dbghelp.dll\n./tbb.dll\n./dowser.exe\n./pdx_core_test\n./libpops_api.so\n./dowser\n./eu4\n./pops_api.dll\n./crash_reporter/binaries/CrashReporter\n./crash_reporter/binaries/CrashReporter.exe\n./eu4.exe\n./libtbb.so.2\n./lua51.dll\n./libsteam_api.so\n./lua5.1.dll\n./libsteam_api.so.old'
+populate:14> vars_done[$key]=1
+./common:74> [[ eu4 !=  ]]
+./common:75> [[ ! -d ./apps/eu4 ]]
+./common:80> source ./apps/eu4/common
+./apps/eu4/common:3> var_keys+=( LAUNCHER_VERSION LAUNCHER_ROOT LAUNCHER_API_LOC OVERRIDE_DIRS GOLDBERG_BUILD )
+./apps/eu4/common:5> vars[LAUNCHER_VERSION]=./apps/eu4/.launcher_version
+./apps/eu4/common:6> var_types[LAUNCHER_VERSION]=file
+./apps/eu4/common:7> var_deps[LAUNCHER_VERSION]='()'
+./apps/eu4/common:9> vars[LAUNCHER_ROOT]='"$HOME/.paradoxlauncher"'
+./apps/eu4/common:10> var_types[LAUNCHER_ROOT]=eval
+./apps/eu4/common:11> var_deps[LAUNCHER_ROOT]='()'
+./apps/eu4/common:13> vars[LAUNCHER_API_LOC]='"${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app.asar.unpacked/dist/main"'
+./apps/eu4/common:14> var_types[LAUNCHER_API_LOC]=eval
+./apps/eu4/common:15> var_deps[LAUNCHER_API_LOC]='(LAUNCHER_ROOT LAUNCHER_VERSION)'
+./apps/eu4/common:17> vars[OVERRIDE_DIRS]='("${LAUNCHER_API_LOC}" "${APP_ROOT}")'
+./apps/eu4/common:18> var_types[OVERRIDE_DIRS]=eval
+./apps/eu4/common:19> var_deps[OVERRIDE_DIRS]='(LAUNCHER_API_LOC APP_ROOT)'
+./apps/eu4/common:21> vars[GOLDBERG_BUILD]='"release"'
+./apps/eu4/common:22> var_types[GOLDBERG_BUILD]=eval
+./apps/eu4/common:23> var_deps[GOLDBERG_BUILD]='()'
+./common:81> populate
+populate:1> key=INSTALLS
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.installs"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.installs"'
+(eval):1> local file=./.installs
+populate:12> [[ -f ./.installs ]]
+populate:13> cat ./.installs
+populate:13> export $'INSTALLS=eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa\\ Universalis\\ IV/\neu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.install"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.install"'
+(eval):1> local file=./.install
+populate:12> [[ -f ./.install ]]
+populate:13> cat ./.install
+populate:13> export 'INSTALL=2'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL_STR
+populate:2> eval 'local this_deps=(INSTALLS INSTALL)'
+(eval):1> local this_deps=( INSTALLS INSTALL )
+populate:3> dep=INSTALLS
+populate:4> [[ 1 != 1 ]]
+populate:3> dep=INSTALL
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export INSTALL_STR="$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+(eval):1> echo $'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa\\ Universalis\\ IV/\neu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> head -n2
+(eval):1> tail -n1
+(eval):1> export INSTALL_STR='eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:20> vars_done[$key]=1
+populate:1> key=APP
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP="$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+(eval):1> echo 'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> cut '-d ' -f1
+(eval):1> export APP=eu4
+populate:20> vars_done[$key]=1
+populate:1> key=APP_ROOT
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_ROOT="$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+(eval):1> echo 'eu4 /home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+(eval):1> cut '-d ' -f2-
+(eval):1> export APP_ROOT='/home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV'
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC_LOC
+populate:2> eval 'local this_deps=(APP)'
+(eval):1> local this_deps=( APP )
+populate:3> dep=APP
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(pwd)/apps/${APP}/executables"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_MARK_EXEC_LOC="$(pwd)/apps/${APP}/executables"'
+(eval):1> pwd
+(eval):1> export APP_MARK_EXEC_LOC=/home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC
+populate:2> eval 'local this_deps=(APP_MARK_EXEC_LOC)'
+(eval):1> local this_deps=( APP_MARK_EXEC_LOC )
+populate:3> dep=APP_MARK_EXEC_LOC
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=file
+populate:9> local var='"$APP_MARK_EXEC_LOC"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="$APP_MARK_EXEC_LOC"'
+(eval):1> local file=/home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:12> [[ -f /home/okinawadreaming/Documents/hookey/apps/eu4/executables ]]
+populate:13> cat /home/okinawadreaming/Documents/hookey/apps/eu4/executables
+populate:13> export $'APP_MARK_EXEC=./steam_api64.dll\n./launcher-installer-linux\n./dbghelp.dll\n./tbb.dll\n./dowser.exe\n./pdx_core_test\n./libpops_api.so\n./dowser\n./eu4\n./pops_api.dll\n./crash_reporter/binaries/CrashReporter\n./crash_reporter/binaries/CrashReporter.exe\n./eu4.exe\n./libtbb.so.2\n./lua51.dll\n./libsteam_api.so\n./lua5.1.dll\n./libsteam_api.so.old'
+populate:14> vars_done[$key]=1
+populate:1> key=LAUNCHER_VERSION
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var=./apps/eu4/.launcher_version
+populate:10> [[ file == file ]]
+populate:11> eval 'local file=./apps/eu4/.launcher_version'
+(eval):1> local file=./apps/eu4/.launcher_version
+populate:12> [[ -f ./apps/eu4/.launcher_version ]]
+populate:13> cat ./apps/eu4/.launcher_version
+populate:13> export 'LAUNCHER_VERSION=launcher-v2.2022.8'
+populate:14> vars_done[$key]=1
+populate:1> key=LAUNCHER_ROOT
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=eval
+populate:9> local var='"$HOME/.paradoxlauncher"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export LAUNCHER_ROOT="$HOME/.paradoxlauncher"'
+(eval):1> export LAUNCHER_ROOT=/home/okinawadreaming/.paradoxlauncher
+populate:20> vars_done[$key]=1
+populate:1> key=LAUNCHER_API_LOC
+populate:2> eval 'local this_deps=(LAUNCHER_ROOT LAUNCHER_VERSION)'
+(eval):1> local this_deps=( LAUNCHER_ROOT LAUNCHER_VERSION )
+populate:3> dep=LAUNCHER_ROOT
+populate:4> [[ 1 != 1 ]]
+populate:3> dep=LAUNCHER_VERSION
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app.asar.unpacked/dist/main"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export LAUNCHER_API_LOC="${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app.asar.unpacked/dist/main"'
+(eval):1> export LAUNCHER_API_LOC=/home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.8/resources/app.asar.unpacked/dist/main
+populate:20> vars_done[$key]=1
+populate:1> key=OVERRIDE_DIRS
+populate:2> eval 'local this_deps=(LAUNCHER_API_LOC APP_ROOT)'
+(eval):1> local this_deps=( LAUNCHER_API_LOC APP_ROOT )
+populate:3> dep=LAUNCHER_API_LOC
+populate:4> [[ 1 != 1 ]]
+populate:3> dep=APP_ROOT
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='("${LAUNCHER_API_LOC}" "${APP_ROOT}")'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export OVERRIDE_DIRS=("${LAUNCHER_API_LOC}" "${APP_ROOT}")'
+(eval):1> export OVERRIDE_DIRS=( /home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.8/resources/app.asar.unpacked/dist/main '/home/okinawadreaming/.steam/root/steamapps/common/Europa Universalis IV' )
+populate:20> vars_done[$key]=1
+populate:1> key=GOLDBERG_BUILD
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=eval
+populate:9> local var='"release"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export GOLDBERG_BUILD="release"'
+(eval):1> export GOLDBERG_BUILD=release
+populate:20> vars_done[$key]=1
+./common:84> echo 'Populated LAUNCHER_API_LOC INSTALL_STR INSTALL LAUNCHER_VERSION APP_MARK_EXEC INSTALLS APP_MARK_EXEC_LOC OVERRIDE_DIRS APP_ROOT GOLDBERG_BUILD APP LAUNCHER_ROOT'
Populated LAUNCHER_API_LOC INSTALL_STR INSTALL LAUNCHER_VERSION APP_MARK_EXEC INSTALLS APP_MARK_EXEC_LOC OVERRIDE_DIRS APP_ROOT GOLDBERG_BUILD APP LAUNCHER_ROOT
+./apps/eu4/override_prep:18> [[ -d /home/okinawadreaming/.paradoxlauncher/launcher-v2.2022.8/resources/app.asar.unpacked/dist/main ]]
+./apps/eu4/override_prep:19> echo 'Launcher not found, retrying.'
Launcher not found, retrying.
+./apps/eu4/override_prep:13> true
+./apps/eu4/override_prep:14> echo 'Sleeping for 10 seconds...'
Sleeping for 10 seconds...
+./apps/eu4/override_prep:15> sleep 10
okinawadreaming commented 2 years ago

So SIGINTing the script seems to fix things, somehow. The launcher opens up as in the README when the script is killed and the DLCs are then enabled. Pretty wonky, but it works.