diff --git a/audiogame-manager.sh b/audiogame-manager.sh index edd0548..36df25a 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -118,7 +118,7 @@ checklist() { if command -v xclip &> /dev/null ; then echo "Xclip is installed." else - errorList+=("Warning: Xclip is not installed. Some games may not speak.") + errorList+=("Warning: Xclip is not installed. Some games may not speak or register properly.") fi if command -v xdotool &> /dev/null ; then echo "Xdotool is installed." @@ -170,8 +170,8 @@ 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:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /silent - wine msiexec /i z:$(ls -1 /usr/share/wine/gecko/*x86.msi) /silent + wine msiexec /i z:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /quiet + wine msiexec /i z:$(ls -1 /usr/share/wine/gecko/*x86.msi) /quiet winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 } @@ -375,10 +375,12 @@ gameList=( "Bloodshed" "Christmas WhoopAss" "Crazy Party" + "Death on the Road" "Easter Quest" #"Entombed" "Finger Panic" "Fuck That Bird" + "Hunter" "Kitchensinc Games" "Kringle Crash" "Light Cars" @@ -390,6 +392,7 @@ gameList=( "Pontes Kickups!" "Q9" "Revenge of the Undead" + "Rhythm Rage" "RS Games" "Run For Your Life" "Sequence Storm" @@ -437,7 +440,7 @@ done case "${game}" in "A Hero's Call") export winVer="win7" - install_wine_bottle speechsdk corefonts dotnet40 xna31 + install_wine_bottle dotnet40 xna31 speechsdk corefonts 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" "{}" \; @@ -480,11 +483,9 @@ case "${game}" in "Christmas WhoopAss") install_wine_bottle vb6run dx8vb download "https://www.agarchive.net/games/draconis/christmas%20whoopass%20setup.exe" - if command -v xdotools &> /dev/null ; then - wine "${cache}/christmas whoopass setup.exe" /silent | xdotool sleep 10 key alt+y --clearmodifiers - else - wine "${cache}/christmas whoopass setup.exe" /silent - fi + wine "${cache}/christmas whoopass setup.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + wineserver -w add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe" ;; "Crazy Party") @@ -495,6 +496,13 @@ case "${game}" in add_launcher "c:\Program Files\Crazy-Party-beta73\Crazy Party.exe" rm -f "${WINEPREFIX}/drive_c/Program Files/Crazy-Party-beta73/nvdaControllerClient32.dll" ;; + "Death on the Road") + export winVer="win7" + install_wine_bottle + download "http://oriolgomez.com/games/road_en.zip" + 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" + ;; "Easter Quest") install_wine_bottle download "https://agarchive.net/games/mt/easter%20quest%20setup.exe" @@ -512,11 +520,9 @@ case "${game}" in "Finger Panic") install_wine_bottle dx8vb vb6run download "http://www.agarchive.net/games/bsc/FingerPanicSetup.exe" - if command -v xdotool &> /dev/null ; then - wine "${cache}/FingerPanicSetup.exe" /silent | xdotool sleep 10 key alt+y --clearmodifiers - else - wine "${cache}/FingerPanicSetup.exe" /silent - fi + wine "${cache}/FingerPanicSetup.exe" /silent & + xdotool sleep 10 key --clearmodifiers alt+y 2> /dev/null + wineserver -w add_launcher "c:\Program Files\Finger Panic 1.0\FingerPanic.exe" ;; "Fuck That Bird") @@ -526,6 +532,48 @@ 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" ;; + "Hunter") + 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/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 + wineserver -w + mkdir -p "$WINEPREFIX/drive_c/Program Files/bsc-key-generator" + 7z e -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/Hunter/config.dat" + test command -v unix2dos &> /dev/null && unix2dos "$WINEPREFIX/drive_c/Program Files/Hunter/config.dat" || echo "Warning! You do not have unix2dos or dos2unix installed, Hunter may not work!" + if command -v xclip &> /dev/null && command -v xdotool &> /dev/null ; then + wine "c:\Program Files\Hunter\HunterRegistration.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 hu + 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\Hunter\HunterRegistration.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\Hunter\HunterRun.exe" + ;; "Kringle Crash") install_wine_bottle download "https://www.agarchive.net/games/blastbay/kringle%20crash%20setup.exe" @@ -609,6 +657,14 @@ case "${game}" in 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 + download "http://oriolgomez.com/games/rr_en.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" + 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" + ;; "RS Games") export winVer="win7" install_wine_bottle speechsdk @@ -643,7 +699,7 @@ case "${game}" in ;; "Shades of Doom") export winVer="win7" - install_wine_bottle speechsdk vb6run dx8vb + install_wine_bottle vb6run dx8vb speechsdk download "http://www.gmagames.com/sod20022.exe" wine "${cache}/sod20022.exe" /silent add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"