From f58855d65c292c8636d11ad0f8e7929dcd5b9512 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 18 Jan 2021 13:37:10 -0500 Subject: [PATCH 1/8] Removed the discontinued game Revenge of the Undead. Rest in pieces. --- audiogame-manager.sh | 9 ---- game-scripts/revenge-of-the-undead-update.sh | 49 -------------------- 2 files changed, 58 deletions(-) delete mode 100755 game-scripts/revenge-of-the-undead-update.sh diff --git a/audiogame-manager.sh b/audiogame-manager.sh index badec2d..c60e1e0 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -555,7 +555,6 @@ gameList=( "Perilous Hearts" "Pontes Kickups!" "Q9" - "Revenge of the Undead" "Rhythm Rage" #"River raiders" "RS Games" @@ -1007,14 +1006,6 @@ EOF wine "${cache}/q9_english_installer.exe" /silent add_launcher "c:\Program Files\Q9 Action Game\q9.exe" ;; - "Revenge of the Undead") - export winVer="win7" - install_wine_bottle speechsdk - download "https://tunmi13.dev/projects/rotu.zip" - unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/rotu.zip" - rm -fv "${WINEPREFIX}/drive_c/Program Files/rotu/nvdaControllerClient32.dll" - add_launcher "c:\Program Files\rotu\rotu.exe" - ;; "Rhythm Rage") export winVer="win7" install_wine_bottle speechsdk diff --git a/game-scripts/revenge-of-the-undead-update.sh b/game-scripts/revenge-of-the-undead-update.sh deleted file mode 100755 index 084c112..0000000 --- a/game-scripts/revenge-of-the-undead-update.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash -# -# âe contents of this file are subject to the Common Public Attribution -# License Version 1.0 (the âcenseâ you may not use this file except in -# compliance with the License. You may obtain a copy of the License at -# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version -# 1.1 but Sections 14 and 15 have been added to cover use of software over a -# computer network and provide for limited attribution for the Original -# Developer. In addition, Exhibit A has been modified to be consistent with -# Exhibit B. -# -# Software distributed under the License is distributed on an â ISâasis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is audiogame manager. -# -# The Original Developer is not the Initial Developer and is . If -# left blank, the Original Developer is the Initial Developer. -# -# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of -# the code written by Billy Wolfe are Copyright (c) 2020. All Rights -# Reserved. -# -# Contributor Michael Taboada. -# -# Contributor Jeremiah Ticket. -# -# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved. -# -# Attribution Phrase (not exceeding 10 words): A Stormux project -# -# Attribution URL: https://stormgames.wolfe.casa -# -# Graphic Image as provided in the Covered Code, if any. -# -# Display of Attribution Information is required in Larger -# Works which are defined in the CPAL as a work which combines Covered Code -# or portions thereof with code not governed by the terms of the CPAL. - -cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache" -url="https://tunmi13.dev/projects/rotu.zip" -(rm -v "${cache}/rotu.zip" -wget -O "${cache}/rotu.zip" "$url" || exit 1 -unzip -od "$HOME/.local/wine/revenge-of-the-undead/drive_c/Program Files" "${cache}/rotu.zip" -rm -fv "$HOME/.local/wine/drive_c/Program Files/rotu/nvdaControllerClient32.dll") | dialog --progressbox "updating Revenge of the undead, please wait..." -1 -1 - -exit 0 From 8b0360009503d2a96c65d2e8ae811566edddf9e5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 18 Jan 2021 15:13:46 -0500 Subject: [PATCH 2/8] Added game Battle of the Hunter. --- audiogame-manager.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index c60e1e0..5dee1ac 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -515,6 +515,7 @@ gameList=( "Adrian's Doom" "Adventurers At C" "AudioDisc" + "Battle of the Hunter" "Battle Zone" "Bloodshed" "Castaways" @@ -651,6 +652,14 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/audiodisc.zip" add_launcher "c:\Program Files\audiodisc\disco.exe" ;; + "Battle of the Hunter") + export winVer="win7" + install_wine_bottle speechsdk + download "https://tunmi13.dev/projects/bth.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files/$game" "${cache}/bth.zip" + find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; + add_launcher "c:\Program Files\\${game}/bth.exe" + ;; "Battle Zone") export winVer="win7" install_wine_bottle speechsdk From 2c29eaea38d7154f40f3e2a6a259adba70340798 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 31 Jan 2021 15:26:27 -0500 Subject: [PATCH 3/8] Fixed the path for swamp updates. --- game-scripts/swamp-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-scripts/swamp-update.sh b/game-scripts/swamp-update.sh index 93f883a..8f1e913 100755 --- a/game-scripts/swamp-update.sh +++ b/game-scripts/swamp-update.sh @@ -48,7 +48,7 @@ extract_error() { # Set the swamp directory -pushd ~/.local/wine/swamp +pushd ~/.local/wine/swamp/drive_c/Program\ Files/swamp # Restore the directory stack on exit. trap popd EXIT From e428a1b58c25b8f2148c3d58f6bad1f258a9fed7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 15 Feb 2021 12:44:16 -0500 Subject: [PATCH 4/8] Updated checklist. --- audiogame-manager.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 5dee1ac..684f38d 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -185,6 +185,11 @@ checklist() { else errorList+=("Warning: ocrdesktop is not installed. It can help if the installer gets stuck to figure out what is happening.") fi + if command -v qjoypad &> /dev/null ; then + echo "Qjoypad is installed." + else + errorList+=("Warning: qjoypad is not installed. Qjoypad allows you to play keyboard only games with a gamepad.") + fi if command -v unix2dos &> /dev/null ; then echo "Dos2unix is installed." else From f5fcaf2f0ddb15f2c9c789075a32d98a689925cb Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 15 Feb 2021 16:00:37 -0500 Subject: [PATCH 5/8] Added game "Extant" --- audiogame-manager.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 684f38d..9df79ab 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -535,6 +535,7 @@ gameList=( "Easter Quest" #"Entombed" #"Eurofly" + "Extant" "Fantasy Story II" #"Fartman" "Finger Panic" @@ -770,6 +771,12 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Eurofly" "${cache}/Launcher_1.2.zip" add_launcher "c:\Eurofly\launcher.exe" ;; + "Extant") + install_wine_bottle speechsdk + download "https://agarchive.net/games/other/extant.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files/extant" "${cache}/extant.zip" + add_launcher "c:\Program Files\extant\Extant.exe" + ;; "Fantasy Story II") export winVer="win10" install_wine_bottle speechsdk From ddcc7eb0914d1c747a41ce39575445c53b532389 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 17 Feb 2021 10:50:11 -0500 Subject: [PATCH 6/8] Added game "Sonic Zoom". --- audiogame-manager.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 9df79ab..34df42f 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -571,6 +571,7 @@ gameList=( "Shades of Doom" #"Silver Dollar" "Slender Lost Vision" + "Sonic Zoom" "Super Egg Hunt" "Super Liam" #"Super Mario Bros" @@ -1104,6 +1105,13 @@ EOF download "https://www.iamtalon.me/games/slender.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/slender.zip" add_launcher "c:\Program Files\slender\slender.exe" + ;; + "Sonic Zoom") + export winVer="win7" + install_wine_bottle speechsdk + download "http://wwwx.cs.unc.edu/Research/assist/et/projects/SonicZoom/soniczoom11.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/soniczoom11.zip" + add_launcher "c:\Program Files\Sonic Zoom\SonicZoom.exe" ;; "Super Egg Hunt") install_wine_bottle From e0cdfcb2ed751c6bcae50ba4b669dd7eee06f5a3 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 19 Feb 2021 12:58:11 -0500 Subject: [PATCH 7/8] Updated donation options. --- audiogame-manager.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 34df42f..e14e5b0 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -309,7 +309,7 @@ game_installer() { echo "All games are already installed." exit 0 fi - menuList+=("Make a One Time Donation" "Make a One Time Donation") + menuList+=("Donate" "Donate") menuList+=("Become a Patron" "Become a Patron") game="$(dialog --backtitle "Audio Game Installer" \ --clear \ @@ -329,15 +329,15 @@ game_removal() { for i in "${lines[@]}" ; do menuList+=("${i%|*}" "${i##*|}") done - menuList+=("Make a One Time Donation" "Make a One Time Donation") + menuList+=("Donate" "Donate") menuList+=("Become a Patron" "Become a Patron") local game="$(dialog --backtitle "Audio Game Removal" \ --clear \ --no-tags \ --menu "Please select a game to delete" 0 0 0 "${menuList[@]}" --stdout)" if [[ ${#game} -gt 0 ]]; then - if [[ "$game" == "Make a One Time Donation" ]]; then - open_url "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=stormdragon2976@gmail.com&lc=US&item_name=Donation+to+Storm+Games&no_note=0&cn=¤cy_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" + if [[ "$game" == "Donate" ]]; then + open_url "https://ko-fi.com/stormux" exit 0 fi if [[ "$game" == "Become a Patron" ]]; then @@ -372,15 +372,15 @@ kill_game() { for i in "${lines[@]}" ; do menuList+=("${i%|*}" "${i##*|}") done - menuList+=("Make a One Time Donation" "Make a One Time Donation") + menuList+=("Donate" "Donate") menuList+=("Become a Patron" "Become a Patron") local game="$(dialog --backtitle "Audio Game Killer" \ --clear \ --no-tags \ --menu "Please select a game to force stop" 0 0 0 "${menuList[@]}" --stdout)" if [[ ${#game} -gt 0 ]]; then - if [[ "$game" == "Make a One Time Donation" ]]; then - open_url "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=stormdragon2976@gmail.com&lc=US&item_name=Donation+to+Storm+Games&no_note=0&cn=¤cy_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" + if [[ "$game" == "Donate" ]]; then + open_url "https://ko-fi.com/stormux" exit 0 fi if [[ "$game" == "Become a Patron" ]]; then @@ -412,7 +412,7 @@ game_launcher() { for i in "${lines[@]}" ; do menuList+=("${i%|*}" "${i##*|}") done - menuList+=("Make a One Time Donation" "Make a One Time Donation") + menuList+=("Donate" "Donate") menuList+=("Become a Patron" "Become a Patron") local game="$(dialog --backtitle "Audio Game Launcher" \ --clear \ @@ -427,8 +427,8 @@ game_launcher() { fi fi if [[ ${#game} -gt 0 ]]; then - if [[ "$game" == "Make a One Time Donation" ]]; then - open_url "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=stormdragon2976@gmail.com&lc=US&item_name=Donation+to+Storm+Games&no_note=0&cn=¤cy_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" + if [[ "$game" == "Donate" ]]; then + open_url "https://ko-fi.com/stormux" exit 0 fi if [[ "$game" == "Become a Patron" ]]; then @@ -1244,8 +1244,8 @@ EOF 7z e -o"$WINEPREFIX/drive_c/Program Files/World of War" "${cache}/world of war English.7z" #add_launcher "c:\Program Files\" ;; - "Make a One Time Donation") - open_url "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=stormdragon2976@gmail.com&lc=US&item_name=Donation+to+Storm+Games&no_note=0&cn=¤cy_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" + "Donate") + open_url "https://ko-fi.com/stormux" ;; "Become a Patron") open_url "https://patreon.com/stormux" From b7c34a2dbe2edd39926bf825abb886b4460ce66a Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 21 Feb 2021 11:53:32 -0500 Subject: [PATCH 8/8] I think I got mono and gecko working for distros that do not have them available from the package manager. This means Ubuntu and Debian should have a lot less trouble with AGM, and dare I say maybe even Mac? --- audiogame-manager.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index e14e5b0..fa09638 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -256,7 +256,7 @@ download() { # Skip if the item is in cache. test -e "${cache}/${dest}" && continue if ! wget -4 -O "${cache}/${dest}" "${i}" ; then - echo "Could not download..." + echo "Could not download \"$i\"..." exit 1 fi done @@ -283,8 +283,19 @@ install_wine_bottle() { export WINEPREFIX="$HOME/.local/wine/${bottle}" # Arguments to the function are dependancies to be installed. (DISPLAY="" wineboot -u - wine msiexec /i z:$(find /usr/share/wine/mono -name "wine-mono*x86.msi") /quiet - wine msiexec /i z:$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi") /quiet + # Get location of mono and gecko. + monoPath="$(find /usr/share/wine/mono -name "wine-mono*x86.msi")" + geckoPath="$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi")" + if [[ -z "$monoPath" ]]; then + download 'http://dl.winehq.org/wine/wine-mono/6.0.0/wine-mono-6.0.0-x86.msi' + monoPath="${cache}/wine-mono-6.0.0-x86.msi" + fi + if [[ -z "$geckoPath" ]]; then + download 'http://dl.winehq.org/wine/wine-gecko/2.40/wine_gecko-2.40-x86.msi' + geckoPath="${cache}/wine_gecko-2.40-x86.msi" + fi + wine msiexec /i z:"$monoPath" /quiet + wine msiexec /i z:"$geckoPath" /quiet winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 }