Server Hosting

From Ace of Spades Wiki
Revision as of 23:53, 8 August 2012 by Falk3n (Talk | contribs)

Jump to: navigation, search

Contents

For all Operating systems

If you are behind a firewall or a NAT router ( most home use routers are NAT routers), you have to forward port 32887 (UDP) to your computer. Visit http://portforward.com/ to find out how to do that with your router. Now follow operating system instructions


Windows

Step 1

The server.exe is included in the game download, start the server.exe When asked for the maximum numbers of players, choose wisely. The slower your internet connection, the less players should be on your server.. Start with 16 and when there is no lag even when the server is full, you can increase it if you like.

NOTE: If you are running the server from any computer at your home, you will have to do the following in order to connect:

Step 2 Open a command prompt (press Win+R, type 'cmd' and hit enter) on the computer running the server. In the command prompt, type 'ipconfig', and find the listed 'IPv4 Address'.

Step 3 Open this page. In the box after "IP Address:" type the four numbers of the IP address from Step 1, but in reverse order. For example, if the server's ip was '123.45.67.89', you would type them in as '89.67.45.123'.

Step 4 Select 'Dotted Quad', press 'Go' and copy the text from the second box, labeled 'IP decimal'.

Step 5 Paste the address into your web browser's url bar. Replace 'HTTP' with 'aos' and then press enter.

This address only works for computers on your home network. To get one that will work for someone outside your network, get your IP address from a site such as whatismyip.com. Follow the steps above to convert it. Alternatively, all server software will display this address upon starting a server. Look for something of the form aos://12345678.

If you want to connect to a server on the same computer you are playing on, goto this address: aos://16777343

Video Tutorial.

How To create an Ace of Spades Server (With Port forward)

Image tutorial

Linux

Step One Read Linux

Step Two Run the server by invoking server.exe rather than client.exe, as detailed in Linux

You can get detailed information here


Step Three Run the client, similar to windows.

Server commands

Beta 0.3 introduced server commands. Now pressing a key will not close the server, and instead the user can enter the following commands in the server window:

Command Description
kick <player #> Kicks the player with the id specified
ban <player #> Bans the player with the id specified
fog R G B Change the server fog colour (Red/Green/Blue values)
admin <player #> Grants administration to the player with the id specified
map <mapname> Changes the current map to the one specified (must be located in /vxl/)
quit Stops the server

Pyspades server commands

Pyspades is a third party server software ran by most users. This server implementation gives you the ability to use more commands, here is most of them:

Command Description
/advance Changes to the next map in the rotation.
/ban <player #> <duration> <reason> Bans the player with the ID number or name with the reason specified. The duration is in minutes
/fog R G B Change the server fog colour (Red/Green/Blue values).
/god <player> Makes the player invincible.
/godbuild <player> Toggles god build mode in which only players in god mode can destroy your blocks.
/goto <coordinates> Teleports the user to the specified grid coordinates.
/heal <player> Fully heals the player.
/invisible Makes the user invisible to other players and unable to take falling damage.
/kick <player #> <reason> Kicks the player with the ID number or name with the reason specified.
/kill <player> Kills the player.
/login <password> Grants the user administer privileges (provided the password is correct).
/map <mapname> Changes the current map to the one specified (must be located in .../maps/ directory).
/mute Prevents the player from talking.
/ratio or /ratio <player> Displays the user's kill/death (K/D) ratio.
/revertrotation Reverts to the original map rotation.
/say Sends a message to all the players.
/setbalance <number> Adjusts the team balance to add the specified number of players to a team. Setting this to 0 will make the teams balanced.
/teleport <player1> <player2> Teleports player1 to player2 (player2 may be left out to teleport player1 to the user)
/tp <player1> <player2> See /teleport
/tpsilent <player> <player2> See /teleport
/tps <player1> <player2> See /teleport
/unban <ip> Removes the specified IP from bans.txt
/unmute Allows the player to talk again.
/undoban Undoes the last ban.

Bandwidth considerations

A full 32-person server consumes more than 1 GB of bandwidth per hour (uploads + downloads). Keep this in mind if your web hosting or home internet plan has quota limits.

As of beta v0.36, a full 32 slot server averages ~10 kB/s per player, or ~320 kB/s total, with peaks near ~410 kB. So any less than 3 Mbps out is probably going to result in some kind of network lag for a full 32 slot server.

How to calculate maximum slots from bandwidth

  1. Run a bandwidth test at www.speedtest.net
  2. Multiply your Mbps upload speed by 1000 then divide that by 80
  3. Round the answer down to determine your max slots

For example, if your connection has a 1 Mbps upload speed, then:

  • 1 * 1000 = 1000
  • 1000 / 80 = 12.5 = ~12 slots

Pyspades

A cross-platform alternative to the official server is pyspades.

Check the site for more information, and if you're on Windows 32bit, get the win32 build zip on the left.

Since the 0.54 client build of pyspades, a full 32/32 player server uses approx:

  1. 1.15gb transfer bandwidth per hour
  2. Approx 60meg of ram
  3. Approx 40-60% of a "Intel(R) Xeon(R) CPU X3330 @ 2.66GHz" on a VPS host. Note that this is just what the virtual server is reporting - that CPU will likely be shared with other users.

Running a LAN Server

How to host a lan server, even in a restrictive environment. This is for windows specifically, however can be specifically adapted. This is for internal connections only, your friend in mexico cannot join. This is not guaranteed to work, as there are reported issues on certain subnets.

Note:

  • No portfowarding is needed.
  • Do not actually type any of the quotation marks in the guide.
  • You will have normal control over the server, as if it was "online".


1) Download the pyspades server build, for windows it's the win32 build.

2) Extract and edit the config file, set connection to the master server as "false".

3) Open up command prompt and type in "ipconfig".

4) Find the ip listed either "ip address" or "ipv4" remember this as it is what you will have people connect to.

5) Download the Spadille client, then click "file", "connect", and type in that ip.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox