Depuis X-Moto 0.5.2, vous pouvez contrôller le serveur de jeu depuis le jeu X-Moto.
L'utilitaire principal est conçu pour bannir des personnes du serveur (via l'ip ou le nom de profil) et voir quelques statistiques au sujet du serveur (traffic).
Connexion à la console
Démarrer votre serveur
Pour jouez en réseau, vous devez démarrer un serveur (un serveur pour plusieurs joueurs).
Allez dans options => www => serveur et cliquez sur "Démarrer le serveur". Si vous ne savez pas ce qu'est un port, choisissez celui par défaut (4130).
Connection au serveur
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.
Open the console
Once connected, you can open the console using <ctrl><alt>s keyboard sequence.
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).
This command lists the available commands and their syntax. This command takes no argument.
This command is required to identify yourself to the game server. Use it without any argument if there is still no administrator on the server. Give your password as argument if you're an administrator of the server.
$ login mypassword
This command can be used if you want to logout without closing X-Moto. This command takes no argument.
Use this command to change your password. When an admninistrator is created, the initial password is choosed by the admnistrator which create the account. The first thing to do for the new admnistrator is to change his password. This command takes the new password as argument
$ changepassword my_new_password
This command lists the connected players on the server. For each player, you can see his identifier (a number), his name and his ip. This command takes no argument.
This command lists the admnistrators on the server. For each administrator, you can see his identifier (a number), and his name. This command takes no argument.
This command is used to add admnistrators. It takes 2 arguments : the id of the player to become an admnistrator and the password for this admnistrator.
Note: use "lsplayers" to get the identifier of the player. Identifier are used instead of profile name because it's easier and your keyboard could have not some special chars (if you want a chineese, a russian, a greek or any man with a non ascii name because an administrator)
In the following example, 0 is the identifier of the player (Nicolas in the previous screenshots) which will become admnistrator.
$ addadmin 0 his_password
This command is used to remove an administrator. This command takes only 1 argument : the identifier of the administrator to remove, use lsadmins to get it.
$ rmadmin 2
This command lists the people banned on the server. For each ban, you can see its identifier (a number), the profile banned (* for all), and the ip banned (* for all). This command takes no argument.
- 2: (Nicolas, *) means : anybody can connect with the profile Nicolas
- 3: (*, 184.108.40.206) means : nobody can connect from the ip 220.127.116.11
This command is used to ban somebody. You can ban by ip or by profile. This commands takes 2 or 3 parameters. The first argument is the id of the player (use the command lsplayers to get this id). The 2e argument is ip or profile. You can add a 3rd argument to precise the number of days (by default 30 days are set).
ban 2 ip ban 2 profile ban 2 ip 50 ban 2 ip 0
This command is used to unban somebody. It takes only 1 argument, the id of the ban (Use lsbans to get it).
This command displays some information about the server.
- <ctrl> l : clear the console
- <ctrl> d : close the console
- arrow up, arrow down : use shell history