Compare commits
7 Commits
2472ea640a
...
54e3ef8190
Author | SHA1 | Date | |
---|---|---|---|
|
54e3ef8190 | ||
|
6211a18276 | ||
9abe1cb36c | |||
c51eeeb40a | |||
|
5d286cc09d | ||
983d8d3934 | |||
03124451c4 |
@ -353,6 +353,13 @@ get_bottle() {
|
|||||||
# tunmi13 games group
|
# tunmi13 games group
|
||||||
"battle-of-the-hunter"*) ;&
|
"battle-of-the-hunter"*) ;&
|
||||||
"challenge-of-the-horse"*) export WINEPREFIX="${HOME}/.local/wine/tunmi13";;
|
"challenge-of-the-horse"*) export WINEPREFIX="${HOME}/.local/wine/tunmi13";;
|
||||||
|
# Dan Z games group
|
||||||
|
"lost"*) ;&
|
||||||
|
"maze-craze"*) ;&
|
||||||
|
"super-deekout"*)
|
||||||
|
export norh="true"
|
||||||
|
export WINEPREFIX="$HOME/.local/wine/dan-z"
|
||||||
|
;;
|
||||||
*) export WINEPREFIX="${HOME}/.local/wine/${game%|*}";;
|
*) export WINEPREFIX="${HOME}/.local/wine/${game%|*}";;
|
||||||
esac
|
esac
|
||||||
# Wine version for bottles
|
# Wine version for bottles
|
||||||
@ -437,7 +444,7 @@ echo "Loading documentation, please wait..."
|
|||||||
local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' -or -iname 'user_manual.htm' | head -1)"
|
local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' -or -iname 'user_manual.htm' | head -1)"
|
||||||
# Game name specific docs, add the name to the for loop.
|
# Game name specific docs, add the name to the for loop.
|
||||||
if [[ -z "$gameDoc" ]]; then
|
if [[ -z "$gameDoc" ]]; then
|
||||||
for i in "troopanum.txt" "superdeekout.txt" ; do
|
for i in "troopanum.txt" "superdeekout.txt" scw.html ; do
|
||||||
gameDoc="$(find "$gamePath" -type f -iname "$i" -or -iname 'manual.htm' | head -1)"
|
gameDoc="$(find "$gamePath" -type f -iname "$i" -or -iname 'manual.htm' | head -1)"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -631,6 +638,7 @@ game_installer() {
|
|||||||
menuList+=("Become a Patron" "Become a Patron")
|
menuList+=("Become a Patron" "Become a Patron")
|
||||||
game="$(dialog --backtitle "Audio Game Installer" \
|
game="$(dialog --backtitle "Audio Game Installer" \
|
||||||
--clear \
|
--clear \
|
||||||
|
--ok-label "Install" \
|
||||||
--no-tags \
|
--no-tags \
|
||||||
--menu "Please select a game to install" 0 0 0 "${menuList[@]}" --stdout)"
|
--menu "Please select a game to install" 0 0 0 "${menuList[@]}" --stdout)"
|
||||||
}
|
}
|
||||||
@ -649,8 +657,10 @@ game_removal() {
|
|||||||
done
|
done
|
||||||
menuList+=("Donate" "Donate")
|
menuList+=("Donate" "Donate")
|
||||||
menuList+=("Become a Patron" "Become a Patron")
|
menuList+=("Become a Patron" "Become a Patron")
|
||||||
local game="$(dialog --backtitle "Audio Game Removal" \
|
local game
|
||||||
|
game="$(dialog --backtitle "Audio Game Removal" \
|
||||||
--clear \
|
--clear \
|
||||||
|
--ok-label "Remove" \
|
||||||
--no-tags \
|
--no-tags \
|
||||||
--menu "Please select a game to delete" 0 0 0 "${menuList[@]}" --stdout)"
|
--menu "Please select a game to delete" 0 0 0 "${menuList[@]}" --stdout)"
|
||||||
if [[ ${#game} -gt 0 ]]; then
|
if [[ ${#game} -gt 0 ]]; then
|
||||||
@ -703,6 +713,7 @@ kill_game() {
|
|||||||
menuList+=("Become a Patron" "Become a Patron")
|
menuList+=("Become a Patron" "Become a Patron")
|
||||||
local game="$(dialog --backtitle "Audio Game Killer" \
|
local game="$(dialog --backtitle "Audio Game Killer" \
|
||||||
--clear \
|
--clear \
|
||||||
|
--ok-label "Kill" \
|
||||||
--no-tags \
|
--no-tags \
|
||||||
--menu "Please select a game to force stop" 0 0 0 "${menuList[@]}" --stdout)"
|
--menu "Please select a game to force stop" 0 0 0 "${menuList[@]}" --stdout)"
|
||||||
if [[ ${#game} -gt 0 ]]; then
|
if [[ ${#game} -gt 0 ]]; then
|
||||||
@ -746,6 +757,7 @@ game_launcher() {
|
|||||||
--clear \
|
--clear \
|
||||||
--extra-button \
|
--extra-button \
|
||||||
--extra-label "Documentation" \
|
--extra-label "Documentation" \
|
||||||
|
--ok-label "Launch" \
|
||||||
--no-tags \
|
--no-tags \
|
||||||
--menu "Please select a game to play" 0 0 0 "${menuList[@]}" --stdout)"
|
--menu "Please select a game to play" 0 0 0 "${menuList[@]}" --stdout)"
|
||||||
local menuCode=$?
|
local menuCode=$?
|
||||||
@ -1077,10 +1089,12 @@ gameList=(
|
|||||||
"Light Cars"
|
"Light Cars"
|
||||||
"Lockpick"
|
"Lockpick"
|
||||||
"Lone Wolf"
|
"Lone Wolf"
|
||||||
|
"Lost"
|
||||||
"Lunimals"
|
"Lunimals"
|
||||||
"Manamon"
|
"Manamon"
|
||||||
"Manamon 2"
|
"Manamon 2"
|
||||||
#"Marina Break"
|
#"Marina Break"
|
||||||
|
"Maze Craze"
|
||||||
#"Minecraft"
|
#"Minecraft"
|
||||||
"Mist World"
|
"Mist World"
|
||||||
"Monkey Business"
|
"Monkey Business"
|
||||||
@ -1109,6 +1123,7 @@ gameList=(
|
|||||||
"RS Games"
|
"RS Games"
|
||||||
"Run For Your Life"
|
"Run For Your Life"
|
||||||
#"Sammy Center"
|
#"Sammy Center"
|
||||||
|
"Sarah and the Castle of Witchcraft and Wizardry"
|
||||||
"Scramble!"
|
"Scramble!"
|
||||||
"Screaming Strike 2"
|
"Screaming Strike 2"
|
||||||
"Sketchbook"
|
"Sketchbook"
|
||||||
@ -1145,6 +1160,7 @@ gameList=(
|
|||||||
"Triple Triad"
|
"Triple Triad"
|
||||||
"Troopanum2"
|
"Troopanum2"
|
||||||
"Tube Sim"
|
"Tube Sim"
|
||||||
|
"Ultimate SounDoku"
|
||||||
"Undead Assault"
|
"Undead Assault"
|
||||||
"Villains From Beyond"
|
"Villains From Beyond"
|
||||||
"VIP Mud"
|
"VIP Mud"
|
||||||
@ -2280,6 +2296,14 @@ EOF
|
|||||||
xdotool key --clearmodifiers Return 2> /dev/null
|
xdotool key --clearmodifiers Return 2> /dev/null
|
||||||
wineserver -w
|
wineserver -w
|
||||||
add_launcher "c:\Program Files\Lone Wolf\lw.exe"
|
add_launcher "c:\Program Files\Lone Wolf\lw.exe"
|
||||||
|
;;
|
||||||
|
"Lost")
|
||||||
|
export bottle=dan-z
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "https://agarchive.net/games/danZ/lost.zip"
|
||||||
|
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'
|
||||||
;;
|
;;
|
||||||
"Lunimals")
|
"Lunimals")
|
||||||
export bottle="aprone"
|
export bottle="aprone"
|
||||||
@ -2317,6 +2341,24 @@ EOF
|
|||||||
find "${WINEPREFIX}" -type f -name "nvdaControllerClient.dll" -exec cp -v "$cache/nvda2speechd32.dll" "{}" \;
|
find "${WINEPREFIX}" -type f -name "nvdaControllerClient.dll" -exec cp -v "$cache/nvda2speechd32.dll" "{}" \;
|
||||||
add_launcher "c:\nyanchangame\MarinaBreak\marinabreak.exe"
|
add_launcher "c:\nyanchangame\MarinaBreak\marinabreak.exe"
|
||||||
;;
|
;;
|
||||||
|
"Maze Craze")
|
||||||
|
export bottle=dan-z
|
||||||
|
install_wine_bottle vb6run dx8vb
|
||||||
|
download "http://www.danielzingaro.com/maze_craze_setup.exe"
|
||||||
|
${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
|
||||||
|
xdotool key --delay 250 alt+a 2> /dev/null
|
||||||
|
xdotool key --delay 250 space 2> /dev/null
|
||||||
|
xdotool key --delay 250 alt+n 2> /dev/null
|
||||||
|
xdotool key --delay 250 alt+n 2> /dev/null
|
||||||
|
xdotool key --delay 250 alt+n 2> /dev/null
|
||||||
|
xdotool key --delay 250 alt+i 2> /dev/null
|
||||||
|
xdotool sleep 15 key --delay 250 alt+f 2> /dev/null
|
||||||
|
xdotool sleep 3 key --delay 250 n 2> /dev/null
|
||||||
|
${wine}server -k
|
||||||
|
add_launcher "c:\Program Files\Maze Craze 1.4\mazecraze.exe"
|
||||||
|
;;
|
||||||
"Minecraft")
|
"Minecraft")
|
||||||
export WINEARCH=win64
|
export WINEARCH=win64
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
@ -2568,6 +2610,13 @@ 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\Sam Tupy\SammyCenter\SammyCenter.exe"
|
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"
|
||||||
|
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"
|
||||||
|
;;
|
||||||
"Scramble!")
|
"Scramble!")
|
||||||
winetricksSettings="vd=1024x768"
|
winetricksSettings="vd=1024x768"
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
@ -2690,6 +2739,7 @@ EOF
|
|||||||
add_launcher "c:\Program Files\space_defender\sdefender.exe"
|
add_launcher "c:\Program Files\space_defender\sdefender.exe"
|
||||||
;;
|
;;
|
||||||
"Super Deekout")
|
"Super Deekout")
|
||||||
|
export bottle=dan-z
|
||||||
install_wine_bottle vb6run dx8vb
|
install_wine_bottle vb6run dx8vb
|
||||||
download "http://www.danielzingaro.com/superdeekout_setup.exe" "http://www.danielzingaro.com/sd_full.exe"
|
download "http://www.danielzingaro.com/superdeekout_setup.exe" "http://www.danielzingaro.com/sd_full.exe"
|
||||||
${wine} "${cache}/superdeekout_setup.exe" &
|
${wine} "${cache}/superdeekout_setup.exe" &
|
||||||
@ -2953,6 +3003,17 @@ export norh=false # Must install a voice, and rhvoice works easily with 64 bit.
|
|||||||
wineserver -w
|
wineserver -w
|
||||||
add_launcher "c:\Program Files\NASoft\TubeSim\tsMain.exe"
|
add_launcher "c:\Program Files\NASoft\TubeSim\tsMain.exe"
|
||||||
;;
|
;;
|
||||||
|
"Ultimate SounDoku")
|
||||||
|
export winVer="win7"
|
||||||
|
install_wine_bottle vb6run dx8vb speechsdk quartz
|
||||||
|
download "http://download.dracoent.com/Windows/classic/USSetup.exe"
|
||||||
|
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.
|
||||||
|
winetricks -q dotnet20
|
||||||
|
wineserver -k # Damn you, dotnet.
|
||||||
|
add_launcher "c:\Program Files\Draconis Entertainment\Ultimate Soundoku\soundoku.exe"
|
||||||
|
;;
|
||||||
"Undead Assault")
|
"Undead Assault")
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
#
|
|
||||||
# Ã contents of this file are subject to the Common Public Attribution
|
|
||||||
# License Version 1.0 (the ÃenseÃyou may not use this file except in
|
|
||||||
# compliance with the License. You may obtain a copy of the License at
|
|
||||||
# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version
|
|
||||||
# 1.1 but Sections 14 and 15 have been added to cover use of software over a
|
|
||||||
# computer network and provide for limited attribution for the Original
|
|
||||||
# Developer. In addition, Exhibit A has been modified to be consistent with
|
|
||||||
# Exhibit B.
|
|
||||||
#
|
|
||||||
# Software distributed under the License is distributed on an ÃISÃsis,
|
|
||||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
||||||
# for the specific language governing rights and limitations under the
|
|
||||||
# License.
|
|
||||||
#
|
|
||||||
# The Original Code is audiogame manager.
|
|
||||||
#
|
|
||||||
# The Original Developer is not the Initial Developer and is . If
|
|
||||||
# left blank, the Original Developer is the Initial Developer.
|
|
||||||
#
|
|
||||||
# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of
|
|
||||||
# the code written by Billy Wolfe are Copyright (c) 2020. All Rights
|
|
||||||
# Reserved.
|
|
||||||
#
|
|
||||||
# Contributor Michael Taboada.
|
|
||||||
#
|
|
||||||
# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved.
|
|
||||||
#
|
|
||||||
# Attribution Phrase (not exceeding 10 words): A Stormux project
|
|
||||||
#
|
|
||||||
# Attribution URL: https://stormgames.wolfe.casa
|
|
||||||
#
|
|
||||||
# Graphic Image as provided in the Covered Code, if any.
|
|
||||||
#
|
|
||||||
# Display of Attribution Information is required in Larger
|
|
||||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
|
||||||
# or portions thereof with code not governed by the terms of the CPAL.
|
|
||||||
|
|
||||||
# Allows you to select a wine prefix to run with audiogame manager
|
|
||||||
#Get Working Directory
|
|
||||||
tell application "Finder"
|
|
||||||
set currentPath to container of (path to me) as alias
|
|
||||||
end tell
|
|
||||||
#format Converters
|
|
||||||
on convertPathToAlias(thePath)
|
|
||||||
tell application "System Events"
|
|
||||||
try
|
|
||||||
return (path of disk item (thePath as string)) as alias
|
|
||||||
on error
|
|
||||||
return (path of disk item (path of thePath) as string) as alias
|
|
||||||
end try
|
|
||||||
end tell
|
|
||||||
end convertPathToAlias
|
|
||||||
|
|
||||||
on convertPathToPOSIXString(thePath)
|
|
||||||
tell application "System Events"
|
|
||||||
try
|
|
||||||
set thePath to path of disk item (thePath as string)
|
|
||||||
on error
|
|
||||||
set thePath to path of thePath
|
|
||||||
end try
|
|
||||||
end tell
|
|
||||||
return POSIX path of thePath
|
|
||||||
end convertPathToPOSIXString
|
|
||||||
|
|
||||||
set currentPath to convertPathToPOSIXString(currentPath)
|
|
||||||
set folderPath to POSIX file "~/.local/wine/"
|
|
||||||
set folderPath to convertPathToAlias(folderPath)
|
|
||||||
set gameFolder to choose folder with prompt "Choose your game and press enter:" default location folderPath
|
|
||||||
set gameFolder to convertPathToPOSIXString(gameFolder)
|
|
||||||
set gameFolder to quoted form of gameFolder
|
|
||||||
set gameName to do shell script ("basename " & gameFolder)
|
|
||||||
do shell script "/usr/local/bin/bash -l " & currentPath & "../audiogame-manager.sh -l " & gameName & " &> /dev/null &"
|
|
||||||
do shell script "say -v alex Launching " & gameName & ", please wait..."
|
|
Loading…
Reference in New Issue
Block a user