Add game troopanum 2.0. More bsc games coming.
This commit is contained in:
parent
e8c4f96aba
commit
6e9535162a
@ -695,6 +695,7 @@ gameList=(
|
||||
"Top Speed 2"
|
||||
"Top Speed 3"
|
||||
"Triple Triad"
|
||||
"Troopanum2"
|
||||
"Tube Sim"
|
||||
"Undead Assault"
|
||||
"Villains From Beyond"
|
||||
@ -1023,11 +1024,11 @@ case "${game}" in
|
||||
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
|
||||
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 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!"
|
||||
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
|
||||
@ -1038,7 +1039,7 @@ case "${game}" in
|
||||
sleep 5
|
||||
wineserver -k
|
||||
wine "c:\Program Files\bsc-key-generator\BlindsoftwareUnlockCodeGenerator.exe" &
|
||||
xdotool sleep 10 key Return sleep 2 type hu
|
||||
xdotool sleep 10 key Return sleep 2 type h
|
||||
xdotool sleep 1 key Tab sleep 1 type $regcode
|
||||
xdotool sleep 1 key Tab sleep 1 key Return
|
||||
sleep 2
|
||||
@ -1438,6 +1439,49 @@ EOF
|
||||
wine "c:\Program Files\Triple Triad\Checkup.exe" /verysilent
|
||||
add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe"
|
||||
;;
|
||||
"Troopanum2")
|
||||
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 "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.
|
||||
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/Troopanum 2.0/config.dat"
|
||||
command -v unix2dos &> /dev/null && unix2dos "$WINEPREFIX/drive_c/Program Files/Troopanum 2.0/config.dat" || echo "Warning! You do not have unix2dos or dos2unix installed, Troopanum 2.0 may not work!"
|
||||
if command -v xclip &> /dev/null && command -v xdotool &> /dev/null ; then
|
||||
wine "c:\Program Files\Troopanum 2.0\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 t
|
||||
xdotool sleep 1 type t
|
||||
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\Troopanum 2.0\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\Troopanum 2.0\troop.exe"
|
||||
;;
|
||||
"Tube Sim")
|
||||
export winVer="win7"
|
||||
install_wine_bottle speechsdk
|
||||
|
Loading…
Reference in New Issue
Block a user