Difference between revisions of "Server command line"

From X-Moto
Jump to: navigation, search
(==Open the console)
Line 3: Line 3:
 
=Connexion to the console=
 
=Connexion to the console=
 
==Start your server==
 
==Start your server==
=Open the console=
+
To play on the network, you need to start a server (one server for several players).
==First admin creation==
 
  
=Commands=
+
Go in options => www => server and click on "Start the server".
 +
If you don't know what is a port, choose the default one (4130).
 +
 
 +
[[Image:Server start.png|500x500px]]
 +
 
 +
==Connect to the server==
 +
Once a server is started, any player on the network can connect to it (you've to know a name or an ip of the server).
 +
 
 +
Go in levels => network, put the name of the server and click on "Connect".
 +
 
 +
"localhost" means your own computer.
 +
 
 +
[[Image:Server connect.png|500x500px]]
 +
 
 +
==Open the console==
 +
Once connected, you can open the console using <ctrl><alt>s keyboard sequence.
 +
 
 +
[[Image:Server console.png|500x500px]]
 +
 
 +
A banner is displayed and you get a prompt so that you can type commands.
 +
 
 +
===First admin creation===
 +
Thanks to the console, you'll be able to add server administrators.
 +
At the beginning, there is no default administrator defined.
 +
Only people connected from the localhost (ip 127.0.0.1) can login without password by typing the command "login".
 +
 
 +
Note: once an admnistrator is created, only real administrators can connect. People from localhost can't anymore be connected without an account (protect your ~/.xmoto directory so that any system user can create account directly by modifiying database files).
 +
 
 +
==Commands==

Revision as of 14:29, 22 April 2009

Since X-Moto 0.5.2, you can control the game server from the X-Moto game.

Connexion to the console

Start your server

To play on the network, you need to start a server (one server for several players).

Go in options => www => server and click on "Start the server". If you don't know what is a port, choose the default one (4130).

Server start.png

Connect to the server

Once a server is started, any player on the network can connect to it (you've to know a name or an ip of the server).

Go in levels => network, put the name of the server and click on "Connect".

"localhost" means your own computer.

Server connect.png

Open the console

Once connected, you can open the console using <ctrl><alt>s keyboard sequence.

Server console.png

A banner is displayed and you get a prompt so that you can type commands.

First admin creation

Thanks to the console, you'll be able to add server administrators. At the beginning, there is no default administrator defined. Only people connected from the localhost (ip 127.0.0.1) can login without password by typing the command "login".

Note: once an admnistrator is created, only real administrators can connect. People from localhost can't anymore be connected without an account (protect your ~/.xmoto directory so that any system user can create account directly by modifiying database files).

Commands