Last active
January 6, 2020 04:19
-
-
Save caligari87/1744a3635ec9b88086a0b26ff06fb107 to your computer and use it in GitHub Desktop.
Launcher script for Hideous Destructor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
showhelp () { | |
echo "Usage: hd-launcher [OPTION]... [FILE]..." | |
echo "Launches GZDoom + Hideous Destructor, optionally with" | |
echo "additional mods or unstable test builds." | |
echo | |
echo "Note that all script options MUST be specified first." | |
echo "Anything not recognized by this script will be passed" | |
echo "through to GZDoom verbatim." | |
echo | |
echo " -e, --enhanced Loads a pre-defined set of mods." | |
echo " -h, --help Display this help and exit." | |
echo " -p, --post Adds the file to the modlist after HD." | |
echo " -u, --unstable Runs unstable build currently downloaded." | |
echo " --update Pull latest version of HD." | |
echo " [FILE] Loads the listed files before HD." | |
echo | |
echo "script by Sterling \"Caligari87\" Parker" | |
} | |
build="hd-stable/ " | |
modlist=" " | |
enhancedmods=" " | |
launchoptions=" " | |
enhancerpath="../../Enhancers/" | |
passthrough=" " | |
while : | |
do | |
case "$1" in | |
-e | --enhanced) | |
echo "ENABLING ENHANCERS" | |
enhancedmods+=$enhancerpath"SpriteShadow_v1.85.pk3 " | |
#enhancedmods+=$enhancerpath"TiltPlusPlus_v1.5.pk3 " | |
enhancedmods+=$enhancerpath"immerse.pk3 " | |
enhancedmods+=$enhancerpath"subdued_lights_attenuated.pk3 " | |
enhancedmods+=$enhancerpath"brightmaps_plus.pk3 " | |
#enhancedmods+=$enhancerpath"ambiencepack.wad " | |
#enhancedmods+=$enhancerpath"creepyambientindustrial.pk3 " | |
enhancedmods+=$enhancerpath"droplets/ " | |
enhancedmods+=$enhancerpath"ai-director/ " | |
#enhancedmods+=$enhancerpath"fancyworld_v2.pk3 " | |
enhancedmods+=$enhancerpath"MBlur1.041.pk3 " | |
#enhancedmods+=$enhancerpath"GreyDoubt1.1.pk3 " | |
#enhancedmods+=$enhancerpath"marifx_m.zip " | |
#enhancedmods+=$enhancerpath"realAim_2.0.pk3 " | |
enhancedmods+="../../../Projects/Ugly-as-Sin/ " | |
enhancedmods+="../../../Projects/darkdoomz/ " | |
#enhancedmods+="../../../Projects/zm66k/ " | |
#enhancedmods+="../../../Projects/hd-parachute/ " | |
#enhancedmods+="addons/z_HDaddon.pk3 " | |
#enhancedmods+="addons/z_HDaddon_sprites.pk3 " | |
enhancedmods+="addons/J_SpecWeapsPlayer.pk3 " | |
enhancedmods+="addons/insurgencysfx.pk3 " | |
#enhancedmods+="addons/hd_suppressedsmg.wad " | |
enhancedmods+="addons/nitevis/ " | |
#enhancedmods+="addons/AshesHDBarrelfix.pk3 " | |
enhancedmods+="addons/deathfade/ " | |
enhancedmods+="addons/whistler.pk3 " | |
#enhancedmods+="addons/zm69.pk3 " | |
enhancedmods+="addons/Karla_HD_Translations.wad " | |
shift | |
;; | |
-h | --help) | |
showhelp | |
exit 0 | |
;; | |
-p | --post) | |
enhancedmods+="$2 " | |
shift 2 | |
;; | |
-u | --unstable) | |
echo "RUNNING UNSTABLE BUILD" | |
build="hd-unstable/ " | |
shift | |
;; | |
--update) | |
if [ $build = hd-unstable/ ]; then | |
echo "UPDATING UNSTABLE BUILD" | |
cd hd-unstable | |
git pull | |
cd .. | |
else | |
echo "UPDATING STABLE BUILD" | |
cd hd-stable | |
git fetch --tags | |
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
git checkout $latestTag | |
echo "$latestTag" | |
cd .. | |
fi | |
shift | |
;; | |
*) | |
launchoptions+="$1 " | |
shift | |
;; | |
esac | |
if [ $# -eq 0 ]; then | |
break | |
fi | |
done | |
echo | |
echo "RUNLINE:" | |
echo "gzdoom -config gzdoom-hideous.ini $launchoptions-file$modlist$build$enhancedmods" | |
echo | |
gzdoom -config gzdoom-hideous.ini $launchoptions -file $modlist$build$enhancedmods | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment