SWAT 4 Server administration

5 posts / 0 new
Last post
Last seen: 1 month 8 hours ago
SWAT 4 Server administration

Found this on a forum, I tought it was worth having a copy here


in response to: The_Doorman
I noticed that while hosting the when another player joins tht "stat net" will almost fill my screen with data, i'm geussing I am getting stats on the player.
At this point I just turn stat net off.
Here is a link to another forum with some tips, I will paste them all here in case that forum shuts down and we loose the data.

Swat4 Server Resource and Information

Updated: 04-22-2005

This document is collected from the Swat 4 official forums and individual Swat 4 Server Admin contributions. It’s meant to be a collection of information, trick and tips to aid admins in setting up and managing their servers. Some of this information is from the Multiplayer Beta, other is extrapolated from Unreal Engine management tricks. Not everything in here has been tested and guaranteed to work. But it is the best that the community has come up with so far. If you find something that isn’t in here please let us know and we’ll be glad to add it. Likewise if you find something that doesn’t work let us know. If it’s verified that it does not it will be removed as invalid information. Thanks, [:FI:]FlimFlam.

I. Server Setup

Server Ports
From Swat4 Readme.txt
outgoing UDP and TCP traffic must be
enabled without restriction, and all UDP traffic (incoming and outgoing) on
ports 10480, 10481, 10482, and 10483 must be forwarded through to the hosting

Many commercial firewalls have an option to place particular computers in the
"DMZ", which disables network filtering and meets these requirements. If you are
having problems hosting behind a firewall, it is suggested that you try placing
your computer in the DMZ while hosting.

Users running Windows XP with Service Pack 2 may experience a warning from the
Windows XP software firewall when hosting a server. If given the option,
they must tell Windows XP NOT to block traffic for SWAT4.exe, or else they will
not be able to host a network game.

Dedicated Server Setup
FI_FlimFlam - 03:35pm Apr 10, 2005 PST
Essentially all you have to do is go into your local copy of the swat game and then choose host. Set up the server you want. Choose your server name, the gametype, maps, time limits, adminlogin, and such. Unless you like waiting along time between maps waiting on people to ready up you might want to reduce the time between rounds and the Mission Ready Time to under 1:00. Also unless you are setting this up for a LAN, then you want to change the "LAN/Internet" to "Internet". Then click on the "Launch As Dedicated Server" box. When you have everything set how you like, launch the dedicated server. This will save the configuration you have set and actually start the dedicated server. You will see a SWAT4 icon in the bottom right of the screen by the timeclock. You can right click on it and open the server console, or open the advanced options, or shutdown the dedicated server.
If you are launching the server on your local box, then all you have to do is foward the ports that are listed in the readme.txt file to that cpu. Otherwise shut down the dedicated server (see above), and copy/upload the entire SWAT install directory to your hosting box. This will be easier if you compress it to a .zip or .rar file - it's only about 800MB.

Finally on the remote box, launch the dedcated server .exe file to start the dedicated server. To change server setup, I think you can just login from the settings in game and change the server to however you want.

If you want to change the gametypes, then you will have to change the settings locally and then upload the files that have changed. Probably the DedicatedServer.ini and the SwatGUIState.ini and the Swat4.ini but there may be more. Just go into Windows Explorer in the install directory under Content\System and sort by date time and look for the modified files. Then upload those to your dedicated server. I have made addittional directories under the toplevel swat directory that contain configs for each gameplay type (VIP, COOP, Barricaded Sus, and Rapid Dep) and if I want to change modes, I just shutdown the dedicated server, copy the configs out of those into the system directory, and restart.

Another thing to keep in mind if you want to run multiple servers you need to do a couple of things. Copy or extract all the files into a second SWAT4 directory like "SWAT4 DS2". Next you need set the server ports at least 4 ports apart. For example the dedicated server default port in the Swat4DedicatedServer.ini under the [URL] section from 10480 to 10484 for the second server. Then you should be good to go for the second server.

Setting Dedcated Server Admin Password
FI_FlimFlam - 06:43am Apr 12, 2005 PST
SwatGUIState.ini. Open it in a text editor and hit ctrl-F for search and look for "password" should be near the end of the document.

Changing/removing Locked server password
FI_FlimFlam - 11:36am Apr 22, 2005 PST
There is no command that you can do that with in either the ingame console or dedicated server console. You will have to stop and edit the SwatGUIState.ini file. Under [SwatGame.ServerSettings] on the following lines:
Change the password line to whatever you want. If you want to remove the password, delete the password and change the bPassworded=True to False. Then restart the server.

Autodownload Activation
[icarus_uk] 11:32am Apr 7, 2005
I'm told there is a bug in the ini files that stops the server map download from working. The following changes should re-activated the autodownload feature so clients can download custom maps from a server;
In SWAT4.ini
[IpDrv.TcpNetDriver] AllowDownloads=False
Needs to be changed to;
[IpDrv.TcpNetDriver] AllowDownloads=True
This needs to be done on the client as well, so you can autodownload maps.
Those running a dedicated server, the fix should be applied to the Swat4DedicatedServer.ini file as well.
These simple fixes should activate autodownload, let me know if they work.
Thanks go to Neo, who made me aware of the problem. Hopefully this can get set true as default in a upcoming patch.

