tutorial - server - configuration file path for server running

master
mckaygerhard 2023-07-10 20:24:16 +00:00
parent a14aa442b1
commit 6c0576f5cd
1 changed files with 16 additions and 4 deletions

View File

@ -1,7 +1,8 @@
# Minetest Server
**Minetest is a game** that although it is played on your computer or phone, it can also be played online,
that means it is a client - server game, **where the client is the guest and the server is the host.**
Means it is a client - server game, **where the client is your phone/pc** and the server can be your phone/pc or a remote internet computer.
## Knowning server and client
@ -93,9 +94,20 @@ by default, it (will) contains:
* `world.mt` is the definition of the world, is the only file that must be present before anything,
if the world is new or if the other files are already present, this must be in sync with.
* **minetest.conf** : the config file that the server must use to start, it defines the path to the world place
and the usage of the gameid of the world, also paramteters to run the host of the game, the minimal ones
to be configure are:
* `default_game` it defines the `gameid` to be used inside the running minetest server adn for the world.
and the usage of the gameid of the world, you will now rarely need to edit minetest.conf manually cos the GUI
screen provide you a interface to confgure it all. This file is read every time the game starts and is always
created/modified when the menu quits.
* Loading path: it loads from:
* `../minetest.conf` if you are configuring build for `RUN_IN_PLACE=1` that means all the minetest
files are running from one place.
* `../../minetest.conf` also, but will not write to it, if you are configuring build for `RUN_IN_PLACE=1`
that means all the minetest files are running from one place.
* `~/.minetest/minetest.conf` if you are running a system wide installation, like a package
from distribution or if configuring build for `RUN_IN_PLACE=0`
* Custom path in command line using the option `--config /path/to/minetest.conf` of the server
binary program.
* Contains paramteters to run the host:
* `default_game` it defines the `gameid` to be used inside the running minetest server adn for the world.
Rest of files and setting are enough as default and must be tuned depending of the target of the dessired game.