nonlocalspellcast

bash -xv ./start.sh

Feb 1st, 2024 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.50 KB | None | 0 0
  1. user@host:~/Games/Heroic/Shadowrun Dragonfall]$ bash -xv ./start.sh
  2. #!/bin/bash
  3. # GOG.com (www.gog.com)
  4. # Shadowrun: Dragonfall - Director's Cut
  5.  
  6. # Initialization
  7. CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  8. +++ dirname ./start.sh
  9. ++ cd .
  10. ++ pwd
  11. + CURRENT_DIR='/home/user/Games/Heroic/Shadowrun Dragonfall'
  12. cd "${CURRENT_DIR}"
  13. + cd '/home/user/Games/Heroic/Shadowrun Dragonfall'
  14. source support/gog_com.shlib
  15. + source support/gog_com.shlib
  16. #!/bin/bash
  17. # Global
  18. GOG_BASH_LIBRARY_VERSION="1.1"
  19. ++ GOG_BASH_LIBRARY_VERSION=1.1
  20. HELP_TEXTS=""
  21. ++ HELP_TEXTS=
  22. _OPTION_FOUND="false"
  23. ++ _OPTION_FOUND=false
  24.  
  25. library_sanity_test() {
  26. echo "Library responding!"
  27. }
  28.  
  29. get_gameinfo() {
  30. cat gameinfo | head -n "${1}" | tail -n 1
  31. }
  32.  
  33. _option_found() {
  34. _OPTION_FOUND="true"
  35. }
  36.  
  37. # define option (short_name,long_name,help_text,arguments,action, arguments)
  38. define_option() {
  39. local short_name=$1
  40. local long_name=$2
  41. local help_text=$3
  42. local function=$4
  43. local arguments=$5
  44. local help_text="${short_name}, \t${long_name} \t\t- ${help_text}"
  45. HELP_TEXTS="${HELP_TEXTS}${help_text}\n"
  46. if [ "${arguments}" == "${short_name}" ] || [ "${arguments}" == "${long_name}" ] ; then
  47. _option_found
  48. "${function}" $arguments
  49. fi
  50. }
  51.  
  52. # version_option (version_gog,version_original)
  53. version_option() {
  54. local help_text="-v, \t--version \t\t- show version of this package"
  55. HELP_TEXTS="${HELP_TEXTS}${help_text}\n"
  56.  
  57. local version_gog=$1
  58. local version_original=$2
  59. local arguments=$3
  60. if [ "${arguments}" == "-v" ] || [ "${arguments}" == "--version" ] ; then
  61. _option_found
  62. echo "${version_gog} (GOG.com)"
  63. echo "${version_original} (Developer)"
  64. fi
  65. }
  66.  
  67. system_report_option() {
  68. local arguments=$1
  69. local help_text="-p, \t--sysrep \t\t- generate a system report"
  70. HELP_TEXTS="${HELP_TEXTS}${help_text}\n"
  71. if [ "${arguments}" == "-p" ] || [ "${arguments}" == "--sysrep" ] ; then
  72. _option_found
  73. cd support
  74. ./gog-system-report.sh
  75. fi
  76. }
  77.  
  78. # help_option (arguments)
  79. help_option(){
  80. local arguments=$1
  81. local help_text="-h, \t--help \t\t\t- display this help"
  82. HELP_TEXTS="${HELP_TEXTS}${help_text}\n"
  83. if [ "${arguments}" == "-h" ] || [ "${arguments}" == "--help" ] ; then
  84. _option_found
  85. echo -e "${GAME_NAME} [ ${VERSION} ] (GOG.com)\n"
  86. echo -e "usage: [command] [argument]\n"
  87. echo -e "Arguments: "
  88. echo -e $HELP_TEXTS | column -t -s $'\t'
  89. echo -e ""
  90. cat support/support_notice.txt
  91. fi
  92. }
  93.  
  94. default_option() {
  95. if [ "${_OPTION_FOUND}" != "true" ] ; then
  96. default
  97. fi
  98. }
  99.  
  100. standard_options() {
  101. version_option "${VERSION}" "${VERSION_DEV}" "$@"
  102. system_report_option "$@"
  103.  
  104. help_option "$@" # this has to be latest option before default_option
  105. default_option
  106. }
  107.  
  108. ###
  109. # Native
  110. ###
  111.  
  112. execute_game() {
  113. local bin_32="${1}"
  114. local bin_64="${2}"
  115. local bin_path32="${3}"
  116. local bin_path64="${4}"
  117. local lib_path32="${5}"
  118. local lib_path64="${6}"
  119. local arch=$(uname -m)
  120. if [ "$arch" == "x86_64" ]
  121. then
  122. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path64"
  123. cd "${bin_path64}"
  124. ./"${bin_64}"
  125. else
  126. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path32"
  127. cd "${bin_path32}"
  128. ./"${bin_32}"
  129. fi
  130. }
  131.  
  132. execute_game_with_params() {
  133. local bin_32="${1}"
  134. local bin_64="${2}"
  135. local bin_path32="${3}"
  136. local bin_path64="${4}"
  137. local lib_path32="${5}"
  138. local lib_path64="${6}"
  139. local arch=$(uname -m)
  140. if [ "$arch" == "x86_64" ]
  141. then
  142. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path64"
  143. cd "${bin_path64}"
  144. ./"${bin_64}" "$@"
  145. else
  146. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path32"
  147. cd "${bin_path32}"
  148. ./"${bin_32}" "$@"
  149. fi
  150. }
  151.  
  152. execute_game_aoss() {
  153. local bin_32="${1}"
  154. local bin_64="${2}"
  155. local bin_path32="${3}"
  156. local bin_path64="${4}"
  157. local lib_path32="${5}"
  158. local lib_path64="${6}"
  159. local arch=$(uname -m)
  160. if [ "$arch" == "x86_64" ]
  161. then
  162. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path64"
  163. cd "${bin_path64}"
  164. ./aoss ./"${bin_64}"
  165. else
  166. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$lib_path32"
  167. cd "${bin_path32}"
  168. ./aoss ./"${bin_32}"
  169. fi
  170. }
  171.  
  172. ###
  173. # DOSBox
  174. ###
  175.  
  176. run_dosbox() {
  177. local conf_1="${1}"
  178. local conf_2="${2}"
  179. ./dosbox/dosbox -conf "${conf_1}" -conf "${conf_2}" -no-console -c exit
  180. }
  181.  
  182. ###
  183. # ScummVM
  184. ###
  185.  
  186. run_scummvm() {
  187. local conf="${1}"
  188. ./scummvm/scummvm -c "${conf}" --themepath=scummvm
  189. }
  190.  
  191. ###
  192. # Wine
  193. ###
  194.  
  195. run_wine() {
  196. local game_path="${1}"
  197. local executable="${2}"
  198. local args="${3}"
  199. cd "${CURRENT_DIR}/prefix/${game_path}"
  200. export WINEPREFIX="${CURRENT_DIR}/prefix"
  201. echo "WINEPREFIX="$WINEPREFIX
  202. "${CURRENT_DIR}/wine_standalone/wine" "${game_path}" "${executable}" "${args}"
  203. }
  204.  
  205. run_wine_virtual() {
  206. local game_path="${1}"
  207. local executable="${2}"
  208. local args="${3}"
  209. cd "${CURRENT_DIR}/prefix/${game_path}"
  210. export WINEPREFIX="${CURRENT_DIR}/prefix"
  211. echo "WINEPREFIX="$WINEPREFIX
  212. "${CURRENT_DIR}/wine_standalone/wine-virtual" "${game_path}" "${executable}" "${args}"
  213. }
  214.  
  215. # Game info
  216. GAME_NAME="$(get_gameinfo 1)"
  217. ++ get_gameinfo 1
  218. ++ cat gameinfo
  219. ++ head -n 1
  220. ++ tail -n 1
  221. + GAME_NAME='Shadowrun: Dragonfall - Director'\''s Cut'
  222. VERSION="$(get_gameinfo 2)"
  223. ++ get_gameinfo 2
  224. ++ cat gameinfo
  225. ++ head -n 2
  226. ++ tail -n 1
  227. + VERSION=2.6.0.11
  228. VERSION_DEV="$(get_gameinfo 3)"
  229. ++ get_gameinfo 3
  230. ++ cat gameinfo
  231. ++ head -n 3
  232. ++ tail -n 1
  233. + VERSION_DEV=2.0.9
  234.  
  235. # Actions
  236. run_game() {
  237. echo "Running ${GAME_NAME}"
  238. cd game
  239. ./"Dragonfall.sh"
  240. }
  241.  
  242. run_editor() {
  243. echo "Running Editor"
  244. cd game
  245. ./"ShadowrunEditor"
  246.  
  247. }
  248.  
  249. default() {
  250. run_game
  251. }
  252.  
  253. # Options
  254. define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
  255. + define_option -s --start 'start Shadowrun: Dragonfall - Director'\''s Cut' run_game
  256. + local short_name=-s
  257. + local long_name=--start
  258. + local 'help_text=start Shadowrun: Dragonfall - Director'\''s Cut'
  259. + local function=run_game
  260. + local arguments=
  261. + local 'help_text=-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut'
  262. + HELP_TEXTS='-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut\n'
  263. + '[' '' == -s ']'
  264. + '[' '' == --start ']'
  265. define_option "-e" "--editor" "start Shadowrun Editor" "run_editor" "$@"
  266. + define_option -e --editor 'start Shadowrun Editor' run_editor
  267. + local short_name=-e
  268. + local long_name=--editor
  269. + local 'help_text=start Shadowrun Editor'
  270. + local function=run_editor
  271. + local arguments=
  272. + local 'help_text=-e, \t--editor \t\t- start Shadowrun Editor'
  273. + HELP_TEXTS='-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut\n-e, \t--editor \t\t- start Shadowrun Editor\n'
  274. + '[' '' == -e ']'
  275. + '[' '' == --editor ']'
  276.  
  277. # Defaults
  278. standard_options "$@"
  279. + standard_options
  280. + version_option 2.6.0.11 2.0.9
  281. + local 'help_text=-v, \t--version \t\t- show version of this package'
  282. + HELP_TEXTS='-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut\n-e, \t--editor \t\t- start Shadowrun Editor\n-v, \t--version \t\t- show version of this package\n'
  283. + local version_gog=2.6.0.11
  284. + local version_original=2.0.9
  285. + local arguments=
  286. + '[' '' == -v ']'
  287. + '[' '' == --version ']'
  288. + system_report_option
  289. + local arguments=
  290. + local 'help_text=-p, \t--sysrep \t\t- generate a system report'
  291. + HELP_TEXTS='-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut\n-e, \t--editor \t\t- start Shadowrun Editor\n-v, \t--version \t\t- show version of this package\n-p, \t--sysrep \t\t- generate a system report\n'
  292. + '[' '' == -p ']'
  293. + '[' '' == --sysrep ']'
  294. + help_option
  295. + local arguments=
  296. + local 'help_text=-h, \t--help \t\t\t- display this help'
  297. + HELP_TEXTS='-s, \t--start \t\t- start Shadowrun: Dragonfall - Director'\''s Cut\n-e, \t--editor \t\t- start Shadowrun Editor\n-v, \t--version \t\t- show version of this package\n-p, \t--sysrep \t\t- generate a system report\n-h, \t--help \t\t\t- display this help\n'
  298. + '[' '' == -h ']'
  299. + '[' '' == --help ']'
  300. + default_option
  301. + '[' false '!=' true ']'
  302. + default
  303. + run_game
  304. + echo 'Running Shadowrun: Dragonfall - Director'\''s Cut'
  305. Running Shadowrun: Dragonfall - Director's Cut
  306. + cd game
  307. + ./Dragonfall.sh
  308. ./Dragonfall: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
  309.  
  310. It seems Shadowrun Dragonfall has exited unsuccessfully (error = 127).
  311.  
  312. Please verify that you have the latest drivers installed before filing a bug report here:
  313. http://harebrained-schemes.com/shadowrun/bug-reports
  314.  
  315.  
Advertisement
Add Comment
Please, Sign In to add comment