Page 1 of 1

Run minetest without GUI

PostPosted: Fri Mar 03, 2017 18:56
by Sergey
I want to start the game, select/create world, load it, and launch /emergeblocks <pos1> <pos2>

As I understand, GUI and playing is not needed for it. As a result, less memory and CPU resources would be used and task could be executed faster.

Can I run minetest game without GUI?

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 18:57
by burli
minetest --help

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 19:00
by Sergey
burli wrote:minetest --help

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ minetest --help
Allowed options:
  --address <value>     Address to connect to. ('' = local game)
  --config <value>      Load configuration from specified file
  --gameid <value>      Set gameid ("--gameid list" prints available ones)
  --go                  Disable main menu
  --help                Show allowed options
  --info                Print more information to console
  --logfile <value>     Set logfile path ('' = no logging)
  --map-dir <value>     Same as --world (deprecated)
  --migrate <value>     Migrate from current map backend to another (Only works when using minetestserver or with --server)
  --name <value>        Set player name
  --password <value>    Set password
  --port <value>        Set network port (UDP)
  --quiet               Print to console errors only
  --random-input        Enable random user input, for testing
  --run-unittests       Run the unit tests and exit
  --server              Run dedicated server
  --speedtests          Run speed tests
  --terminal            Feature an interactive terminal (Only works when using minetestserver or with --server)
  --trace               Print enormous amounts of information to log and console
  --verbose             Print even more information to console
  --version             Show version information
  --videomodes          Show available video modes
  --world <value>       Set world path (implies local game) ('list' lists all)
  --worldname <value>   Set world by name (implies local game)

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 19:07
by kaeza
Sergey wrote:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ minetest --help
  --gameid <value>      Set gameid ("--gameid list" prints available ones)
  --server              Run dedicated server
  --terminal            Feature an interactive terminal (Only works when using minetestserver or with --server)
  --world <value>       Set world path (implies local game) ('list' lists all)
  --worldname <value>   Set world by name (implies local game)

EDIT: In short:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetestserver --worldname foo --gameid minetest --terminal

or
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest --server --worldname foo --gameid minetest --terminal

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 19:46
by Sergey
kaeza wrote:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest --server --worldname foo --gameid minetest --terminal

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ minetest --server --worldname qqq --gameid minetest --terminal
2017-03-03 22:45:19: WARNING[Main]: Couldn't find a locale directory!
2017-03-03 22:45:19: [Main]: Using world specified by --worldname on the command line
2017-03-03 22:45:19: [Main]: Using game specified by --gameid on the command line
2017-03-03 22:45:19: ERROR[Main]: No name given for admin. Please check your minetest.conf that it contains a 'name = ' to your main admin account.

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 20:00
by kaeza
Have you tried reading the error?

Re: Run minetest without GUI

PostPosted: Fri Mar 03, 2017 20:14
by Sergey
kaeza wrote:Have you tried reading the error?

Yes. But I still don't understand what the problem is.

Re: Run minetest without GUI

PostPosted: Sat Mar 04, 2017 07:05
by ExeterDad
Focus on the last line that contains the word ERROR. It actually is giving you instruction how to resolve. :)

Hint: a minetest server needs to know who the admin is. That admin will have every priv available, including server.

Re: Run minetest without GUI

PostPosted: Sat Mar 04, 2017 13:25
by Sergey
OK. I understood I need to add "name = <admin_name>" to minetest.conf to define admin's name to log in using that name. How to make account with that name?

Re: Run minetest without GUI

PostPosted: Sat Mar 04, 2017 13:45
by twoelk
Sergey wrote:... How to make account with that name?

by
Sergey wrote:... I need to add "name = <admin_name>" to minetest.conf ...

before starting the server (that instance of minetest that will run the map)

Re: Run minetest without GUI

PostPosted: Sat Mar 04, 2017 13:57
by Sergey
twoelk wrote:
Sergey wrote:... How to make account with that name?

by
Sergey wrote:... I need to add "name = <admin_name>" to minetest.conf ...

before starting the server (that instance of minetest that will run the map)

Sorry. I did not understand you.

Re: Run minetest without GUI

PostPosted: Sat Mar 04, 2017 23:35
by Byakuren
Open a client and connect to your server using the admin username.