8 to 10 man Coop servers (and higher adver player count)
Tactical Gamerz, quoted from http://www.swat-4.com
Here is the process: Edit your SwatGUIState.ini file by changing all the necessary settings for cooperative gameplay and choose your maps. Next you must set the MaxPlayers=10 and then change the properties of the file to READ ONLY.

Custom Missions Online
C06alt - 06:10am Apr 11, 2005 PST
There is a method of playing a custom mission in coop. There are some drawbacks though. First This method only works on a listen server (as in not dedicated). Second You can only play one map in rotation at a time. For this exsample we will use SP-Foodwall as the map or "Food Wall Restaurant".
• 1.Make a quick mission using "Food Wall Restaurant" as the map.
• 2.Save the mission and return to the main menu.
• 3. Go to the Host screen and set up a coop game with only SP-Foodwall in the Map rotation list.
• 4. Dont start the game at this point, Click the Main Menu button.
• 5. Go to Play Quick Mission.
• 6. Click Load mission Pack.
• 7. Click on the Mission you made for "Food Wall Restaurant"
• 8. Do NOT Click Start.
• 9. Open the console with the "'" key or the "`" key
• 10.type Start SP-FoodWall?Listen
The game will load and If you have no problems hosting before your game will apper in the GameSpy Browser. When the Round ends the game will reload your custom mission. If you make changes to the rotation or play any other map your custom settings will be gone until you repeat all steps other then making the mission. Just two things I would like people to note at this point. Its more chalenging and enjoyabil to play AI with high moral then high skill or both. Dont ever complain about performance issues either on these forums or to tech support while using this method. Although ive played levels with 35 bad guys 2 clients connected and i only have 128Kb upload. No significent change in ping. Finaly this method has never crashed my game. The Client does not need to have the map or need to allowdownloads.In fact anyone can connect by default. Here is a list of Map names to go with the map file names which you must match up correctly to start your level.
• MissionName="SP-FoodWall"
• FriendlyName="Food Wall Restaurant"
• MissionName="SP-FairfaxResidence"
• FriendlyName="Fairfax Residence"
• MissionName="SP-ConvenienceStore"
• FriendlyName="Qwik Fuel Convenience Store"
• MissionName="SP-ABomb"
• FriendlyName="A-Bomb Nightclub"
• MissionName="SP-AutoGarage"
• FriendlyName="Victory Imports Auto Center"
• MissionName="SP-RedLibrary"
• FriendlyName="Red Library Offices"
• MissionName="SP-Casino"
• FriendlyName="Northside Vending and Amusements"
• MissionName="SP-JewelryHeist"
• FriendlyName="DuPlessis Wholesale Diamond Center"
• MissionName="SP-Tenement"
• FriendlyName="Children of Taronne Tenement"
• MissionName="SP-Hospital"
• FriendlyName="St. Michael's Medical Center"
• MissionName="SP-ArmsDeal"
• FriendlyName="The Wolcott Projects"
• MissionName="SP-Hotel"
• FriendlyName="Old Granite Hotel"
• MissionName="SP-DNA"
• FriendlyName="Mt. Threshold Research Center"

