From 8c2e37e135a0c89e3f7fba6abb432782f3b8c70f Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 28 Nov 2020 21:31:50 -0500 Subject: [PATCH] Merged to master. --- audiogame-manager.sh | 56 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 5fe102a..3037c92 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -95,6 +95,11 @@ checklist() { errorList+=("Critical: ${i^} is not installed. You will not be able to install some games or their components.") fi done + if command -v gawk &> /dev/null ; then + echo "Gawk is installed." + else + errorList+=("Warning: gawk is not installed. Game removal with -r will not work.") + fi if command -v ocrdesktop &> /dev/null ; then echo "Ocrdesktop is installed." else @@ -241,7 +246,7 @@ game_removal() { # remove the game rm -rf "${HOME}/.local/wine/${game%|*}" # remove the launcher - awk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile" + gawk -i inplace -vLine="${game//\\/\\\\}" '!index($0,Line)' "$configFile" echo "The selected game has been deleted." fi exit 0 @@ -378,13 +383,16 @@ gameList=( "Death on the Road" "Easter Quest" #"Entombed" + "Fantasy Story II" "Finger Panic" "Fuck That Bird" + "GMA Tank Commander" "Hunter" "Kitchensinc Games" "Kringle Crash" "Light Cars" "Lockpick" + "Lone Wolf" "Manamon" "Manamon 2" "Oh Shit!" @@ -517,6 +525,13 @@ case "${game}" in wine "${cache}/EntombedUpdate.exe" /silent #add_launcher "c:\Program Files\MTGames\Easter Quest\easter.exe" ;; + "Fantasy Story II") + export winVer="win10" + install_wine_bottle speechsdk + download "https://stormgames.wolfe.casa/downloads/FS2_2.2_Windows_x86.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/FS2_2.2_Windows_x86.zip" + add_launcher "c:\Program Files\FS2_2.2_Windows_x86\FantasyStory2.exe" + ;; "Finger Panic") install_wine_bottle dx8vb vb6run download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe" @@ -532,6 +547,28 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Program Files/fuck that bird" "${cache}/bird_en.zip" add_launcher "c:\Program Files\fuck that bird/game.exe" ;; + "GMA Tank Commander") + install_wine_bottle vb6run dx8vb speechsdk + download "http://www.gmagames.com/gtc120.exe" + wine "${cache}/gtc120.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + xdotool sleep 15 type --clearmodifiers --delay 100 "${USER^}" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "${HOSTNAME^}" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "na@na.na" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "uuuuuuu" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool key --clearmodifiers Return 2> /dev/null + xdotool sleep 10 key --clearmodifiers Return 2> /dev/null + wineserver -w + echo "To accurately set your information, edit the file:" + echo "${WINEPREFIX}/drive_c/Program\ Files/GMA\ Tank\ Commander/config.dat" + echo "The default country is US. The fields are:" + echo -e "\"Firstname Lastname\"\n\"Email address\"\n\"Country code\"" + add_launcher "c:\Program Files\GMA Tank Commander\gtc.exe" + ;; "Hunter") install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. @@ -606,6 +643,23 @@ case "${game}" in wine "${cache}/lockpicksetup.exe" /silent add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe" ;; + "Lone Wolf") + install_wine_bottle vb6run dx8vb speechsdk + download "http://www.gmagames.com/lw350.exe" + wine "${cache}/lw350.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + xdotool sleep 10 type --clearmodifiers --delay 100 "$USER" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "$HOSTNAME" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "na@na.na" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool type --clearmodifiers --delay 100 "uuuuuu" 2> /dev/null + xdotool key --clearmodifiers Tab 2> /dev/null + xdotool key --clearmodifiers Return 2> /dev/null + wineserver -w + add_launcher "c:\Program Files\Lone Wolf\lw.exe" + ;; "Manamon") export winVer="win7" install_wine_bottle speechsdk