Browse Source

working on hard-coded modes

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
b21918f12a
  1. 17
      etc/game-install-ENLIVEN

17
etc/game-install-ENLIVEN

@ -22,12 +22,12 @@ fi
# * ERROR[Main]: Singleplayer mode says following mods could not be found: 3d_armor areas mobs mobs_animal mobs_monster protector technic treasurer unified_inventory xban2 # * ERROR[Main]: Singleplayer mode says following mods could not be found: 3d_armor areas mobs mobs_animal mobs_monster protector technic treasurer unified_inventory xban2
sudo echo "starting ENLIVEN installer script..." sudo echo "starting ENLIVEN installer script..."
## this space was intentionally left blank ## this space was intentionally left blank
#region paste this part into terminal to get some great environment variables #region paste this part into terminal to get some great environment variables
update_enable="true"
shell_name="bash" shell_name="bash"
err_txt=$HOME/err-enliven.txt err_txt=$HOME/err-enliven.txt
# doesn't work if equal: [ $0 = *"$shell_name"* ] # doesn't work if equal: [ $0 = *"$shell_name"* ]
@ -217,6 +217,7 @@ add_git_mod()
URL=$3 URL=$3
BRANCH=$4 BRANCH=$4
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME
if [ ! -d "$MTMOD_DEST_PATH" ] || [ "$update_enable" = "true" ]; then
if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable
rm -Rf $MTMOD_UNZ_NAME rm -Rf $MTMOD_UNZ_NAME
fi fi
@ -266,6 +267,9 @@ add_git_mod()
if [ -d GitHub/EnlivenMinetest ]; then if [ -d GitHub/EnlivenMinetest ]; then
cd GitHub/EnlivenMinetest cd GitHub/EnlivenMinetest
fi fi
else
echo " [ ~ ] skipped existing $MTMOD_DEST_PATH"
fi
} }
remove_mod() remove_mod()
@ -446,7 +450,6 @@ echo "hudbars_bar_type = statbar_modern" >> "$WRITEABLE_MINETEST_CONF" #TODO: r
echo "sprint_speed = 2.25" >> "$WRITEABLE_MINETEST_CONF" # default is 1.3 echo "sprint_speed = 2.25" >> "$WRITEABLE_MINETEST_CONF" # default is 1.3
echo "sprint_jump = 1.25" >> "$WRITEABLE_MINETEST_CONF" # default is 1.1 echo "sprint_jump = 1.25" >> "$WRITEABLE_MINETEST_CONF" # default is 1.1
echo "sprint_stamina_drain = 1" >> "$WRITEABLE_MINETEST_CONF" # default is 2 echo "sprint_stamina_drain = 1" >> "$WRITEABLE_MINETEST_CONF" # default is 2
sudo mv -f $HOME/minetest.conf "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf" sudo mv -f $HOME/minetest.conf "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf"
if [ -f "$MT_MYGAME_DIR/game.conf.1st" ]; then if [ -f "$MT_MYGAME_DIR/game.conf.1st" ]; then
@ -490,6 +493,8 @@ add_git_mod protector protector https://github.com/tenplus1/protector.git
add_git_mod xban2 xban2 https://github.com/minetest-mods/xban2.git add_git_mod xban2 xban2 https://github.com/minetest-mods/xban2.git
echo "Installing ShadowNinja's <https://forum.minetest.net/viewtopic.php?t=7239>" echo "Installing ShadowNinja's <https://forum.minetest.net/viewtopic.php?t=7239>"
echo "Installing ShadowNinja's <https://forum.minetest.net/viewtopic.php?t=7239>" >> $MTMOD_SRC_ZIP.txt echo "Installing ShadowNinja's <https://forum.minetest.net/viewtopic.php?t=7239>" >> $MTMOD_SRC_ZIP.txt
# areas: ShadowNinja rewrite of node ownership
# forum_url="https://forum.minetest.net/viewtopic.php?t=7239"
add_git_mod areas areas https://github.com/ShadowNinja/areas.git add_git_mod areas areas https://github.com/ShadowNinja/areas.git
# author="ShadowNinja" # author="ShadowNinja"
# forum_url="https://forum.minetest.net/viewtopic.php?id=8434" # forum_url="https://forum.minetest.net/viewtopic.php?id=8434"
@ -509,7 +514,7 @@ add_git_mod mobs_animal mobs_animal https://github.com/tenplus1/mobs_animal.git
# mobs_sky: (requires mobs redo) [mod-pack] sky critters (for mobs_redo) [mobs_sky] <https://forum.minetest.net/viewtopic.php?f=9&t=12688> # mobs_sky: (requires mobs redo) [mod-pack] sky critters (for mobs_redo) [mobs_sky] <https://forum.minetest.net/viewtopic.php?f=9&t=12688>
add_git_mod mobs_sky mobs_sky https://github.com/blert2112/mobs_sky.git add_git_mod mobs_sky mobs_sky https://github.com/blert2112/mobs_sky.git
spawners_enable="false" spawners_enable="true"
if [ "$spawners_enable" = "true" ]; then if [ "$spawners_enable" = "true" ]; then
# forum_url: https://forum.minetest.net/viewtopic.php?f=11&t=13857 # forum_url: https://forum.minetest.net/viewtopic.php?f=11&t=13857
# description: # description:
@ -564,7 +569,7 @@ if [ "$spawners_enable" = "true" ]; then
echo "SPAWNERS_GENERATE = true" >> settings.txt echo "SPAWNERS_GENERATE = true" >> settings.txt
echo "CHESTS_GENERATE = false" >> settings.txt echo "CHESTS_GENERATE = false" >> settings.txt
sudo mv settings.txt "$MTMOD_DEST_PATH/" # formerly $MT_MYGAME_MODS_PATH/spawners/ sudo mv settings.txt "$MTMOD_DEST_PATH/" # formerly $MT_MYGAME_MODS_PATH/spawners/
echo "NOTE: in spawners, only SPAWNERS_GENERATE or CHESTS_GENERATE, not both (SPAWNERS_GENERATE overrides) spawn in world for now. See thread for updated info: https://forum.minetest.net/viewtopic.php?f=11&t=13857&start=25" echo "NOTE: in spawners, only SPAWNERS_GENERATE or CHESTS_GENERATE, not both (chests seem to override) spawn in world for now. See thread for updated info: https://forum.minetest.net/viewtopic.php?f=11&t=13857&start=25"
echo "see also expertmm's game-install-enliven-testing-SPAWNERS_BOTH_DEBUG.txt" echo "see also expertmm's game-install-enliven-testing-SPAWNERS_BOTH_DEBUG.txt"
# NOTE: tsm_chests_dungeon supercedes dungeon_loot: # NOTE: tsm_chests_dungeon supercedes dungeon_loot:
@ -874,7 +879,7 @@ add_git_mod hudbars minetest_hudbars http://repo.or.cz/minetest_hudbars.git
remove_mod sprint remove_mod sprint
#remove_mod hudbars #remove_mod hudbars
#remove_mod hbsprint #remove_mod hbsprint
# NOTE: hbsprint bar is on auto-hide by default # NOTE: hbsprint bar is on auto-hide by default (world.mt can set hudbars_autohide_stamina to true or false)
add_git_mod hbsprint hbsprint https://github.com/minetest-mods/hbsprint.git add_git_mod hbsprint hbsprint https://github.com/minetest-mods/hbsprint.git
add_git_mod armor_monoid armor_monoid https://github.com/minetest-mods/armor_monoid.git add_git_mod armor_monoid armor_monoid https://github.com/minetest-mods/armor_monoid.git
@ -1097,6 +1102,7 @@ echo "max_users = 50"
echo "motd = \"Actions and chat messages are logged. Visit fcacloud.com/minetest for recipes and live map.\"" echo "motd = \"Actions and chat messages are logged. Visit fcacloud.com/minetest for recipes and live map.\""
echo "disallow_empty_passwords = true" echo "disallow_empty_passwords = true"
echo "" echo ""
echo "#more minetest.conf settings for hbsprint can be found at https://github.com/minetest-mods/hbsprint/blob/master/settingtypes.txt"
echo "#not all settings can be changed in this minetest.conf (see minetest.conf.example in THIS folder)" echo "#not all settings can be changed in this minetest.conf (see minetest.conf.example in THIS folder)"
echo "#some settings can only be changed in client's local copy of minetest.conf (see or login scripts in network)" echo "#some settings can only be changed in client's local copy of minetest.conf (see or login scripts in network)"
if [ "$version_0_5_enable" = "true" ]; then if [ "$version_0_5_enable" = "true" ]; then
@ -1105,3 +1111,4 @@ else
echo "The non-0.5 version of mods was installed (if you have installed a development version of minetest to /usr/share such as via an AUR package, you must instead run:" echo "The non-0.5 version of mods was installed (if you have installed a development version of minetest to /usr/share such as via an AUR package, you must instead run:"
echo "./game-install-ENLIVEN version_0_5_enable" echo "./game-install-ENLIVEN version_0_5_enable"
fi fi
echo "(used $MT_GAMES_DIR as base)"

Loading…
Cancel
Save