Changing Server Text Color in Server Browser
L etranger - 03:56am Apr 16, 2005 PST
**Note in the following section substitue { for [ as that the formatting on this website uses brackets and will not show some of the characters if used here.
in front of text, its text format code like {u}{b}{i}
ccnemrod - 08:31am Apr 16, 2005 PST
in the server name in the swatguistate.ini file
FI_FlimFlam - 12:48pm Apr 16, 2005 PST
You use the hexidecimal color number. For example in Swatguistate.ini under [SwatGame.ServerSettings] in the line for ServerName=, add the [c=00ff00] in front of your server name to make your server name appear green in the ingame Browser. Yellow would be ffff00, blue is 0000ff, and red is ff0000. You can use different shades by finding the corresponding hex color number you want from just about any graphics program that supports hexidecimal color numbers such as photoshop or paintshop pro. Likewise for underline you would add a {u} infront of the section you want to underline.

The downside of this is that ingame when you hit esc to see the scores or mission status, your server name will not show the color but will show the brackets and color code infront of your server name. Like this: "[c=00ff00]{u}Fatality Inc. Coop 1". If that doesn't bother you then run with the colors.

II. Server Management

Dedicated Server Console Commands
C06alt - 09:23am Apr 8, 2005 PST
//Change Map(Dedicated Server Only)
• ServerTravel MP/SP-Mapname
//Restart Map
• ServerTravel?Restart
//Make All Players Ready
• set SwatPlayerReplicationInfo PlayerIsReady True
//End CurrentRound(not coop)
• set SwatGameReplicationInfo ServerCountdownTime 0
A better way to quickly move on to the next round in coop and all other game modes
• Set SwatRepo bShouldPerformQuickRoundReset True

In-game console commands
From Swat4 Readme.txt and http://community.vugames.com/WebX?14@116.N4mTeu4unD2.10449275@.1dd98641/14
C06alt - 12:38am Apr 9, 2005 PST
Heres all the commands availabil to a logged in admin
//Kicks a player
• Kick Playername
//Kicks a player and bans them
• KickBan Playername
//Changes map while keeping clients
• Switch MP-Mapname
//Makes all players ready
• StartGame
//Ends the current round
• AbortGame
//Restart the round and reset the scores?
Switch MP-WhateverMapYourPlayin
Slamelov - 02:39am Apr 14, 2005 PST
and for restart a map, type restart – (could not get to work- FF)
Fritze - 10:55pm Feb 19, 2005 PST
Derived from here;
So far only some work in beta demo.
In console (bring up console with tilde key "~";
stat fps - gets fps in right hand corner
stat net - gets ping, etc in left hand corner
stat game - gets game stats, bunch of game related stuff.
stat all - gets , well, all the stats,lol.
stat none - turns them off.
Possible bug using switch command – From Agent at TWL
DO NOT use the admin commands to switch maps..thats the bug u get...use the server console to change maps..just double click on a map then hit resart...your server willg et a lag spike..but in a few sec it recovers then switches

Removing Banned Players/IP addresses
C06alt - 11:24pm Apr 21, 2005 PST
For a listen server where you as the host are playing the game it would be Swat4.ini. For a dedicated server its as you said in Swat4DedicatedServer.ini.Under the [Engine.AccessControl]section.
*Note IP Banner and Slippery Jim’s KickBan Utility have a GUI interface for managing Bans. See links in the Resources Section.

Swat 4 Player Tracking System
thowle - 09:45pm Apr 16, 2005 PST
Okay, as of Saturday, April 16th at 11:43 PM CST the new SWAT 4 Player Tracking System is live.
Everyone who plays SWAT 4 should go and register at http://www.ugk-swat.com and download the application.
Anyone who wishes to publish the link to the system to websites so that we get more people who play SWAT 4 to register I'd appreciate it very much.
Soon I'll be coming out with a module in PHP and ASP so that you can get player and server information on your website.
If you have any comments or questions please E-Mail me at thowle@elwoh.com

III. Troubleshooting

Server not appearing in the server list
PSX - 09:25am Apr 14, 2005 PST
(Make sure you have launched your dedicated server at least once to create the ini files mentioned below for the first time.)
My dedicated server's settings always load from the SWATGUIState.ini (NOT DefSWATGUIState.ini) and SWAT4DEDICATEDSERVER.ini. I found that when I used 'Advanced options' from the right click menu of the dedicated server icon, my changes were NOT affecting the running of the server (it probably edits DefSWATGUIState.ini, instead of SWATGUIState.ini).
My problem was the server not appearing in the server list - I fixed this by making the following two changes in SWAT4DEDICATEDSERVER.ini:
DoBeacon=false -change this to 'true'
DoUplink=false -change this to 'true'
You will NOT be able to see the server in the Internet page of the serverlist, if you are trying to join with a computer running on the same LAN as the server. Use the LAN page to join instead.

Running a Dedicated Server for the public yet playing on the same LAN
Essentially hosting and playing on the same network but yet having the Server open to external networks for others to play on. Solution use internal IP address to connect, not the WAN IP. Another possible solution is to join by Direct IP.
NERV - 01:15am Apr 12, 2005 PST
but when I connect to the server to play with others I run into problems on my client machine, after a couple of minutes juring play my character will freeze and I can move anymore although I can still type messages.. the only way to fix the problem is to end the round and start again or disconnect.. but the same thing happens next round.
NERV - 11:49pm Apr 12, 2005 PST
... when I connect using the internal ip address of the server everything is good no freezing.

Clients lose connection with host when changing maps
ckline (Developer) - 08:14pm Apr 12, 2005 PST
Lead Programmer / Irrational Games Boston / SWAT4
The problem is not when the server (dedicated or non-dedicated) is slow, the problem is when the client that is trying to connect takes too long to load. On thing you could try is, on the server, telling the game to have a longer "grace period" while waiting for a player to connect. You can do this by raising the value of ConnectionTimeout in Swat4.ini. This value is in the [IpDrv.TcpNetDriver] section.
Try setting it to a larger value, like 120 or 240. The value corresponds to the number of seconds after the server finishes loading the map that the server will wait for a client to finish loading. If a client takes longer than that period to finish loading, the server will assume that the connection was lost and the client will not be able to connect.

Last seen: 10 years 11 months ago

This should really be in members rasa, good find though!

Last seen: 2 months 2 weeks ago

and the award for the longest post EVER goes to .............................


Last seen: 1 year 11 months ago

Did someone break up one HUGE rasa post into these 3 or did he actually post 3 long topics lol.

Last seen: 1 month 8 hours ago

I posted three. They aren't written by me, I just tought the were good to have a copy of.