diff --git a/.launch/TobyCustom/' b/.launch/TobyCustom/' deleted file mode 100644 index d056ea6..0000000 --- a/.launch/TobyCustom/' +++ /dev/null @@ -1,124 +0,0 @@ -#!/usr/bin/env bash - -pushd "$doomPath" - -# Set up the pk3 and wad files -gameOption=( - "$(find /usr/share/games/ -name 'Project_Brutality-master.pk3')" - "${doomPath}/TobyAccMod_V${tobyVersion}.pk3" - "${doomPath}/PB-Toby-Compatibility-Addon.pk3" - "${doomPath}/Toby-Universal-Pickup-Beacon-Prototype.pk3" - "${doomPath}/TobyDeathArena_V1-0.wad" -) - -# Death match setup -ipAddress="$(dialog --backtitle "Deathmatch Options" \ - --clear \ - --no-tags \ - --ok-label "Join" \ - --cancel-label "Exit" \ - --extra-button \ - --extra-label "Host" \ - --inputbox "Enter ip or URL, required for join." -1 -1 --stdout)" -buttonCode=$? -[[ $buttonCode -eq 1 ]] && exit 0 -if [[ $buttonCode -eq 0 ]]; then - if [[ "${#ipAddress}" -lt 3 ]]; then - dialog --backtitle "Deathmatch" --clear --msgbox "No ip address or URL given." -1 -1 --stdout - exit 1 - fi - flags=('-join' "${ipAddress}") -else - # List of maps included: - maps=( - "1" "Com Station (2-4 players)" - "2" "Warehouse (2-4 players)" - "3" "Sector 3 (2-4 players)" - "4" "Dungeon of Doom (2-4 players)" - "5" "Ocean Fortress (2-4 players)" - "6" "Water Treatment Facility (2-4 players)" - "7" "Phobos Base Site 4 (2-4 players)" - "8" "Hangar Bay 18 (2-4 players)") - # Array of how many players a given map supports in dialog rangebox syntax - declare -a mapPlayers=( - [1]="2 4" - [2]="2 4" - [3]="2 4" - [4]="2 4" - [5]="2 4" - [6]="2 4" - [7]="2 4" - [8]="2 4") - map="$(dialog --backtitle "Select Map" \ - --clear \ - --no-tags \ - --cancel-label "Exit" \ - --ok-label "Next" \ - --menu "Please select one" 0 0 0 "${maps[@]}" --stdout)" - fraglimit="$(dialog --backtitle "Fraglimit" \ - --clear \ - --ok-label "Next" \ - --cancel-label "Exit" \ - --rangebox "Select Fraglimit" -1 -1 1 500 20 --stdout)" - [[ $? -eq 1 ]] && exit 0 - # Get ip address - yourIpAddress="$(curl -4s https://icanhazip.com)" - players="$(dialog --backtitle "Host Deathmatch Game" \ - --clear \ - --ok-label "Next" \ - --cancel-label "Exit" \ - --rangebox "Select number of players. Remember to give them your IP address: ${yourIpAddress}" -1 -1 ${mapPlayers[$map]} --stdout)" - [[ $? -eq 1 ]] && exit 0 - skillLevel="$(dialog --backtitle "Host Deathmatch Game" \ - --clear \ - --ok-label "Start" \ - --cancel-label "Exit" \ - --extra-button \ - --extra-label "Bots Only" \ - --rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)" - code=$? - [[ $code -eq 1 ]] && exit 0 - if [[ $code -eq 3 ]]; then - players=1 - dialog --backtitle "Preparing to Launch" \ - --msgbox "When the game starts, press \` to open the console. Type addbot, press enter. Repeat addbot for as many bots as you would like. Press \` again to close the console." -1 -1 --stdout - fi - flags=( - '-host' "${players}" - '-skill' "${skillLevel}" - '-deathmatch' - '+set' 'sv_cheats' '1' - '+fraglimit' "$fraglimit" - '+dmflags' '16384' '+dmflags' '4' '+dmflags' '128' '+dmflags' '4096' - '+dmflags2' '512' '+dmflags2' '1024' - '-extratic' '-dup' '3' - '-warp' "$map" - ) -fi - -# Check for and include if present a wad. Some people may not have it. -if [[ -e "${doomPath}/DoomMetalVol7.wad" ]]; then - gameOption+=" DoomMetalVol7.wad" -elif [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then - gameOption+=" DoomMetalVol6.wad" -fi - -# Extend the search for new messages to be read. -grepStrings+=('-e' ' died.' - '-e' 'Ectoplasmic Surge!' - '-e' ' has been ' - '-e' '^(Armor|Health) boosted!' - '-e' 'Lesser demon energy' - '-e' '^Found ' - '-e' 'Got the ' - '-e' 'Picked up ' - '-e' '^(Mega|Soul)sphere$' - '-e' '^Took ' - '-e' ' was .*(\.|!)' - '-e' '^Vanguard of the gods!$' - '-e' "You've found " - '-e' 'You (collected|got|found|picked up) ') - -# Launch the game and pipe things to be spoken through speech-dispatcher. -# This also leaves the console output intact for people who may want to read it. -exec stdbuf -oL ${gzdoom} ${gameOption[@]} "${flags[@]}" | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | grep "${antiGrepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e ${spd_module} ${spd_pitch} ${spd_rate} ${spd_voice} ${spd_volume} -- > /dev/null 2>&1; }; echo "$l";done diff --git a/.launch/TobyCustom/.dependencies b/.launch/TobyCustom/.dependencies deleted file mode 100644 index f6f7564..0000000 --- a/.launch/TobyCustom/.dependencies +++ /dev/null @@ -1,23 +0,0 @@ -check_dependencies() { - if [[ $# -lt 2 ]]; then - dialog --backtitle "Linux Game Manager" \ - --msgbox "Invalid call to check_dependencies(). Please check your code." -1 -1 --stdout - exit 1 - fi - local packagePath="$1" # Path where the launcher will attempt the package, e.g. ${gamePath/Addons/PACKAGENAME/something.pk3 - local packageURL="$2" # URL where the package can be downloaded. - shift 2 - if [[ -e "${packagePath}" ]]; then - return - fi - local message=( - "You are missing the \"${packagePath##/*}\" Package." $'\n' - "You can get it from \"${packageURL}\"" $'\n') - echo "${packageURL}" | DISPLAY="${DISPLAY:-:0}" xclip -selection clipboard && message+=("The URL has been copied to the clipboard." $'\n') - for i in "${@}" ; do - message+=("$i" $'\n') - done - dialog --backtitle "Linux Game Manager" \ - --msgbox "${message[*]}" -1 -1 --stdout - exit 1 -} diff --git a/.launch/TobyCustom/.mapmenu b/.launch/TobyCustom/.mapmenu deleted file mode 100755 index 7c09908..0000000 --- a/.launch/TobyCustom/.mapmenu +++ /dev/null @@ -1,30 +0,0 @@ -# Choice of maps -mapList=( - "${gamePath}/OpMDK.wad" - "${gamePath}/Addons/MAPS/TobyDoomLevels.wad" - "${gamePath}/Addons/MAPS/Toby-Demo-Level.wad" -) - -declare -a mapMenu=('none' 'None') -for i in "${mapList[@]}" ; do - if [[ -e "$i" ]]; then - title="${i##*/}" - title="${title%.*}" - title="${title/OpMDK/Operation MDK}" - title="${title/-/ }" - mapMenu+=("$i" "$title") - fi -done -map="$(dialog --backtitle "Select Map" \ - --clear \ - --no-tags \ - --cancel-label "Exit" \ - --ok-label "Next" \ - --menu "Please select one" 0 0 0 "${mapMenu[@]}" --stdout)" -[[ $? -ne 0 ]] && exit 0 -if [[ "${map}" != "none" ]]; then - gameOption=("$map" "${gameOption[@]}") -fi -if [[ "${map}" == ""${gamePath}/TobyDoomLevels.wad"" ]]; then - gameOption=("$map" "${gameOption[@]}" "${gamePath}/Toby-Doom-Level-Music-Renamer.pk3") -fi diff --git a/.launch/TobyCustom/ArmyOfDarknessDoom.sh b/.launch/TobyCustom/ArmyOfDarknessDoom.sh deleted file mode 100755 index 9ef3030..0000000 --- a/.launch/TobyCustom/ArmyOfDarknessDoom.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -# check for required wad. -source ${BASH_SOURCE[0]%/*}/.dependencies -check_dependencies "${gamePath}/aoddoom1.wad" "https://www.moddb.com/mods/army-of-darkness-total-conversion/addons/army-of-darkness-doom-wad" "Place \"aoddoom1.wad\" in \"${gamePath}\"." - - -gamePath=~/.local/games/doom -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"* - "${gamePath}/aoddoom1.wad" -) - -# Check for and include if present a wad. Some people may not have it. -if [[ -e "${gamePath}/DoomMetalVol7.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol7.wad") -elif [[ -e "${gamePath}/DoomMetalVol6.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol6.wad") -fi - -source ${BASH_SOURCE[0]%/*}/.mapmenu - -flags=('+Toby_UniversalBeacon_UseUniversalSounds' 'true') diff --git a/.launch/TobyCustom/Custom_Death_Match.sh b/.launch/TobyCustom/Custom_Death_Match.sh deleted file mode 100755 index 99669cd..0000000 --- a/.launch/TobyCustom/Custom_Death_Match.sh +++ /dev/null @@ -1,121 +0,0 @@ -#!/usr/bin/env bash - -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV*_"* -) - -# Get a list of pk3s to use for the custom death match. -mapfile -t pk3List < <(find "${gamePath}" -maxdepth 1 -mindepth 1 -size +10M -iname '*.pk3') -if [[ -e "${gamePath}/aoddoom1.wad" ]]; then - pk3List+=("${gamePath}/aoddoom1.wad") -fi - -declare -a pk3Menu -for i in "${pk3List[@]}" ; do - title="${i##*/}" - title="${title%.*}" - pk3Menu+=("${i}" "${title}") -done - -# Death match setup -ipAddress="$(dialog --backtitle "Deathmatch Options" \ - --clear \ - --no-tags \ - --ok-label "Join" \ - --cancel-label "Exit" \ - --extra-button \ - --extra-label "Host" \ - --inputbox "Enter ip or URL, required for join." -1 -1 --stdout)" -buttonCode=$? -[[ $buttonCode -eq 1 ]] && exit 0 -pk3="$(dialog --backtitle "Select Customization" \ - --clear \ - --no-tags \ - --cancel-label "Exit" \ - --ok-label "Next" \ - --menu "Please select one" 0 0 0 "${pk3Menu[@]}" --stdout)" -[[ $? -ne 0 ]] && exit 0 -if [[ $buttonCode -eq 0 ]]; then - if [[ "${#ipAddress}" -lt 3 ]]; then - dialog --backtitle "Deathmatch" --clear --msgbox "No ip address or URL given." -1 -1 --stdout - exit 1 - fi - flags=('-join' "${ipAddress}" '+Toby_SnapToTargetTargetingMode' '0') -else - # List of maps included: - maps=( - "1" "Com Station (2-4 players)" - "2" "Warehouse (2-4 players)" - "3" "Sector 3 (2-4 players)" - "4" "Dungeon of Doom (2-4 players)" - "5" "Ocean Fortress (2-4 players)" - "6" "Water Treatment Facility (2-4 players)" - "7" "Phobos Base Site 4 (2-4 players)" - "8" "Hangar Bay 18 (2-4 players)" - "9" "Garden of Demon (2-4 players)" - "10" "Outpost 69 (2-4 players)") - # Array of how many players a given map supports in dialog rangebox syntax - declare -a mapPlayers=( - [1]="2 4" - [2]="2 4" - [3]="2 4" - [4]="2 4" - [5]="2 4" - [6]="2 4" - [7]="2 4" - [8]="2 4" - [9]="2 4" - [10]="2 4") - map="$(dialog --backtitle "Select Map" \ - --clear \ - --no-tags \ - --cancel-label "Exit" \ - --ok-label "Next" \ - --menu "Please select one" 0 0 0 "${maps[@]}" --stdout)" - fraglimit="$(dialog --backtitle "Fraglimit" \ - --clear \ - --ok-label "Next" \ - --cancel-label "Exit" \ - --rangebox "Select Fraglimit" -1 -1 1 500 20 --stdout)" - [[ $? -eq 1 ]] && exit 0 - # Get ip address - yourIpAddress="$(curl -4s https://icanhazip.com)" - players="$(dialog --backtitle "Host Deathmatch Game" \ - --clear \ - --ok-label "Next" \ - --cancel-label "Exit" \ - --rangebox "Select number of players. Remember to give them your IP address: ${yourIpAddress}" -1 -1 ${mapPlayers[$map]} --stdout)" - [[ $? -eq 1 ]] && exit 0 - skillLevel="$(dialog --backtitle "Host Deathmatch Game" \ - --clear \ - --ok-label "Start" \ - --cancel-label "Exit" \ - --extra-button \ - --extra-label "Bots Only" \ - --rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)" - code=$? - [[ $code -eq 1 ]] && exit 0 - if [[ $code -eq 3 ]]; then - players=1 - dialog --backtitle "Preparing to Launch" \ - --msgbox "When the game starts, press \` to open the console. Type addbot, press enter. Repeat addbot for as many bots as you would like. Press \` again to close the console." -1 -1 --stdout - fi - flags=( - '-host' "${players}" - '-skill' "${skillLevel}" - '-deathmatch' - '+Toby_SnapToTargetTargetingMode' '0' - '+set' 'sv_cheats' '1' - '+fraglimit' "$fraglimit" - '+dmflags' '16384' '+dmflags' '4' '+dmflags' '128' '+dmflags' '4096' - '+dmflags2' '512' '+dmflags2' '1024' - '-extratic' '-dup' '3' - '-warp' "$map" - ) -fi - -gameOption+=("${pk3}" - "${gamePath}/Addons/MAPS/TobyDeathArena_V1-5.wad" -) diff --git a/.launch/TobyCustom/GoMidievilOnTheirAss.sh b/.launch/TobyCustom/GoMidievilOnTheirAss.sh deleted file mode 100755 index c66b525..0000000 --- a/.launch/TobyCustom/GoMidievilOnTheirAss.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# check for required pk3. -source ${BASH_SOURCE[0]%/*}/.dependencies -check_dependencies "${gamePath}/GMOTA_V.1.5.2.pk3" \ - "https://combine-kegan.itch.io/gmota" \ - "Place the file in ${gamePath}" - -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"* - "$gamePath/Addons/DOOM/TobyV${tobyVersion%%-*}_Proximity.pk3" - "${gamePath}/GMOTA_V.1.5.2.pk3" -) - - -source ${BASH_SOURCE[0]%/*}/.mapmenu -flags=( - '+Toby_NarrationOutputType 2' - '+pb_exaggeratedrecoil false' - '+pb_weapon_recoil_mod_horizontal 0' - '+pb_weapon_recoil_mod_vertical 0' - '+vertspread true' - '+Toby_SnapToTargetTargetingMode' '1' - '+Toby_UniversalBeacon_UseUniversalSounds' 'true' -) diff --git a/.launch/TobyCustom/Project_Brutality.sh b/.launch/TobyCustom/Project_Brutality.sh deleted file mode 100755 index c8ef659..0000000 --- a/.launch/TobyCustom/Project_Brutality.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -# check for required pk3. -source ${BASH_SOURCE[0]%/*}/.dependencies -check_dependencies "${gamePath}/Project_Brutality.pk3" \ - "https://www.moddb.com/mods/project-brutality" \ - "This should be included by default." \ - 'If you are seeing this message, please reinstall after removing any TobyDoom files from ~/.cache/linux-game-manager.' \ - 'rm -f ~/.cache/linux-game-manager/TobyAccessibilityMod_Version*' - -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"* - "$gamePath/Addons/DOOM/TobyV${tobyVersion%%-*}_Proximity.pk3" - "${gamePath}/PB-Toby-Compatibility-Addon.pk3" - "${gamePath}/Project_Brutality.pk3" -) - -# Check for and include if present a wad. Some people may not have it. -if [[ -e "${gamePath}/DoomMetalVol7.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol7.wad") -elif [[ -e "${gamePath}/DoomMetalVol6.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol6.wad") -fi - -source ${BASH_SOURCE[0]%/*}/.mapmenu -flags=( - '+pb_exaggeratedrecoil' 'false' - '+pb_weapon_recoil_mod_horizontal' '0' - '+pb_weapon_recoil_mod_vertical' '0' - '+vertspread' 'true' - '+Toby_SnapToTargetTargetingMode' '1' - '+Toby_UniversalBeacon_UseUniversalSounds' 'false' -) diff --git a/.launch/TobyCustom/Project_BrutalityLatest.sh b/.launch/TobyCustom/Project_BrutalityLatest.sh deleted file mode 100755 index 1f1a6b2..0000000 --- a/.launch/TobyCustom/Project_BrutalityLatest.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -# check for required pk3. -source ${BASH_SOURCE[0]%/*}/.dependencies -check_dependencies "${gamePath}/Project_Brutality-Latest.pk3" \ - "https://www.moddb.com/mods/project-brutality" \ - "This should be included by default." \ - 'If you are seeing this message, please reinstall after removing any TobyDoom files from ~/.cache/linux-game-manager.' \ - 'rm -f ~/.cache/linux-game-manager/TobyAccessibilityMod_Version*' - -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"* - "$gamePath/Addons/DOOM/TobyV${tobyVersion%%-*}_Proximity.pk3" - "${gamePath}/Project_Brutality-Latest.pk3" -) - -# Check for and include if present a wad. Some people may not have it. -if [[ -e "${gamePath}/DoomMetalVol7.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol7.wad") -elif [[ -e "${gamePath}/DoomMetalVol6.wad" ]]; then - gameOption+=("${gamePath}/DoomMetalVol6.wad") -fi - -source ${BASH_SOURCE[0]%/*}/.mapmenu -flags=( - '+pb_exaggeratedrecoil' 'false' - '+pb_weapon_recoil_mod_horizontal' '0' - '+pb_weapon_recoil_mod_vertical' '0' - '+vertspread' 'true' - '+Toby_SnapToTargetTargetingMode' '1' - '+Toby_UniversalBeacon_UseUniversalSounds' 'false' -) diff --git a/.launch/TobyCustom/README.ProjectBrutality b/.launch/TobyCustom/README.ProjectBrutality deleted file mode 100644 index 4219e84..0000000 --- a/.launch/TobyCustom/README.ProjectBrutality +++ /dev/null @@ -1,14 +0,0 @@ -In your ~/.config/gzdoom/gzdoom.ini file, if you do not have these four sections create them at the end. If they are there, you can just update the keybindings. It should look like this: - - -[Doom.PBInteractions.Bindings] - -[Doom.PBInteractions.DoubleBindings] - -[Doom.PBAdvMoves.Bindings] -F=+User2 -G=+User1 -U=unreloader -V=+User4 - -[Doom.PBAdvMoves.DoubleBindings] diff --git a/.launch/TobyCustom/StarWars.sh b/.launch/TobyCustom/StarWars.sh deleted file mode 100755 index a2b2e17..0000000 --- a/.launch/TobyCustom/StarWars.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Extend sed strings to handle the player class menu -sedStrings+=('-e' 's/^Playerclassmenu$/Player class menu/') -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"* - "${gamePath}/Xim-StarWars-v3.1.5.pk3" - "$gamePath/Addons/STARWARS/"* -) - -source ${BASH_SOURCE[0]%/*}/.mapmenu diff --git a/.launch/TobyCustom/WolfenDoom.sh b/.launch/TobyCustom/WolfenDoom.sh deleted file mode 100755 index 0525df6..0000000 --- a/.launch/TobyCustom/WolfenDoom.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -# check for required pk3. -source ${BASH_SOURCE[0]%/*}/.dependencies -check_dependencies "${gamePath}/Addons/WOLFENDOOM/orig_enh.pk3" \ - "https://www.moddb.com/mods/wolfendoom/downloads/wolfendoom-enhanced" \ - "mkdir -p ${gamePath}/Addons/WOLFENDOOM/" \ - "Place all pk3 files from the zip archive in:" \ - "${gamePath}/Addons/WOLFENDOOM/" \ - "There should be three of them noct_enh.pk3, orig_enh.pk3, and sod_enh.pk3" - -# Set up the pk3 and wad files -gameOption=( - "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" - "$gamePath/Addons/MENU/TobyV*_"* - "$gamePath/Addons/DOOM/TobyV*_"*"Proximity"*".pk3" -) - -menuList=("${gamePath}/Addons/WOLFENDOOM/orig_enh.pk3" "WolfenDoom" - "${gamePath}/Addons/WOLFENDOOM/sod_enh.pk3" "WolfenDoom - Spear of Destiny" - "${gamePath}/Addons/WOLFENDOOM/noct_enh.pk3" "WolfenDoom - Nocturne" -) - -pk3=$(dialog --backtitle "Select Game" \ - --clear \ - --no-tags \ - --cancel-label "Exit" \ - --ok-label "Next" \ - --menu "Please select one" 0 0 0 "${menuList[@]}" --stdout) -[[ $? -ne 0 ]] && exit 0 -gameOption+=("${pk3}") -flags=( - # Key bindings - '+bind Ctrl +attack' - '+bind X turn180' - # Variables - '+Toby_NarrationOutputType 2' - '+Toby_SnapToTargetTargetingMode' '1' - '+Toby_UniversalBeacon_UseUniversalSounds' 'true' -)