Browse Source

fix missing mods in ENLIVEN-minetest_game

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
4561620b75
  1. 7
      minetestenv.rc
  2. 66
      utilities/deprecated/install-ENLIVEN-minetest_game.sh

7
minetestenv.rc

@ -158,6 +158,13 @@ show_changes="true"
#fi #fi
PATCHES_PATH="$REPO_PATH/patches" PATCHES_PATH="$REPO_PATH/patches"
if [ ! -d "$PATCHES_PATH" ]; then
if [ -d "$HOME/git/EnlivenMinetest" ]; then
REPO_PATH=$HOME/git/EnlivenMinetest
PATCHES_PATH="$REPO_PATH/patches"
fi
fi
echo "PATCHES_PATH: $PATCHES_PATH" echo "PATCHES_PATH: $PATCHES_PATH"
if [ ! -d "$PATCHES_PATH" ]; then if [ ! -d "$PATCHES_PATH" ]; then

66
utilities/deprecated/install-ENLIVEN-minetest_game.sh

@ -47,6 +47,7 @@ if [ ! -f minetestenv.rc ]; then
cd "$HOME/GitHub/EnlivenMinetest" cd "$HOME/GitHub/EnlivenMinetest"
fi fi
fi fi
EnlivenMinetest_dir="`pwd`"
if [ ! -f minetestenv.rc ]; then if [ ! -f minetestenv.rc ]; then
# NOTE: customDie is not defined until after this clause. # NOTE: customDie is not defined until after this clause.
echo "ERROR: Nothing done since missing minetestenv.rc (must be in same directory or '$HOME/git/EnlivenMinetest' or '`pwd`')." echo "ERROR: Nothing done since missing minetestenv.rc (must be in same directory or '$HOME/git/EnlivenMinetest' or '`pwd`')."
@ -96,7 +97,7 @@ if [ ! -f "`command -v minetestmapper`" ]; then
fi fi
fi fi
fi fi
cd ~/Downloads pushd ~/Downloads
if [ -d minetestmapper ]; then if [ -d minetestmapper ]; then
rm -Rf minetestmapper rm -Rf minetestmapper
fi fi
@ -110,6 +111,7 @@ if [ ! -f "`command -v minetestmapper`" ]; then
else else
echo "FAILED to compile minetestmapper--python version will be used" echo "FAILED to compile minetestmapper--python version will be used"
fi fi
popd
fi fi
if [ -d /tmp/local_mts_user ]; then if [ -d /tmp/local_mts_user ]; then
@ -144,8 +146,6 @@ if [ -f "$MT_MYWORLD_DIR/world.mt" ]; then
fi fi
#process conf file (account for spaces around equal sign and variable names containing name of other variable name) #process conf file (account for spaces around equal sign and variable names containing name of other variable name)
shopt -s extglob shopt -s extglob
configfile="$WORLD_MT_PATH" # set the actual path name of your (DOS or Unix) config file configfile="$WORLD_MT_PATH" # set the actual path name of your (DOS or Unix) config file
@ -215,12 +215,16 @@ if [ ! -d "$MT_MYGAME_DIR/" ]; then
customDie "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." customDie "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue."
fi fi
#sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/* "$MT_MYGAME_DIR/mods/" #sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/* "$MT_MYGAME_DIR/mods/"
echo "Copying $MT_MINETEST_GAME_PATH to $MT_MYGAME_DIR"
if [ -f "`command -v rsync`" ]; then if [ -f "`command -v rsync`" ]; then
rsync -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" rsync -rt $MT_MINETEST_GAME_PATH/ "$MT_MYGAME_DIR" || echo "rsync -rt $MT_MINETEST_GAME_PATH/ \"$MT_MYGAME_DIR\" # FAILED" >> "$err_txt"
else else
cp -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" cp -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" || echo "cp -Rf $MT_MINETEST_GAME_PATH/* \"$MT_MYGAME_DIR/\" # FAILED" >> "$err_txt"
fi fi
echo "2..."
sleep 1
echo "1..."
sleep 1
#sudo su - #sudo su -
#WRITEABLE_MINETEST_CONF=$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf #WRITEABLE_MINETEST_CONF=$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf
@ -858,33 +862,33 @@ if [ -d "$PATCHES_PATH" ]; then
echo "patching $MT_MYGAME_DIR (files only, so 'omitting directory' warnings are ok)..." echo "patching $MT_MYGAME_DIR (files only, so 'omitting directory' warnings are ok)..."
cp -f $PATCHES_PATH/subgame/mods/mobs_monster/textures/* "$MT_MYGAME_DIR/mods/mobs_monster/textures/" cp -f $PATCHES_PATH/subgame/mods/mobs_monster/textures/* "$MT_MYGAME_DIR/mods/mobs_monster/textures/"
echo " [ / ] patching skins for skinsdb..." echo " [ / ] patching skins for skinsdb..."
# REMOVE EXISTING SKINS AND ONLY ADD poikilos skins: # REMOVE EXISTING SKINS AND ONLY ADD poikilos skins:
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$PATCH_SKINS_MOD_NAME MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$PATCH_SKINS_MOD_NAME
SUB_NAME="textures" # include u_skins since u_skins/u_skins IS THE MOD in the modpack SUB_NAME="textures" # include u_skins since u_skins/u_skins IS THE MOD in the modpack
SUB_PATH="$MTMOD_DEST_PATH/$SUB_NAME" SUB_PATH="$MTMOD_DEST_PATH/$SUB_NAME"
if [ -d "$SUB_PATH" ]; then if [ -d "$SUB_PATH" ]; then
echo "removing original $SUB_PATH/character_*..." echo "removing original $SUB_PATH/character_*..."
rm -Rf $SUB_PATH/character_* # cannot have quotes if using wildcards rm -Rf $SUB_PATH/character_* # cannot have quotes if using wildcards
fi fi
cp -f $PATCHES_PATH/deprecated/mods-multiplayer-minetest_game/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SUB_PATH" cp -f $PATCHES_PATH/deprecated/mods-multiplayer-minetest_game/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SUB_PATH"
if [ ! -d "$SUB_PATH" ]; then if [ ! -d "$SUB_PATH" ]; then
customDie "ERROR: failed to install poikilos's skins to $SUB_PATH, so cannot continue." customDie "ERROR: failed to install poikilos's skins to $SUB_PATH, so cannot continue."
else else
echo "installed poikilos's skins to $SUB_PATH" echo "installed poikilos's skins to $SUB_PATH"
fi fi
SUB_NAME="meta" # include u_skins since u_skins/u_skins IS THE MOD in the modpack SUB_NAME="meta" # include u_skins since u_skins/u_skins IS THE MOD in the modpack
SUB_PATH="$MTMOD_DEST_PATH/$SUB_NAME" SUB_PATH="$MTMOD_DEST_PATH/$SUB_NAME"
if [ -d "$SUB_PATH" ]; then if [ -d "$SUB_PATH" ]; then
echo "removing original $SUB_PATH/character_*..." echo "removing original $SUB_PATH/character_*..."
rm -Rf $SUB_PATH/character_* # cannot have quotes if using wildcards rm -Rf $SUB_PATH/character_* # cannot have quotes if using wildcards
fi fi
cp -f $PATCHES_PATH/deprecated/mods-multiplayer-minetest_game/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SUB_PATH" cp -f $PATCHES_PATH/deprecated/mods-multiplayer-minetest_game/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SUB_PATH"
if [ ! -d "$SUB_PATH" ]; then if [ ! -d "$SUB_PATH" ]; then
customDie "ERROR: failed to install poikilos's skins to $SUB_PATH, so cannot continue." customDie "ERROR: failed to install poikilos's skins to $SUB_PATH, so cannot continue."
else else
echo "installed metadata for poikilos's skins to $SUB_PATH" echo "installed metadata for poikilos's skins to $SUB_PATH"
fi fi
@ -956,15 +960,7 @@ fi
echo "# cp -Rf $PATCHES_PATH/mods-stopgap-minetest_game/* $MT_MYGAME_MODS_PATH/" echo "# cp -Rf $PATCHES_PATH/mods-stopgap-minetest_game/* $MT_MYGAME_MODS_PATH/"
#echo "rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking # leftovers from deprecated ENLIVEN installer" #echo "rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking # leftovers from deprecated ENLIVEN installer"
else else
echo "did not find $PATCHES_PATH, so skipped automatic patching which is partially implemented" customDie "did not find $PATCHES_PATH"
echo "continuing anyway unless Ctrl-C is pressed..."
echo 1
echo "3..."
echo 1
echo "2..."
echo 1
echo "1..."
echo 1
fi fi
echo echo
if [ "$version_0_5_enable" != "true" ]; then if [ "$version_0_5_enable" != "true" ]; then
@ -1086,7 +1082,9 @@ echo "If any uncommented commands appear below, consider running them if repairs
echo echo
cat $err_txt cat $err_txt
if [ -d "$HOME/.minetest/games/ENLIVEN" ]; then if [ -d "$HOME/.minetest/games/ENLIVEN" ]; then
if [ "$MT_MYGAME_DIR" != "$HOME/.minetest/games/ENLIVEN" ]; then
echo "rsync -rt --delete \"$MT_MYGAME_DIR/\" \"$HOME/.minetest/games/ENLIVEN\"" echo "rsync -rt --delete \"$MT_MYGAME_DIR/\" \"$HOME/.minetest/games/ENLIVEN\""
fi
fi fi
if [ -d "$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME" ]; then if [ -d "$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME" ]; then
echo "sudo rm -Rf \"$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME/\" # deprecated location--see '$MT_MYGAME_DIR' instead." echo "sudo rm -Rf \"$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME/\" # deprecated location--see '$MT_MYGAME_DIR' instead."

Loading…
Cancel
Save