From d67b422a7dbd65cc92e5302d89578225d8f1f5c0 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 24 Jun 2023 18:36:38 -0400 Subject: [PATCH 1/6] Hopefully better error handling for download errors and missing game files. --- audiogame-manager.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 337f4ec..f9ba389 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -286,7 +286,17 @@ download() { # Skip if the item is in cache. test -e "${cache}/${dest}" && continue if ! curl -L4 -C - --retry 10 --output "${cache}/${dest}" "${i}" ; then - echo "Could not download \"$i\"..." + local exit_code="$?" + if [[ $exit_code -eq 22 ]]; then + echo "File not found: \"$i\" (HTTP 404)" + # Remove the empty file. + rm -f "${cache}/${dest}" + exit 1 + fi + fi + if file -b "${cache}/${dest}" | grep -q "HTML document" ; then + echo "File not found: \"$i\" (HTML document probably 404)" + rm -f "${cache}/${dest}" exit 1 fi done @@ -1749,9 +1759,9 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\blind-drive\Blind Drive.exe" ;; "Bloodshed") + download "http://www.samtupy.com/games/bloodshed.exe" export winVer="win7" install_wine_bottle speechsdk - download "http://www.samtupy.com/games/bloodshed.exe" cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/" add_launcher "c:\Program Files\bloodshed.exe" ;; From e26cda26bad0266b39ec9fdc925100a5ddd667c3 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 24 Jun 2023 19:04:44 -0400 Subject: [PATCH 2/6] Added nvda2speed as option for VIPmud. --- audiogame-manager.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index f9ba389..b3de830 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -929,6 +929,9 @@ game_launcher() { popd exit 0 fi + if [[ "$game" =~ vip-mud ]]; then + pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & + fi if [[ -d "${WINEPREFIX}/drive_c/windows/syswow64" ]]; then pgrep -u "$USER" nvda2speechd &> /dev/null || ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd & # switch to wine64 for 64 bit prefix. @@ -3120,11 +3123,13 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. add_launcher "c:\Program Files\villains from beyond\game.exe" ;; "VIP Mud") + download "http://gmagames.com/vipmud20016.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" export winVer="win7" install_wine_bottle vb6run dx8vb speechsdk - download "http://gmagames.com/vipmud20016.exe" wine "${cache}/vipmud20016.exe" /silent mkdir -p "${HOME}/.local/wine/vip-mud/drive_c/users/${USER}/Documents/VIP Mud" + find "${WINEPREFIX}" -type f -name 'nvdaControllerClient.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; + find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; add_launcher "c:\Program Files\VIPMud 2.0\vipmud2.exe" echo echo "When you first launch VIP Mud You will be presented with several inaccessible dialogs." From 9c0e8385f5178bf48ea76cb01fecefcf976df87e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 25 Jun 2023 21:47:37 -0400 Subject: [PATCH 3/6] After the error handling update for downloading games, I needed to reorganize a lot of the installers Thiss is a large change that affects almost every single game. So, if you notice problems installing games please let me know. --- audiogame-manager.sh | 270 +++++++++++++++++++++---------------------- 1 file changed, 135 insertions(+), 135 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index b3de830..5189529 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1293,34 +1293,34 @@ done # Install game based on the selection above. case "${game}" in "A Hero's Call") + download "http://files.OutOfSightGames.com/files/a-heros-call.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" export winVer="win7" export winetricksSettings="vd=1024x768" install_wine_bottle speechsdk corefonts # Dotnet is evil. That is all. LC_ALL=C DISPLAY="" winetricks -q dotnet462 xna40 wineserver -k # Really! - download "http://files.OutOfSightGames.com/files/a-heros-call.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/a-heros-call.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\a-heros-call\A Hero's Call.exe" ;; "Adrian's Doom") - install_wine_bottle speechsdk download "https://agarchive.net/games/mt/adrian's%20doom.exe" + install_wine_bottle speechsdk wine "${cache}/adrian's doom.exe" /silent add_launcher "c:\Program Files\Two Caring Citizens\Adrian's Doom!\adrian.exe" ;; "Adventurers At C") - install_wine_bottle speechsdk download "http://www.vgstorm.com/aac/aac.zip" "https://www.agarchive.net/games/vg/adventure%20at%20c%20stages.7z" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/aac" "${cache}/aac.zip" 7z x -o"$WINEPREFIX/drive_c/Program Files/aac/stages" "${cache}/adventure at c stages.7z" add_launcher "c:\Program Files\aac\aac.exe" ;; "Alien Outback") + download "http://download.dracoent.com/Windows/classic/AOSetup.exe" export winVer="win7" install_wine_bottle vb6run dx8vb speechsdk quartz - download "http://download.dracoent.com/Windows/classic/AOSetup.exe" wine "${cache}/AOSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -1329,21 +1329,21 @@ case "${game}" in add_launcher "c:\Program Files\Draconis Entertainment\Alien Outback\ao.exe" ;; "Angel Gift") - install_wine_bottle speechsdk download "https://erion.cf/files/ag_103.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/Angel Gift" "$cache/ag_103.zip" add_launcher 'c:\Program Files\Angel Gift\ag.exe' ;; "AudioDisc") - install_wine_bottle download "https://agarchive.net/games/other/audiodisc.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/audiodisc.zip" add_launcher "c:\Program Files\audiodisc\disco.exe" ;; "AudioQuake") + download "https://github.com/matatk/agrip/releases/download/2020.0-beta1/AudioQuake+LDL_2020.0-beta1_Windows.zip" "https://stormgames.wolfe.casa/downloads/quake.zip" export winVer="win7" install_wine_bottle speechsdk - download "https://github.com/matatk/agrip/releases/download/2020.0-beta1/AudioQuake+LDL_2020.0-beta1_Windows.zip" "https://stormgames.wolfe.casa/downloads/quake.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/AudioQuake+LDL_2020.0-beta1_Windows.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/AudioQuake/id1" "${cache}/quake.zip" add_launcher "c:\Program Files\AudioQuake\AudioQuake.exe" @@ -1363,28 +1363,28 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\bf\bf.exe" ;; "Battle of the Hunter") + download "http://tunmi13.ddns.net/projects/bth.zip" export bottle="tunmi13" export winVer="win7" install_wine_bottle speechsdk - download "http://tunmi13.ddns.net/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") + download "https://www.agarchive.net/games/gameMadnessInteractive/battle%20zone%2013.5%20setup.exe" export winVer="win7" install_wine_bottle speechsdk - download "https://www.agarchive.net/games/gameMadnessInteractive/battle%20zone%2013.5%20setup.exe" wine "${cache}/battle zone 13.5 setup.exe" /silent find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\Battle Zone\ss.exe" ;; "Beatstar Pro") + download "https://oriolgomez.com/games/beat_windows.zip" # Sapi is broken on win64 for now, and this game doesn't support nvda it seems. export WINEARCH=win64 export winVer="win7" install_wine_bottle mf - download "https://oriolgomez.com/games/beat_windows.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/Beatstar Pro" "${cache}/beat_windows.zip" add_launcher "c:\Program Files\Beatstar Pro\beatstar.exe" ;; @@ -1769,19 +1769,19 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\bloodshed.exe" ;; "Bokurano Daibouken") + download "https://www.nyanchangames.com/softs/nn_setup.exe" export bottle="nyanchan" export winVer="win7" install_wine_bottle - download "https://www.nyanchangames.com/softs/nn_setup.exe" 7z x -o"$WINEPREFIX/drive_c/nyanchangame/bk" "${cache}/nn_setup.exe" find "${WINEPREFIX}/drive_c/nyanchangame/bk/" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; add_launcher "c:\nyanchangame\bk\play.exe" ;; "Bokurano Daibouken 2") + download "https://www.nyanchangames.com/softs/nn2_setup.exe" export bottle="nyanchan" export winVer="win7" install_wine_bottle - download "https://www.nyanchangames.com/softs/nn2_setup.exe" 7z x -o"$WINEPREFIX/drive_c/nyanchangame/bk2" "${cache}/nn2_setup.exe" find "${WINEPREFIX}/drive_c/nyanchangame/bk2/" -type f -name 'nvdaControllerClient.dll' -exec rm -v "{}" \; add_launcher "c:\nyanchangame\bk2\play.exe" @@ -1800,10 +1800,10 @@ download "https://erion.cf/files/ag_103.zip" if [[ "${#dictFile}" -ge 3 ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then dialog --backtitle "Audiogame manager" --yesno "Possible English translation file found at $dictFile. Would you like to use it for BK3?" -1 -1 --stdout && cp -v "$dictFile" "${cache}/bk3-dict.dat" fi + download "https://www.nyanchangames.com/softs/nn3_setup.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" export bottle="nyanchan" export winVer="win7" install_wine_bottle - download "https://www.nyanchangames.com/softs/nn3_setup.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" cp "${cache}/nvda2speechd" "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" chmod +x "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" 7z x -o"$WINEPREFIX/drive_c/nyanchangame/bk3" "${cache}/nn3_setup.exe" @@ -1811,25 +1811,25 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\nyanchangame\bk3\play.exe" ;; "Bop It Emulator") + download "http://www.masonasons.me/softs/BopItEmulator3.1PasswordIsBopIt.7z" export winVer="win7" install_wine_bottle - download "http://www.masonasons.me/softs/BopItEmulator3.1PasswordIsBopIt.7z" 7z x -o"$WINEPREFIX/drive_c/Program Files/Bop It" "${cache}/BopItEmulator3.1PasswordIsBopIt.7z" -pBopIt add_launcher "c:\Program Files\Bop It\bop.exe" ;; "Bounce Bounce") - export winVer="win7" - export WINEARCH=win64 get_installer "bounce_bounce.rar" "https://kavyapriya.itch.io/bounce-bounce" download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" + export winVer="win7" + export WINEARCH=win64 install_wine_bottle unrar x "${cache}/bounce_bounce.rar" -op"$WINEPREFIX/drive_c/Program Files" find "${WINEPREFIX}/drive_c/Program Files/bounce_bounce" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvda2speechd64.dll" "{}" \; add_launcher "c:\Program Files\bounce_bounce\bounce.exe" ;; "Breu2 Shadow Hunt") - get_installer "breu2.zip" "https://breu.itch.io/shadowhunt" download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" + get_installer "breu2.zip" "https://breu.itch.io/shadowhunt" export WINEARCH=win64 export winVer="win8" install_wine_bottle @@ -1838,59 +1838,59 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\breu2\breu2.exe" ;; "Bombercats") + download "http://oriolgomez.com/games/bombercats_en.zip" export bottle="oriol-gomez" export winVer="win7" install_wine_bottle - download "http://oriolgomez.com/games/bombercats_en.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/bomvercats" "${cache}/bombercats_en.zip" find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\bomvercats\game.exe" ;; "Breed Memorial") + download "https://hirotaka2014.sakura.ne.jp/mh0406/game/breed_memorial.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" export winVer="win7" install_wine_bottle cjkfonts speechsdk - download "https://hirotaka2014.sakura.ne.jp/mh0406/game/breed_memorial.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/breed_memorial.zip" #find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\Breed memorial\Breed memorial\breed memorial.exe" ;; "Castaways") + download "https://www.kaldobsky.com/audiogames/castaways.zip" export bottle="aprone" export winVer="win7" install_wine_bottle vb6run dx8vb speechsdk - download "https://www.kaldobsky.com/audiogames/castaways.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/castaways" "${cache}/castaways.zip" wine "c:\Program Files\castaways\Checkup.exe" /verysilent add_launcher "c:\Program Files\castaways\Castaways.exe" ;; "Castaways 2") + download "http://www.kaldobsky.com/audiogames/castaways2beta.zip" export bottle="aprone" export winVer="win7" install_wine_bottle vb6run dx8vb speechsdk - download "http://www.kaldobsky.com/audiogames/castaways2beta.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/castaways2" "${cache}/castaways2beta.zip" wine "c:\Program Files\castaways2\Checkup.exe" /verysilent add_launcher "c:\Program Files\castaways2\Castaways2.exe" ;; "Challenge of the Horse") + download "http://tunmi13.ddns.net/projects/coth.zip" export bottle="tunmi13" export winVer="win7" install_wine_bottle speechsdk - download "http://tunmi13.ddns.net/projects/coth.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/$game" "${cache}/coth.zip" find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\\${game}\game.exe" ;; "Chillingham") - install_wine_bottle vb6run mfc42 download "https://stormgames.wolfe.casa/downloads/chillingham.zip" + install_wine_bottle vb6run mfc42 unzip -d "$WINEPREFIX/drive_c/Program Files" "$cache/chillingham.zip" add_launcher "c:\Program Files\chillingham\Chillingham.exe" ;; "Chopper Challenge") # Freezes at menu - install_wine_bottle vb6run dx8vb speechsdk download "https://www.agarchive.net/games/XSight/chopper%20challenge%20setup.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/chopper challenge setup.exe" /silent & xdotool sleep 5 key y 2> /dev/null wineserver -w @@ -1908,23 +1908,23 @@ download "https://erion.cf/files/ag_103.zip" ;; "Constant Battle") export winVer="win7" - install_wine_bottle cjkfonts speechsdk download "https://renovagames.com/bc/BC-Setup.exe" + install_wine_bottle cjkfonts speechsdk wine "${cache}/BC-Setup.exe" /silent #add_launcher "c:\Program Files\" ;; "Christmas Chaos") export WINEARCH=win64 export winVer="win7" - install_wine_bottle download "https://repo.accessiware.com/games/christmaschaos/ChristmasChaos.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/ChristmasChaos.zip" find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; add_launcher "c:\Program Files\ChristmasChaos\ChristmasChaos.exe" ;; "Christmas WhoopAss") - install_wine_bottle vb6run dx8vb download "https://www.agarchive.net/games/draconis/christmas%20whoopass%20setup.exe" + install_wine_bottle vb6run dx8vb wine "${cache}/christmas whoopass setup.exe" /sp- /silent add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe" ;; @@ -1953,37 +1953,37 @@ download "https://erion.cf/files/ag_103.zip" "Copter Mission") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/copter_en.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/copter mission" "${cache}/copter_en.zip" add_launcher "c:\Program Files\copter mission\game.exe" ;; "Crazy Party") export winVer="win7" - install_wine_bottle speechsdk download "http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta78.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/Crazy-Party-beta78.zip" add_launcher "c:\Program Files\Crazy-Party-beta78\Crazy Party.exe" rm -f "${WINEPREFIX}/drive_c/Program Files/Crazy-Party-beta78/nvdaControllerClient32.dll" ;; "Crazy Tennis") - install_wine_bottle speechsdk download "https://www.agarchive.net/games/VIP/crazy%20tennis%20setup.exe" + install_wine_bottle speechsdk wine "${cache}/crazy tennis setup.exe" /sp- /silent add_launcher "c:\Program Files\Crazytennis\crazytennis.exe" ;; "Crime Hunter") export WINEARCH=win64 export winVer="win7" - install_wine_bottle download "http://masonasons.me/softs/CH2.0Win.zip" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvda2speechd64.dll" "{}" \; add_launcher "c:\Program Files\crime-hunter\ch.exe" ;; "Danger City") - install_wine_bottle vb6run dx8vb download "https://www.agarchive.net/games/xl/DangerCityBeta2.exe" + install_wine_bottle vb6run dx8vb wine "$cache/DangerCityBeta2.exe" /silent & xdotool sleep 15 key --clearmodifiers --delay 200 Return 2> /dev/null xdotool sleep 5 key --clearmodifiers --delay 200 Return 2> /dev/null @@ -1993,18 +1993,18 @@ download "https://erion.cf/files/ag_103.zip" add_launcher 'c:\Program Files\Danger City\dc.exe' ;; "Danger on the Wheel") + download "http://oriolgomez.com/games/wheel_en.zip" export bottle="oriol-gomez" export winVer="win7" install_wine_bottle speechsdk - download "http://oriolgomez.com/games/wheel_en.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/danger on the wheel" "${cache}/wheel_en.zip" find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\danger on the wheel\game.exe" ;; "Dark Destroyer") export bottle=pbgames - install_wine_bottle speechsdk ie6 download "https://www.agarchive.net/games/pb/Dark-Destroyer-Setup.exe" + install_wine_bottle speechsdk ie6 wine "$cache/Dark-Destroyer-Setup.exe" /silent add_launcher 'c:\Pbgames\Dark_destroyer\darkdestroyer.exe' ;; @@ -2012,8 +2012,8 @@ download "https://erion.cf/files/ag_103.zip" export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz corefonts download "https://kaldobsky.com/audiogames/Daytona.zip" + install_wine_bottle vb6run dx8vb quartz corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/daytona" "${cache}/Daytona.zip" wine 'c:\Program Files\daytona\checkup.exe' /verysilent add_launcher "c:\Program Files\daytona\Daytona.exe" @@ -2021,16 +2021,16 @@ download "https://erion.cf/files/ag_103.zip" "Death on the Road") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/road_en.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/death on the road" "${cache}/road_en.zip" add_launcher "c:\Program Files\death on the road\game.exe" ;; "Deathmatch") export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle quartz speechsdk download "https://www.agarchive.net/games/realitySoftware/death%20match%20project%20alpha%20setup.exe" + install_wine_bottle quartz speechsdk wine "${cache}/death match project alpha setup.exe" /silent add_launcher "c:\Program Files\reality software\death match project alpha\dm1.exe" ;; @@ -2038,8 +2038,8 @@ download "https://erion.cf/files/ag_103.zip" export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz speechsdk corefonts download "https://www.kaldobsky.com/audiogames/dogwhohatestoast.zip" + install_wine_bottle vb6run dx8vb quartz speechsdk corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/dogwhohatestoast" "${cache}/dogwhohatestoast.zip" wine 'c:\Program Files\dogwhohatestoast\checkup.exe' /verysilent add_launcher "c:\Program Files\dogwhohatestoast\DogwhoHatesToast.exe" @@ -2054,15 +2054,15 @@ download "https://erion.cf/files/ag_103.zip" ;; "Duck Hunt") export bottle="l-works" - install_wine_bottle vb6run dx8vb speechsdk download "http://files.l-works.net/dhsetup.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/dhsetup.exe" /silent add_launcher "c:\Program Files\Lworks\Duck Hunt\duckhunt.exe" ;; "DynaMan") export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/DMSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/DMSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -2071,27 +2071,27 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\Draconis Entertainment\DynaMan\dm.exe" ;; "Easter Quest") - install_wine_bottle download "https://agarchive.net/games/mt/easter%20quest%20setup.exe" + install_wine_bottle wine "${cache}/easter quest setup.exe" /silent add_launcher "c:\Program Files\MTGames\Easter Quest\easter.exe" ;; "Endless Runner") - install_wine_bottle speechsdk download "http://www.masonasons.me/softs/EndlessRunner.7z" + install_wine_bottle speechsdk 7z x -y -o"$WINEPREFIX/drive_c/Program Files/Endless Runner" "${cache}/EndlessRunner.7z" -prunner find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\Endless Runner\runner.exe" ;; "Entombed") export version="6.18" + download "http://blind-games.com/newentombed/EntombedSetup.exe" "https://download.microsoft.com/download/E/C/1/EC1B2340-67A0-4B87-85F0-74D987A27160/SSCERuntime-ENU.exe" "https://stormgames.wolfe.casa/downloads/Entombed.exe.config" "https://stormgames.wolfe.casa/downloads/mfplat.dll" install_wine "$version" "32" export winVer="win7" install_wine_bottle speechsdk msvcrt40 gdiplus ie7 wmp11 mf # Ok, more dotnet. LC_ALL=C DISPLAY="" winetricks -q dotnet40 xna40 ${wine}server -k # Sigh. - download "http://blind-games.com/newentombed/EntombedSetup.exe" "https://download.microsoft.com/download/E/C/1/EC1B2340-67A0-4B87-85F0-74D987A27160/SSCERuntime-ENU.exe" "https://stormgames.wolfe.casa/downloads/Entombed.exe.config" "https://stormgames.wolfe.casa/downloads/mfplat.dll" mkdir -p "${WINEPREFIX}/drive_c/temp" pushd "${WINEPREFIX}/drive_c/temp" 7z x "${cache}/SSCERuntime-ENU.exe" @@ -2116,8 +2116,8 @@ download "https://erion.cf/files/ag_103.zip" "ESP Pinball Classic") export winVer="win7" export bottle="esp-pinball" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/PBCSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/PBCSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -2128,8 +2128,8 @@ download "https://erion.cf/files/ag_103.zip" "ESP Pinball Extreme") export winVer="win7" export bottle="esp-pinball" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/PBXSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/PBXSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -2153,42 +2153,42 @@ download "https://erion.cf/files/ag_103.zip" "Eurofly") export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle speechsdk comctl32 download "https://www.stefankiss.sk/files/eurofly2/Launcher_1.2.zip" "https://www.stefankiss.sk/files/eurofly2/Eurofly_2_ful_setup.exe" + install_wine_bottle speechsdk comctl32 wine "${cache}/Eurofly_2_ful_setup.exe" /silent unzip -o -d "$WINEPREFIX/drive_c/Eurofly" "${cache}/Launcher_1.2.zip" add_launcher "c:\Eurofly\launcher.exe" echo "Note: On first and sometimes later launch, Eurofly may take a very long time to download required files, please be patient..." ;; "Extant") - install_wine_bottle speechsdk download "https://agarchive.net/games/other/extant.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/extant" "${cache}/extant.zip" add_launcher "c:\Program Files\extant\Extant.exe" ;; "Fartman") - install_wine_bottle dx8vb vb6run download "http://www.agarchive.net/games/bpc/fartman.exe" + install_wine_bottle dx8vb vb6run wine "${cache}/fartman.exe" /silent #add_launcher "c:\Program Files\" ;; "Finger Panic") - install_wine_bottle dx8vb vb6run download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe" + install_wine_bottle dx8vb vb6run wine "${cache}/FingerPanicSetup.exe" /sp- /silent add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.exe" ;; "Fuck That Bird") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/bird_en.zip" + install_wine_bottle 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" + install_wine_bottle vb6run dx8vb speechsdk 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 @@ -2209,16 +2209,16 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\GMA Tank Commander\gtc.exe" ;; "Grizzly Gulch") - install_wine_bottle vb6run mfc42 download "https://stormgames.wolfe.casa/downloads/grizzly-gulch.zip" + install_wine_bottle vb6run mfc42 unzip -d "$WINEPREFIX/drive_c/Program Files" "$cache/grizzly-gulch.zip" add_launcher "c:\Program Files\grizzly-gulch\Grizzly Gulch.exe" ;; "Hammer of Glory") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle speechsdk download "http://oriolgomez.com/games/hammer_en.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/hammer of glory" "${cache}/hammer_en.zip" find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\hammer of glory\game.exe" @@ -2246,11 +2246,11 @@ download "https://erion.cf/files/ag_103.zip" #add_launcher "c:\Program Files\" ;; "Hunter") + download "http://www.agarchive.net/games/bsc/HunterSetup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. DISPLAY="" winetricks -q dotnet35 wineserver -k # Damn you, dotnet. - download "http://www.agarchive.net/games/bsc/HunterSetup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" wine "${cache}/HunterSetup.exe" /silent & xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null sleep 30 && wineserver -k # Sometimes the installer finishes but the wineserver has more processes that don't exit, so we can't depend on wineserver -w. @@ -2290,21 +2290,21 @@ download "https://erion.cf/files/ag_103.zip" "Insect Therapy") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/insect_en.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/insect therapy" "${cache}/insect_en.zip" add_launcher "c:\Program Files\insect therapy\game.exe" ;; "Interceptor") - install_wine_bottle download "http://www.valiantgalaxy.com/interceptor/Interceptor0.0.2.0Installer.exe" + install_wine_bottle wine "${cache}/Interceptor0.0.2.0Installer.exe" /silent add_launcher "c:\Program Files\VGA\interceptor\launch_interceptor.exe" ;; "Judgement Day") export bottle="l-works" - install_wine_bottle vb6run dx8vb quartz download "http://files.l-works.net/judgmentdayfullsetup.exe" + install_wine_bottle vb6run dx8vb quartz wine "${cache}/judgmentdayfullsetup.exe" /silent cat << EOF > /tmp/judgementday.reg Windows Registry Editor Version 5.00 @@ -2317,15 +2317,15 @@ EOF add_launcher "c:\Program Files\Lworks\Judgment Day\judgmentday.exe" ;; "Kitchensinc Games") - install_wine_bottle vb6run speechsdk dx8vb download "https://stormgames.wolfe.casa/downloads/kitchen.tar.xz" + install_wine_bottle vb6run speechsdk dx8vb echo "Extracting files..." tar xf "${cache}/kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/" add_launcher "c:\Program Files\Kitchen's Sink\gamemenu.exe" ;; "Kringle Crash") - install_wine_bottle download "https://www.agarchive.net/games/blastbay/kringle%20crash%20setup.exe" + install_wine_bottle wine "${cache}/kringle crash setup.exe" /silent add_launcher "c:\Program Files\Kringle Crash\kringlecrash.exe" ;; @@ -2333,8 +2333,8 @@ EOF # Currently only speaks in japanese, looking to see if we can find an english version. export bottle="nyanchan" export winVer="win7" - install_wine_bottle download "https://www.agarchive.net/games/nyanchan/laser%20breakout.7z" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" "https://stormgames.wolfe.casa/downloads/laser-breakout-options.dat" + install_wine_bottle 7z x -o"$WINEPREFIX/drive_c/nyanchangame/" "$cache/laser breakout.7z" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; cp -v "$cache/laser-breakout-options.dat" "$WINEPREFIX/drive_c/nyanchangame/laser breakout/options.dat" @@ -2342,15 +2342,15 @@ EOF ;; "Light Battles") export winVer="win7" - install_wine_bottle download "https://prometheus-enterprises.com/games/CoL.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" + install_wine_bottle 7z x -o"$WINEPREFIX/drive_c/Program Files/Light Battles" "${cache}/CoL.exe" find "${WINEPREFIX}" -type f -name "nvdaControllerClient.dll" -exec cp -v "$cache/nvda2speechd32.dll" "{}" \; add_launcher "c:\Program Files\Light Battles\battles.exe" ;; "Light Cars") - install_wine_bottle dx8vb vb6run download "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe" + install_wine_bottle dx8vb vb6run wine "${cache}/light cars setup.exe" & xdotool sleep 10 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+a key --clearmodifiers space sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+n sleep 1 key --clearmodifiers alt+i sleep 30 key --clearmodifiers Tab sleep 1 key --clearmodifiers Return 2> /dev/null wineserver -w @@ -2360,14 +2360,14 @@ EOF ;; "Lockpick") export bottle="l-works" - install_wine_bottle vb6run dx8vb download "http://files.l-works.net/lockpicksetup.exe" + install_wine_bottle vb6run dx8vb 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" + install_wine_bottle vb6run dx8vb speechsdk 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 @@ -2384,8 +2384,8 @@ EOF ;; "Lost") export bottle=dan-z - install_wine_bottle speechsdk download "https://agarchive.net/games/danZ/lost.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/lost" "$cache/lost.zip" find "$WINEPREFIX/drive_c/Program Files/lost" -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher 'c:\Program Files\lost\lost.exe' @@ -2394,8 +2394,8 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz speechsdk corefonts download "https://kaldobsky.com/audiogames/lunimals.zip" + install_wine_bottle vb6run dx8vb quartz speechsdk corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/lunimals" "${cache}/lunimals.zip" wine 'c:\Program Files\lunimals\checkup.exe' /verysilent add_launcher "c:\Program Files\lunimals\Lunimals.exe" @@ -2403,23 +2403,23 @@ EOF ;; "Manamon") export winVer="win7" - install_wine_bottle speechsdk download "https://www.vgstorm.com/manamon/manamon_installer.exe" + install_wine_bottle speechsdk wine "${cache}/manamon_installer.exe" /silent add_launcher "c:\Program Files\VGStorm.com\Manamon\rpg.exe" ;; "Manamon 2") export winVer="win7" - install_wine_bottle speechsdk download "http://www.vgstorm.com/manamon2/manamon2_installer.exe" + install_wine_bottle speechsdk wine "${cache}/manamon2_installer.exe" /silent add_launcher "c:\Program Files\VGStorm.com\Manamon 2\rpg.exe" ;; "Marina Break") export bottle="nyanchan" export winVer="win7" - install_wine_bottle speechsdk download "https://www.nyanchangames.com/softs/MbSetupE.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" + install_wine_bottle speechsdk wine "${cache}/MbSetupE.exe" & xdotool sleep 10 key Return wineserver -w @@ -2428,8 +2428,8 @@ EOF ;; "Maze Craze") export bottle=dan-z - install_wine_bottle vb6run dx8vb download "http://www.danielzingaro.com/maze_craze_setup.exe" + install_wine_bottle vb6run dx8vb ${wine} "${cache}/maze_craze_setup.exe" & xdotool sleep 15 key --delay 100 y 2> /dev/null xdotool sleep 3 key --delay 250 alt+n 2> /dev/null @@ -2447,12 +2447,12 @@ EOF "Minecraft") export WINEARCH=win64 export winVer="win7" - install_wine_bottle get_installer "accessibility-plus-extended-1.18-curseforge-v1.9.0.jar" "https://www.curseforge.com/minecraft/mc-mods/accessibility-plus-extended/download" get_installer "Mambience-5.2.0+1.19.jar" "https://www.curseforge.com/minecraft/mc-mods/mambience/download" get_installer "easy-life-1.18-v1.5.1.jar" "https://www.curseforge.com/minecraft/mc-mods/easy-life/download" get_installer "numpad-camera-controls-1.18-v1.5.1.jar" "https://www.curseforge.com/minecraft/mc-mods/numpad-keypad-camera-controls/download" download "https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe" + install_wine_bottle wine "$cache/python-3.7.9-amd64.exe" /silent wine 'c:\windows\py.exe' -m pip install portablemc portablemc-fabric # Now just need to install latest fabric, portablemc start --dry fabric @@ -2467,8 +2467,8 @@ EOF "Mist World") export winVer="win7" get_installer "Mist World_Setup.exe" "https://drive.google.com/file/d/12YeUqorkkMT46ZSR5pcfWxSY8DHOLxZ-/view?usp=share_link" - install_wine_bottle download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" + install_wine_bottle 7z x -o"$WINEPREFIX/drive_c/Program Files/Mist World" "$cache/Mist World_Setup.exe" sed -i 's/1024m/768m/g' "$WINEPREFIX/drive_c/Program Files/Mist World/mw.exe.vmoptions" cp "$WINEPREFIX/drive_c/Program Files/Mist World/"{mw.exe.vmoptions,update.exe.vmoptions} @@ -2488,8 +2488,8 @@ EOF ;; "Monkey Business") export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/MBSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/MBSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -2516,8 +2516,8 @@ EOF f="${f:-f}" i="${i:-i}" n="${n:-n}" - install_wine_bottle download "https://www.agarchive.net/games/other/Mudsplat-install.exe" + install_wine_bottle wine "${cache}/Mudsplat-install.exe" & # Select the language. xdotool sleep 10 type --clearmodifiers ${game:9:1} 2> /dev/null @@ -2529,42 +2529,42 @@ EOF ;; "Oh Shit") export winVer="win7" - install_wine_bottle speechsdk download "http://samtupy.com/stevend/oh_shit.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/oh_shit.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\oh_shit\OhShit.exe" ;; "Operation BlackSquare") export winVer="win7" - install_wine_bottle download "https://www.iamtalon.me/games/blacksquare.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/blacksquare.zip" add_launcher "c:\Program Files\blacksquare\OperationBlackSquare.exe" ;; "Pacman Talks") - install_wine_bottle download "http://www.gmagames.com/pmt101.exe" + install_wine_bottle wine "${cache}/pmt101.exe" /sp- /silent add_launcher "c:\Program Files\Pacman Talks\pmt.exe" ;; "Palace Punch Up") - install_wine_bottle speechsdk download "https://www.agarchive.net/games/blastbay/palace%20punch-up%20setup.exe" + install_wine_bottle speechsdk wine "${cache}/palace punch-up setup.exe" /silent add_launcher "c:\Program Files\Palace Punch-up\palace.exe" ;; "Paladin of the Sky") export winVer="win7" - install_wine_bottle speechsdk download "http://www.vgstorm.com/cod/pots/paladin_installer.exe" + install_wine_bottle speechsdk wine "${cache}/paladin_installer.exe" /silent add_launcher "c:\Program Files\VGStorm.com\Paladin of the Sky\game.exe" ;; "Park Boss") export winVer="win7" - install_wine_bottle speechsdk download "http://www.ndadamson.com/downloads/Park%20Boss%201.01%20setup.exe" + install_wine_bottle speechsdk wine "${cache}/Park Boss 1.01 setup.exe" /silent & xdotool sleep 10 key --clearmodifiers Return sleep 1 key alt+n sleep 1 key alt+a sleep 1 key alt+i sleep 10 key alt+f 2> /dev/null wineserver -w @@ -2574,22 +2574,22 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz speechsdk corefonts download "https://www.kaldobsky.com/audiogames/pawprints.zip" + install_wine_bottle vb6run dx8vb quartz speechsdk corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/pawprints" "${cache}/pawprints.zip" wine 'c:\Program Files\pawprints\checkup.exe' /verysilent add_launcher "c:\Program Files\pawprints\PawPrints.exe" ;; "Perilous Hearts") - install_wine_bottle speechsdk download "https://www.agarchive.net/games/blastbay/perilous%20hearts%20concept%20demo.exe" + install_wine_bottle speechsdk wine "${cache}/perilous hearts concept demo.exe" /silent add_launcher "c:\Program Files\Perilous Hearts Concept Demo\perilous_hearts.exe" ;; "Pigeon Panic") export bottle="l-works" - install_wine_bottle vb6run dx8vb download "http://agarchive.net/games/lworks/pigeon%20panic%20setup.exe" + install_wine_bottle vb6run dx8vb wine "${cache}/pigeon panic setup.exe" /silent add_launcher "c:\Program Files\Lworks\Pigeon Panic\pigeonPanic.exe" ;; @@ -2597,15 +2597,15 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz speechsdk corefonts download "https://www.kaldobsky.com/audiogames/Preludeamals.zip" + install_wine_bottle vb6run dx8vb quartz speechsdk corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/preludeamals" "${cache}/Preludeamals.zip" wine 'c:\Program Files\preludeamals\checkup.exe' /verysilent add_launcher "c:\Program Files\preludeamals\Preludeamals.exe" ;; "Psycho Strike") - install_wine_bottle speechsdk download "http://www.vgstorm.com/psycho_strike_installer.exe" + install_wine_bottle speechsdk wine "${cache}/psycho_strike_installer.exe" /silent add_launcher "c:\Program Files\VGStorm.com\Psycho Strike\strike.exe" ;; @@ -2613,14 +2613,14 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz corefonts download "https://www.kaldobsky.com/audiogames/puzzledivided.zip" + install_wine_bottle vb6run dx8vb quartz corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/puzzledivided" "${cache}/puzzledivided.zip" add_launcher "c:\Program Files\puzzledivided\PuzzleDivided.exe" ;; "Q9") - install_wine_bottle download "http://www.blastbay.com/q9_english_installer.exe" + install_wine_bottle wine "${cache}/q9_english_installer.exe" /silent add_launcher "c:\Program Files\Q9 Action Game\q9.exe" ;; @@ -2628,24 +2628,24 @@ EOF export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" - install_wine_bottle vb6run dx8vb quartz speechsdk corefonts download "https://www.kaldobsky.com/audiogames/revelation.zip" + install_wine_bottle vb6run dx8vb quartz speechsdk corefonts unzip -d "$WINEPREFIX/drive_c/Program Files/revelation" "${cache}/revelation.zip" add_launcher "c:\Program Files\revelation\Revelation.exe" ;; "Rhythm Rage") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle speechsdk download "http://oriolgomez.com/games/rr_en.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/rhythm rage" "${cache}/rr_en.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\rhythm rage\game.exe" ;; "River Raiders") # No more choppy sound under water, woot! - install_wine_bottle dsound directmusic download "https://www.agarchive.net/games/XSight/River%20Raiders%201.3.5.exe" + install_wine_bottle dsound directmusic wine "$cache/River Raiders 1.3.5.exe" & xdotool sleep 10 type y 2> /dev/null xdotool sleep 2 type y 2> /dev/null @@ -2656,25 +2656,25 @@ EOF "Road to Rage") export WINEARCH=win64 export winVer="win7" - install_wine_bottle download "https://iamtalon.me/games/rtr_ultimate.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/rtr_ultimate.zip" add_launcher "c:\Program Files\rtr_Ultimate\trtr.exe" ;; "Road to Rage Offline") export winVer="win7" - install_wine_bottle speechsdk download "https://agarchive.net/games/talon/the%20road%20to%20rage%20offline.7z" + install_wine_bottle speechsdk 7z x -o"$WINEPREFIX/drive_c/Program Files" "${cache}/the road to rage offline.7z" find "${WINEPREFIX}" -type f -name "nvdaControllerClient.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\RTR Offline\rtr.exe" ;; "RS Games") export version="7.0" + download "http://rsgames.org/rsdownloads/rsgclient/rsgames-client-setup-2.01.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" install_wine "$version" "32" export winVer="win7" install_wine_bottle speechsdk - download "http://rsgames.org/rsdownloads/rsgclient/rsgames-client-setup-2.01.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" ${wine} "${cache}/rsgames-client-setup-2.01.exe" /silent find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\RS Games Client\rsg.exe" @@ -2682,22 +2682,22 @@ EOF "Run For Your Life") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/rfyl_en.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/run for your life" "${cache}/rfyl_en.zip" add_launcher "c:\Program Files\run for your life\game.exe" ;; "Sammy Center") export winVer="win7" - install_wine_bottle speechsdk download "http://www.samtupy.com/games/SCSetup.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk wine "${cache}/SCSetup.exe" /silent find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\Sam Tupy\SammyCenter\SammyCenter.exe" ;; "Sarah and the Castle of Witchcraft and Wizardry") - install_wine_bottle vb6run dx8vb speechsdk download "http://www.pcs-games.net/Sarah10.exe" "http://www.pcs-games.net/Sarah-Patch4.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/Sarah10.exe" /sp- /verysilent wine "${cache}/Sarah-Patch4.exe" /sp- /verysilent add_launcher "c:\Program Files\Sarah and the Castle of Witchcraft and Wizardry 10\scw.exe" @@ -2705,8 +2705,8 @@ EOF "Scramble!") winetricksSettings="vd=1024x768" export winVer="win7" - install_wine_bottle speechsdk download "https://stevend.net/downloads/scramble_win32.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/scramble_win32.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\scramble_win32\scramble.exe" @@ -2714,8 +2714,8 @@ EOF "Screaming Strike 2") export bottle="nyanchan" export winVer="win7" - install_wine_bottle fakejapanese speechsdk download "https://www.nyanchangames.com/softs/screamingStrike2.exe" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle fakejapanese speechsdk wine "${cache}/screamingStrike2.exe" & xdotool sleep 10 key Return wineserver -w @@ -2724,8 +2724,8 @@ EOF ;; "Sketchbook") export winVer="win7" - install_wine_bottle speechsdk download "http://sbyw.games/SBYW/SBYW.zip" "http://sbyw.games/SBYW/sounds.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk mv -v "${cache}/sounds.zip" "${cache}/SBYW-sounds.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/sketchbook" "${cache}/SBYW.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/sketchbook" "${cache}/SBYW-sounds.zip" @@ -2743,24 +2743,24 @@ EOF add_launcher "c:\Program Files\sequence-storm\SequenceStorm.exe" ;; "Shades of Doom 1.2") - install_wine_bottle vb6run dx8vb speechsdk download "http://gmagames.com/sod1208.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/sod1208.exe" /sp- /verysilent add_launcher "c:\Program Files\Shades of Doom 1.2\sod.exe" ;; "Shades of Doom") export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk download "http://www.gmagames.com/sod20022.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/sod20022.exe" /silent add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe" ;; "Shadow Line") export version="7.7" + download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" install_wine "$version" "32" export winVer="win8" install_wine_bottle - download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" $wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- & xdotool sleep 30 key --clearmodifiers --delay=500 Return xdotool key --clearmodifiers --delay=500 Return @@ -2775,8 +2775,8 @@ EOF ;; "Silver Dollar") export winVer="win7" - install_wine_bottle speechsdk download "http://download.dracoent.com/Windows/SilverDollarSetup.exe" + install_wine_bottle speechsdk wine "${cache}/SilverDollarSetup.exe" /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet40 by itself so it actually doesn't hang. @@ -2786,47 +2786,47 @@ EOF ;; "Slender Lost Vision") export winVer="win7" - install_wine_bottle download "https://www.iamtalon.me/games/slender.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/slender.zip" add_launcher "c:\Program Files\slender\slender.exe" ;; "Shooter") export WINEARCH=win64 export winVer="win7" - install_wine_bottle download "http://masonasons.me/softs/Shooter.zip" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/shooter" "${cache}/Shooter.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvda2speechd64.dll" "{}" \; add_launcher "c:\Program Files\shooter\shooter.exe" ;; "Sonic the Hedgehog") export winVer="win7" - install_wine_bottle speechsdk download "https://www.agarchive.net/games/jeqoconGames/sonic%20the%20hedgehog.7z" + install_wine_bottle speechsdk 7z x -o"$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog" "${cache}/sonic the hedgehog.7z" add_launcher "c:\Program Files\Sonic the Hedgehog\sth.exe" ;; "Sonic Zoom") export winVer="win7" - install_wine_bottle speechsdk download "http://wwwx.cs.unc.edu/Research/assist/et/projects/SonicZoom/soniczoom11.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/soniczoom11.zip" add_launcher "c:\Program Files\Sonic Zoom\SonicZoom.exe" ;; "Space Defender") export WINEARCH="win64" export winVer="win7" - install_wine_bottle download "http://tunmi13.ddns.net/projects/space_defender.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/" "${cache}/space_defender.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \; add_launcher "c:\Program Files\space_defender\sdefender.exe" ;; "Super Deekout") export bottle=dan-z - install_wine_bottle vb6run dx8vb download "http://www.danielzingaro.com/superdeekout_setup.exe" "http://www.danielzingaro.com/sd_full.exe" + install_wine_bottle vb6run dx8vb ${wine} "${cache}/superdeekout_setup.exe" & xdotool sleep 15 key --delay 100 y 2> /dev/null xdotool sleep 3 key --delay 250 alt+n 2> /dev/null @@ -2860,37 +2860,37 @@ EOF add_launcher "c:\Program Files\Super Deekout\super.exe" ;; "Super Dogs Bone Hunt") - install_wine_bottle vb6run dx8vb speechsdk download "http://www.pcs-games.net/SBH11.exe" + install_wine_bottle vb6run dx8vb speechsdk wine "${cache}/SBH11.exe" /sp- /silent add_launcher "c:\Program Files\SuperDog's Bone Hunt\sbh.exe" ;; "Super Egg Hunt") export bottle="l-works" - install_wine_bottle download "http://files.l-works.net/superegghuntsetup.exe" + install_wine_bottle wine "${cache}/superegghuntsetup.exe" /silent add_launcher "c:\Program Files\Lworks\super egg hunt\superegghunt.exe" ;; "Super Liam") export bottle="l-works" - install_wine_bottle vb6run dx8vb download "http://files.l-works.net/superliamsetup.exe" + install_wine_bottle vb6run dx8vb wine "${cache}/superliamsetup.exe" /silent add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe" ;; "Super Mario Bros") export winVer="win7" - install_wine_bottle speechsdk download "https://www.agarchive.net/games/jeqoconGames/super%20mario%20bros.7z" + install_wine_bottle speechsdk 7z x -o"$WINEPREFIX/drive_c/Program Files/Super Mario Bros" "${cache}/super mario bros.7z" add_launcher "c:\Program Files\Super Mario Bros\Mario.exe" ;; "Survive the Wild") export WINEARCH=win64 export winVer="win8" - install_wine_bottle download "https://stw.samtupy.com/files/stw.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/Survive the Wild" "${cache}/stw.zip" find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; add_launcher "c:\Program Files\Survive the Wild\stw.exe" @@ -2902,14 +2902,14 @@ EOF ;; "Swamp") export version="7.7" - install_wine "${version}" "32" export bottle="aprone" export winVer="win7" export winetricksSettings="vd=1024x768" dialog --backtitle "Audiogame manager" --yesno "If you do not have a full 32 bit gstreamer installation, the Swamp music can cause stuttering and crashes. Would you like to remove the music directory after installation?" -1 -1 --stdout deleteMusic=$? - install_wine_bottle dx8vb quartz corefonts vb6run speechsdk download "https://www.kaldobsky.com/audiogames/Swamp.zip" + install_wine "${version}" "32" + install_wine_bottle dx8vb quartz corefonts vb6run speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip" # make sure the latest version is installed. if curl -L --output "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then @@ -2924,16 +2924,16 @@ EOF add_launcher "c:\Program Files\swamp\Swamp.exe" ;; "Tactical Battle") + download "https://blindgamers.com/downloads/Tactical%20Battle%20Dev.zip" install_wine_bottle speechsdk LC_ALL=C DISPLAY="" winetricks -q dotnet462 ${wine}server -k - download "https://blindgamers.com/downloads/Tactical%20Battle%20Dev.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/Tactical Battle" "${cache}/Tactical Battle Dev.zip" add_launcher "c:\Program Files\Tactical Battle\Tactical Battle.exe" ;; "Technoshock") - install_wine_bottle download "http://tiflocomp.ru/download/games/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/technoshock_140b_en_update.zip" wine "$WINEPREFIX/drive_c/Program Files/setup_eng.exe" /silent @@ -2943,8 +2943,8 @@ EOF ;; "Ten Pin Alley") export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/TPAXPSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/TPAXPSetup.exe" /sp- /silent #winetricks -q msdxmocx # I think having this installed first breaks things. # warning warning warning: Do not change location, or installer will not function. @@ -2954,23 +2954,23 @@ EOF add_launcher "c:\Program Files\Draconis Entertainment\Ten Pin Alley\tpa.exe" ;; "The Blind Swordsman") - install_wine_bottle download "https://www.agarchive.net/games/other/the%20blind%20swordsmanPC.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/the blind swordsmanPC.zip" add_launcher "c:\Program Files\TheBlindSwordsman.exe" ;; "The Gate") export winVer="win7" - install_wine_bottle download "http://www.vgstorm.com/the_gate_installer.exe" + install_wine_bottle wine "${cache}/the_gate_installer.exe" /silent add_launcher "c:\Program Files\VGStorm.com\The Gate\gate.exe" ;; "The Great Toy Robbery") export bottle="l-works" export winVer="win7" - install_wine_bottle dsound directmusic download "http://files.l-works.net/tgtrsetup_2.04.exe" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" + install_wine_bottle dsound directmusic wine "${cache}/tgtrsetup_2.04.exe" /silent find "${WINEPREFIX}/drive_c/Program Files/Lworks/The Great Toy Robbery" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; add_launcher "c:\Program Files\Lworks\The Great Toy Robbery\tgtr.exe" @@ -2989,33 +2989,33 @@ EOF "Thief") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle download "http://oriolgomez.com/games/thief_en.zip" + install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files/thief" "${cache}/thief_en.zip" add_launcher "c:\Program Files\thief\game.exe" ;; "Top Speed 2") - install_wine_bottle download "http://users.pandora.be/playinginthedark/downloads/Tspeed_2.00.exe" + install_wine_bottle wine "${cache}/Tspeed_2.00.exe" /silent add_launcher "c:\Program Files\Playing in the dark\Top Speed 2\TopSpeed.exe" ;; "Tomb Hunter") - install_wine_bottle speechsdk download "http://masonasons.me/softs/th_freeware_password_is_tombhunter.7z" + install_wine_bottle speechsdk 7z x -o"$WINEPREFIX/drive_c/Program Files/Tomb Hunter" "${cache}/th_freeware_password_is_tombhunter.7z" -ptombhunter find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\Tomb Hunter\th.exe" ;; "Top Speed 3") - install_wine_bottle directplay download "https://github.com/PlayingintheDark/TopSpeed/releases/download/h/Tspeed_3.0.3.exe" + install_wine_bottle directplay wine "${cache}/Tspeed_3.0.3.exe" /silent add_launcher "c:\Program Files\Playing in the dark\Top Speed 3\TopSpeed.exe" ;; "Traders of Known Space") - install_wine_bottle download "http://www.valiantgalaxy.com/tks/tradersOfKnownSpace0.0.0.5Installer.exe" + install_wine_bottle wine "${cache}/tradersOfKnownSpace0.0.0.5Installer.exe" /silent add_launcher "c:\Program Files\VGA\TKS\tradersOfKnownSpace.exe" ;; @@ -3023,11 +3023,11 @@ EOF export winVer="win10" export WINEARCH=win64 export norh=false # Must install a voice, and rhvoice works easily with 64 bit. + download "https://github.com/munawarb/Three-D-Velocity-Binaries/archive/master.zip" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" install_wine_bottle sapi vcrun2008 gdiplus xact dotnet48 xna40 # Dotnet is evil. That is all. # LC_ALL=C winetricks -q dotnet48 # wineserver -k # Ha ha ha. - download "https://github.com/munawarb/Three-D-Velocity-Binaries/archive/master.zip" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd32.dll" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/master.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvda2speechd32.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvda2speechd64.dll" "{}" \; @@ -3036,18 +3036,18 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. "Triple Triad") export bottle="aprone" export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk download "https://www.kaldobsky.com/audiogames/tripletriad.zip" + install_wine_bottle vb6run dx8vb speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/Triple Triad" "${cache}/tripletriad.zip" wine "c:\Program Files\Triple Triad\Checkup.exe" /verysilent add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe" ;; "Troopanum2") + download "https://www.agarchive.net/games/bsc/Troopanum2Setup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. DISPLAY="" winetricks -q dotnet35 wineserver -k # Damn you, dotnet. - download "https://www.agarchive.net/games/bsc/Troopanum2Setup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" wine "${cache}/Troopanum2Setup.exe" /silent & xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null sleep 30 && wineserver -k # Sometimes the installer finishes but the wineserver has more processes that don't exit, so we can't depend on wineserver -w. @@ -3087,8 +3087,8 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. ;; "Tube Sim") export winVer="win7" - install_wine_bottle speechsdk download "http://www.ndadamson.com/downloads/TubeSim1_1_Install.exe" + install_wine_bottle speechsdk wine "${cache}/TubeSim1_1_Install.exe" /silent & xdotool sleep 10 key --clearmodifiers Return sleep 1 key alt+n sleep 1 key alt+a sleep 1 key alt+i sleep 10 key alt+f 2> /dev/null wineserver -w @@ -3096,8 +3096,8 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. ;; "Ultimate SounDoku") export winVer="win7" - install_wine_bottle vb6run dx8vb speechsdk quartz download "http://download.dracoent.com/Windows/classic/USSetup.exe" + install_wine_bottle vb6run dx8vb speechsdk quartz wine "${cache}/USSetup.exe" /sp- /silent # warning warning warning: Do not change location, or installer will not function. # FIXME: Hacky, but it works. Install dotnet20 by itself so it actually doesn't hang. @@ -3107,8 +3107,8 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. ;; "Undead Assault") export winVer="win7" - install_wine_bottle speechsdk download "http://undead-assault.com/static/files/public/undead_assault.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/undead_assault" "${cache}/undead_assault.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\undead_assault\Undead Assault.exe" @@ -3116,8 +3116,8 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. "Villains From Beyond") export bottle="oriol-gomez" export winVer="win7" - install_wine_bottle speechsdk download "http://oriolgomez.com/games/villains_en.zip" + install_wine_bottle speechsdk unzip -d "$WINEPREFIX/drive_c/Program Files/villains from beyond" "${cache}/villains_en.zip" find "${WINEPREFIX}" -type f -name "nvdaControllerClient32.dll" -exec rm -fv "{}" \; add_launcher "c:\Program Files\villains from beyond\game.exe" @@ -3172,8 +3172,8 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. "World of War") export bottle="nyanchan" export winVer="win7" - install_wine_bottle download "https://www.agarchive.net/games/nyanchan/world%20of%20war%20English.7z" + install_wine_bottle 7z x -o"$WINEPREFIX/drive_c/nyanchangame" "${cache}/world of war English.7z" add_launcher "c:\nyanchangame\world of war English\world of war.exe" ;; From 3d54cef6cc7a1de2e7ae5eb55e4b8601fc803ea8 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Mon, 24 Jul 2023 16:23:04 -0700 Subject: [PATCH 4/6] Add pipe 2 blast chamber. --- audiogame-manager.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 337f4ec..492a352 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1141,6 +1141,7 @@ gameList=( "Perilous Hearts" "Pontes Kickups!" "Pigeon Panic" + "Pipe 2 Blast Chamber" "Preludeamals" #"Psycho Strike" "Puzzle Divided" @@ -2580,6 +2581,48 @@ EOF wine "${cache}/pigeon panic setup.exe" /silent add_launcher "c:\Program Files\Lworks\Pigeon Panic\pigeonPanic.exe" ;; + "Pipe 2 Blast Chamber") + install_wine_bottle vb6run dx8vb + # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. + winetricks -q dotnet35 + wineserver -k # Damn you, dotnet. + download "http://www.agarchive.net/games/bsc/BlastChamberSetup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" + wine "${cache}/BlastChamberSetup.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + sleep 30 && wineserver -k # Sometimes the installer finishes but the wineserver has more processes that don't exit, so we can't depend on wineserver -w. + mkdir -p "$WINEPREFIX/drive_c/Program Files/bsc-key-generator" + 7z x -o"$WINEPREFIX/drive_c/Program Files/bsc-key-generator" "${cache}/BSC unlock code generator.7z" + echo "$USER"$'\n'"$(hostname)"$'\n'"none"$'\n'"US" > "$WINEPREFIX/drive_c/Program Files/Blast Chamber/config.dat" + unix2dos "$WINEPREFIX/drive_c/Program Files/Blast Chamber/config.dat" + if command -v xclip &> /dev/null && command -v xdotool &> /dev/null ; then + wine "c:\Program Files\Blast Chamber\register.exe" & + xdotool sleep 10 key Return sleep 2 key Return sleep 2 key Alt+n + sleep 1 + regcode="$(xclip -selection clipboard -o)" + xdotool sleep 1 key Shift+Tab sleep 1 key Return + # FIXME: Kind of hacky, but let's make sure it actually exitted. + sleep 5 + wineserver -k + wine "c:\Program Files\bsc-key-generator\BlindsoftwareUnlockCodeGenerator.exe" & + xdotool sleep 10 key Return sleep 2 type b + xdotool sleep 1 key Tab sleep 1 type $regcode + xdotool sleep 1 key Tab sleep 1 key Return + sleep 2 + regcode="$(xclip -selection clipboard -o)" # Might as well reuse the variable. + # FIXME: Kind of hacky, but let's make sure it actually exitted since I can't find a good way to exit this program. + sleep 5 + wineserver -k + wine "c:\Program Files\Blast Chamber\register.exe" & + echo "$regcode" | xclip -selection clipboard + xdotool sleep 10 key Return sleep 2 key Shift+Tab sleep 1 key Shift+Tab sleep 1 key Return + # FIXME: Kind of hacky, but let's make sure it actually exitted. + sleep 5 + wineserver -k + else + echo "Warning: You need xclip and xdotool for this installer to finish the registration process, however, you don't have them. Either remove the program, install the stated tools, and reinstall it, or go on your own. Caveat Emptor, go to jail, do not pass go, do not collect audiogame rewards and all that stuff." + fi + add_launcher "c:\Program Files\Blast Chamber\pipe.exe" + ;; "Preludeamals") export bottle="aprone" export winVer="win7" From 1bb859c1abc3357c845e057f6ed2ed2bd14fb37c Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Sun, 30 Jul 2023 16:53:03 -0700 Subject: [PATCH 5/6] Fix install on troopanum 2 and hunter. --- audiogame-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 4f25655..27271f0 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -2250,7 +2250,7 @@ download "https://erion.cf/files/ag_103.zip" download "http://www.agarchive.net/games/bsc/HunterSetup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. - DISPLAY="" winetricks -q dotnet35 + winetricks -q dotnet35 wineserver -k # Damn you, dotnet. wine "${cache}/HunterSetup.exe" /silent & xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null @@ -3089,7 +3089,7 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit. download "https://www.agarchive.net/games/bsc/Troopanum2Setup.exe" "https://www.agarchive.net/games/bsc/BSC%20unlock%20code%20generator.7z" install_wine_bottle vb6run dx8vb # FIXME: Hacky, but it works. Install dotnet35 by itself so it actually doesn't hang. - DISPLAY="" winetricks -q dotnet35 + winetricks -q dotnet35 wineserver -k # Damn you, dotnet. wine "${cache}/Troopanum2Setup.exe" /silent & xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null From 3513150f03823284e75ed9196e2e3877d7f39c22 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 7 Aug 2023 20:43:12 -0400 Subject: [PATCH 6/6] "A Hero's Call" is now free. Updated the link with the new version. --- audiogame-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 4f25655..4e9f947 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1294,14 +1294,14 @@ done # Install game based on the selection above. case "${game}" in "A Hero's Call") - download "http://files.OutOfSightGames.com/files/a-heros-call.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + download "https://blindgamers.com/downloads/a-heros-call-freeware.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" export winVer="win7" export winetricksSettings="vd=1024x768" install_wine_bottle speechsdk corefonts # Dotnet is evil. That is all. LC_ALL=C DISPLAY="" winetricks -q dotnet462 xna40 wineserver -k # Really! - unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/a-heros-call.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/a-heros-call-freeware.zip" find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; add_launcher "c:\Program Files\a-heros-call\A Hero's Call.exe" ;;