Browse Source

use shell function whenever possible and updated mod links

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
7082986859
  1. 23
      README.md
  2. 1618
      etc/change_hardcoded_world_name_first/game-install-ENLIVEN
  3. 150
      etc/unused/game-install-ENLIVEN-DEPRECATED.sh
  4. 8
      patches/mods-stopgap/spawners_to_spawners_mobs/init.lua
  5. 9
      patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua

23
README.md

@ -13,6 +13,16 @@ ENLIVEN is a subgame for minetest with the goals of providing immersion and less
* see also EnlivenMinetest/etc/game-install-enliven-testing.sh
#### Possible Additions
* SWITCH from GunshipPenguin's sprint to minetest-mods' hbsprint (which optionally uses hudbars, hbhunger, and player_monoids)
https://github.com/minetest-mods/hbsprint.git
* SWITCH from tsm_chests_dungeon to loot or dungeon_loot (loot is maintained by minetest-mods; tsm generates treasure from trm treasure lists using treasurer)
https://github.com/minetest-mods/loot.git
settings:
* loot_vaults - Set to true to enable loot vault generation.
* loot_dungeons - Set to true to enable loot generation in dungeons.
* SWITCH from farming redo to minetest-mods crops <https://github.com/minetest-mods/crops/archive/master.zip>
* add but remove fire (flint and steel)?
https://github.com/xisd/trmp_Pack.git
* https://github.com/minetest-mods/woodcutting/archive/master.zip
(sneek click to start auto-harvest tree, sneak again to cancel)
* subterrane: fork of Caverealms, but is just an API and needs other mods to generate anything
@ -85,10 +95,16 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn
* trm_pyramids added (partial code in game-install-ENLIVEN completed)
(a required treasure table so tsm_pyramids can provide treasure in pyramids)
* switched links to use minetest-mods' versions of:
* throwing (now is an api only so ENLIVEN also installs minetest-mods/throwing_arrows)
* unified_inventory
* throwing (& added throwing_arrows since now throwing is an API only)
* pipeworks
* moreores
* biome_lib
* plantlife_modpack
* added anvil mod
* added sling mod (throw any item or stack using sling--accounts for multiplayer)
* added sling mod: (throw any item or stack using sling--accounts for multiplayer)
* added tsm_chests_dungeon mod (adds chests to the default dungeons) -- https://forum.minetest.net/viewtopic.php?f=9&t=17005
(2018-02-06)
* refactored file structure
@ -174,6 +190,9 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn
* Updated pipeworks fork by HybridDog: https://github.com/HybridDog/pipeworks
## Known issues:
* install whatever mod allows making a sign to see awards
* use player_monoids instead of playereffects for mock_tnt?
* pyramids have empty chests (still?): possibly fork spawners so pyramids use treasurer like Wuzzy's fork of pyramids does: <https://forum.minetest.net/viewtopic.php?f=9&t=10336>
* ENLIVEN Windows binary release installer should be signed via a code signing license to avoid browser warnings and possible issues with virus scanners (NOTE: Squirrel.Windows has signing available such as via:
./src\.nuget\NuGet.exe pack .\ENLIVEN.<version>.nuspec
squirrel --releasify .\ENLIVEN.<version>.nupkg <your code signing options here>

1618
etc/change_hardcoded_world_name_first/game-install-ENLIVEN

File diff suppressed because it is too large

150
etc/unused/game-install-ENLIVEN-DEPRECATED.sh

@ -12,3 +12,153 @@ 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"
#UNUSED, and is based on a much older version of minetest_game:
#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 [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable
# rm -Rf $MTMOD_UNZ_NAME
#fi
#if [ -f "$MTMOD_DL_ZIP" ]; then
# rm -f "$MTMOD_DL_ZIP"
#fi
#if [ -f "$MTMOD_SRC_ZIP" ]; then
# rm -f "$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." > $err_txt
# cat $err_txt
# sleep 3
# 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/$mtgame_name/mods/farming $MT_MYGAME_MODS_PATH/farming
#ls "$MT_MYGAME_MODS_PATH"
if [ ! -d "$MT_BACKUP_GAMES_DIR" ]; then
mkdir -p "$MT_BACKUP_GAMES_DIR"
#-p to make parent recursively
fi
first_suffix="_1st"
if [ -d "$MT_BACKUP_GAMES_DIR/$mtgame_name$first_suffix" ]; then
echo "already backed up $USR_SHARE_MINETEST/games/$mtgame_name"
else
sudo cp -R "$USR_SHARE_MINETEST/games/$mtgame_name" "$MT_BACKUP_GAMES_DIR/"
fi
#DEPRECATED, replaced by spawners (which includes pyramids worldgen mod)
#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 [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable
# rm -Rf $MTMOD_UNZ_NAME
#fi
#if [ -f "$MTMOD_DL_ZIP" ]; then
# rm -f "$MTMOD_DL_ZIP"
#fi
#if [ -f "$MTMOD_SRC_ZIP" ]; then
# rm -f "$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." > $err_txt
# cat $err_txt
# sleep 3
# exit 1
#fi
# AKA http://repo.or.cz/minetest_pyramids.git
#an old version of worldedit included in a minetest fork last updated 2016:
#MTMOD_DL_ZIP=akiba-*
#wget http://git.akiba.fr:81/minetest/akiba/repository/archive.zip?ref=af571404a27a2cb06842c644930344f565a0b786
#rm -f $MTMOD_DL_ZIP
if [ ! -d "$MT_MYGAME_MODS_PATH/hudbars" ]; then
cd "$HOME/Downloads"
#MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip
#MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip
MTMOD_DL_ZIP=master.zip
MTMOD_SRC_ZIP=hud_hunger.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 -f $MTMOD_DL_ZIP
fi
if [ -f $MTMOD_SRC_ZIP ]; then
rm -f $MTMOD_SRC_ZIP
fi
rm -Rvf $MTMOD_UNZ_NAME
#BlockMen's is not maintained, & has problem on hud/buildin line 79 (crash since air can be nil)
#wget https://github.com/BlockMen/hud_hunger/releases/download/2.x.1/hud_hunger-2_x_1-BlockMen.zip
#FozLand's has a couple fixes
#wget https://github.com/FozLand/hud_hunger/archive/master.zip
#tenplus1's fixes nil air, nil player, and sprint
wget https://github.com/tenplus1/hud_hunger/archive/master.zip
unzip $MTMOD_SRC_ZIP
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
sudo rm "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua"
sudo mv "$MTMOD_DEST_PATH/hunger/functions.lua" "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua"
sudo mv "$MTMOD_DEST_PATH/hunger/functions_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/functions.lua"
sudo rm "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua"
sudo mv "$MTMOD_DEST_PATH/hunger/init.lua" "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua"
sudo mv "$MTMOD_DEST_PATH/hunger/init_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/init.lua"
if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt
cat $err_txt
sleep 3
exit 1
fi
# END IF no hudbars mod
else
if [ -d "$MT_MYGAME_MODS_PATH/hud_hunger" ]; then
sudo rm -Rvf "$MT_MYGAME_MODS_PATH/hud_hunger"
fi
fi

8
patches/mods-stopgap/spawners_to_spawners_mobs/init.lua

@ -11,3 +11,11 @@
mobs:alias_mob("spawners:mummy", "spawners_mobs:mummy")
mobs:alias_mob("spawners:bunny_evil", "spawners_mobs:bunny_evil")
mobs:alias_mob("spawners:uruk_hai", "spawners_mobs:uruk_hai")
minetest.register_alias("spawners:spawners_mummy_spawner_env", "spawners_mobs:spawners_mobs_mummy_spawner")
-- matched 1,2,3 with eye,men,sun by looking at old non-modpack version:
minetest.register_alias("spawners:deco_stone1", "spawners_mobs:deco_stone_eye")
minetest.register_alias("spawners:deco_stone2", "spawners_mobs:deco_stone_men")
minetest.register_alias("spawners:deco_stone3", "spawners_mobs:deco_stone_sun")
minetest.register_alias("spawners:trap", "moreblocks:trap_sandstone")
minetest.register_alias("spawners:trap_2", "moreblocks:trap_sandstone")

9
patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua

@ -38,13 +38,14 @@ minetest.register_alias("tsm_pyramids:spawner_mummy", "spawners_mobs:spawners_mo
minetest.register_alias("tsm_pyramids:spawn_egg", "spawners_mobs:mummy")
-- mummy entity
minetest.register_alias("tsm_pyramids:mummy", "spawners_mobs:mummy")
-- matched 1,2,3 with eye,men,sun by looking at old non-modpack version:
-- deco stone 1
minetest.register_alias("tsm_pyramids:deco_stone1", "spawners_mobs:deco_stone_bird")
minetest.register_alias("tsm_pyramids:deco_stone1", "spawners_mobs:deco_stone_eye")
-- deco stone 2
minetest.register_alias("tsm_pyramids:deco_stone2", "spawners_mobs:deco_stone_eye")
minetest.register_alias("tsm_pyramids:deco_stone2", "spawners_mobs:deco_stone_men")
-- deco stone 3
minetest.register_alias("tsm_pyramids:deco_stone3", "spawners_mobs:deco_stone_men")
minetest.register_alias("tsm_pyramids:deco_stone3", "spawners_mobs:deco_stone_sun")
-- deco trap
minetest.register_alias("tsm_pyramids:trap", "moreblocks:trap_sandstone")
-- deco trap 2
minetest.register_alias("tsm_pyramids:trap_2", "moreblocks:trap_desert_stone")
minetest.register_alias("tsm_pyramids:trap_2", "moreblocks:trap_sandstone")

Loading…
Cancel
Save