Browse Source

changed to hudbars, added scripts to free up storage

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
0b9b81e8d2
  1. 2
      README.md
  2. 70
      etc/Mods,WIP/debug.txt
  3. 97
      etc/change_world_name_manually_first/game-install-ENLIVEN
  4. 10
      etc/change_world_name_manually_first/nightly-sudoer-script
  5. 5
      etc/change_world_name_manually_first/use if you want/log_clear_mysql

2
README.md

@ -37,6 +37,8 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn
## Changes: ## Changes:
* (2017-03-08) switched to hudbars, removed hud_hunger. Add line to SERVER's minetest.conf (using installer script): hubars_bar_type = statbar_modern
* (2017-03-08) renamed the files in tenplus1's hud_hunger to use its nosprint version of lua files in hud_hunger/hunger
* (2017-03-07) change to tenplus1's hud_hunger fork (BlockMen's has potential comparison of number to nil [crash] in hud/builtin.lua line 79, other issues, and is not maintained) * (2017-03-07) change to tenplus1's hud_hunger fork (BlockMen's has potential comparison of number to nil [crash] in hud/builtin.lua line 79, other issues, and is not maintained)
* (2017-03-06) remove ENLIVEN's copy of protector since TenPlus1 applied the fixes in the real repo * (2017-03-06) remove ENLIVEN's copy of protector since TenPlus1 applied the fixes in the real repo
* (2017-03-06) remove computer-specific settings from minetest.conf (client version in this folder) * (2017-03-06) remove computer-specific settings from minetest.conf (client version in this folder)

70
etc/Mods,WIP/debug.txt

