From: Perttu Ahola Date: Sat, 3 Dec 2011 01:43:20 +0000 (+0200) Subject: Add usermods/ to mod search paths and print out the paths at server startup X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c6dd75ccfb75fcdafc38b63ef1906369c4873948;p=zefram%2Fminetest%2Fminetest_engine.git Add usermods/ to mod search paths and print out the paths at server startup --- diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index ae917a03..ebb116e2 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -2,6 +2,23 @@ -- dump2(obj, name="_", dumped={}) -- dump(obj, dumped={}) -- +-- Mod load path +-- ------------- +-- Generic: +-- $path_data/mods/ +-- $path_userdata/usermods/ +-- $mapdir/worldmods/ +-- +-- On a run-in-place version (eg. the distributed windows version): +-- minetest-0.4.x/mods/ +-- minetest-0.4.x/usermods/ +-- minetest-0.4.x/world/worldmods/ +-- +-- On an installed version on linux: +-- /usr/share/minetest/mods/ +-- ~/.minetest/usermods +-- ~/.minetest/world/worldmods +-- -- Naming convention for registered textual names -- ---------------------------------------------- -- "modname_" diff --git a/src/server.cpp b/src/server.cpp index 032b57e3..873198d1 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -875,16 +875,24 @@ Server::Server( JMutexAutoLock envlock(m_env_mutex); JMutexAutoLock conlock(m_con_mutex); - infostream<<"m_nodedef="<::Iterator i = m_modspaths.begin(); + i != m_modspaths.end(); i++){ + std::string modspath = *i; + infostream<<" "<