Merge branch 'testing'
This commit is contained in:
commit
4cb854b881
@ -248,10 +248,10 @@ download() {
|
|||||||
for i in "${source[@]}" ; do
|
for i in "${source[@]}" ; do
|
||||||
local dest="${i##*/}"
|
local dest="${i##*/}"
|
||||||
dest="${dest//%20/ }"
|
dest="${dest//%20/ }"
|
||||||
# Return if the game is in cache.
|
# Skip if the item is in cache.
|
||||||
test -e "${cache}/${dest}" && return
|
test -e "${cache}/${dest}" && continue
|
||||||
if ! wget -O "${cache}/${dest}" "${i}" ; then
|
if ! wget -4 -O "${cache}/${dest}" "${i}" ; then
|
||||||
echo "Could not download game."
|
echo "Could not download..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -355,6 +355,45 @@ game_removal() {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# kill games that are stuck
|
||||||
|
kill_game() {
|
||||||
|
mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null)
|
||||||
|
if [[ ${#lines} -eq 0 ]]; then
|
||||||
|
echo "No games found."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
# Create the menu of installed games
|
||||||
|
declare -a menuList
|
||||||
|
for i in "${lines[@]}" ; do
|
||||||
|
menuList+=("${i%|*}" "${i##*|}")
|
||||||
|
done
|
||||||
|
menuList+=("Make a One Time Donation" "Make a One Time Donation")
|
||||||
|
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"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
if [[ "$game" == "Become a Patron" ]]; then
|
||||||
|
open_url "https://patreon.com/stormux"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
local winePath="${game#*|}"
|
||||||
|
winePath="${winePath%\\*.exe}"
|
||||||
|
local wineExec="${game#*|}"
|
||||||
|
wineExec="${wineExec%|*}"
|
||||||
|
wineExec="${wineExec##*\\}"
|
||||||
|
# kill the wine server.
|
||||||
|
WINEPREFIX="${HOME}/.local/wine/${game%|*}" wineserver -k
|
||||||
|
echo "The selected game has been stopped."
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# launch games that are installed
|
# launch games that are installed
|
||||||
game_launcher() {
|
game_launcher() {
|
||||||
mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null)
|
mapfile -t lines < <(sed '/^$/d' "${configFile}" 2> /dev/null)
|
||||||
@ -485,8 +524,10 @@ gameList=(
|
|||||||
"Crazy Party"
|
"Crazy Party"
|
||||||
"Crazy Tennis"
|
"Crazy Tennis"
|
||||||
"Death on the Road"
|
"Death on the Road"
|
||||||
|
"Duck Hunt"
|
||||||
"Easter Quest"
|
"Easter Quest"
|
||||||
#"Entombed"
|
#"Entombed"
|
||||||
|
#"Eurofly"
|
||||||
"Fantasy Story II"
|
"Fantasy Story II"
|
||||||
#"Fartman"
|
#"Fartman"
|
||||||
"Finger Panic"
|
"Finger Panic"
|
||||||
@ -496,14 +537,15 @@ gameList=(
|
|||||||
"Judgement Day"
|
"Judgement Day"
|
||||||
"Kitchensinc Games"
|
"Kitchensinc Games"
|
||||||
"Kringle Crash"
|
"Kringle Crash"
|
||||||
|
#"Light Battles"
|
||||||
"Light Cars"
|
"Light Cars"
|
||||||
"Lockpick"
|
"Lockpick"
|
||||||
"Lone Wolf"
|
"Lone Wolf"
|
||||||
"Manamon"
|
"Manamon"
|
||||||
"Manamon 2"
|
"Manamon 2"
|
||||||
"MudSplat French"
|
#"MudSplat French"
|
||||||
"MudSplat English"
|
"MudSplat English"
|
||||||
"MudSplat Swedish"
|
#"MudSplat Swedish"
|
||||||
"Oh Shit!"
|
"Oh Shit!"
|
||||||
"Pacman Talks"
|
"Pacman Talks"
|
||||||
"Palace Punch Up"
|
"Palace Punch Up"
|
||||||
@ -516,11 +558,14 @@ gameList=(
|
|||||||
#"River raiders"
|
#"River raiders"
|
||||||
"RS Games"
|
"RS Games"
|
||||||
"Run For Your Life"
|
"Run For Your Life"
|
||||||
|
#"Sammy Center"
|
||||||
"Sequence Storm"
|
"Sequence Storm"
|
||||||
"Shades of Doom"
|
"Shades of Doom"
|
||||||
"Slender Lost Vision"
|
#"Silver Dollar"
|
||||||
|
"Slender Lost Vision"
|
||||||
"Super Egg Hunt"
|
"Super Egg Hunt"
|
||||||
"Super Liam"
|
"Super Liam"
|
||||||
|
#"Super Mario Bros"
|
||||||
"Survive the Wild"
|
"Survive the Wild"
|
||||||
"Swamp"
|
"Swamp"
|
||||||
"Technoshock"
|
"Technoshock"
|
||||||
@ -531,6 +576,8 @@ gameList=(
|
|||||||
"Top Speed 3"
|
"Top Speed 3"
|
||||||
"Triple Triad"
|
"Triple Triad"
|
||||||
"Undead Assault"
|
"Undead Assault"
|
||||||
|
"VIP Mud"
|
||||||
|
#"World of War"
|
||||||
)
|
)
|
||||||
|
|
||||||
# With no arguments, open the game launcher.
|
# With no arguments, open the game launcher.
|
||||||
@ -545,6 +592,7 @@ declare -A command=(
|
|||||||
[d]="Debug mode, wine will be much more verbose when games are launched with this flag."
|
[d]="Debug mode, wine will be much more verbose when games are launched with this flag."
|
||||||
[h]="This help screen."
|
[h]="This help screen."
|
||||||
[i]="Install games."
|
[i]="Install games."
|
||||||
|
[k]="Kill a running game that is stuck."
|
||||||
[L]="Display license information."
|
[L]="Display license information."
|
||||||
[l:]="Launch given game without interactive audiogame-manager menu specified by its wine bottle."
|
[l:]="Launch given game without interactive audiogame-manager menu specified by its wine bottle."
|
||||||
[N]="No cache, delete the installer after it has been extracted."
|
[N]="No cache, delete the installer after it has been extracted."
|
||||||
@ -564,6 +612,7 @@ while getopts "${args}" i ; do
|
|||||||
;;
|
;;
|
||||||
h) help;;
|
h) help;;
|
||||||
i) game_installer;;
|
i) game_installer;;
|
||||||
|
k) kill_game;;
|
||||||
L) license;;
|
L) license;;
|
||||||
l) game_launcher "${OPTARG}";;
|
l) game_launcher "${OPTARG}";;
|
||||||
N) noCache="true";;
|
N) noCache="true";;
|
||||||
@ -668,6 +717,12 @@ case "${game}" in
|
|||||||
unzip -d "$WINEPREFIX/drive_c/Program Files/death on the road" "${cache}/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"
|
add_launcher "c:\Program Files\death on the road/game.exe"
|
||||||
;;
|
;;
|
||||||
|
"Duck Hunt")
|
||||||
|
install_wine_bottle vb6run dx8vb speechsdk
|
||||||
|
download "http://files.l-works.net/dhsetup.exe"
|
||||||
|
wine "${cache}/dhsetup.exe" /silent
|
||||||
|
add_launcher "c:\Program Files\Lworks\Duck Hunt\duckhunt.exe"
|
||||||
|
;;
|
||||||
"Easter Quest")
|
"Easter Quest")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
download "https://agarchive.net/games/mt/easter%20quest%20setup.exe"
|
download "https://agarchive.net/games/mt/easter%20quest%20setup.exe"
|
||||||
@ -682,6 +737,15 @@ case "${game}" in
|
|||||||
wine "${cache}/EntombedSetup.exe" /silent
|
wine "${cache}/EntombedSetup.exe" /silent
|
||||||
add_launcher "c:\Program Files\Entombed\Entombed.exe"
|
add_launcher "c:\Program Files\Entombed\Entombed.exe"
|
||||||
;;
|
;;
|
||||||
|
"Eurofly")
|
||||||
|
export winVer="win7"
|
||||||
|
export winetricksSettings="vd=1024x768"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "http://www.stefankiss.sk/programy/eurofly/Launcher_1.2.zip" "http://www.stefankiss.sk/programy/eurofly/Eurofly_2_ful_setup.exe"
|
||||||
|
wine "${cache}/Eurofly_2_ful_setup.exe" /silent
|
||||||
|
unzip -d "$WINEPREFIX/drive_c/Eurofly" "${cache}/Launcher_1.2.zip"
|
||||||
|
add_launcher "c:\Eurofly\launcher.exe"
|
||||||
|
;;
|
||||||
"Fantasy Story II")
|
"Fantasy Story II")
|
||||||
export winVer="win10"
|
export winVer="win10"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
@ -799,15 +863,20 @@ EOF
|
|||||||
tar xf "${cache}/kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"
|
tar xf "${cache}/kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"
|
||||||
add_launcher "c:\Program Files\Kitchen's Sink\gamemenu.exe"
|
add_launcher "c:\Program Files\Kitchen's Sink\gamemenu.exe"
|
||||||
;;
|
;;
|
||||||
|
"Light Battles")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "https://prometheus-enterprises.com/games/CoL.exe"
|
||||||
|
7z e -o"$WINEPREFIX/drive_c/Program Files/Light Battles" "${cache}/CoL.exe"
|
||||||
|
rm -fv "${WINEPREFIX}/drive_c/Program Files/Light Battles/nvdaControllerClient.dll"
|
||||||
|
add_launcher "c:\Program Files\Light Battles\battles.exe"
|
||||||
|
;;
|
||||||
"Light Cars")
|
"Light Cars")
|
||||||
install_wine_bottle dx8vb vb6run
|
install_wine_bottle dx8vb vb6run
|
||||||
download "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe"
|
download "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe"
|
||||||
if [[ -n "$manualInstall" ]]; then
|
wine "${cache}/light cars setup.exe" &
|
||||||
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
|
||||||
else
|
wineserver -w
|
||||||
wine "${cache}/light cars setup.exe" &
|
|
||||||
automate_installer alt+n alt+a space alt+n alt+n alt+i alt+f
|
|
||||||
fi
|
|
||||||
echo -e "${USER} ${HOST}\nna@na.na\nUS" > ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat
|
echo -e "${USER} ${HOST}\nna@na.na\nUS" > ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat
|
||||||
unix2dos ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat
|
unix2dos ~/.local/wine/light-cars/drive_c/Program\ Files/Lighttech\ Interactive/Light\ Cars/config.dat
|
||||||
add_launcher "c:\Program Files\Lighttech Interactive\Light Cars\lightCars.exe"
|
add_launcher "c:\Program Files\Lighttech Interactive\Light Cars\lightCars.exe"
|
||||||
@ -966,6 +1035,14 @@ EOF
|
|||||||
unzip -d "$WINEPREFIX/drive_c/Program Files/run for your life" "${cache}/rfyl_en.zip"
|
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"
|
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"
|
||||||
|
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"
|
||||||
|
;;
|
||||||
"Sequence Storm")
|
"Sequence Storm")
|
||||||
read -p "Make sure sequence-storm-win64.zip is available in either your Downloads or Desktop directory and press enter to continue." continue
|
read -p "Make sure sequence-storm-win64.zip is available in either your Downloads or Desktop directory and press enter to continue." continue
|
||||||
for i in ~/Downloads ~/Desktop ; do
|
for i in ~/Downloads ~/Desktop ; do
|
||||||
@ -990,6 +1067,13 @@ EOF
|
|||||||
wine "${cache}/sod20022.exe" /silent
|
wine "${cache}/sod20022.exe" /silent
|
||||||
add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"
|
add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"
|
||||||
;;
|
;;
|
||||||
|
"Silver Dollar")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "http://download.dracoent.com/Windows/SilverDollarSetup.exe"
|
||||||
|
wine "${cache}/SilverDollarSetup.exe" /silent
|
||||||
|
add_launcher "c:\Program Files\Draconis Entertainment\Silver Dollar\SilverDollarGui.exe"
|
||||||
|
;;
|
||||||
"Slender Lost Vision")
|
"Slender Lost Vision")
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
@ -1009,6 +1093,13 @@ EOF
|
|||||||
wine "${cache}/superliamsetup.exe" /silent
|
wine "${cache}/superliamsetup.exe" /silent
|
||||||
add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe"
|
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"
|
||||||
|
7z e -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")
|
"Survive the Wild")
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
@ -1019,7 +1110,7 @@ EOF
|
|||||||
;;
|
;;
|
||||||
"Swamp")
|
"Swamp")
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
winetricksSettings="vd=1024x768"
|
export winetricksSettings="vd=1024x768"
|
||||||
install_wine_bottle vb6run dx8vb quartz speechsdk corefonts
|
install_wine_bottle vb6run dx8vb quartz speechsdk corefonts
|
||||||
download "https://kaldobsky.com/audiogames/SwampPart1.zip" "https://kaldobsky.com/audiogames/SwampPart2.zip"
|
download "https://kaldobsky.com/audiogames/SwampPart1.zip" "https://kaldobsky.com/audiogames/SwampPart2.zip"
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPart1.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPart1.zip"
|
||||||
@ -1092,6 +1183,26 @@ EOF
|
|||||||
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
|
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
|
||||||
add_launcher "c:\Program Files\undead_assault\Undead Assault.exe"
|
add_launcher "c:\Program Files\undead_assault\Undead Assault.exe"
|
||||||
;;
|
;;
|
||||||
|
"VIP Mud")
|
||||||
|
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"
|
||||||
|
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."
|
||||||
|
echo "To bypass these dialogs, press alt+o, then press enter until speech starts."
|
||||||
|
echo "To be sure that each new dialog has had time to complete, wait a second between each press of enter."
|
||||||
|
echo "In each subsequent launch, you will need to hit enter a couple times before it starts speaking."
|
||||||
|
;;
|
||||||
|
"World of War")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "https://www.agarchive.net/games/nyanchan/world%20of%20war%20English.7z"
|
||||||
|
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")
|
"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"
|
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"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user