Difference between revisions of "Advanced Server Administration Guide"

From Armagetron
m (Reverted edit of 1147480517, changed back to last version by Lance)
Line 138: Line 138:
  
 
* [http://www.internetfrog.com/mypc/speedtest/|Internet Frog]
 
* [http://www.internetfrog.com/mypc/speedtest/|Internet Frog]
 
 
 
 
 
 
 
 
 
 
 
 
 
<div  style="display:none">
 
[We are delicate. We do not delete your content.]
 
[l_sp1]
 
 
[http://ringtonemaker.blogs.eurosport.com/ ringtone maker]
 
[http://verizonringtone.forumco.com/ verizon ringtone]
 
[http://uscellularringtone.forumco.com US Cellular Ringtone]
 
[http://blog.investing.com/bcbgshoes/ bcbg shoes]
 
[http://www.buddyprofile.com/viewprofile.php?username=waterfordcrystal waterford crystal]
 
[http://www.buddyprofile.com/viewprofile.php?username=swarovskicrystal swarovski crystal bead]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomalawsuits mesothelioma lawsuits]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomasymptoms mesothelioma symptoms]
 
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomadiag mesothelioma diagnosis]
 
[http://www.missoula.com/blog/sexypromdresses/ Sexy Prom Dresses]
 
[http://www.justachat.com/blog/?w=naturalizershoes Naturalizer Shoes]
 
[http://www.toutelapoesie.com/blog/aerobed/ Aero Bed]
 
[http://www.totalvideogames.com/blog/freesprintringtones/ Free Sprint Ringtones]
 
[http://www.totalvideogames.com/blog/freeverizonringtones/ Free Verizon Ringtones]
 
[http://www.totalvideogames.com/blog/freenextelringtones/ free nextel ringtones]
 
[http://www.totalvideogames.com/blog/sexypromdresses/ sexy prom dress]
 
[http://www.totalvideogames.com/blog/formalpromdresses/ Formal Prom Dresses]
 
[http://www.totalvideogames.com/blog/cheappromdresses/ cheap prom dresses]
 
[http://www.totalvideogames.com/blog/plussizepromdress/ Plus Size Prom Dresses]
 
[http://www.totalvideogames.com/blog/tiffanypromdresses/ tiffany prom dresses]
 
[http://www.totalvideogames.com/blog/strippoker/ erotic games strip poker]
 
[http://www.totalvideogames.com/blog/pokemoncardgame/ pokemon trading card game rom]
 
[http://www.totalvideogames.com/blog/hoylecardgames/ hoyle card games]
 
[http://www.totalvideogames.com/blog/teenbra/ teen bra]
 
[http://www.totalvideogames.com/blog/brateencleavage/ Bra Teen Cleavage]
 
[http://www.totalvideogames.com/blog/microbiniki/ Micro Bikini]
 
[http://www.totalvideogames.com/blog/teensbra/ Teens Bra]
 
[http://www.totalvideogames.com/blog/sexybras/ sexy bras]
 
[http://www.totalvideogames.com/blog/bulmabra/ bulma bra]
 
[http://www.totalvideogames.com/blog/sheerbra/ sheer bra]
 
[http://www.totalvideogames.com/blog/autoloancalculator/ auto loan calculator]
 
[http://www.totalvideogames.com/blog/loanconsolidation/ Federal Student Loan Consolidation]
 
[http://www.totalvideogames.com/blog/privatestudentloan/ private student loan consolidation]
 
[http://www.totalvideogames.com/blog/acsstudentloans/ acs student loans]
 
[http://www.totalvideogames.com/blog/countrywidehomeloans/ countrywide home loans]
 
[http://www.totalvideogames.com/blog/refinancehomeloan/ refinance home loan st louis]
 
[http://www.buddyprofile.com/viewprofile.php?username=wacoalbras wacoal bras]
 
[http://www.buddyprofile.com/viewprofile.php?username=teenbra teen bra]
 
[http://www.buddyprofile.com/viewprofile.php?username=unsecuredloan unsecured signature loan]
 
[http://www.buddyprofile.com/viewprofile.php?username=homeloans Countrywide Home Loans]
 
[http://blog.moddingplanet.it/?w=formalpromdresses Formal Prom Dresses]
 
[http://blog.moddingplanet.it/?w=sexypromdress Sexy Prom Dress]
 
[http://blog.moddingplanet.it/?w=cocktaildresses cocktail dresses]
 
[http://www.buddyprofile.com/viewprofile.php?username=telmobile TMobile]
 
[http://www.buddyprofile.com/viewprofile.php?username=watersoftener water softener]
 
[http://www.buddyprofile.com/viewprofile.php?username=tanklesswaterheater tankless water heater]
 
[http://www.totalvideogames.com/blog/oscardresses/ oscar dresses]
 
[http://www.totalvideogames.com/blog/motherbridedress/ mother of the bride dresses]
 
[http://www.totalvideogames.com/blog/bridesmaiddresses/ bridesmaid dresses]
 
[http://www.totalvideogames.com/blog/cocktaildresses/ cocktail dresses]
 
[http://www.totalvideogames.com/blog/formaldresses/ formal dresses]
 
[http://www.totalvideogames.com/blog/easterdresses/ easter dresses]
 
[http://www.totalvideogames.com/blog/eveningdresses/ evening dresses]
 
[http://www.totalvideogames.com/blog/eveninggowns/ evening gowns]
 
[http://www.totalvideogames.com/blog/ballgowns/ ball gowns]
 
[http://www.totalvideogames.com/blog/formalgowns/ formal gowns]
 
[http://www.totalvideogames.com/blog/plussizewedding/ plus size wedding gowns]
 
[http://www.buddyprofile.com/viewprofile.php?username=rockportshoes rockport shoes]
 
[http://www.buddyprofile.com/viewprofile.php?username=osmosiswaterfilter reverse osmosis water filter]
 
[http://www.buddyprofile.com/viewprofile.php?username=merrellshoes merrell shoes]
 
[http://www.totalvideogames.com/blog/casinoroyale/ casino royale]
 
[http://www.totalvideogames.com/blog/throatpokers/ throat pokers]
 
[http://www.totalvideogames.com/blog/freestrippoker/ free strip poker]
 
[http://www.totalvideogames.com/blog/crazygameofpoker/ crazy game of poker]
 
[http://www.totalvideogames.com/blog/pokerchips/ poker chips]
 
[http://www.totalvideogames.com/blog/texasholdempoker/ texas holdem poker game]
 
[http://www.totalvideogames.com/blog/onlinepokeraide/ online poker aide]
 
[http://www.totalvideogames.com/blog/onlinepokerassistant/ online poker assistant]
 
[http://www.totalvideogames.com/blog/casinodirectory/ casino directory gambling online]
 
[http://www.totalvideogames.com/blog/onlinepaigowpoker/ online pai gow poker]
 
[http://www.totalvideogames.com/blog/hooterscasino/ hooters casino]
 
[http://www.totalvideogames.com/blog/atlanticcitycasino/ atlantic city casinos]
 
[http://www.totalvideogames.com/blog/buyativanonline/ buy ativan online]
 
[http://www.totalvideogames.com/blog/buyoxycontinonline/ buy oxycontin online]
 
[http://www.totalvideogames.com/blog/buyalprazolamonline/ buy alprazolam online]
 
[http://www.totalvideogames.com/blog/buyalprazolam/ buy alprazolam]
 
[http://www.totalvideogames.com/blog/cialisnoprescription/ cialis no prescription]
 
[http://www.totalvideogames.com/blog/xanaxxr/ xanax xr]
 
[http://www.totalvideogames.com/blog/ultramer/ ultram er]
 
[http://www.totalvideogames.com/blog/buyultramonline/ buy ultram online]
 
[http://www.totalvideogames.com/blog/genericfioricet/ generic fioricet]
 
[http://www.totalvideogames.com/blog/buyfioricetonline/ buy fioricet online]
 
[http://www.totalvideogames.com/blog/phentermine375mg/ phentermine 37 5mg]
 
[http://www.totalvideogames.com/blog/bontrilsr/ bontril sr]
 
[http://www.totalvideogames.com/blog/cheapbontril/ cheap bontril]
 
[http://www.totalvideogames.com/blog/ambiencr/ ambien cr]
 
[http://www.totalvideogames.com/blog/buydidrexonline/ buy didrex online]
 
[http://www.totalvideogames.com/blog/adipex/ adipex without a prescription]
 
[http://www.totalvideogames.com/blog/buytamiflu/ buy tamiflu]
 
[http://www.totalvideogames.com/blog/buyclonazepam/ buy clonazepam]
 
[http://www.totalvideogames.com/blog/purchasetramadol/ purchase tramadol without a prescription]
 
[http://www.totalvideogames.com/blog/buyacyclovir/ buy acyclovir]
 
[http://www.totalvideogames.com/blog/buycodeine/ buy codeine]
 
[http://www.totalvideogames.com/blog/privatepoker/ private poker tournament]
 
[http://www.totalvideogames.com/blog/freerollpoker/ freeroll poker tournament]
 
[http://www.totalvideogames.com/blog/caribbeanstudpoker/ caribbean stud poker]
 
[http://www.totalvideogames.com/blog/paradisepoker/ paradise poker]
 
[http://www.totalvideogames.com/blog/playfreestrippoker/ play free strip poker]
 
[http://www.totalvideogames.com/blog/eroticgames/ erotic games strip poker]
 
[http://www.totalvideogames.com/blog/onlinepoker/ online poker calculator]
 
[http://www.totalvideogames.com/blog/onlinepokertracker/ online poker tracker]
 
[http://www.totalvideogames.com/blog/buydiazepam/ buy diazepam]
 
[http://www.totalvideogames.com/blog/didrex/ didrex]
 
[http://www.totalvideogames.com/blog/buydidrex/ buy didrex]
 
[http://www.totalvideogames.com/blog/adipexpr/ adipex without prescription]
 
[http://www.totalvideogames.com/blog/adipexp/ adipex p]
 
[http://www.totalvideogames.com/blog/clonazepam/ clonazepam]
 
[http://www.totalvideogames.com/blog/bclonazepam/ buy clonazepam]
 
[http://www.totalvideogames.com/blog/diethylpropion/ diethylpropion]
 
[http://www.totalvideogames.com/blog/celexa/ celexa]
 
[http://www.totalvideogames.com/blog/paxilcr/ paxil cr]
 
[http://www.totalvideogames.com/blog/lorazepam/ lorazepam]
 
[http://www.totalvideogames.com/blog/hydrocodoneapap/ hydrocodone apap]
 
[http://www.totalvideogames.com/blog/lortab/ lortab]
 
[http://www.totalvideogames.com/blog/klonopin/ klonopin]
 
[http://www.totalvideogames.com/blog/norco/ norco]
 
[http://www.totalvideogames.com/blog/buypropecia/ buy propecia]
 
[http://www.totalvideogames.com/blog/orderpropecia/ order propecia]
 
[http://www.totalvideogames.com/blog/phendimetrazine/ phendimetrazine]
 
[http://www.totalvideogames.com/blog/Butalbital/ Butalbital]
 
[http://www.totalvideogames.com/blog/cheapxenical/ cheap xenical]
 
[http://www.totalvideogames.com/blog/wellbutrinxl/ wellbutrin xl]
 
[http://www.totalvideogames.com/blog/valtrex/ valtrex]
 
[http://www.totalvideogames.com/blog/vicodin/ vicodin without prescription]
 
[http://www.totalvideogames.com/blog/lasvegascasino/ las vegas casino coupons]
 
[http://www.totalvideogames.com/blog/lasvegaspalms/ las vegas palms casino]
 
[http://www.totalvideogames.com/blog/hooterscasinolas/ hooters casino las vegas]
 
[http://www.totalvideogames.com/blog/microgamingcasino/ microgaming casino bonus]
 
[http://www.totalvideogames.com/blog/playtechcasinobonu/ playtech casino bonus]
 
[http://www.totalvideogames.com/blog/rtgcasinobonus/ rtg casino bonus]
 
[http://www.totalvideogames.com/blog/grandcasinotunica/ grand casino tunica]
 
[http://www.totalvideogames.com/blog/grandcasinomille/ grand casino mille lacs]
 
[http://www.totalvideogames.com/blog/grandcasinocoushat/ grand casino coushatta]
 
[http://www.totalvideogames.com/blog/grandcasinohinckle/ grand casino hinckley]
 
[http://www.totalvideogames.com/blog/grandcasinohinkley/ grand casino hinkley]
 
 
 
 
</div>
 

Revision as of 21:58, 12 May 2006

So you've been running a server for awhile and now you'd like to do more with it? Maybe you've found that there are some punk-ass players out there that you really want to kick off your server? Maybe your players are asking for more, and you're saying "Hell yeah!" but you don't know what to actually do about it?

You've come to the right place!

Going further - Game Variations

There are a number of combinations of settings that make for interesting variations of the game. Here you will find more information on what you can and can't do.

Game Variations

Dealing with Lag

The simple fact is, there's a certain amount of lag you can't fix. For the rest, there's MasterCard!

Bandwidth Limiting

Bandwidth is measured in kilobytes per second and is controlled by MAX_OUT_RATE. If you set it to 4, there will be some lag at the beginning of the round. 6 is considered minimum for a production server.

To calculate how many players to limit on your server, you need to know how much upstream bandwidth you have. That's bandwidth leaving your server. :) Then figure out how much of that you want your game server to use. Divide it by 6. If you get a really large number, such as 3000, then you probably don't need to worry about limiting bandwidth. On the other hand, if you come out near 20, then try a higher number. Keep trying until you get to the highest number for the number of players.

You can test your internet speed by visiting one of the websites in the resource section at the bottom of this page.

Example

You have 512kbit/sec of upstream bandwidth. That converts to 64kilobytes/second of upstream bandwidth. 64/6 = 10.6666. Since you can't have 2/3 of a player, that's 10 players. That's also using the recommended minimum setting. Let's assume you want to have a maximum of 12 players on your server. Divide 64 by 12 and you get: 5.33333kb/sec. So you can go ahead and do MAX_OUT_RATE 5.3333333 and MAX_CLIENTS 12 and your full server will need all available upstream bandwidth.

Now, you say you want to be able to surf the web and send email while people are playing on your server? Easy enough. Leave some room. So you decide that 32kb/sec is enough for you to do your other internet tasks without significantly disturbing the players on your server. 64-32=32kb/sec available for the server. 32/12=2.66666666, so you won't be able to handle 12 clients and leave that much room for other uses.

Simulation Framerate

If you're running on an older server, or you just want a more predictable server, you should consider limiting the framerate of the simulation. What is the simulation framerate? Well, it's just like the FPS number you see, only it applies to the internal simulation of the game on the server. Since that doesn't make sense, just think of it as the number of times per second the server thinks about the game. The rest of the time, it just eats chips or something.

You limit the framerate of the simulation with DEDICATED_FPS. You'll have to decide what you prefer for the simulation, but you can use this setting to get more mileage out of your server. Good values range from 50-100. You should aim for a certain CPU usage target. So for example, you decide that 10% usage is the most the server should take up, then you connect MAX_CLIENTS number of clients to the server, open up a process viewer that shows CPU load for the server process, and play with DEDICATE_FPS until the process uses about 10%, which is your target in this example.

There's no hard and fast rule, and CPU usage will vary depending on how much it has to simulate, so pick a DEDICATED_FPS that makes for the most stable game you like to play.

Other network settings that affect lag

Server:

CYCLE_SYNC_FF Speed of simulation of the extrapolating sync; decrease for lower CPU load, but higher effective ping
CYCLE_SYNC_FF_STEPS Number of extrapolation simulation timesteps each real timestep; increase for better accuracy
CYCLE_SYNC_INTERVAL_ENEMY Time in seconds between server-client updates of enemy cycles

Client:

CYCLE_SYNC_INTERVAL_SELF Time in seconds between server-client updates of enemy cycles owned by the client itself

Dealing with unruly players

There are several ways to deal with unruly players. We'll touch on each of them here.

Moderation

A common way is to have a group of moderators available so that your server usually has people logged in and playing who can use in-game admin to kick evil doers out of the server. You do this by setting ADMIN_PASS in your settings_custom.cfg file and then giving that password out to your preferred moderators. Then they will use the password like this:

While playing on the server, in a chat prompt, type /login ADMIN_PASS, replacing ADMIN_PASS with the password you have set for the server. This logs the player into the in-game admin system. Now you can execute commands with /admin COMMAND ARGUMENTS. Use /logout to leave the in-game admin system.

Every command is available, so be cautious to whom you give your ADMIN_PASS!

Voting

Voting is a popular way to deal with unruly players. It has the advantage of giving power to the players on the server and letting them decide how they want the grid to be when playing. It comes at a cost, though. First, as an admin you need to respect your players' choices. This doesn't mean you should let them walk all over you, but what's the point of letting them vote in the first place if you're just going to override it? Second, it is possible to exploit the voting system as an unruly player. There will be some more safeguards in 0.2.8 to deal with this, but in the meantime it is an issue you may need to face.

To enable voting, you should copy the group of settings from settings_dedicated.cfg into your server_info.cfg. The reason it goes in server_info.cfg is because these settings are considered "policy" and are not something you'd necessarily share with someone who asked. You might still share them, don't get me wrong, but if someone wants to clone your server and you want to help them, you'd normally just send them settings_custom.cfg and let them come up with their own server policies.

Here are the setting items you'll want to address, along with their default values:

Voting Policy Settings

These are the ones that really define how voting is to be accomplished.

ALLOW_VOTING 1
Turns on voting.
ALLOW_VOTING_SPECTATOR 0
Allows spectator players to vote. Generally not something you want to enable, hence the default.
VOTING_BIAS 0
Number of virtual voters opposing every change. You can think of this as the Republican Party simulated by the game server, where the game server will always oppose every vote in favor of maintaining the status quo.
VOTING_PRIVACY 1
Level of secrecy of the votes. 2 makes the vote as secret as possible, -2 makes it fully public. There are those who consider voting to be very personal and private, and would prefer to keep votes secret so nobody can retaliate against voters for voting against them. There are others (me) who find that making the votes public keeps voters honest and prevents people from backstabbing one another.
VOTING_SPAM 50
Voting spam protection. This is new in 0.2.8 and is intended to prevent people from filling the server with polls and annoying everybody.
MIN_VOTERS 3
Number of voters that need to be online to enable voting. So it's a quorum threshold.

Voting Simulation Settings

You won't normally need to adjust these, but if you want to make votes happen quicker or something, you'll change these.

VOTING_TIMEOUT 300
Number of seconds before a vote times out. A vote will time out if nobody votes either way and action will not be taken.
VOTING_START_DECAY 60
Number of seconds after that the non-voters start to get ignored
VOTING_DECAY 60
One non-voter is ignored everytime this many seconds pass
VOTING_SPAM_ISSUE 1.0
The spam level of issuing a vote.
VOTING_SPAM_REJECT 5.0
The spam level of getting your vote rejected.

IP Banning

Starting with version 0.2.8, banning users by IP address is supported in game.

todo: write this

Firewall

For older servers, you'll still need to use a firewall.

Installing a firewall is a big job, potentially. There are firewalls that are really rockin' and do all sorts of stuff, and there are firewalls that don't rock. In order to use a firewall to deal with unruly players, you'll need one that supports some sort of IP-based filtering, such as iptables in Linux. In that case, banning a player is a matter of figuring out their IP address and adding it to your firewall.

The most basic way of banning an evil doer is to just drop UDP packets from their IP address that are going to port 4534 (or whatever port your server runs on). For many admins, this is not only a complicated rule to write, but ineffective to deal with the player, so you'll probably find it better to just ban the IP address completely. Be warned, however, that a common way around this is for the evil doer to just turn off their cable modem (or dsl router) and turn it back on. The good news is that it's more inconvenient to them to do that than it is for you to add their new IP address to your firewall. :) The bad news is that this isn't a foolproof method of banning a user.

To help you, Armagetron Advanced supports some additional logging, listed here.

CONSOLE_DECORATE_ID 1
Decorates every line of console output with the client ID
CONSOLE_DECORATE_IP 0
Decorates every line of console output with the client IP

There is more good news, actually. Many consumer-grade NAT routers come with built-in firewalls or at least make available a firewall option, and will do the job for you--from a web browser! If you have such a beast, you should use it and save your players the hit of the evil-doers packets making another hop down the wire before being cut off.

Resources

Internet Speed Test