@ -0,0 +1,70 @@
-------------
Separator
-------------
2017-03-08 23:04:07: [Main]: Using world specified by --worldname on the command line
2017-03-08 23:04:07: [Main]: Using game specified by --gameid on the command line
2017-03-08 23:04:07: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-03-08 23:04:07: WARNING[Main]: Field "tile_images": Deprecated; new name is "tiles".
2017-03-08 23:04:07: WARNING[Main]: Field "metadata_name": Deprecated; use on_add and metadata callbacks
2017-03-08 23:04:07: ACTION[Main]: hb.register_hudbar: health
2017-03-08 23:04:07: ACTION[Main]: hb.register_hudbar: breath
2017-03-08 23:04:07: ACTION[Main]: hb.register_hudbar: sprint
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'taiga'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'snowy_grassland'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'grassland'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'coniferous_forest'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'deciduous_forest'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'savanna'
2017-03-08 23:04:07: ERROR[Main]: get_biome_list: failed to get biome 'rainforest'
2017-03-08 23:04:07: ERROR[Main]: register_ore: couldn't get all biomes
2017-03-08 23:04:07: WARNING[Main]: Not registering alias, item with same name is already defined: mushroom:brown_natural -> flowers:mushroom_fertile_brown
2017-03-08 23:04:07: WARNING[Main]: Not registering alias, item with same name is already defined: mushroom:red_natural -> flowers:mushroom_fertile_red
2017-03-08 23:04:07: WARNING[Main]: Not registering alias, item with same name is already defined: farming_plus:orange -> ethereal:orange
2017-03-08 23:04:07: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: ACTION[Main]: hb.register_hudbar: armor
2017-03-08 23:04:08: WARNING[Main]: Field "maxwear" is deprecated; replace with uses=1/maxwear
2017-03-08 23:04:08: WARNING[Main]: Field "maxwear" is deprecated; replace with uses=1/maxwear
2017-03-08 23:04:08: ACTION[Main]: [mod fishing] Loading...
2017-03-08 23:04:08: ACTION[Main]: [Mod] Fishing - Crabman77's (MFF team) version [1.0.0] [fishing] Loaded...
2017-03-08 23:04:08: ACTION[Main]: hb.register_hudbar: satiation
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-08 23:04:08: ACTION[Main]: [boost_cart] Overwriting definitions of similar carts mod
2017-03-08 23:04:08: WARNING[Main]: Node 'light_source' value exceeds maximum, limiting to maximum: technic:forcefield
2017-03-08 23:04:08: WARNING[Main]: Field "maxwear" is deprecated; replace with uses=1/maxwear
2017-03-08 23:04:08: WARNING[Main]: Field "maxwear" is deprecated; replace with uses=1/maxwear
2017-03-08 23:04:08: WARNING[Main]: Field "maxwear" is deprecated; replace with uses=1/maxwear
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: stairs:stair_marble -> building_blocks:stair_marble
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: stairs:slab_marble -> building_blocks:slab_marble
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: stairs:stair_tar -> building_blocks:stair_tar
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: stairs:slab_tar -> building_blocks:slab_tar
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: tar -> building_blocks:Tar
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: homedecor:beer_tap -> homedecor:drink_tap
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: tsm_pyramids:mummy -> spawners:mummy
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: creatures:chicken -> mobs_animal:chicken
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: creatures:sheep -> mobs_animal:sheep_white
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: mobs_animal:sheep -> mobs_animal:sheep_white
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: creatures:ghost -> mobs_monster:spider
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: creatures:mummy -> spawners:mummy
2017-03-08 23:04:08: WARNING[Main]: Not registering alias, item with same name is already defined: creatures:zombie -> mobs_monster:stone_monster
2017-03-08 23:04:09: ACTION[Main]: .__ __ __
2017-03-08 23:04:09: ACTION[Main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2017-03-08 23:04:09: ACTION[Main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2017-03-08 23:04:09: ACTION[Main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2017-03-08 23:04:09: ACTION[Main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2017-03-08 23:04:09: ACTION[Main]: \/ \/ \/ \/ \/
2017-03-08 23:04:09: ACTION[Main]: World at [/home/owner/.minetest/worlds/FCAGameAWorld]
2017-03-08 23:04:09: ACTION[Main]: Server for gameid="ENLIVEN" listening on 0.0.0.0:30000.
2017-03-08 23:04:16: [Main]: INFO: signal_handler(): Ctrl-C pressed, shutting down.
2017-03-08 23:04:16: ACTION[Main]: [fishing] Server shuts down. saving trophies table

97
etc/change_world_name_manually_first/game-install-ENLIVEN

@ -225,7 +225,7 @@ echo "motd = \"Actions and chat messages are logged. Use inventory to see recipe
echo "disallow_empty_passwords = true" >> "$WRITEABLE_MINETEST_CONF" echo "disallow_empty_passwords = true" >> "$WRITEABLE_MINETEST_CONF"
echo "secure.trusted_mods = advanced_npc" >> "$WRITEABLE_MINETEST_CONF" echo "secure.trusted_mods = advanced_npc" >> "$WRITEABLE_MINETEST_CONF"
echo "server_dedicated = false" >> "$WRITEABLE_MINETEST_CONF" echo "server_dedicated = false" >> "$WRITEABLE_MINETEST_CONF"
echo "hudbars_bar_type = statbar_modern" >> "$WRITEABLE_MINETEST_CONF"
sudo mv -f $HOME/minetest.conf "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/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 echo "load_mod_protector = true" >> $MT_MYWORLD_DIR/world.mt
@ -497,6 +497,35 @@ wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm
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/init.lua
wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm_pyramids/more_trms.lua wget https://github.com/MinetestForFun/server-minetestforfun/raw/master/mods/trm_pyramids/more_trms.lua
#Wuzzy's hudbars (no builtin bars; used by sprint, hbhunger, and hbarmor) https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger
cd $HOME/Downloads
#MTMOD_DL_ZIP=master.zip
#MTMOD_SRC_ZIP=hudbars.zip
MTMOD_UNZ_NAME=minetest_hudbars
MTMOD_DEST_NAME=hudbars
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 -f $MTMOD_DL_ZIP
#fi
#if [ -f $MTMOD_SRC_ZIP ]; then
# rm -f $MTMOD_SRC_ZIP
#fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
git clone git://repo.or.cz/minetest_hudbars.git
#aka http://repo.or.cz/w/minetest_hudbars.git
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 "$MT_MYGAME_MODS_PATH/hudbars" ]; then
cd "$HOME/Downloads" cd "$HOME/Downloads"
#MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip #MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip
#MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip #MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip
@ -527,6 +556,72 @@ rm -Rvf $MTMOD_UNZ_NAME
wget https://github.com/tenplus1/hud_hunger/archive/master.zip wget https://github.com/tenplus1/hud_hunger/archive/master.zip
unzip $MTMOD_SRC_ZIP unzip $MTMOD_SRC_ZIP
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" 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."
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
#Wuzzy's hbarmor for hudbars https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger
cd $HOME/Downloads
#MTMOD_DL_ZIP=master.zip
#MTMOD_SRC_ZIP=hudbars.zip
MTMOD_UNZ_NAME=minetest_hbarmor
MTMOD_DEST_NAME=hbarmor
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 -f $MTMOD_DL_ZIP
#fi
#if [ -f $MTMOD_SRC_ZIP ]; then
# rm -f $MTMOD_SRC_ZIP
#fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
git clone git://repo.or.cz/minetest_hbarmor.git
#aka http://repo.or.cz/minetest_hbarmor.git/snapshot/bfc5f8cbb560eff6f206eec3242f8401d11c1310.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
#Wuzzy's hbhunger for hudbars https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger
cd $HOME/Downloads
#MTMOD_DL_ZIP=master.zip
#MTMOD_SRC_ZIP=hbhunger.zip
MTMOD_UNZ_NAME=minetest_hbhunger
MTMOD_DEST_NAME=hbhunger
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 -f $MTMOD_DL_ZIP
#fi
#if [ -f $MTMOD_SRC_ZIP ]; then
# rm -f $MTMOD_SRC_ZIP
#fi
if [ -d "$MTMOD_DEST_PATH" ]; then
sudo rm -Rf "$MTMOD_DEST_PATH"
fi
git clone git://repo.or.cz/minetest_hbhunger.git
#aka http://repo.or.cz/minetest_hbhunger.git/snapshot/da70eba4fd0a9644cdb0a5b0d7ee3d93f7e61acf.zip
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH"
if [ ! -d "$MTMOD_DEST_PATH" ]; then if [ ! -d "$MTMOD_DEST_PATH" ]; then
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue."
exit 1 exit 1

10
etc/change_world_name_manually_first/nightly-sudoer-script

@ -6,3 +6,13 @@ sudo python chunkymap/singleimage.py
./backup-mts-world ./backup-mts-world
./mts-ENLIVEN ./mts-ENLIVEN
#su - owner /home/owner/mts-ENLIVEN #su - owner /home/owner/mts-ENLIVEN
if [ -f "log_clear_mysql" ]; then
./log_clear_mysql
fi
#also try:
#cd /var/log
#sudo du -hsx .[^.]* * | sort -rh | head -20
#automatically done by chunkymap now:
#sudo rm /var/www/html/minetest/chunkymapdata/worlds/FCAGameAWorld/singleimage.png

5
etc/change_world_name_manually_first/use if you want/log_clear_mysql

@ -0,0 +1,5 @@
#!/bin/sh
sudo rm /var/log/mysql/error.log.*.gz
sudo rm /var/log/mysql/error.log.1
sudo rm /var/log/*.log.*.gz
sudo rm /var/log/*.log.1
Loading…
Cancel
Save