diff --git a/README.md b/README.md index 4e88d0e..7c072f4 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,14 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn * fix exception while trying to recover from exception (see `Could not finish writing r`) ## Changes: +(2018-02-06) +* refactored file structure + * renamed games/ENLIVEN to patches/subgame + * moved etc/Mods* to patches/mods* +* updated mod lists for 0.4.16 + * added + * moved nyancat to patches/subgame/minetest_game-deprecated-mods-list.txt + (wiki.minetest.net/Nyan_Cat says if you want it back, copy it from 0.4.15) (2018-02-03) * bump Python requirement to 3 (no more testing is planned to be done on python2) and use python3 binary when calling py files from scripts * (chunkymap-generator.bat, pythoninfo.py) if using Windows, check for various versions of Python3 and warn if fails (no longer check for Python2) diff --git a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN index 0eb0b51..858826c 100755 --- a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN +++ b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN @@ -1888,19 +1888,30 @@ fi echo echo echo +echo "adding the following necessary integration mods:" +ls ~/GitHub/EnlivenMinetest/patches/mods-integration/ +sudo cp -R ~/GitHub/EnlivenMinetest/patches/mods-integration/* "$MT_MYGAME_MODS_PATH/" +echo +echo "adding the following multiplayer mods:" +ls ~/GitHub/EnlivenMinetest/patches/mods-multiplayer/ +sudo cp -R ~/GitHub/EnlivenMinetest/patches/mods-multiplayer/* "$MT_MYGAME_MODS_PATH/" echo echo "# remove not available on 0.4.16 stable (is only avail on 0.4.16-dev or higher)" echo "sudo rm -Rf /usr/share/games/minetest/games/ENLIVEN/mods/worldedit/worldedit_brush" -echo "# optionally:" -echo "sudo cp -R ~/GitHub/EnlivenMinetest/etc/Mods\,WIP/* $MT_MYGAME_MODS_PATH/" echo "# not recommended:" -echo "sudo cp -R ~/GitHub/EnlivenMinetest/etc/Mods\,stopgap/* $MT_MYGAME_MODS_PATH/" +echo "sudo cp -R ~/GitHub/EnlivenMinetest/patches/mods-stopgap/* $MT_MYGAME_MODS_PATH/" echo "sudo rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking" -echo "" -echo "" -echo "" +echo +echo +echo "adding non-manual patches to subgame (vs minetest_game and downloaded mods):" +sudo cp -f ~/GitHub/EnlivenMinetest/patches/subgame/* "$MT_MYGAME_DIR/" +sudo cp -f ~/GitHub/EnlivenMinetest/patches/subgame/menu/* "$MT_MYGAME_DIR/menu/" +sudo cp -f ~/GitHub/EnlivenMinetest/patches/subgame/mods/mobs/textures/* "$MT_MYGAME_DIR/mods/mobs/textures/" +sudo cp -f ~/GitHub/EnlivenMinetest/patches/subgame/mods/mobs_monster/textures/* "$MT_MYGAME_DIR/mods/mobs_monster/textures/" +echo "mods affected: mobs" +echo echo "#### $MT_MYWORLD_DIR/world.mt: ####" cat "$MT_MYWORLD_DIR/world.mt" echo "### end $MT_MYWORLD_DIR/world.mt ##" @@ -1920,19 +1931,13 @@ echo " ban: allows /ban ip and /unban ip (and /whitelist add player and /whitel echo " kick: allows /kick player" echo " privs: allows grant and revoke commands" echo " delprotect: circumvents protector blocks, including allowing removing them" +echo " invhack: editing player inventories as moderator" echo "" -echo "Also remember to:" -echo " nano $MT_MYGAME_MODS_PATH/teleporter/config.lua" -echo " #then change:" -echo " teleporter.requires_pairing = true" -echo " # also see other lines in this script that wouldn't echo as non-root" -echo " #otherwise people can type any coordinates for destination (approaching infinite distance)!" +echo " * for invhack, remember to do: /giveme invhack:tool" echo " * uncomment columns in lapis mod" -echo " * set number = 0 or number = {min=0, max=0} in cme since only using cme for creatures:*_spawner nodes and for compatibility with old worlds" -echo " * remember to /grant yourself invhack and then /giveme invhack:tool for editing player inventories as moderator" echo " * Make sure client (server done already above) minetest.conf has secure.trusted_mods = advanced_npc" echo " * Make sure writable minetest conf was successfully written" -echo " over /usr/local/share/minetest/games/enliven/minetest.conf with:" +echo " over /usr/local/share/minetest/games/enliven/minetest.conf with:" echo "protector_radius = 7" echo "protector_pvp = true" echo "protector_pvp_spawn = 10" diff --git a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN.old b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN.old deleted file mode 100644 index 6188645..0000000 --- a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN.old +++ /dev/null @@ -1,1101 +0,0 @@ -#!/bin/sh - -#First make sure all folders in $HOME/.minetest are created (I am not sure whether this is required!): -# minetestserver -# Mods were found at https://forum.minetest.net/viewforum.php?f=11 - - -# * Git version uses /home/*/minetest/games and /usr/local/share/minetest/games but the latter is used for minetestserver (minetest-server package) - - -#(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) - -#NOTE: minetest mods are ALWAYS ONLY installed on server - -USR_SHARE_MINETEST=/usr/share/games/minetest -#IF git version is installed: -if [ -d "/usr/local/share/minetest" ]; then - USR_SHARE_MINETEST=/usr/local/share/minetest -fi -#UNUSED (unknown use): MT_GAMES_DIR=$HOME/.minetest/mods -#intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one: -MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games -MT_GAMES_DIR=$USR_SHARE_MINETEST/games -MT_MYGAME_NAME=ENLIVEN -MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME -#formerly MT_MYGAME_MODDIR: -MT_MYGAME_MODS_PATH=$MT_MYGAME_DIR/mods -MT_MYWORLD_NAME=FCAGameAWorld -MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME - -#BACKUP THE WORLD: -if [ ! -d "$MT_MYGAME_DIR" ]; then - sudo mkdir "$MT_MYGAME_DIR" -fi -if [ -f "$MT_MYWORLD_DIR/world.mt.1st" ]; then - echo "Already backed up world.mt to $MT_MYWORLD_DIR/world.mt.1st" -else - cp "$MT_MYWORLD_DIR/world.mt" "$MT_MYWORLD_DIR/world.mt.1st" - echo "The original world.mt is now backed up at $MT_MYWORLD_DIR/world.mt.1st" -fi -touch "$MT_MYWORLD_DIR/world.mt" -mv -f "$MT_MYWORLD_DIR/world.mt" "$MT_MYWORLD_DIR/world.mt.bak" -# REMAKE world.mt -echo "gameid = $MT_MYGAME_NAME" > "$MT_MYWORLD_DIR/world.mt" -echo "backend = leveldb" >> "$MT_MYWORLD_DIR/world.mt" -#mv "world.mt" $MT_MYWORLD_DIR/world.mt - -#MT_MYGAME_DIR (a Minetest "game") is the equivalent of a Minecraft modpack - -#cd -if [ ! -d "$HOME/Downloads" ]; then - mkdir "$HOME/Downloads" -fi -cd "$HOME/Downloads" - -if [ -d "$MT_MYGAME_DIR BAK" ]; -then - echo "already backed up $MT_MYGAME_DIR" -else - sudo mv "$MT_MYGAME_DIR" "$MT_MYGAME_DIR BAK" -fi - - -#sudo mkdir "$MT_MYGAME_DIR" -#sudo mkdir "$MT_MYGAME_MODS_PATH" -if [ ! -d "$MT_MYGAME_DIR/" ]; then - echo "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." - exit 1 -fi -#sudo cp -R $USR_SHARE_MINETEST/games/minetest_game/mods/* "$MT_MYGAME_DIR/mods/" -sudo cp -R $USR_SHARE_MINETEST/games/minetest_game/* "$MT_MYGAME_DIR/" - -#wget https://github.com/BlockMen/cme/releases/download/v2.3/cme-2_3-BlockMen.zip -#unzip cme-2_3-BlockMen.zip -#sudo mv cme "$MT_MYGAME_MODS_PATH/cme" -##DO NOT DO THIS (since cme is a modpack): echo "load_mod_cme = true" >> "$MT_MYWORLD_DIR/world.mt" -#echo "#cme Creatures MOB-Engine (cme) is a modpack" >> "$MT_MYWORLD_DIR/world.mt" - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=mobs_redo.zip -MTMOD_UNZ_NAME=mobs_redo-master -MTMOD_DEST_NAME=mobs -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -echo "Installing TenPlus1's mobs.zip from https://github.com/tenplus1/mobs_redo/archive/master.zip" -echo "Installing TenPlus1's mobs.zip from https://github.com/tenplus1/mobs_redo/archive/master.zip" > mobs.zip.txt -#SEE ALSO RELEASE VERSION (must be logged in to download): https://forum.minetest.net/download/file.php?id=5282 -#wget https://github.com/tenplus1/mobs/archive/master.zip -wget https://github.com/tenplus1/mobs_redo/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -echo "load_mod_mobs = true" >> "$MT_MYWORLD_DIR/world.mt" - - -#the following downloads protector (REDO version posted at https://forum.minetest.net/viewtopic.php?f=11&t=9376) not the original 2012 protector or 2012 fork of 2012 protector -#rm protector.zip -#wget https://forum.minetest.net/download/file.php?id=5046 -#mv -f "file.php?id=5046" protector.zip -#USE GIT VERSION INSTEAD: -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=protector.zip -MTMOD_UNZ_NAME=protector-master -MTMOD_DEST_NAME=protector -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#as of 2016-02-20, CRASHES on default 0.4.9 minetesterver 0.4.13 git 2016-02-20: -wget https://github.com/tenplus1/protector/archive/master.zip -#expertmm fork to work in above situation: -#wget https://github.com/expertmm/protector/archive/master.zip -#results in UNKNOWN NODE for all protected blocks: wget https://github.com/MinetestForFun/protector/archive/master.zip -mv -f $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -#sudo rm -Rf "$MT_MYGAME_MODS_PATH/protector-master" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#sudo su - -#WRITEABLE_MINETEST_CONF=$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf -WRITEABLE_MINETEST_CONF=$HOME/minetest.conf -rm $HOME/minetest.conf -if [ ! -f "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf" ]; then - sudo cp "$USR_SHARE_MINETEST/games/minetest_game/minetest.conf" "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf.1st" -fi -cp "$USR_SHARE_MINETEST/games/minetest_game/minetest.conf" "$WRITEABLE_MINETEST_CONF" -touch "$WRITEABLE_MINETEST_CONF" -echo "protector_radius = 5" >> "$WRITEABLE_MINETEST_CONF" -echo "protector_pvp = true" >> "$WRITEABLE_MINETEST_CONF" -echo "protector_pvp_spawn = 10" >> "$WRITEABLE_MINETEST_CONF" -echo "protector_drop = false" >> "$WRITEABLE_MINETEST_CONF" -echo "protector_hurt = 1" >> "$WRITEABLE_MINETEST_CONF" -sudo mv -f $HOME/minetest.conf "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf" -echo "load_mod_protector = true" >> $MT_MYWORLD_DIR/world.mt - - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.tar.gz -MTMOD_SRC_ZIP=xban2.tar.gz -#MTMOD_UNZ_NAME=minetest-xban2-master -MTMOD_UNZ_NAME=xban2-master -MTMOD_DEST_NAME=xban2 -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/kaeza/minetest-xban2/archive/master.tar.gz -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -tar -xzvf $MTMOD_SRC_ZIP -# As http://wiki.minetest.net/Installing_Mods specifies, a mod MUST be renamed to official name as in the official thread of the mod: -mv $MTMOD_UNZ_NAME $MTMOD_DEST_NAME -sudo mv $MTMOD_DEST_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -echo "load_mod_xban2 = true" >> "$MT_MYWORLD_DIR/world.mt" - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=areas.zip -MTMOD_UNZ_NAME=areas-master -MTMOD_DEST_NAME=areas -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing ShadowNinja's " -echo "Installing ShadowNinja's " >> $MTMOD_SRC_ZIP.txt -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/ShadowNinja/areas/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -echo "load_mod_areas = true" >> "$MT_MYWORLD_DIR/world.mt" - -if [ -f "$MT_MYGAME_DIR/game.conf.1st" ]; then - echo "Already backed up $MT_MYGAME_DIR/game.conf to $MT_MYGAME_DIR/game.conf.1st" -else - sudo cp "$MT_MYGAME_DIR/game.conf" "$MT_MYGAME_DIR/game.conf.1st" -fi -echo "name = $MT_MYGAME_NAME" > "$HOME/game.conf" -sudo mv -f "$HOME/game.conf" "$MT_MYGAME_DIR/game.conf" -#su - -#FAILS: echo "name = $MT_MYGAME_NAME" > "$MT_MYGAME_DIR/game.conf" -#sudo nano "$MT_MYGAME_DIR/game.conf" -echo "" -echo "You should see $MT_MYGAME_NAME in the list below if the game was configured properly:" -minetestserver --gameid list -echo "" - - -#ls "$MT_MYGAME_MODS_PATH" -if [ ! -d "$MT_BACKUP_GAMES_DIR" ]; then - mkdir -p "$MT_BACKUP_GAMES_DIR" -#-p to make parent recursively -fi - -if [ -d "$MT_BACKUP_GAMES_DIR/minetest_game_1st" ]; then - echo "already backed up $USR_SHARE_MINETEST/games/minetest_game" -else - sudo cp -R "$USR_SHARE_MINETEST/games/minetest_game" "$MT_BACKUP_GAMES_DIR/" -fi -#sudo mv "$USR_SHARE_MINETEST/games/fca-game-a" "$USR_SHARE_MINETEST/games/minetest_game" - -#UNUSED, but install anyway: -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=carbone-ng.zip -MTMOD_UNZ_NAME=carbone-ng-master -MTMOD_DEST_NAME=carbone-ng -#MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -MTMOD_DEST_PATH=$MT_GAMES_DIR/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -cd "$HOME/Downloads" -wget https://github.com/Calinou/carbone-ng/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#sudo cp -R /usr/share/games/minetest/games/carbone-ng /usr/local/share/minetest/games/carbone-ng - -#IF git version is installed: -#if [ -d "/usr/local/share/minetest/games" ]; -#then -#sudo cp -R $USR_SHARE_MINETEST/games/$MT_MYGAME_NAME /usr/local/share/minetest/games/$MT_MYGAME_NAME -#sudo mv $HOME/Downloads/cme /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/cme -#sudo mv $HOME/Downloads/protector /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/protector -#fi - -# actually farming REDO as per https://forum.minetest.net/viewtopic.php?f=11&t=9019 -#wget https://forum.minetest.net/download/file.php?id=5045 -#mv "file.php?id=5045" farming.zip -#unzip farming.zip -#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming -#sudo mv farming $MT_MYGAME_MODS_PATH/farming -# breaks 0.4.13 dev version 2016-02-17 (says height_max deprecated, use y_max; and later -#2016-02-17 11:10:19: ERROR[Main]: ModError: Failed to load and run script from $USR_SHARE_MINETEST/games/ENLIVEN/mods/farming/init.lua: -#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/ENLIVEN/mods/farming/pumpkin.lua:78: attempt to perform arithmetic on field 'LIGHT_MAX' (a nil value) -#2016-02-17 11:10:19: ERROR[Main]: stack traceback: -#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/ENLIVEN/mods/farming/pumpkin.lua:78: in main chunk -#2016-02-17 11:10:19: ERROR[Main]: [C]: in function 'dofile' -#2016-02-17 11:10:19: ERROR[Main]: ...al/share/minetest/games/ENLIVEN/mods/farming/init.lua:65: in main chunk -# Remove & overwrite Farming REDO since it crashes 0.4.13 git 2016-02-16: -#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming -#sudo cp -R $USR_SHARE_MINETEST/games/minetest_game/mods/farming $MT_MYGAME_MODS_PATH/farming - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=unified_inventory.zip -MTMOD_UNZ_NAME=unified_inventory-master -MTMOD_DEST_NAME=unified_inventory -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/minetest-technic/unified_inventory/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -echo "load_mod_unified_inventory = true" >> $MT_MYWORLD_DIR/world.mt - -#uninstall: -#if [ -d "$MT_MYGAME_MODS_PATH/unified_inventory" ]; then -# if [ -d "$HOME/Backup/unified_inventory" ]; then -# rm -Rf "$HOME/Backup/unified_inventory" -# fi -# sudo mv "$MT_MYGAME_MODS_PATH/unified_inventory" "$HOME/Backup/unified_inventory" -#fi -#reinstall: -#sudo mv "$HOME/Backup/unified_inventory" "$MT_MYGAME_MODS_PATH/unified_inventory" - -MTMOD_DL_ZIP=treasurer0.2.0.zip -MTMOD_SRC_ZIP=treasurer0.2.0.zip -MTMOD_UNZ_NAME=treasurer -MTMOD_DEST_NAME=treasurer -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f "tsm_gift_example" ]; then - rm "tsm_gift_example" -fi -if [ -f "tsm_chests_example" ]; then - rm "tsm_chests_example" -fi -if [ -f "trm_default_example" ]; then - rm "trm_default_example" -fi -if [ -f "tsm_default_example" ]; then - rm "tsm_default_example" -fi -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget http://axlemedia.net/abiyahh/users/Wuzzy/downloads/treasurer0.2.0.zip -unzip $MTMOD_SRC_ZIP -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt - - -MTMOD_DL_ZIP=ebf839579197053b2ead85072757f23158960319.zip -MTMOD_SRC_ZIP=tsm_pyramids.zip -MTMOD_UNZ_NAME=tsm_pyramids-* -MTMOD_DEST_NAME=tsm_pyramids -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget http://repo.or.cz/w/minetest_pyramids/tsm_pyramids.git/snapshot/ebf839579197053b2ead85072757f23158960319.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=akiba-* -wget http://git.akiba.fr:81/minetest/akiba/repository/archive.zip?ref=af571404a27a2cb06842c644930344f565a0b786 -rm $MTMOD_DL_ZIP - -wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm_pyramids/depends.txt -wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm_pyramids/init.lua -wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm_pyramids/more_trms.lua - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip -MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip -MTMOD_UNZ_NAME=hud_hunger -MTMOD_DEST_NAME=hud_hunger -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#in case someone installed the mods apart from the modpack: -if [ -d "$MT_MYGAME_MODS_PATH/hud" ]; then - sudo rm -Rf "$MT_MYGAME_MODS_PATH/hud" -fi -if [ -d "$MT_MYGAME_MODS_PATH/hunger" ]; then - sudo rm -Rf "$MT_MYGAME_MODS_PATH/hunger" -fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/BlockMen/hud_hunger/releases/download/2.x.1/hud_hunger-2_x_1-BlockMen.zip -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moreblocks.zip -MTMOD_UNZ_NAME=moreblocks-master -MTMOD_DEST_NAME=moreblocks -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "moreblocks-master" ]; then - rm -Rf moreblocks-master -fi -if [ -f "master.zip" ]; then - rm master.zip -fi -if [ -f "moreblocks.zip" ]; then - rm moreblocks.zip -fi -#wget https://gitorious.com/calinou/moreblocks/archive/master.zip -wget https://github.com/minetest-mods/moreblocks/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=pipeworks.zip -MTMOD_UNZ_NAME=pipeworks-master -MTMOD_DEST_NAME=pipeworks -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/VanessaE/pipeworks/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=plantlife_modpack.zip -MTMOD_UNZ_NAME=plantlife_modpack-master -MTMOD_DEST_NAME=plantlife_modpack -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/VanessaE/plantlife_modpack/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - - -#NOTE: https://forum.minetest.net/viewtopic.php?f=9&t=12368 -# has blocks, but OTHER ONE ONLY HAS DYE (not used): https://forum.minetest.net/viewtopic.php?f=9&t=11287 -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=lapis_Napiophelios.zip -MTMOD_UNZ_NAME=LapisLazuli-master -MTMOD_DEST_NAME=lapis -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/Napiophelios/LapisLazuli/archive/master.zip -mv "$MTMOD_DL_ZIP" "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#cd "$HOME/Downloads" -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=helicopter.zip -#MTMOD_UNZ_NAME=helicopter-master -#MTMOD_DEST_NAME=helicopter -#if [ -f "$MTMOD_DL_ZIP" ]; then -# rm "$MTMOD_DL_ZIP" -#fi -#if [ -f "$MTMOD_SRC_ZIP" ]; then -# rm "$MTMOD_SRC_ZIP" -#fi -#wget https://github.com/SokolovPavel/helicopter/archive/master.zip -#mv "$MTMOD_DL_ZIP" "$MTMOD_SRC_ZIP" -#unzip "$MTMOD_SRC_ZIP" -#sudo mv "$MTMOD_UNZ_NAME" "$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME" -#UNINSTALL since crashes 0.4.13 git 2016-02: -#sudo mv "$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME" "$MTMOD_UNZ_NAME" - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=biome_lib.zip -MTMOD_UNZ_NAME=biome_lib-master -MTMOD_DEST_NAME=biome_lib -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/VanessaE/biome_lib/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moretrees.zip -MTMOD_UNZ_NAME=moretrees-master -MTMOD_DEST_NAME=moretrees -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/VanessaE/moretrees/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=minetest-3d_armor.zip -MTMOD_UNZ_NAME=minetest-3d_armor-master -MTMOD_DEST_NAME=3d_armor -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/stujones11/minetest-3d_armor/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -#mv minetest-3d_armor-master minetest-3d_armor_MODPACK -#sudo mv minetest-3d_armor_MODPACK/wieldview $MT_MYGAME_MODS_PATH/wieldview -#sudo mv minetest-3d_armor_MODPACK/3d_armor $MT_MYGAME_MODS_PATH/3d_armor -#sudo mv minetest-3d_armor_MODPACK/shields $MT_MYGAME_MODS_PATH/shields -#echo "load_mod_wieldview = true" >> $MT_MYWORLD_DIR/world.mt -echo "load_mod_3d_armor = true" >> $MT_MYWORLD_DIR/world.mt -#echo "load_mod_shields = true" >> $MT_MYWORLD_DIR/world.mt -#echo "load_mod_technic_armor = false" >> $MT_MYWORLD_DIR/world.mt - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=caverealms.zip -MTMOD_UNZ_NAME=minetest-caverealms-master -MTMOD_DEST_NAME=caverealms -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/HeroOfTheWinds/minetest-caverealms/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#if [ -f "master.zip" ]; then - #rm master.zip -#fi -#wget https://github.com/Splizard/minetest-mod-snow/archive/master.zip -#mv master.zip snow.zip -#unzip snow.zip -#mv minetest-mod-snow-master snow -#sudo mv snow "$MT_MYGAME_MODS_PATH/snow" -# (since snow prevents server 0.4.13 git 2016-02-16 from starting): -#sudo mv $MT_MYGAME_MODS_PATH/snow $HOME/Downloads/snow - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moreores.zip -MTMOD_UNZ_NAME=moreores-master -MTMOD_DEST_NAME=moreores -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/Calinou/moreores/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=sprint.zip -MTMOD_UNZ_NAME=sprint-master -MTMOD_DEST_NAME=sprint -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_UNZ_NAME" ]; then - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -# sprint https://forum.minetest.net/viewtopic.php?f=9&t=9650 -wget https://github.com/GunshipPenguin/sprint/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#the following is NOT needed, since one of the mods above adds the home gui and home permission (but no /home or /sethome command) -#if [ -f "master.zip" ]; then - #rm master.zip -#fi -#wget https://github.com/cornernote/minetest-home_gui/archive/master.zip -#mv master.zip minetest-home_gui.zip -#unzip minetest-home_gui.zip -#sudo mv minetest-home_gui-master/home_gui "$MT_MYGAME_MODS_PATH/home_gui" - -#echo "snow:snow 255 255 255" >> $HOME/minetest/util/colors.txt -#echo "snow:snow_block 255 255 255" >> $HOME/minetest/util/colors.txt -#echo "snow:ice 144 217 234" >> $HOME/minetest/util/colors.txt - -#sh chunkymap/install-ubuntu.sh - -cd "$HOME/Downloads" -#does NOT have a zip extension when downloaded via wget: -MTMOD_DL_ZIP=master -MTMOD_SRC_ZIP=mesecons_modpack.zip -MTMOD_UNZ_NAME=Jeija-minetest-mod-mesecons-* -MTMOD_DEST_NAME=mesecons -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/Jeija/minetest-mod-mesecons/zipball/master -mv master mesecons_modpack.zip -unzip mesecons_modpack.zip -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to create $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -#cd Jeija-minetest-mod-mesecons-* -#sudo mv -f mesecons* "$MT_MYGAME_MODS_PATH/" - -############ REQUIRES MESECONS ############ -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=boost_cart.zip -MTMOD_UNZ_NAME=boost_cart-master -MTMOD_DEST_NAME=boost_cart -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -wget https://github.com/SmallJoker/boost_cart/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -#https://forum.minetest.net/viewtopic.php?f=11&t=10172&hilit=boost+cart -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=archive.zip -MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=throwing_Echoes91.zip -MTMOD_SRC_ZIP=throwing_MinetestForFun.zip -MTMOD_UNZ_NAME=server-minetestforfun-master/mods/throwing -MTMOD_DEST_NAME=throwing -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_DEST_PATH" ]; then - echo "Removing old version of throwing..." - sudo rm -Rf $MTMOD_DEST_PATH -fi -echo "Installing MinetestForFun's PvP fork of Echoes91's (NOT Echoes91's Throwing enhanced NOT PilzAdam's NOT Jeija's) Throwing " -if [ -f "throwing_Echoes91.zip" ]; then - rm throwing_Echoes91.zip -fi -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f "$MTMOD_DL_ZIP" ]; then - rm "$MTMOD_DL_ZIP" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm "$MTMOD_SRC_ZIP" -fi -#wget https://github.com/PilzAdam/throwing/zipball/master -#wget https://gitlab.com/echoes91/throwing/repository/archive.zip -wget https://github.com/MinetestForFun/server-minetestforfun/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=* -MTMOD_SRC_ZIP=tsm_mines.zip -MTMOD_UNZ_NAME=tsm_mines-* -MTMOD_DEST_NAME=tsm_mines -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d tsm_mines ]; then - rm -Rf tsm_mines -fi -if [ -f tsm_mines.zip ]; then - rm tsm_mines.zip -fi -if [ -d tsm_mines_zipped ]; then - rm -Rf tsm_mines_zipped -fi -if [ ! -d tsm_mines_zipped ]; then - mkdir tsm_mines_zipped -fi -cd tsm_mines_zipped -wget http://repo.or.cz/w/tsm_mines.git/snapshot/7ff7f5c24c05b463ecfbf80cbd5e8f6f4a4f4520.zip -unzip * -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=* -MTMOD_SRC_ZIP=tsm_railcorridors.zip -MTMOD_UNZ_NAME=tsm_railcorridors-* -MTMOD_DEST_NAME=tsm_railcorridors -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d $MTMOD_DEST_NAME ]; then - rm -Rf $MTMOD_DEST_NAME -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -if [ -d tsm_railcorridors_zipped ]; then - rm -Rf tsm_railcorridors_zipped -fi -if [ ! -d tsm_railcorridors_zipped ]; then - mkdir tsm_railcorridors_zipped -fi -cd "tsm_railcorridors_zipped" -wget http://repo.or.cz/w/RailCorridors/tsm_railcorridors.git/snapshot/7fab088e813b777ceddaa56fc980ccc55b0b3f01.zip -unzip * -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=fishing_Minetestforfun.zip -MTMOD_UNZ_NAME=fishing-master -MTMOD_DEST_NAME=fishing -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing Minetestforfun's (NOT wulfsdad's) fishing " -echo "Installing Minetestforfun's (NOT wulfsdad's) fishing " >> $MTMOD_SRC_ZIP.txt -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -wget https://github.com/MinetestForFun/fishing/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=compassgps.zip -MTMOD_UNZ_NAME=compassgps-master -MTMOD_DEST_NAME=compassgps -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " -echo "Installing Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " >> $MTMOD_SRC_ZIP.txt -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -wget https://github.com/Kilarin/compassgps/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=whitelist.zip -MTMOD_UNZ_NAME=whitelist-master -MTMOD_DEST_NAME=whitelist -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing ShadowNinja's whitelist " -echo "Installing ShadowNinja's whitelist " >> $MTMOD_SRC_ZIP.txt -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -wget https://github.com/ShadowNinja/whitelist/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -#if [ -f playereffects_Wuzzy.zip ]; then -# rm playereffects_Wuzzy.zip -#fi -#if [ -f "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" ]; then -# rm "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" -#fi -#if [ -d "minetest_playereffects-3b860c7" ]; then -# rm -Rf minetest_playereffects-3b860c7 -#fi -#cd "$HOME/Downloads" -#wget http://repo.or.cz/minetest_playereffects.git/snapshot/3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip -#mv "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" playereffects_Wuzzy.zip -#unzip playereffects_Wuzzy.zip -#sudo mv minetest_playereffects* "$MT_MYGAME_MODS_PATH/playereffects" - -#Byakuren. . - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=monoidal_effects.zip -MTMOD_UNZ_NAME=monoidal_effects-master -MTMOD_DEST_NAME=monoidal_effects -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -wget https://github.com/minetest-mods/monoidal_effects/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master -MTMOD_SRC_ZIP=worldedit.zip -MTMOD_UNZ_NAME=Uberi-Minetest-WorldEdit-* -MTMOD_DEST_NAME=worldedit -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing sfan5's " -echo "Installing sfan5's " >> $MTMOD_SRC_ZIP.txt -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/Uberi/MineTest-WorldEdit/zipball/master -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=u_skins.zip -MTMOD_UNZ_NAME=minetest-u_skinsdb-master -MTMOD_DEST_NAME=u_skins -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#NOTE: a skin database is at http://minetest.fensta.bplaced.net/ -#Krock's (NOT dmonty's) u_skins (u_skins is a skin GUI that works with unified_inventory, whereas other skin GUIs often use inventory++) -wget https://github.com/SmallJoker/minetest-u_skinsdb/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=teleporter_badCommand_jkedit.zip -MTMOD_SRC_ZIP=teleporter.zip -MTMOD_UNZ_NAME=teleporter-master/teleporter -MTMOD_DEST_NAME=teleporter -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing TenPlus1's (NOT Bad_Command_'s) teleporter " -echo "Installing TenPlus1's (NOT Bad_Command_'s) teleporter " >> $MTMOD_SRC_ZIP.txt -if [ -d "teleporter-master" ]; then - rm -Rf "teleporter-master" -fi -#if [ -d "$MTMOD_UNZ_NAME" ]; then -rm -Rf $MTMOD_UNZ_NAME -#fi -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -#wget https://github.com/Bad-Command/teleporter/archive/master.zip -#TODO: -MTMOD_UNZ_NAME=teleporter -wget http://axlemedia.net/abiyahh/users/TenPlus1/downloads/teleporter_badCommand_jkedit.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - #exit 1 -fi - -rm -Rf teleporter-master -echo "teleport_perms_to_build = false" >> "$MT_MYWORLD_DIR/world.mt" -#When true, a player has to have the teleport permission to build a teleporter. When false, anyone can build a new teleporter. -echo "teleport_perms_to_configure = false" >> "$MT_MYWORLD_DIR/world.mt" -#When true, a player has to have the teleport permission to configure a teleporter. Players can still build teleporters without this, however the teleporter will be locked to the default location. -echo "teleport_requires_pairing = true" >> "$MT_MYWORLD_DIR/world.mt" -#When true, a teleporter can only be configured to teleport to a location near an existing teleporter. This prevents players from pointing teleporters in to unexplored terrain. -echo "teleport_pairing_check_radius = 2" >> "$MT_MYWORLD_DIR/world.mt" -#Specifies the size of the volume to scan when looking for a paired teleporter. Do not set this to a large value; the number of nodes scanned increases by a power of 3. -echo "teleport_default_coordinates = 0,0,0" >> "$MT_MYWORLD_DIR/world.mt" -#Allows for the default coordinates for new a teleporter to be specified. This is useful when players can build new teleporters, but can't configure them. - -echo "" -echo "" -echo "" -echo "#### $MT_MYWORLD_DIR/world.mt: ####" -cat "$MT_MYWORLD_DIR/world.mt" -echo "### end $MT_MYWORLD_DIR/world.mt ##" -echo "" -echo "" -echo "" -echo "Remember, if you are using Better HUD + Hunger, add the values for the new meat to hunger.lua" -echo "--see " -echo "" -echo "NOW MAKE SURE YOU EDIT $MT_MYGAME_MODS_PATH/protector/init.lua near line 325 to block comment ( --[[ then afterward --]]) the on_rightclick registration (since protection block right-clicked by its owner crashes server)" -echo "Then make sure you login, REMEMBERING to put a password in second box, then logout then:" -echo " nano $MT_MYWORLD_DIR/players/username where username is YOUR username, give yourself the following permissions to edit areas, edit protector blocks (and other protector nodes), and do other things: areas,delprotect,home,noclip,fly,rollback,settime,teleport,bring,fast,password,give,ban,privs,kick,worldedit" -echo " bring: allows to you teleport other players" -echo " ban: allows /ban ip and /unban ip (and /whitelist add player and /whitelist remove player commands if whitelist mod is installed)" -echo " kick: allows /kick player" -echo " privs: allows grant and revoke commands" -echo " delprotect: circumvents protector blocks, including allowing removing them" -echo "" -echo "Also remember to:" -echo " nano $MT_MYGAME_MODS_PATH/teleporter/config.lua" -echo " #then change:" -echo " teleporter.requires_pairing = true" -echo " #otherwise people can type any coordinates for destination (approaching infinite distance)!" -echo "" diff --git a/etc/change_hardcoded_world_name_first/mts-ENLIVEN.old b/etc/change_hardcoded_world_name_first/mts-ENLIVEN.old deleted file mode 100644 index a9190f0..0000000 --- a/etc/change_hardcoded_world_name_first/mts-ENLIVEN.old +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -#BROKEN: screen -t MinetestServer minetestserver --gameid minetest_next --draworigin --drawplayers --world FCAWorldMTNext -screen -t MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld \ No newline at end of file diff --git a/etc/minetestserver-install-git-ENABLE_REDIS.old b/etc/minetestserver-install-git-ENABLE_REDIS.old deleted file mode 100644 index 0e7e15e..0000000 --- a/etc/minetestserver-install-git-ENABLE_REDIS.old +++ /dev/null @@ -1,19 +0,0 @@ -#sudo apt-get install libncurses5-dev libgettextpo-dev doxygen libspatialindex-dev lua-redis-dev gettext - -sudo apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev -#above is from http://dev.minetest.net/Compiling_Minetest#Compiling_on_GNU.2FLinux - -#as per : -sudo add-apt-repository ppa:chris-lea/redis-server -sudo apt-get update -sudo apt-get install redis-server - - -#if you skip the above, the below says missing: GetText, Curses, ncurses, Redis, SpatialIndex, Doxygen -#cd "$HOME" #done below by parameterless "cd" command -sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install; -# minetest; -echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m" -echo "Remember to add requirepass to /etc/redis/redis.conf -- a long password since redis is fast and can be bruteforced quickly" -# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below) -# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m" \ No newline at end of file diff --git a/etc/unused/game-install-ENLIVEN-DEPRECATED.sh b/etc/unused/game-install-ENLIVEN-DEPRECATED.sh new file mode 100644 index 0000000..8a7f388 --- /dev/null +++ b/etc/unused/game-install-ENLIVEN-DEPRECATED.sh @@ -0,0 +1,14 @@ + +echo "# STEPS BELOW ARE DEPRECATED" +echo +echo "## Deprecated since this travelnet is used instead" +echo "Also remember to:" +echo " nano $MT_MYGAME_MODS_PATH/teleporter/config.lua" +echo " #then change:" +echo " teleporter.requires_pairing = true" +echo " # also see other lines in this script that wouldn't echo as non-root" +echo " #otherwise people can type any coordinates for destination (approaching infinite distance)!" +echo +echo "## Deprecated since using cme_to_spawners and tsm_pyramids_to_spawners from patches/mods-WIP" +echo " * set number = 0 or number = {min=0, max=0} in cme since only using cme for creatures:*_spawner nodes and for compatibility with old worlds" + diff --git a/etc/unused/minetestserver-install-git (NO REDIS).old b/etc/unused/minetestserver-install-git (NO REDIS).old deleted file mode 100644 index aa26c69..0000000 --- a/etc/unused/minetestserver-install-git (NO REDIS).old +++ /dev/null @@ -1,6 +0,0 @@ -sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE; make -j$(nproc); sudo make install; -# minetest; -echo -e "\n\n\e[1;33mYou can run Minetest Server by typing \"minetestserver\" in a terminal.\e[0m" - -# based on https://forum.minetest.net/viewtopic.php?f=42&t=3837 (below) -# sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m" \ No newline at end of file diff --git a/patches/subgame/minetest_game-mods-LICENSE.txt b/patches/minetest_game-mods-LICENSE.txt similarity index 100% rename from patches/subgame/minetest_game-mods-LICENSE.txt rename to patches/minetest_game-mods-LICENSE.txt diff --git a/patches/subgame/minetest_game-mods-README.txt b/patches/minetest_game-mods-README.txt similarity index 100% rename from patches/subgame/minetest_game-mods-README.txt rename to patches/minetest_game-mods-README.txt diff --git a/patches/minetest_game-mods-deprecated-list.txt b/patches/minetest_game-mods-deprecated-list.txt new file mode 100644 index 0000000..479a0ef --- /dev/null +++ b/patches/minetest_game-mods-deprecated-list.txt @@ -0,0 +1 @@ +nyancat diff --git a/patches/subgame/minetest_game-mods-list.txt b/patches/minetest_game-mods-list.txt similarity index 81% rename from patches/subgame/minetest_game-mods-list.txt rename to patches/minetest_game-mods-list.txt index 5c64d47..1882c2b 100644 --- a/patches/subgame/minetest_game-mods-list.txt +++ b/patches/minetest_game-mods-list.txt @@ -1,4 +1,5 @@ beds +binoculars boats bones bucket @@ -6,13 +7,15 @@ carts creative default doors +dungeon_loot dye farming fire flowers give_initial_stuff killme -nyancat +map +player_api screwdriver sethome sfinv diff --git a/patches/mods,WIP-nonworking/homedecor_censorship/README.txt b/patches/mods-WIP-nonworking/homedecor_censorship/README.txt similarity index 100% rename from patches/mods,WIP-nonworking/homedecor_censorship/README.txt rename to patches/mods-WIP-nonworking/homedecor_censorship/README.txt diff --git a/patches/mods,WIP-nonworking/homedecor_censorship/depends.txt b/patches/mods-WIP-nonworking/homedecor_censorship/depends.txt similarity index 100% rename from patches/mods,WIP-nonworking/homedecor_censorship/depends.txt rename to patches/mods-WIP-nonworking/homedecor_censorship/depends.txt diff --git a/patches/mods,WIP-nonworking/homedecor_censorship/init.lua b/patches/mods-WIP-nonworking/homedecor_censorship/init.lua similarity index 100% rename from patches/mods,WIP-nonworking/homedecor_censorship/init.lua rename to patches/mods-WIP-nonworking/homedecor_censorship/init.lua diff --git a/patches/mods,WIP/debug (various warnings on each startup, Mar 8, 2017).txt b/patches/mods-integration/debug (various warnings on each startup, Mar 8, 2017).txt similarity index 100% rename from patches/mods,WIP/debug (various warnings on each startup, Mar 8, 2017).txt rename to patches/mods-integration/debug (various warnings on each startup, Mar 8, 2017).txt diff --git a/patches/mods,WIP/trm_compassgps/depends.txt b/patches/mods-integration/trm_compassgps/depends.txt similarity index 100% rename from patches/mods,WIP/trm_compassgps/depends.txt rename to patches/mods-integration/trm_compassgps/depends.txt diff --git a/patches/mods,WIP/trm_compassgps/init.lua b/patches/mods-integration/trm_compassgps/init.lua similarity index 100% rename from patches/mods,WIP/trm_compassgps/init.lua rename to patches/mods-integration/trm_compassgps/init.lua diff --git a/patches/mods,WIP/tsm_pyramids_to_spawners/README.txt b/patches/mods-integration/tsm_pyramids_to_spawners/README.txt similarity index 100% rename from patches/mods,WIP/tsm_pyramids_to_spawners/README.txt rename to patches/mods-integration/tsm_pyramids_to_spawners/README.txt diff --git a/patches/mods,WIP/tsm_pyramids_to_spawners/depends.txt b/patches/mods-integration/tsm_pyramids_to_spawners/depends.txt similarity index 100% rename from patches/mods,WIP/tsm_pyramids_to_spawners/depends.txt rename to patches/mods-integration/tsm_pyramids_to_spawners/depends.txt diff --git a/patches/mods,WIP/tsm_pyramids_to_spawners/init.lua b/patches/mods-integration/tsm_pyramids_to_spawners/init.lua similarity index 100% rename from patches/mods,WIP/tsm_pyramids_to_spawners/init.lua rename to patches/mods-integration/tsm_pyramids_to_spawners/init.lua diff --git a/patches/mods,WIP/mock_tnt/README.txt b/patches/mods-multiplayer/mock_tnt/README.txt similarity index 100% rename from patches/mods,WIP/mock_tnt/README.txt rename to patches/mods-multiplayer/mock_tnt/README.txt diff --git a/patches/mods,WIP/mock_tnt/depends.txt b/patches/mods-multiplayer/mock_tnt/depends.txt similarity index 100% rename from patches/mods,WIP/mock_tnt/depends.txt rename to patches/mods-multiplayer/mock_tnt/depends.txt diff --git a/patches/mods,WIP/mock_tnt/etc/8bit/mock_tnt_blast.png b/patches/mods-multiplayer/mock_tnt/etc/8bit/mock_tnt_blast.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/8bit/mock_tnt_blast.png rename to patches/mods-multiplayer/mock_tnt/etc/8bit/mock_tnt_blast.png diff --git a/patches/mods,WIP/mock_tnt/etc/mock_tnt_background.png b/patches/mods-multiplayer/mock_tnt/etc/mock_tnt_background.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/mock_tnt_background.png rename to patches/mods-multiplayer/mock_tnt/etc/mock_tnt_background.png diff --git a/patches/mods,WIP/mock_tnt/etc/mock_tnt_side-normal.png b/patches/mods-multiplayer/mock_tnt/etc/mock_tnt_side-normal.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/mock_tnt_side-normal.png rename to patches/mods-multiplayer/mock_tnt/etc/mock_tnt_side-normal.png diff --git a/patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_item.png b/patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_item.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_item.png rename to patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_item.png diff --git a/patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_node.png b/patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_node.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_node.png rename to patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_node.png diff --git a/patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_object.png b/patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_object.png similarity index 100% rename from patches/mods,WIP/mock_tnt/etc/mock_tnt_tnt_object.png rename to patches/mods-multiplayer/mock_tnt/etc/mock_tnt_tnt_object.png diff --git a/patches/mods,WIP/mock_tnt/init.lua b/patches/mods-multiplayer/mock_tnt/init.lua similarity index 100% rename from patches/mods,WIP/mock_tnt/init.lua rename to patches/mods-multiplayer/mock_tnt/init.lua diff --git a/patches/mods,WIP/mock_tnt/playereffects.lua b/patches/mods-multiplayer/mock_tnt/playereffects.lua similarity index 100% rename from patches/mods,WIP/mock_tnt/playereffects.lua rename to patches/mods-multiplayer/mock_tnt/playereffects.lua diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_blast.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_blast.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_blast.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_blast.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_boom.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_boom.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_boom.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_boom.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_bottom.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_bottom.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_bottom.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_bottom.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_side-blank.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_side-blank.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_side-blank.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_side-blank.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_side.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_side.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_side.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_side.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_smoke.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_smoke.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_smoke.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_smoke.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_top.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_top.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_top.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_top.png diff --git a/patches/mods,WIP/mock_tnt/textures/mock_tnt_top_burning_animated.png b/patches/mods-multiplayer/mock_tnt/textures/mock_tnt_top_burning_animated.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/mock_tnt_top_burning_animated.png rename to patches/mods-multiplayer/mock_tnt/textures/mock_tnt_top_burning_animated.png diff --git a/patches/mods,WIP/mock_tnt/textures/playereffects_example_black.png b/patches/mods-multiplayer/mock_tnt/textures/playereffects_example_black.png similarity index 100% rename from patches/mods,WIP/mock_tnt/textures/playereffects_example_black.png rename to patches/mods-multiplayer/mock_tnt/textures/playereffects_example_black.png diff --git a/patches/mods,WIP/mock_tnt/update local.bat b/patches/mods-multiplayer/mock_tnt/update local.bat similarity index 100% rename from patches/mods,WIP/mock_tnt/update local.bat rename to patches/mods-multiplayer/mock_tnt/update local.bat diff --git a/patches/mods,stopgap/ore_spawner_to_junk/README.txt b/patches/mods-multiplayer/ore_spawner_to_junk/README.txt similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/README.txt rename to patches/mods-multiplayer/ore_spawner_to_junk/README.txt diff --git a/patches/mods,stopgap/ore_spawner_to_junk/debug.txt b/patches/mods-multiplayer/ore_spawner_to_junk/debug.txt similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/debug.txt rename to patches/mods-multiplayer/ore_spawner_to_junk/debug.txt diff --git a/patches/mods,stopgap/ore_spawner_to_junk/depends.txt b/patches/mods-multiplayer/ore_spawner_to_junk/depends.txt similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/depends.txt rename to patches/mods-multiplayer/ore_spawner_to_junk/depends.txt diff --git a/patches/mods,stopgap/ore_spawner_to_junk/init.lua b/patches/mods-multiplayer/ore_spawner_to_junk/init.lua similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/init.lua rename to patches/mods-multiplayer/ore_spawner_to_junk/init.lua diff --git a/patches/mods,stopgap/ore_spawner_to_junk/spawners-microfork/.gitignore b/patches/mods-multiplayer/ore_spawner_to_junk/spawners-microfork/.gitignore similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/spawners-microfork/.gitignore rename to patches/mods-multiplayer/ore_spawner_to_junk/spawners-microfork/.gitignore diff --git a/patches/mods,stopgap/ore_spawner_to_junk/spawners-microfork/spawners_ores.lua b/patches/mods-multiplayer/ore_spawner_to_junk/spawners-microfork/spawners_ores.lua similarity index 100% rename from patches/mods,stopgap/ore_spawner_to_junk/spawners-microfork/spawners_ores.lua rename to patches/mods-multiplayer/ore_spawner_to_junk/spawners-microfork/spawners_ores.lua diff --git a/patches/mods,WIP/cme_to_spawners/README.txt b/patches/mods-stopgap/cme_to_spawners/README.txt similarity index 100% rename from patches/mods,WIP/cme_to_spawners/README.txt rename to patches/mods-stopgap/cme_to_spawners/README.txt diff --git a/patches/mods,WIP/cme_to_spawners/depends.txt b/patches/mods-stopgap/cme_to_spawners/depends.txt similarity index 100% rename from patches/mods,WIP/cme_to_spawners/depends.txt rename to patches/mods-stopgap/cme_to_spawners/depends.txt diff --git a/patches/mods,WIP/cme_to_spawners/init.lua b/patches/mods-stopgap/cme_to_spawners/init.lua similarity index 100% rename from patches/mods,WIP/cme_to_spawners/init.lua rename to patches/mods-stopgap/cme_to_spawners/init.lua diff --git a/patches/mods,WIP/junglelike_dryplants_recipes/README.txt b/patches/mods-stopgap/junglelike_dryplants_recipes/README.txt similarity index 100% rename from patches/mods,WIP/junglelike_dryplants_recipes/README.txt rename to patches/mods-stopgap/junglelike_dryplants_recipes/README.txt diff --git a/patches/mods,WIP/junglelike_dryplants_recipes/depends.txt b/patches/mods-stopgap/junglelike_dryplants_recipes/depends.txt similarity index 100% rename from patches/mods,WIP/junglelike_dryplants_recipes/depends.txt rename to patches/mods-stopgap/junglelike_dryplants_recipes/depends.txt diff --git a/patches/mods,WIP/junglelike_dryplants_recipes/init.lua b/patches/mods-stopgap/junglelike_dryplants_recipes/init.lua similarity index 100% rename from patches/mods,WIP/junglelike_dryplants_recipes/init.lua rename to patches/mods-stopgap/junglelike_dryplants_recipes/init.lua diff --git a/patches/mods,WIP/junglelike_minetestgame_recipes/README.txt b/patches/mods-stopgap/junglelike_minetestgame_recipes/README.txt similarity index 100% rename from patches/mods,WIP/junglelike_minetestgame_recipes/README.txt rename to patches/mods-stopgap/junglelike_minetestgame_recipes/README.txt diff --git a/patches/mods,WIP/junglelike_minetestgame_recipes/depends.txt b/patches/mods-stopgap/junglelike_minetestgame_recipes/depends.txt similarity index 100% rename from patches/mods,WIP/junglelike_minetestgame_recipes/depends.txt rename to patches/mods-stopgap/junglelike_minetestgame_recipes/depends.txt diff --git a/patches/mods,WIP/junglelike_minetestgame_recipes/init.lua b/patches/mods-stopgap/junglelike_minetestgame_recipes/init.lua similarity index 100% rename from patches/mods,WIP/junglelike_minetestgame_recipes/init.lua rename to patches/mods-stopgap/junglelike_minetestgame_recipes/init.lua diff --git a/patches/mods,stopgap/lasermk3_to_junk/README.txt b/patches/mods-stopgap/lasermk3_to_junk/README.txt similarity index 100% rename from patches/mods,stopgap/lasermk3_to_junk/README.txt rename to patches/mods-stopgap/lasermk3_to_junk/README.txt diff --git a/patches/mods,stopgap/lasermk3_to_junk/depends.txt b/patches/mods-stopgap/lasermk3_to_junk/depends.txt similarity index 100% rename from patches/mods,stopgap/lasermk3_to_junk/depends.txt rename to patches/mods-stopgap/lasermk3_to_junk/depends.txt diff --git a/patches/mods,stopgap/lasermk3_to_junk/init.lua b/patches/mods-stopgap/lasermk3_to_junk/init.lua similarity index 100% rename from patches/mods,stopgap/lasermk3_to_junk/init.lua rename to patches/mods-stopgap/lasermk3_to_junk/init.lua diff --git a/patches/mods,stopgap/lasermk3_to_junk/technic-microfork/tools/mining_lasers.lua b/patches/mods-stopgap/lasermk3_to_junk/technic-microfork/tools/mining_lasers.lua similarity index 100% rename from patches/mods,stopgap/lasermk3_to_junk/technic-microfork/tools/mining_lasers.lua rename to patches/mods-stopgap/lasermk3_to_junk/technic-microfork/tools/mining_lasers.lua diff --git a/patches/mods-stopgap/nyancat/README.txt b/patches/mods-stopgap/nyancat/README.txt new file mode 100644 index 0000000..fadc1d2 --- /dev/null +++ b/patches/mods-stopgap/nyancat/README.txt @@ -0,0 +1,16 @@ +Minetest Game mod: nyancat +========================== +See license.txt for license information. + +Authors of source code +---------------------- +Originally by celeron55, Perttu Ahola (LGPL 2.1) +Various Minetest developers and contributors (LGPL 2.1) + +Authors of media files +---------------------- +VanessaE (CC BY-SA 3.0): + nyancat_front.png + nyancat_back.png + nyancat_side.png + nyancat_rainbow.png diff --git a/patches/mods-stopgap/nyancat/depends.txt b/patches/mods-stopgap/nyancat/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/patches/mods-stopgap/nyancat/depends.txt @@ -0,0 +1 @@ +default diff --git a/patches/mods-stopgap/nyancat/init.lua b/patches/mods-stopgap/nyancat/init.lua new file mode 100644 index 0000000..7192beb --- /dev/null +++ b/patches/mods-stopgap/nyancat/init.lua @@ -0,0 +1,89 @@ +minetest.register_node("nyancat:nyancat", { + description = "Nyan Cat", + tiles = {"nyancat_side.png", "nyancat_side.png", "nyancat_side.png", + "nyancat_side.png", "nyancat_back.png", "nyancat_front.png"}, + paramtype = "light", + light_source = default.LIGHT_MAX, + paramtype2 = "facedir", + groups = {cracky = 2}, + is_ground_content = false, + legacy_facedir_simple = true, + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("nyancat:nyancat_rainbow", { + description = "Nyan Cat Rainbow", + tiles = { + "nyancat_rainbow.png^[transformR90", + "nyancat_rainbow.png^[transformR90", + "nyancat_rainbow.png" + }, + paramtype = "light", + light_source = default.LIGHT_MAX, + paramtype2 = "facedir", + groups = {cracky = 2}, + is_ground_content = false, + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft({ + type = "fuel", + recipe = "nyancat:nyancat", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "nyancat:nyancat_rainbow", + burntime = 1, +}) + +nyancat = {} + +function nyancat.place(pos, facedir, length) + if facedir > 3 then + facedir = 0 + end + local tailvec = minetest.facedir_to_dir(facedir) + local p = {x = pos.x, y = pos.y, z = pos.z} + minetest.set_node(p, {name = "nyancat:nyancat", param2 = facedir}) + for i = 1, length do + p.x = p.x + tailvec.x + p.z = p.z + tailvec.z + minetest.set_node(p, {name = "nyancat:nyancat_rainbow", param2 = facedir}) + end +end + +function nyancat.generate(minp, maxp, seed) + local height_min = -31000 + local height_max = -32 + if maxp.y < height_min or minp.y > height_max then + return + end + local y_min = math.max(minp.y, height_min) + local y_max = math.min(maxp.y, height_max) + local volume = (maxp.x - minp.x + 1) * (y_max - y_min + 1) * (maxp.z - minp.z + 1) + local pr = PseudoRandom(seed + 9324342) + local max_num_nyancats = math.floor(volume / (16 * 16 * 16)) + for i = 1, max_num_nyancats do + if pr:next(0, 1000) == 0 then + local x0 = pr:next(minp.x, maxp.x) + local y0 = pr:next(minp.y, maxp.y) + local z0 = pr:next(minp.z, maxp.z) + local p0 = {x = x0, y = y0, z = z0} + nyancat.place(p0, pr:next(0, 3), pr:next(3, 15)) + end + end +end + +minetest.register_on_generated(function(minp, maxp, seed) + nyancat.generate(minp, maxp, seed) +end) + +-- Legacy +minetest.register_alias("default:nyancat", "nyancat:nyancat") +minetest.register_alias("default:nyancat_rainbow", "nyancat:nyancat_rainbow") +minetest.register_alias("nyancat", "nyancat:nyancat") +minetest.register_alias("nyancat_rainbow", "nyancat:nyancat_rainbow") +default.make_nyancat = nyancat.place +default.generate_nyancats = nyancat.generate diff --git a/patches/mods-stopgap/nyancat/license.txt b/patches/mods-stopgap/nyancat/license.txt new file mode 100644 index 0000000..3aa3861 --- /dev/null +++ b/patches/mods-stopgap/nyancat/license.txt @@ -0,0 +1,50 @@ +License of source code +---------------------- + +GNU Lesser General Public License, version 2.1 +Copyright (C) 2011-2016 celeron55, Perttu Ahola +Copyright (C) 2012-2016 Various Minetest developers and contributors + +This program is free software; you can redistribute it and/or modify it under the terms +of the GNU Lesser General Public License as published by the Free Software Foundation; +either version 2.1 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Lesser General Public License for more details: +https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html + + +Licenses of media (textures) +---------------------------- + +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +Copyright (C) 2012-2016 VanessaE + +You are free to: +Share — copy and redistribute the material in any medium or format. +Adapt — remix, transform, and build upon the material for any purpose, even commercially. +The licensor cannot revoke these freedoms as long as you follow the license terms. + +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, and +indicate if changes were made. You may do so in any reasonable manner, but not in any way +that suggests the licensor endorses you or your use. + +ShareAlike — If you remix, transform, or build upon the material, you must distribute +your contributions under the same license as the original. + +No additional restrictions — You may not apply legal terms or technological measures that +legally restrict others from doing anything the license permits. + +Notices: + +You do not have to comply with the license for elements of the material in the public +domain or where your use is permitted by an applicable exception or limitation. +No warranties are given. The license may not give you all of the permissions necessary +for your intended use. For example, other rights such as publicity, privacy, or moral +rights may limit how you use the material. + +For more details: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/patches/mods-stopgap/nyancat/textures/nyancat_back.png b/patches/mods-stopgap/nyancat/textures/nyancat_back.png new file mode 100644 index 0000000..e479ace Binary files /dev/null and b/patches/mods-stopgap/nyancat/textures/nyancat_back.png differ diff --git a/patches/mods-stopgap/nyancat/textures/nyancat_front.png b/patches/mods-stopgap/nyancat/textures/nyancat_front.png new file mode 100644 index 0000000..c9dd6a3 Binary files /dev/null and b/patches/mods-stopgap/nyancat/textures/nyancat_front.png differ diff --git a/patches/mods-stopgap/nyancat/textures/nyancat_rainbow.png b/patches/mods-stopgap/nyancat/textures/nyancat_rainbow.png new file mode 100644 index 0000000..685a22c Binary files /dev/null and b/patches/mods-stopgap/nyancat/textures/nyancat_rainbow.png differ diff --git a/patches/mods-stopgap/nyancat/textures/nyancat_side.png b/patches/mods-stopgap/nyancat/textures/nyancat_side.png new file mode 100644 index 0000000..3152c33 Binary files /dev/null and b/patches/mods-stopgap/nyancat/textures/nyancat_side.png differ diff --git a/patches/mods,WIP/teleporter_to_travelnet/README.txt b/patches/mods-stopgap/teleporter_to_travelnet/README.txt similarity index 100% rename from patches/mods,WIP/teleporter_to_travelnet/README.txt rename to patches/mods-stopgap/teleporter_to_travelnet/README.txt diff --git a/patches/mods,WIP/teleporter_to_travelnet/depends.txt b/patches/mods-stopgap/teleporter_to_travelnet/depends.txt similarity index 100% rename from patches/mods,WIP/teleporter_to_travelnet/depends.txt rename to patches/mods-stopgap/teleporter_to_travelnet/depends.txt diff --git a/patches/mods,WIP/teleporter_to_travelnet/init.lua b/patches/mods-stopgap/teleporter_to_travelnet/init.lua similarity index 100% rename from patches/mods,WIP/teleporter_to_travelnet/init.lua rename to patches/mods-stopgap/teleporter_to_travelnet/init.lua diff --git a/patches/subgame/mods/technic/machines/forcefield.lua b/patches/subgame-stopgap/mods/technic/machines/forcefield.lua similarity index 100% rename from patches/subgame/mods/technic/machines/forcefield.lua rename to patches/subgame-stopgap/mods/technic/machines/forcefield.lua diff --git a/webapp/package.json b/webapp/package.json new file mode 100644 index 0000000..0514041 --- /dev/null +++ b/webapp/package.json @@ -0,0 +1,16 @@ +{ + "name": "express-handlebars-basic-example", + "version": "0.0.0", + "description": "", + "private": true, + "main": "server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node server.js" + }, + "author": "Eric Ferraiuolo ", + "license": "BSD", + "dependencies": { + "express": "^4.7.2" + } +} diff --git a/webapp/server.js b/webapp/server.js new file mode 100644 index 0000000..b266db7 --- /dev/null +++ b/webapp/server.js @@ -0,0 +1,17 @@ +'use strict'; + +var express = require('express'), + exphbs = require('../../'); // "express-handlebars" + +var app = express(); + +app.engine('handlebars', exphbs({defaultLayout: 'main'})); +app.set('view engine', 'handlebars'); + +app.get('/', function (req, res) { + res.render('home'); +}); + +app.listen(3000, function () { + console.log('express-handlebars example server listening on: 3000'); +}); diff --git a/webapp/views/home.handlebars b/webapp/views/home.handlebars new file mode 100644 index 0000000..d694190 --- /dev/null +++ b/webapp/views/home.handlebars @@ -0,0 +1 @@ +

Example App: Home

diff --git a/webapp/views/layouts/main.handlebars b/webapp/views/layouts/main.handlebars new file mode 100644 index 0000000..49aff4b --- /dev/null +++ b/webapp/views/layouts/main.handlebars @@ -0,0 +1,12 @@ + + + + + Example App + + + + {{{body}}} + + +