From b0b1d4b83b8c960655c7aad40ba84b03e94d6ce0 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Thu, 10 May 2018 08:54:10 -0400 Subject: [PATCH] improve game handling and add comments to installer --- etc/change_hardcoded_world_name_first/mts-ENLIVEN | 7 +++++-- etc/game-install-ENLIVEN | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/etc/change_hardcoded_world_name_first/mts-ENLIVEN b/etc/change_hardcoded_world_name_first/mts-ENLIVEN index cb801e7..d52ddb5 100755 --- a/etc/change_hardcoded_world_name_first/mts-ENLIVEN +++ b/etc/change_hardcoded_world_name_first/mts-ENLIVEN @@ -25,5 +25,8 @@ fi # NOTE: if only title is set, screen -x must be used to resume, so use -S to resume with -r # screen -S MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld # screen -S MinetestServer /home/owner/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld -screen -S MinetestServer $mts --gameid ENLIVEN --worldname FCAGameAWorld - +MT_MYWORLD_NAME="FCAWorldB" +screen -S MinetestServer $mts --gameid ENLIVEN --worldname $MT_MYWORLD_NAME +if [ ! -d "$HOME/.minetest/worlds/" ]; then + echo "ERROR: missing $HOME/.minetest/worlds/$MT_MYWORLD_NAME" +fi diff --git a/etc/game-install-ENLIVEN b/etc/game-install-ENLIVEN index fab23b4..f926bac 100755 --- a/etc/game-install-ENLIVEN +++ b/etc/game-install-ENLIVEN @@ -14,6 +14,17 @@ # 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 +# * update git discarding local changes: +# (see https://stackoverflow.com/questions/4157189/git-pull-while-ignoring-local-changes) +# git fetch --all +# git reset --hard origin/master +# git pull +# #"even works when u have committed ur local changes, but still u want to revert" -agsachin +# +# #git reset --hard +# #git pull +# #git clean -xdf +# #-f remove untracked files, -d remove untracked directories, -x remove untracked OR ignored sudo echo "starting ENLIVEN installer script..."