shared minetest.rc functions, cache repos for install as update
fix: shouldn't assume in subdir, fedora deps for minetestmapper, pathing
variable naming, mod listing logic, use updated travelnet; fix
install-subgametest.py
#only for BadCommand's teleporter mod https://forum.minetest.net/viewtopic.php?id=2149 (NOT for travelnet) but probably should go in minetest.conf in subgame's directory, not in world.mt
#MT_MYGAME_DIR (a Minetest "game") is the equivalent of a Minecraft modpack, however, in this case it is actually a collection of mods and modpacks, either of which can be in the mods folder
#MT_MYGAME_DIR (a Minetest "game") is the equivalent of a Minecraft modpack, however, in this case it is actually a collection of mods and modpacks, either of which can be in the mods folder
#echo "hudbars_bar_type = statbar_modern" >> "$WRITEABLE_MINETEST_CONF" #TODO: remove this after fully deprecated
#echo "hudbars_bar_type = statbar_modern" >> "$WRITEABLE_MINETEST_CONF" #TODO: remove this after fully deprecated
#region sprint settings only for hbsprint (NOT GunshipPenguin sprint)
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 = .5" >> "$WRITEABLE_MINETEST_CONF"# default is 2
echo"sprint_stamina_drain = .5" >> "$WRITEABLE_MINETEST_CONF"# default is 2
#endregion sprint settings only for hbsprint (NOT GunshipPenguin sprint)
#TODO: possibly fork and do pull request for configuring GunshipPenguin sprint's hard-coded variables in init.lua:
#SPRINT_METHOD = 1
#SPRINT_SPEED = 1.8
#SPRINT_JUMP = 1.1
#SPRINT_STAMINA = 20
#SPRINT_TIMEOUT = 0.5 --Only used if SPRINT_METHOD = 0
echo"bones_position_message = true" >> "$WRITEABLE_MINETEST_CONF"# default is false--this is for client-side chat message (server-side logging always on though)
echo"bones_position_message = true" >> "$WRITEABLE_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:
# for now, manually get branch with sound (until Sokomine merges it--in addition, also check what else I may have manually merged thats not yet in his):
echo"WARNING: you have to manually install $HOME/Downloads/B3DExport/B3DExport.py using Blender's File Menu, User Preferences, Add-ons, 'Install Add-on from File...', press OK, then check the 'Import-Export B3D' box in the Add-ons list, then Save User Settings"
else
cd"B3DExport"
git pull
cd ..
fi
echo"NOTICE: For B3DExport from Blender you must manually install $HOME/Downloads/B3DExport/B3DExport.py using Blender's File Menu, User Preferences, Add-ons, 'Install Add-on from File...', press OK, then check the 'Import-Export B3D' box in the Add-ons list, then Save User Settings"
sleep 3
sleep 3
cd
cd
fi
fi
fi
fi
echo"Hopefully <https://github.com/minetest-mods/technic/issues/448> is fixed by the time you try this, otherwise you'll have to patch /usr/local/share/minetest/games/ENLIVEN/mods/technic/technic/machines/register/extractor_recipes.lua manually using workaround at <https://github.com/minetest/minetest/issues/6513>."
echo
ls $MT_MYGAME_MODS_PATH > "$CONFIG_PATH/actual_mod_list.txt"
echo"No mod loot for dungeon_loot (nor forks of worldgen mods which should use it) are in ENLIVEN, so dungeon_loot from $mtgame_name is removed by this script for now (treasurer and relevant trm_* mods are used instead)."
echo "ERROR: nothing done since add_mod_from_here FAILED to receive 'MTMOD_DEST_NAME' (1st param)--this session will exit unless you press Ctrl-C to cancel script..."
sleep 1
echo "4..."
sleep 1
echo "3..."
sleep 1
echo "2..."
sleep 1
echo "1..."
sleep 1
exit 1
fi
fi
if [ ! -d "$MTMOD_DEST_PATH" ]; then
if [ -z "$MTMOD_GOT_NAME" ]; then
echo " ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt
echo "ERROR: nothing done since add_mod_from_here FAILED to receive 'MTMOD_GOT_NAME' which is the exact downloaded or unzipped folder name (2nd param)--this session will exit unless you press Ctrl-C to cancel script..."
cat $err_txt
sleep 1
echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..."
if [ ! -d "$MTMOD_DEST_PATH" ] || [ "$update_enable" = "true" ]; then
if [ ! -d "$MTMOD_DEST_PATH" ] || [ "$update_enable" = "true" ]; then
if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable
if [ ! -d "$MTMOD_GOT_NAME" ]; then
rm -Rf $MTMOD_UNZ_NAME
echo "ERROR: nothing done since add_mod_from_here FAILED to find '$MTMOD_GOT_NAME'--this session will exit unless you press Ctrl-C to cancel script..."
sleep 1
echo "4..."
sleep 1
echo "3..."
sleep 1
echo "2..."
sleep 1
echo "1..."
sleep 1
exit 1
fi
fi
if [ -d "$MTMOD_DEST_PATH" ]; then
if [ -d "$MTMOD_DEST_PATH" ]; then
if [ ! -f "`command -v rsync`" ]; then
echo "removing old $MTMOD_DEST_PATH"
echo "removing old $MTMOD_DEST_PATH"
sudo rm -Rf "$MTMOD_DEST_PATH"
sudo rm -Rf "$MTMOD_DEST_PATH"
if [ -d "$MTMOD_DEST_PATH" ]; then
echo "FAILED to remove '$MTMOD_DEST_PATH'--this session will exit unless you press Ctrl-C to cancel script..."
sleep 1
echo "4..."
sleep 1
echo "3..."
sleep 1
echo "2..."
sleep 1
echo "1..."
sleep 1
exit 1
fi
fi
fi
if [ ! -z "$BRANCH" ]; then
echo "BRANCH: Cloning $BRANCH branch..."
echo "git clone -b $BRANCH --single-branch $URL"
git clone -b $BRANCH --single-branch $URL
else
#echo "Cloning main branch since no branch specified: $BRANCH"
echo "git clone $URL"
git clone $URL
fi
fi
if [ -d "$MTMOD_UNZ_NAME" ]; then
if [ -d "$MTMOD_GOT_NAME" ]; then
# outer case is for safety in case variable is blank or something
# outer case is for safety in case variable is blank or something
echo "The 'rsync' command was not found. Installing rsync will reduce writes to drive if you run install methods (as all use add_mod_from_here) more than once for the same mod."
echo
fi
0
patches/mods-integration/debug (various warnings on each startup, Mar 8, 2017).txt → patches/mods-integration - debug (various warnings on each startup, Mar 8, 2017).txt