diff --git a/README.md b/README.md index c787e15..e0b9f76 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,29 @@ # ENLIVEN ENLIVEN is a subgame for minetest with the goals of providing immersion and lessons for humanity. -The primary goals of the installer are to install ENLIVEN, and to automatically install Minetest with a usable minetest.conf (for improved graphics). +## Primary Features of EnlivenMinetest Project +* Server installer for ENLIVEN on linux server (Ubuntu so far) +* Client installer for single-player ENLIVEN, including on Windows +* automatically install Minetest client with a usable minetest.conf (for improved graphics) -The [ENLIVEN project](https://github.com/expertmm/EnlivenMinetest) (aka EnlivenMinetest) includes tools for installing and maintaining the server and client for internet and LAN use, and now includes the mtanalyze (formerly minetest-chunkymap) project which includes many tools including chunkymap. The server and client are just the Minetest server and client repackaged (or just web installer scripts in the case of the server), and therefore 100% compatible with other copies of Minetest server and client of the same version--including using other subgames, which client will download from servers as usual. +## Primary Features of ENLIVEN subgame +* birthstones, improved fork: + +### Planned Features +* trm_pyramids +* see also EnlivenMinetest/etc/game-install-enliven-testing.sh +The [ENLIVEN project](https://github.com/expertmm/EnlivenMinetest) (aka EnlivenMinetest) includes tools for installing and maintaining the server and client for internet and LAN use, and now includes the mtanalyze (formerly minetest-chunkymap) project which includes many tools including chunkymap. The server and client are just the Minetest server and client repackaged (or just web installer scripts in the case of the server), and therefore 100% compatible with other copies of Minetest server and client of the same version--including using other subgames, which client will download from servers as usual. DISCLAIMERS: * Please read the Sources and License section of this document. You must agree to the licenses mentioned in order to use and copy this program. * Any script code related to redis has not been successfully tested. * Make sure you convert your world to leveldb and place it in your server's worlds folder $HOME/.minetest/worlds/, as this set of scripts hasn't been tested with any other database nor worlds folder location, and nightly backup scripts cater to leveldb. - ## How to use: + ### Windows Client: -Click "Releases" for the installer, which has the singleplayer and multiplayer client for ENLIVEN. +Click "Releases" for the installer, which has the singleplayer and multiplayer client for ENLIVEN. * alternate download site is [axlemedia.net](http://www.axlemedia.net/index.php?htmlref=tutoring.html "Axle Media") * you must install to C:\Games\ENLIVEN (or possibly other path without spaces, as long as you don't move the launcher) in order for ENLIVEN to run. ENLIVEN subgame is a subgame of Minetest @@ -22,6 +31,7 @@ The ENLIVEN client runs Minetest, which can be used as a client for other Minete * is able to be installed automatically * comes with high quality OpenGL graphics settings in minetest.conf for modern computers * is able to run ENLIVEN subgame in singleplayer mode without any changes + ### Server: EnlivenMinetest project assists you in setting up ENLIVEN subgame and provides scripts to run it on minetestserver as current user (must be sudoer). Some of the included scripts help install and manage your git version of Minetest Server on Ubuntu Server or various *buntu flavors (a gui distro neither required nor recommended for minetestserver running ENLIVEN). See also https://github.com/expertmm/minetest-chunkymap for a map non-redis servers, and some offline minetest management tools. @@ -29,8 +39,8 @@ Some of the included scripts help install and manage your git version of Minetes The installer script (in the "etc/change_world_name_manually_first" folder) downloads the git versions of all of the mods to the ENLIVEN folder which will be placed in your minetest games folder (one of the two folders listed below, otherwise fails)--but change the world name to the name of your world first. * (optionally) place the ENLIVEN folder in the games folder here into the games folder on your server such as: /usr/local/share/minetest/games/ - (If you're not using the git version of Minetest on Ubuntu Server, try something like: - /usr/share/games/minetest/games/ ) + (If you're not using the git version of Minetest on Ubuntu Server, try something like: + /usr/share/games/minetest/games/ ) although the installer script should create the initial version of the minetest.conf in there (NOTE: there is a different version of minetest.conf for clients, as described below) * BEFORE running game-install-enliven.sh, make sure you FIRST CHANGE the value after "MT_MYWORLD_NAME=" Do not expect the mods from game-install-enliven-testing.sh to work. Also, do not run the file directly -- instead, paste the variables (before backup process) in game-install-enliven.sh into a terminal window, then paste the contents of game-install-enliven-test.sh @@ -40,6 +50,7 @@ Do not expect the mods from game-install-enliven-testing.sh to work. Also, do no Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawners. (NOTE: spawners makes pyramids now, so tsm_pyramids ) * Recommend your users use the binary installer (Windows client) from "Releases" at https://github.com/expertmm/EnlivenMinetest/releases or the alternate site above to install, otherwise installation requires a good minetest.conf downloaded such as from the winclient/launcher folder and placed in their minetest folder. The one here has better graphics (opengl 3.0 shaders, smooth lighting). + ### mtanalyze * mtanalyze is a set of tools including a live map for Minetest servers and singleplayer if using LevelDB * for more information, see README.md in mtanalyze folder. @@ -55,59 +66,73 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn ## Changes: +(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) +* (minetestinfo.py) account for Minetest 0.4.16 arch naming difference: minetest_game (from minetest-data package) becomes minetest (still check for minetest_game if minetest not present in minetest/games since 0.4.16 repack 3 via deb from Debian via Ubuntu still uses the folder name minetest_game) +(2017-05-25) +* switched to expertmm fork of travelnet +(2017-05-18) +* Installer now available at [axlemedia.net](http://www.axlemedia.net/index.php?htmlref=tutoring.html "Axle Media") -- added project and related files for Inno Setup Compiler. +(2017-05-15) +* added mock_tnt: doesn't destroy blocks, can coexist with regular tnt mod (all tnt is replaced with mock_tnt if tnt is disabled). This mod is helpful for when multiplayer servers have tnt disabled but players have acquired 'unknown item' (tnt:tnt) as loot. The Unknown Explosive says 'unknown item' on it, as a seemless replacement :) +(2017-04-20) * Released ENLIVEN 0.4.15.3 -* (2017-05-25) switched to expertmm fork of travelnet -* (2017-05-18) Installer now available at [axlemedia.net](http://www.axlemedia.net/index.php?htmlref=tutoring.html "Axle Media") -- added project and related files for Inno Setup Compiler. -* (2017-05-15) added mock_tnt: doesn't destroy blocks, can coexist with regular tnt mod (all tnt is replaced with mock_tnt if tnt is disabled). This mod is helpful for when multiplayer servers have tnt disabled but players have acquired 'unknown item' (tnt:tnt) as loot. The Unknown Explosive says 'unknown item' on it, as a seemless replacement :) -* (2017-04-02) fixed issue with redundant aliases in cme_to_spawners (see Mods,WIP folder) -* (2017-04-02) switched from kaeza to minetest-mods github repo for xban2 -* (2017-04-02) changed maximum range from 20 to 30 for forcefield (see technic/machines folder) -* (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-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-02-22) Fix protector crash (also sent to TenPlus1): +(2017-04-02) +* changed maximum range from 20 to 30 for forcefield (see technic/machines folder) +* switched from kaeza to minetest-mods github repo for xban2 +* fixed issue with redundant aliases in cme_to_spawners (see Mods,WIP folder) +(2017-03-08) +* renamed the files in tenplus1's hud_hunger to use its nosprint version of lua files in hud_hunger/hunger +* switched to hudbars, removed hud_hunger. Add line to SERVER's minetest.conf (using installer script): hubars_bar_type = statbar_modern +(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 computer-specific settings from minetest.conf (client version in this folder) +* remove ENLIVEN's copy of protector since TenPlus1 applied the fixes in the real repo +(2017-02-22) +* NOTE: the protector fix from 2017-02-15 was merged by TenPlus1 today +* Fix protector crash (also sent to TenPlus1): ```lua - if player and player:is_player() and player:get_hp() > 0 then -- ADDED THIS LINE + if player and player:is_player() and player:get_hp() > 0 then -- ADDED THIS LINE -- hurt player if protection violated - - -- (a bunch of code is here for processing violations) -- - - end -- ADDED THIS LINE - return true + + -- (a bunch of code is here for processing violations) -- + + end -- ADDED THIS LINE + return true ``` -* (2017-02-22) NOTE: the protector fix below was merged by TenPlus1 today -* (2017-02-15) (change protector) Avoid crash by not allowing non-player to dig protected area (may only happen when one of the owners of an area does it--that was the crash scenario) - changed - return protector.can_dig(1, pos, player:get_player_name(), true, 1) - to - return player and protector.can_dig(1, pos, player:get_player_name(), true, 1) or false - -* (2017-02-15) (change homedecor_modpack/homedecor) Add optional non-adult beverage version of homedecor in homedecor_modpack (just changes display name & variable name of Wine rack and Beer tap and beer mug, and textures for beer mug) -* (2017-02-15) (change bones) Show player (and print to server console) where died (and say bones remain or why not) -- with this addition, you can search your server log for "player's bones" where player is playername whether bones remain or not. -* (2017-02-14) (change mobs) Added some nonviolent textures that could be used in a school to the ENLIVEN/mods folder (they can be manually installed after ENLIVEN by copying them to the same place in your games/ENLIVEN folder on your installation of Minetest) -* (2017-02-06) Added installation of trmp_minetest_game to the installer script, since treasurer requires one or more trms in order to work (tested and working now on tsm_railcorridors) -* (2017-02-06) Added optional trm_compassgps so that treasure could include a compass or map from the compassgps mod -* (2017-02-06) Added optional mods for migrating from cme and from tsm_pyramids to spawners (should allow mods that depend on cme to be installed, and use mobs instead, though no mods in ENLIVEN are known to require cme currently) +(2017-02-15) +* (change bones) Show player (and print to server console) where died (and say bones remain or why not) -- with this addition, you can search your server log for "player's bones" where player is playername whether bones remain or not. +* (change homedecor_modpack/homedecor) Add optional non-adult beverage version of homedecor in homedecor_modpack (just changes display name & variable name of Wine rack and Beer tap and beer mug, and textures for beer mug) +* (change protector) Avoid crash by not allowing non-player to dig protected area (may only happen when one of the owners of an area does it--that was the crash scenario) + changed + return protector.can_dig(1, pos, player:get_player_name(), true, 1) + to + return player and protector.can_dig(1, pos, player:get_player_name(), true, 1) or false +(2017-02-14) +* (change mobs) Added some nonviolent textures that could be used in a school to the ENLIVEN/mods folder (they can be manually installed after ENLIVEN by copying them to the same place in your games/ENLIVEN folder on your installation of Minetest) +(2017-02-06) +* Added optional mods for migrating from cme and from tsm_pyramids to spawners (should allow mods that depend on cme to be installed, and use mobs instead, though no mods in ENLIVEN are known to require cme currently) +* Added optional trm_compassgps so that treasure could include a compass or map from the compassgps mod +* Added installation of trmp_minetest_game to the installer script, since treasurer requires one or more trms in order to work (tested and working now on tsm_railcorridors) ## Naming conventions: -* The filenames without extensions +* The filenames without extensions * The abbreviation "mts" is for minetest server-specific scripts or variables * du-show-big searches your hard drive for big files, in case $HOME/.minetest/debug.txt fills your drive, or a log rotate utility fails (going into a cumulative copy loop, or not) in regard to debug.txt, filling up your drive * The network folder contains some stuff for networks, which is usually only useful for using Minetest in a network cafe or school. (The purpose of minetest_userscript_localENLIVEN_server_only.vbs is to make sure the user only uses the hostname localENLIVEN, however this only changes the default, and cannot be enforced in any way as far as I know without recompiling the client.) - ## Known issues: -* ENLIVEN 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: +* 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..nuspec squirrel --releasify .\ENLIVEN..nupkg * ENLIVEN/games/ENLIVEN contents should be updated (unchanged from minetest_game): - * game_api.txt should differentiate between ENLIVEN and minetest_game - * README.txt should differentiate between ENLIVEN and minetest_game - * settingtypes.txt should document minetest.conf settings for various mods - * LICENSE.txt should note correct author of header and anything else specified + * game_api.txt should differentiate between ENLIVEN and minetest_game + * README.txt should differentiate between ENLIVEN and minetest_game + * settingtypes.txt should document minetest.conf settings for various mods + * LICENSE.txt should note correct author of header and anything else specified * Mods in Mods,WIP need LICENSE and README with author, and removal of default in depends.txt where not dependent on default * Preciousness in trm_compassgps has not been audited * Installer script does not copy certain stuff to the config files due to permissions unless runs as root (the rest is designed to run as sudoer, and use sudo only as needed) @@ -116,16 +141,17 @@ squirrel --releasify .\ENLIVEN..nupkg * minetest_userscript_localENLIVEN_server_only.vbs logon script in network folder only works if you make C:\games\Minetest writable to Authenticated Users, in order for minetest.conf to be created via this script (feel free to offer comments on how to avoid making the entire Minetest folder writable to Authenticated Users [I haven't experimented with which of the files and subfolders can be set to do not inherit]) * minetest_userscript_localENLIVEN_server_only.vbs does not read the recommended minetest.conf, so it echoes the lines manually. Ideally it would analyze the recommended one and change the server settings. * minetest_game mods and modpacks are owned by root in the end, for some reason. This may cause serious problems on your server. Change the owner to your current user. +* (minetestoffline.py) (status:closed reason:no solution) assumes name specified in file is same as id (filename) ## Planned Features * add NPCs (possibly mobs via https://github.com/Bremaweb/adventuretest/tree/master/mods/mobs ) * add https://github.com/minetest-mods/smartfs ? * Do not allow teleporting to travelnet teleporters in an area protected from you by protection mod (even if the source teleporter is yours), but allow teleporting to areas where you cannot modify (such as advanced area protection areas where, by default, use is allowed and modify is not). Locked travelnet will not be used by this mod--instead, this less-cumbersome change is planned. * Log where bones were placed to debug.txt, possibly by way of the following chat message: - after the existing line: - minetest.set_node(pos, {name = "bones:bones", param2 = param2}) - add the new line (not sure if the format call is really ok--it was copied from compassgps: - minetest.chat_send_player(player:get_player_name(), S("Bones placed at %s."):format(pos)) + after the existing line: + minetest.set_node(pos, {name = "bones:bones", param2 = param2}) + add the new line (not sure if the format call is really ok--it was copied from compassgps: + minetest.chat_send_player(player:get_player_name(), S("Bones placed at %s."):format(pos)) ### Potential mods to add * weather: https://github.com/Jeija/minetest-mod-weather ( https://forum.minetest.net/viewtopic.php?t=5245 ) @@ -135,7 +161,7 @@ squirrel --releasify .\ENLIVEN..nupkg * Updated pipeworks fork by HybridDog: https://github.com/HybridDog/pipeworks ### Known issues in mods: -* Mining Drill mk3 duplication bug +* Mining Drill mk3 duplication bug * Technic manual is not complete. Contribute info on drills and mining? See https://github.com/minetest-mods/technic/blob/master/manual.md * regular doors and chests are not protected via protection block/symbol * homedecor doors are not protected via protection block/symbol @@ -170,7 +196,7 @@ end --sort_by_distance 2017-02-13 18:15:32: ERROR[Main]: get_biome_list: failed to get biome 'deciduous_forest' 2017-02-13 18:15:32: ERROR[Main]: get_biome_list: failed to get biome 'savanna' 2017-02-13 18:15:32: ERROR[Main]: get_biome_list: failed to get biome 'rainforest' -2017-02-13 18:15:32: ERROR[Main]: register_ore: couldn't get all biomes +2017-02-13 18:15:32: ERROR[Main]: register_ore: couldn't get all biomes 2017-02-13 18:15:33: WARNING[Main]: Not registering alias, item with same name is already defined: mushroom:brown_natural -> flowers:mushroom_fertile_brown 2017-02-13 18:15:33: WARNING[Main]: Not registering alias, item with same name is already defined: mushroom:red_natural -> flowers:mushroom_fertile_red 2017-02-13 18:15:33: WARNING[Main]: Not registering alias, item with same name is already defined: farming_plus:orange -> ethereal:orange @@ -204,6 +230,7 @@ Further steps needed to recreate: * run postinstall.bat * change version number in C:\Users\Owner\Documents\GitHub\EnlivenMinetest\winclient\install ENLIVEN.iss * change version number in C:\Users\Owner\Documents\GitHub\EnlivenMinetest\winclient\launcher-src\ENLIVEN.pro + ### additional notes * The recommended minetest.conf for subgame, including for server, is in the ENLIVEN subgame folder (also available at [EnlivenMinetest on GitHub](https://github.com/expertmm/EnlivenMinetest) @@ -217,7 +244,8 @@ Minetest is included with releases--for Minetest license, please read README.txt * Included build is sfan5's build from https://minetest.kitsunemimi.pw/builds release: minetest-0.4.15-8729e7d-win64 -#### Changes from sfan5's build +#### Differences from sfan5's build +(changed by EnlivenMinetest project) * removed Voxelgarden subgame * added minetest.conf similar to the one generated by ENLIVEN scripts for schools vbscript, except with public servers enabled * added files specific to ENLIVEN, including launcher (ENLIVEN application), ENLIVEN subgame (including optional child-friendly changes for schools), other files, and licenses of added files. diff --git a/etc/bones.patch b/etc/bones.patch new file mode 100644 index 0000000..a3530c8 --- /dev/null +++ b/etc/bones.patch @@ -0,0 +1,17 @@ +diff -r /home/owner/Backup/fcalocal/usr/share/games/minetest/games/minetest_game-0.4.15-git/mods/bones/init.lua /home/owner/Backup/fcalocal/usr/share/games/minetest/games/minetest_game-0.4.15-git+enliven_patches/mods/bones/init.lua +168a169 +> local pos = vector.round(player:getpos()) +170a172,173 +> minetest.log("action", "[bones] " .. player:get_player_name() .. "'s bones do not remain since in creative_mode -- died at " .. minetest.pos_to_string(vector.round(player:getpos()))) +> minetest.chat_send_player(player:get_player_name(), player:get_player_name() .. "'s bones do not remain since in creative_mode -- died at " .. minetest.pos_to_string(pos)) --formerly ("Bones placed at %s."):format(pos) +176a180,181 +> minetest.log("action", "[bones] " .. player:get_player_name() .. "'s bones do not remain since inventory and craft are empty -- died at " .. minetest.pos_to_string(vector.round(player:getpos()))) +> minetest.chat_send_player(player:get_player_name(), player:get_player_name() .. "'s bones do not remain since inventory and craft are empty -- died at " .. minetest.pos_to_string(pos)) --formerly ("Bones placed at %s."):format(pos) +207a213,215 +> +> minetest.log("action", "[bones] " .. player:get_player_name() .. "'s bones do not remain since area is_protected -- died at " .. minetest.pos_to_string(pos)) +> minetest.chat_send_player(player:get_player_name(), player:get_player_name() .. "'s do not remain since area is_protected -- died at " .. minetest.pos_to_string(pos)) --formerly ("Bones placed at %s."):format(pos) +212a221,222 +> minetest.log("action", "[bones] " .. player:get_player_name() .. "'s bones remain where died at " .. minetest.pos_to_string(pos)) +> minetest.chat_send_player(player:get_player_name(), player:get_player_name() .. "'s bones remain where died at " .. minetest.pos_to_string(pos)) --formerly ("Bones placed at %s."):format(pos) + diff --git a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN old mode 100644 new mode 100755 index fa8e730..dfd4fe8 --- a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN +++ b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN @@ -79,7 +79,7 @@ fi #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 + 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/" @@ -114,7 +114,7 @@ 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 + exit 1 fi echo "load_mod_mobs = true" >> "$MT_MYWORLD_DIR/world.mt" @@ -140,7 +140,7 @@ 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 + exit 1 fi echo "load_mod_mobs_monster = true" >> "$MT_MYWORLD_DIR/world.mt" @@ -163,7 +163,7 @@ 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 + exit 1 fi echo "load_mod_mobs_animal = true" >> "$MT_MYWORLD_DIR/world.mt" @@ -198,7 +198,7 @@ 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 + exit 1 fi #sudo su - @@ -255,7 +255,7 @@ 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 + exit 1 fi echo "load_mod_xban2 = true" >> "$MT_MYWORLD_DIR/world.mt" @@ -281,7 +281,7 @@ 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 + exit 1 fi echo "load_mod_areas = true" >> "$MT_MYWORLD_DIR/world.mt" @@ -337,7 +337,7 @@ fi #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 +# exit 1 #fi #sudo cp -R /usr/share/games/minetest/games/carbone-ng /usr/local/share/minetest/games/carbone-ng @@ -356,7 +356,7 @@ fi #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 +# 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: @@ -387,7 +387,7 @@ 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 + exit 1 fi echo "load_mod_unified_inventory = true" >> $MT_MYWORLD_DIR/world.mt @@ -416,7 +416,7 @@ 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 + exit 1 fi echo "load_mod_technic = true" >> $MT_MYWORLD_DIR/world.mt @@ -466,7 +466,7 @@ 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 + exit 1 fi echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt @@ -492,7 +492,7 @@ echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt #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 +# exit 1 #fi cd "$HOME/Downloads" @@ -528,7 +528,7 @@ git clone git://repo.or.cz/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 + exit 1 fi @@ -571,7 +571,7 @@ sudo mv "$MTMOD_DEST_PATH/hunger/init.lua" "$MTMOD_DEST_PATH/hunger/init_UNUSED_ 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 + exit 1 fi # END IF no hudbars mod else @@ -604,7 +604,7 @@ git clone git://repo.or.cz/minetest_hbarmor.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 + exit 1 fi #Wuzzy's hbhunger for hudbars https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger @@ -631,7 +631,7 @@ git clone git://repo.or.cz/minetest_hbhunger.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 + exit 1 fi @@ -657,7 +657,7 @@ 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 + exit 1 fi @@ -676,12 +676,12 @@ if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$MTMOD_SRC_ZIP" fi wget https://github.com/VanessaE/pipeworks/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_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 + exit 1 fi @@ -700,17 +700,17 @@ if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$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" +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 + exit 1 fi -#NOTE: https://forum.minetest.net/viewtopic.php?f=9&t=12368 +#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 @@ -728,12 +728,12 @@ if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$MTMOD_SRC_ZIP" fi wget https://github.com/Napiophelios/LapisLazuli/archive/master.zip -mv "$MTMOD_DL_ZIP" "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_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 + exit 1 fi #cd "$HOME/Downloads" @@ -748,11 +748,11 @@ fi # rm -f "$MTMOD_SRC_ZIP" #fi #wget https://github.com/SokolovPavel/helicopter/archive/master.zip -#mv "$MTMOD_DL_ZIP" "$MTMOD_SRC_ZIP" -#unzip "$MTMOD_SRC_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" +#sudo mv "$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME" "$MTMOD_UNZ_NAME" MTMOD_DL_ZIP=master.zip MTMOD_SRC_ZIP=biome_lib.zip @@ -769,12 +769,12 @@ if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$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" +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 + exit 1 fi MTMOD_DL_ZIP=master.zip @@ -792,12 +792,12 @@ if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$MTMOD_SRC_ZIP" fi wget https://github.com/VanessaE/moretrees/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_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 + exit 1 fi @@ -821,7 +821,7 @@ 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 + exit 1 fi #mv minetest-3d_armor-master minetest-3d_armor_MODPACK #sudo mv minetest-3d_armor_MODPACK/wieldview $MT_MYGAME_MODS_PATH/wieldview @@ -856,7 +856,7 @@ 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 + exit 1 fi #if [ -f "master.zip" ]; then @@ -890,7 +890,7 @@ 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 + exit 1 fi MTMOD_DL_ZIP=master.zip @@ -914,7 +914,7 @@ 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 + 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) @@ -954,14 +954,14 @@ 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 + exit 1 fi #cd Jeija-minetest-mod-mesecons-* #sudo mv -f mesecons* "$MT_MYGAME_MODS_PATH/" ############ REQUIRES MESECONS ############ ##### NEEDED since carts in minetest_game added much of this functionality but not yet startstoprail or detectorrail ##### -#See also carts plus, a fork of carts (the PilzAdam one later added to minetest_game) https://github.com/Kilarin/minetest-mod-carts-plus which adds touring rails, a hand break, switching, and view locking +#See also carts plus, a fork of carts (the PilzAdam one later added to minetest_game) https://github.com/Kilarin/minetest-mod-carts-plus which adds touring rails, a hand break, switching, and view locking #NOTE: boost_cart has handbrake (back key), Rail junction switching with the 'right-left' walking keys #So either install this mod or do (less functionality): #minetest.register_alias("boost_cart:detectorrail", "carts:rail") @@ -995,7 +995,7 @@ 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 + exit 1 fi cd "$HOME/Downloads" @@ -1031,7 +1031,7 @@ 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 + exit 1 fi cd "$HOME/Downloads" @@ -1066,7 +1066,7 @@ git clone git://repo.or.cz/tsm_mines.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 + exit 1 fi cd "$HOME/Downloads" @@ -1098,7 +1098,7 @@ git clone git://repo.or.cz/RailCorridors/tsm_railcorridors.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 + exit 1 fi cd "$HOME/Downloads" @@ -1124,7 +1124,7 @@ 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 + exit 1 fi cd "$HOME/Downloads" @@ -1150,7 +1150,7 @@ 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 + exit 1 fi MTMOD_DL_ZIP=master.zip @@ -1175,7 +1175,7 @@ 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 + exit 1 fi @@ -1226,7 +1226,7 @@ sudo mv minetest_playereffects "$MTMOD_DEST_PATH" #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 +# exit 1 #fi cd $HOME\Downloads @@ -1250,7 +1250,7 @@ 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 + exit 1 fi @@ -1275,7 +1275,7 @@ 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 + exit 1 fi @@ -1301,7 +1301,7 @@ 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 + exit 1 fi # Update skins database: @@ -1338,7 +1338,7 @@ cd updater #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 +# exit 1 #fi #tenplus1's ambience/ambiance ambient sounds (fork linked at original's thread at https://forum.minetest.net/viewtopic.php?f=11&t=2807&start=275 ) @@ -1414,7 +1414,7 @@ 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 + exit 1 fi #requires xpanes (now part of minetest_game), fake_fire (or not, since only uses fire:flint_and_steel, and fire is in minetest_game), and mobs redo or creatures @@ -1441,7 +1441,7 @@ 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 + exit 1 fi echo "SPAWN_PYRAMIDS = true" > settings.txt echo "SPAWNERS_GENERATE = true" >> settings.txt @@ -1477,7 +1477,7 @@ 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 + exit 1 fi @@ -1507,7 +1507,7 @@ fi #sudo cp -f $MTMOD_UNZ_NAME/31px/* "$MTMOD_DEST_PATH/" #if [ ! -d "$MTMOD_DEST_PATH" ]; then # echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." -# exit 1 +# exit 1 #fi @@ -1533,7 +1533,7 @@ 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 + exit 1 fi cd $HOME/Downloads @@ -1557,7 +1557,7 @@ 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 + exit 1 fi @@ -1586,7 +1586,7 @@ sudo rm -Rf "$MTMOD_DEST_PATH" 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 + exit 1 fi @@ -1612,7 +1612,7 @@ 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 + exit 1 fi cd $HOME/Downloads @@ -1639,12 +1639,12 @@ 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 + exit 1 fi #Forum post: https://forum.minetest.net/viewtopic.php?f=11&t=10423 -#Wuzzy's slimenodes mod (only available via give). +#Wuzzy's slimenodes mod (only available via give). cd "$HOME/Downloads" #MTMOD_DL_ZIP=master.zip #MTMOD_SRC_ZIP=slimenodes.zip @@ -1669,7 +1669,7 @@ git clone git://repo.or.cz/minetest_slimenodes.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 + exit 1 fi @@ -1698,7 +1698,7 @@ 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 + exit 1 fi @@ -1727,7 +1727,7 @@ 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 + exit 1 fi @@ -1756,7 +1756,7 @@ 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 + exit 1 fi #Sokomine's original version has no security ( https://forum.minetest.net/viewtopic.php?id=4877 ) @@ -1786,7 +1786,7 @@ sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" sudo rm -Rf "$MTMOD_DEST_PATH/etc" if [ ! -d "$MTMOD_DEST_PATH" ]; then echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." - exit 1 + exit 1 fi diff --git a/etc/change_hardcoded_world_name_first/mts-ENLIVEN b/etc/change_hardcoded_world_name_first/mts-ENLIVEN old mode 100644 new mode 100755 index e69c1d7..fee1f75 --- a/etc/change_hardcoded_world_name_first/mts-ENLIVEN +++ b/etc/change_hardcoded_world_name_first/mts-ENLIVEN @@ -1,8 +1,16 @@ #!/bin/sh +echo "WARNING: mts-ENLIVEN script is deprecated--instead, run:" +echo " python3 mtsenliven.py" +# sleep 4 +# exit 1 +mts=minetestserver +if [ ! -f "`command -v minetestserver`" ]; then + mts=$HOME/minetest/bin/minetestserver +fi #BROKEN: screen -t MinetestServer minetestserver --gameid minetest_next --draworigin --drawplayers --world FCAWorldMTNext #BROKEN: screen -t MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld #NOTE: if only title is set, screen -x must be used to resume, so use -S to resume with -r #screen -S MinetestServer minetestserver --gameid ENLIVEN --worldname FCAGameAWorld #screen -S MinetestServer /home/owner/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld -screen -S MinetestServer $HOME/minetest/bin/minetestserver --gameid ENLIVEN --worldname FCAGameAWorld +screen -S MinetestServer $mts --gameid ENLIVEN --worldname FCAGameAWorld diff --git a/install.py b/install.py new file mode 100644 index 0000000..7025615 --- /dev/null +++ b/install.py @@ -0,0 +1,2 @@ +#!/usr/bin/env python3 +print("This doesn't work (not yet implemented)") diff --git a/mtsenliven.py b/mtsenliven.py new file mode 100644 index 0000000..99ab23d --- /dev/null +++ b/mtsenliven.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +import os +from mtanalyze.minetestinfo import * +import subprocess, signal +game_id = "ENLIVEN" +#screen -S MinetestServer $mts --gameid ENLIVEN --worldname FCAGameAWorld + +if not minetestinfo.contains("minetestserver_path"): + print("[ mtsenliven.py ] ERROR: minetestserver_path" + "was not found in your version of minetestinfo.py") + exit(1) + +mts = minetestinfo.get_var("system.minetestserver_path") +if not minetestinfo.contains("primary_world_path"): + print("[ mtsenliven.py ] ERROR: primary_world_path" + "was selected by minetestinfo.py") + exit(2) +wp = minetestinfo.get_var("primary_world_path") +wn = os.path.basename(wp) +p = subprocess.Popen([mts, '--gameid '+game_id, '--worldname '+wn]) + # stdout=subprocess.PIPE) diff --git a/webapp/README.md b/webapp/README.md new file mode 100755 index 0000000..a8681dd --- /dev/null +++ b/webapp/README.md @@ -0,0 +1,73 @@ +# EnlivenMinetest webapp +EnlivenMinetest Node.js webapp for web management of minetest +* Must run as same user as minetestserver, and neither as root + +Uses passport +see + +Replaces the "write" (stdout) method of the minetest process: +see +## Developer Notes + +### Things webapp should deprecate +* /home/owner/GitHub/EnlivenMinetest/etc/change_hardcoded_world_name_first/eauth + * shell script which contains only `nano ~/.minetest/worlds/FCAGameAWorld/auth.txt` +* mts-ENLIVEN and mtsenliven.py (run minetestserver with selected game and world) +``` +var path = require('path'); + +results = {} +if (!has_setting("system.minetestserver_path")): + results.error="[ mtsenliven.py ] ERROR: minetestserver_path was not found in your version of minetestinfo.py"; + return results; +var mts = peek_setting("system.minetestserver_path") +if (!has_setting("owner.primary_world_path")): + results.error= "[ mtsenliven.py ] ERROR: primary_world_path was selected by minetestinfo.py"; + return results; + +var world_path = peek_setting("owner.primary_world_path"); +var world_name = path.basename(wp); +p = subprocess.Popen([mts, '--gameid ENLIVEN', '--worldname ' + world_name], + stdout=subprocess.PIPE); +p.write = mts_out; +return results; +``` + +### Development Log +```bash +#!/bin/sh +sudo apt update +sudo apt install nodejs npm mongodb +# NOTE: mongo daemon is called mongod +target_dir=$HOME/enlivenode +if [ ! -d "$target_dir" ]; then + print "ERROR: Nothing done since missing $target_dir" + exit 1 +fi +cd "$target_dir" +npm init +#except changed jade to pug +npm install express static-favicon morgan cookie-parser body-parser debug pug passport passport-local mongoose + +``` + +### Old (Unused) + +``` +#!/bin/sh +wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/server.js +wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/package.json +mkdir views +cd views +wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/views/home.handlebars +mkdir layouts +cd layouts +wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/views/layouts/main.handlebars + +if [ -d ../layouts ]; then + cd .. +fi +if [ -d ../views ]; then + cd .. +fi +```