echo "This script installs ENLIVEN subgame for minetest. It uses individual git repositories, so please only run this once so as not to exceed their bandwidth."
echo "This script installs ENLIVEN subgame for minetest. It uses individual git repositories, so please only run this once so as not to exceed their bandwidth."
echo "Usage:"
echo "Usage:"
echo
echo
#echo "version_0_5_enable=<value> (where value is true or false): forces 0.5 (if not specified, this script uses 0.5 versions of mods if minetest is at /usr/local/share/minetest)"
#echo "enable_version_0_5=<value> (where value is true or false): forces 0.5 (if not specified, this script uses 0.5 versions of mods if minetest is at /usr/local/share/minetest)"
#echo
#echo
echo "local_enable=<value> (where value is true or false): forces /usr/local/share/minetest (if not specified, script detects minetest but if exists both in /usr/share/ and /usr/local/share, prefers /usr/local/share/minetest)"
echo "local_enable=<value> (where value is true or false): forces /usr/local/share/minetest (if not specified, script detects minetest but if exists both in /usr/share/ and /usr/local/share, prefers /usr/local/share/minetest)"
echo
echo
exit 0
exit 0
fi
fi
#NOTE: version_0_5_enable is now detected further down instead of being specified
#NOTE: enable_version_0_5 is now detected further down instead of being specified
#if [ "$1" = "version_0_5_enable=true" ]; then
#if [ "$1" = "enable_version_0_5=true" ]; then
# version_0_5_enable="true"
# enable_version_0_5="true"
#elif [ "$2" = "version_0_5_enable=true" ]; then
#elif [ "$2" = "enable_version_0_5=true" ]; then
# version_0_5_enable="true"
# enable_version_0_5="true"
#elif [ "$1" = "version_0_5_enable=false" ]; then
#elif [ "$1" = "enable_version_0_5=false" ]; then
# version_0_5_enable="false"
# enable_version_0_5="false"
#elif [ "$2" = "version_0_5_enable=false" ]; then
#elif [ "$2" = "enable_version_0_5=false" ]; then
# version_0_5_enable="false"
# enable_version_0_5="false"
#fi
#fi
if [ "$1" = "local_enable=true" ]; then
if [ "$1" = "local_enable=true" ]; then
@ -195,27 +195,27 @@ if [ "$local_enable" != "false" ]; then
# IF git version is installed
# IF git version is installed
try_path="/usr/local/share/minetest"
try_path="/usr/local/share/minetest"
if [ -d "$try_path" ]; then
if [ -d "$try_path" ]; then
#if [ -z "$version_0_5_enable" ]; then
#if [ -z "$enable_version_0_5" ]; then
# version_0_5_enable="true"
# enable_version_0_5="true"
#fi
#fi
USR_SHARE_MINETEST="$try_path"
USR_SHARE_MINETEST="$try_path"
fi
fi
fi
fi
version_0_5_enable="false"
enable_version_0_5="false"
if [ -d "$USR_SHARE_MINETEST/games/minetest_game/mods/player_api" ]; then
if [ -d "$USR_SHARE_MINETEST/games/minetest_game/mods/player_api" ]; then
echo"bones_position_message = true" >> "$MYGAME_MINETEST_CONF"# default is false--this is for client-side chat message (server-side logging always on though)
echo"bones_position_message = true" >> "$MYGAME_MINETEST_CONF"# default is false--this is for client-side chat message (server-side logging always on though)
#no longer needed since these mods check for player_api to determine whether v3 model is used:
#no longer needed since these mods check for player_api to determine whether v3 model is used:
#TODO: below must go in the one in the subgame folder!
#TODO: below must go in the one in the subgame folder!
#echo "NOTE: hud_hunger/hunger/food.lua now comes with values for food from mobs."
#echo "NOTE: hud_hunger/hunger/food.lua now comes with values for food from mobs."
@ -1024,14 +1081,15 @@ echo ""
echo"#more minetest.conf settings for hbsprint can be found at https://github.com/minetest-mods/hbsprint/blob/master/settingtypes.txt"
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["$enable_version_0_5"="true"];then
echo"The 0.5 version of mods was installed."
echo"The 0.5 version of mods was installed."
else
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:"