Browse Source

switch from patched homedecor to original and homedecor_ua

and switch to tsm_chests_dungeon--works with spawners in minetest-git
master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
6459429c3f
  1. 118
      etc/game-install-ENLIVEN

118
etc/game-install-ENLIVEN

@ -7,6 +7,23 @@
#First make sure all folders in $HOME/.minetest are created (I am not sure whether this is required!): #First make sure all folders in $HOME/.minetest are created (I am not sure whether this is required!):
# minetestserver # minetestserver
# Mods were found at https://forum.minetest.net/viewforum.php?f=11 # Mods were found at https://forum.minetest.net/viewforum.php?f=11
# (Ubuntu 14.04 Trusty Tahr Server) folders were found using:
# cd /
# sudo find -name 'worlds' (worlds folder is in $HOME/.minetest)
# sudo find -name 'minimal' (stable build [such as 0.4.9 games folder is /usr/share/games/minetest/games, but git version games folder is /usr/local/share/minetest/games)
# ISSUES:
# * 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..."
## this space was intentionally left blank
#region paste this part into terminal to get some great environment variables
CONFIGS_PATH="$HOME/.config/EnlivenMinetest" CONFIGS_PATH="$HOME/.config/EnlivenMinetest"
if [ ! -d "$CONFIGS_PATH" ]; then if [ ! -d "$CONFIGS_PATH" ]; then
mkdir -p "$CONFIGS_PATH" mkdir -p "$CONFIGS_PATH"
@ -58,23 +75,6 @@ fi
#sleep 1 #sleep 1
#echo "1..." #echo "1..."
#sleep 1 #sleep 1
# (Ubuntu 14.04 Trusty Tahr Server) folders were found using:
# cd /
# sudo find -name 'worlds' (worlds folder is in $HOME/.minetest)
# sudo find -name 'minimal' (stable build [such as 0.4.9 games folder is /usr/share/games/minetest/games, but git version games folder is /usr/local/share/minetest/games)
# ISSUES:
# * 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..."
## this space was intentionally left blank
#region paste this part into terminal to get some great environment variables
update_enable="true" update_enable="true"
shell_name="bash" shell_name="bash"
err_txt=$HOME/err-enliven.txt err_txt=$HOME/err-enliven.txt
@ -731,6 +731,9 @@ if [ "$spawners_enable" = "true" ]; then
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 "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"
# dungeon_loot is part of default game, but I haven't created loot tables for this subgame yet, so remove:
remove_mod "dungeon_loot"
# NOTE: tsm_chests_dungeon supercedes dungeon_loot, but dungeon_loot : # NOTE: tsm_chests_dungeon supercedes dungeon_loot, but dungeon_loot :
if [ -d "$MT_MYGAME_MODS_PATH/dungeon_loot" ]; then if [ -d "$MT_MYGAME_MODS_PATH/dungeon_loot" ]; then
echo "WARNING: tsm_chests_dungeon may not be compatible with dungeon_loot" echo "WARNING: tsm_chests_dungeon may not be compatible with dungeon_loot"
@ -988,6 +991,8 @@ add_git_mod signs_lib signs_lib https://github.com/minetest-mods/signs_lib.git
farming_redo_enable="false" farming_redo_enable="false"
if [ -f "$MT_MYWORLD_DIR/farming_redo_enable" ]; then if [ -f "$MT_MYWORLD_DIR/farming_redo_enable" ]; then
farming_redo_enable="true" farming_redo_enable="true"
else
echo "$MT_MYWORLD_DIR/farming_redo_enable not found (may contain anything or nothing to enable), so not using farming_redo"
fi fi
if [ "$farming_redo_enable" = "true" ]; then if [ "$farming_redo_enable" = "true" ]; then
remove_mod crops remove_mod crops
@ -1125,7 +1130,7 @@ fi
# woodcutting: sneek click to start auto-harvest tree, sneak again to cancel # woodcutting: sneek click to start auto-harvest tree, sneak again to cancel
add_git_mod woodcutting woodcutting https://github.com/minetest-mods/woodcutting.git add_git_mod woodcutting woodcutting https://github.com/minetest-mods/woodcutting.git
#endregion PLAYER UX MODS #endregion PLAYER UX MODS
add_git_mod homedecor_ua homedecor_ua https://github.com/poikilos/homedecor_ua.git
echo echo
@ -1221,45 +1226,46 @@ fi
echo "ALREADY patched $MTMOD_DEST_NAME with $MODIFIED_PATH." echo "ALREADY patched $MTMOD_DEST_NAME with $MODIFIED_PATH."
fi fi
fi fi
BASIS_PATH=$PATCHES_PATH/subgame-basis/mods/homedecor_modpack/homedecor/gastronomy.lua #homedecor: see homedecor_ua (underage) instead ABOVE
MODIFIED_PATH=$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/gastronomy.lua #BASIS_PATH=$PATCHES_PATH/subgame-basis/mods/homedecor_modpack/homedecor/gastronomy.lua
TARGET_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor/gastronomy.lua #MODIFIED_PATH=$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/gastronomy.lua
MTMOD_DEST_NAME=homedecor_modpack #TARGET_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor/gastronomy.lua
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor #MTMOD_DEST_NAME=homedecor_modpack
TRY_DIFF="`diff $BASIS_PATH $TARGET_PATH`" #MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor
if [ -z "$TRY_DIFF" ]; then #TRY_DIFF="`diff $BASIS_PATH $TARGET_PATH`"
sudo cp -f $MODIFIED_PATH "$MTMOD_DEST_PATH/" #if [ -z "$TRY_DIFF" ]; then
echo "done attempting to patch $MTMOD_DEST_PATH/" # sudo cp -f $MODIFIED_PATH "$MTMOD_DEST_PATH/"
else # echo "done attempting to patch $MTMOD_DEST_PATH/"
if [ -z `diff $MODIFIED_PATH $TARGET_PATH` ]; then #else
echo "ALREADY patched $TARGET_PATH with $MODIFIED_PATH" # if [ -z `diff $MODIFIED_PATH $TARGET_PATH` ]; then
else # echo "ALREADY patched $TARGET_PATH with $MODIFIED_PATH"
echo "FAILED to patch $MTMOD_DEST_NAME since $TARGET_PATH differs from known version." # else
sleep 4 # echo "FAILED to patch $MTMOD_DEST_NAME since $TARGET_PATH differs from known version."
fi # sleep 4
fi # fi
BASIS_PATH=$PATCHES_PATH/subgame-basis/mods/homedecor_modpack/homedecor/crafts.lua #fi
MODIFIED_PATH=$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/crafts.lua #BASIS_PATH=$PATCHES_PATH/subgame-basis/mods/homedecor_modpack/homedecor/crafts.lua
TARGET_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor/crafts.lua #MODIFIED_PATH=$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/crafts.lua
MTMOD_DEST_NAME=homedecor_modpack #TARGET_PATH=$MT_MYGAME_MODS_PATH/homedecor_modpack/homedecor/crafts.lua
TRY_DIFF="`diff $BASIS_PATH $TARGET_PATH`" #MTMOD_DEST_NAME=homedecor_modpack
if [ -z "$TRY_DIFF" ]; then #TRY_DIFF="`diff $BASIS_PATH $TARGET_PATH`"
sudo cp -f $MODIFIED_PATH "$MTMOD_DEST_PATH/" #if [ -z "$TRY_DIFF" ]; then
echo "done attempting to patch $MTMOD_DEST_PATH/" # sudo cp -f $MODIFIED_PATH "$MTMOD_DEST_PATH/"
else # echo "done attempting to patch $MTMOD_DEST_PATH/"
if [ -z `diff $MODIFIED_PATH $TARGET_PATH` ]; then #else
echo "ALREADY patched $TARGET_PATH with $MODIFIED_PATH" # if [ -z `diff $MODIFIED_PATH $TARGET_PATH` ]; then
else # echo "ALREADY patched $TARGET_PATH with $MODIFIED_PATH"
echo "FAILED to patch $MTMOD_DEST_NAME since $TARGET_PATH differs from known version." # else
sleep 4 # echo "FAILED to patch $MTMOD_DEST_NAME since $TARGET_PATH differs from known version."
fi # sleep 4
fi # fi
if [ -d "$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/models" ]; then #fi
# deprecated, but copy in case gets un-deprecated #if [ -d "$PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/models" ]; then
cp -f $PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/models/* "$MTMOD_DEST_PATH/models/" # # deprecated, but copy in case gets un-deprecated
fi # cp -f $PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/models/* "$MTMOD_DEST_PATH/models/"
#fi
# NOTE: quotes don't work with wildcard # NOTE: quotes don't work with wildcard
cp -f $PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/textures/* "$MTMOD_DEST_PATH/textures/" #cp -f $PATCHES_PATH/subgame/mods/homedecor_modpack/homedecor/textures/* "$MTMOD_DEST_PATH/textures/"
echo "# not recommended:" echo "# not recommended:"
echo "sudo cp -Rf $PATCHES_PATH/mods-stopgap/* $MT_MYGAME_MODS_PATH/" echo "sudo cp -Rf $PATCHES_PATH/mods-stopgap/* $MT_MYGAME_MODS_PATH/"
#echo "sudo rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking # leftovers from deprecated ENLIVEN installer" #echo "sudo rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking # leftovers from deprecated ENLIVEN installer"

Loading…
Cancel
Save