From: Perttu Ahola Date: Thu, 21 Mar 2013 18:04:00 +0000 (+0200) Subject: lua_api.txt: Document paths, games and common mod loading X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=adc52f3f3c041e5914f665b6f96d07f49bbb6487;p=zefram%2Fminetest%2Fminetest_engine.git lua_api.txt: Document paths, games and common mod loading --- diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 7d8fa149..19fa8147 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -27,6 +27,36 @@ Startup Mods are loaded during server startup from the mod load paths by running the init.lua scripts in a shared environment. +Paths +----- +RUN_IN_PLACE=1: (Windows release, local build) + $path_user: Linux: + Windows: + $path_share: Linux: + Windows: + +RUN_IN_PLACE=0: (Linux release) + $path_share: Linux: /usr/share/minetest + Windows: /minetest-0.4.x + $path_user: Linux: ~/.minetest + Windows: C:/users//AppData/minetest (maybe) + +Games +----- +Games are looked up from: + $path_share/games/gameid/ + $path_user/games/gameid/ +where gameid is unique to each game. + +The game directory contains the file game.conf, which contains these fields: + name = + common_mods = +eg. + name = Minetest + common_mods = bucket, default, doors, fire, stairs + +Common mods are loaded from the pseudo-game "common". + Mod load path ------------- Generic: