Starting an Xpilot Game Server

To start an xpilot server you need to run the command xpserver and specify a map to load. The maps are located in the "maps" directory of your Xpilot-AI source directory.

To start a server with the map "lifeless.xp":
cd xpilot-ai-source/maps
xpserver -map lifeless.xp
That's it! Now you can connect to the server with the command xpilot -join localhost, or just load up xpilot and search for local servers and it should find it.

There are many more options which can be set on the server. This server is just a slightly modified version of the Xpilot-NG server so almost all of its options are applicable to xpserver (see the manual page for a complete list of options). Below is a list of the options which you may find important:

-maxRobots integer or -robots integer
The maximum number of robots wanted. Adds robots if there are less than maxRobots players, so if you say you want 3 robots, if one player joins, there will be 2 robots, and if three players join, there will be no robots.
-playerLimit integer
maximum number of players. Normally this is determined by the number of bases on the map.
-FPS integer
server frames per second. There isn't really a limit, but I'd sugest no more than 100.
-reportMeta
contact the Xpilot meta server so that this server shows up to the world. Please don't do this unless you have some good reason, because we don't want to clutter up the meta server with our bot-filled servers (unless they are interesting).
-maxTurn integer
Maximum number of degrees that a ship can turn per frame.
-switchBase float
Probability that a player will switch to a random new base when dead (0.0 to 1.0).
-port integer
port on which the server will run. You can run multiple servers on the same machine if they run on different ports. When you run the xpilot client, either xpilot-ai or regular xpilot, you must also use the -port option to set it to the port of the server to which you wish to connect.