Server Administration

From Squad Wiki
Jump to: navigation, search

There are a number of commands that can be executed on a running dedicated server while being in-game. With these commands you can control how the server runs.

There are commands that a available to all player, even public players - those commands are called public commands. All other commands require the player to be assigned a specific access level by a server administrator.

In order to enter a command, you have to open the console. On an English keyboard you access the console by double tapping the ` (tilde) key on your keyboard. If this does not work for you, an easy workaround is to press the AllChat key J on your keyboard and then press backspace and remove the current command "ChatToAll" - now you have the console open and ready to use.

Admin Access Levels[edit | edit source]

The following table lists the existing access levels. Please note that all players have access to the public commands; there is no access level for public commands.

Access levels need to be assigned to individual users - see section "Adding Admins in Admins.cfg" for more details on this. Only the server administrators of the dedicated server in question can set these and they will only apply to this server.

Level Description
changemap Map commands
pause Match commands
cheat Access to some cheat commands
private Set server private
chat Admin chat
kick kick commands
ban ban commands
config Set server configuration
immunity Cannot be kicked or banned
manageserver Manage server / kill server
cameraman Spectate players
featuretest Commands being tested
reserve Reserved slot access
demos Record demo's (currently broken)
debug Debug commands
teamchange Change teams without penalty

Admin Console Commands[edit | edit source]

Difference between <NameOrSteamId> and "<BanLength>":

When it says "<TextToEntry>" you're supposed to put said text in " " When it says <TextToEntry> you're supposed to free text it.

Check AdminKick for further details.

Admin Command Access Description
AdminKick kick AdminKick "<NameOrSteamId>" <KickReason> (Kicks a player from the server)

Example: Adminkick "Guemi" Intentional TK - This command will kick the player Guemi with the reason Intentional TK. Notice how nickname is inside quotation marks but reason is free text.

AdminKickById kick AdminKickById <PlayerId> <KickReason> (Kicks a player with Id from the server)

AdminKickById 75 Camping enemy uncapable - This command will kick the player with the ID 75 with the reason "Camping enemy uncapable". Check ListPlayers command for how to find ID.

AdminBan ban AdminBan "<NameOrSteamId>" "<BanLength>" <BanReason> (Bans a player from the server for a length of time.  0 = Perm, 1d = 1 Day, 1M = 1 Month, etc)

Adminban "Hodor" "1M" You're attacking the enemy uncapable. One month ban. - This command will banned Hodor for one month and kick him with the reason stated.

AdminBanById ban AdminBanById <PlayerId> "<BanLength>" <BanReason> (Bans player with Id from the server for length of time. 0 = Perm, 1d = 1 Day, 1M = 1 Month, etc)

AdminBanById 75 "1M" Attacking main base - 1 month ban. - Same process here, but with player ID. For people with "weird" names. Check ListPlayers command for how to find ID.

AdminBroadcast chat AdminBroadcast <Message> (Send system message to all players on the server)

AdminBroadcast Always apologize for TK's! - Sends a broadcast with red text in the center upper part of the screen to all players. Which admins sends the command is also shown.

ChatToAdmin chat ChatToAdmin <Message> (Send system message to all admins on the server)

Same as all the other chats, but only admins see it.

AdminRestartMatch pause AdminRestartMatch (Tell the server to restart the match)
AdminEndMatch pause AdminEndMatch (Tell the server to immediately end the match)
AdminPauseMatch pause AdminPauseMatch (Tell the server to put the match on hold)
AdminUnpauseMatch pause AdminUnpauseMatch (Tell the server to take off the hold)
AdminKillServer manageserver AdminKillServer <Force 0/1> (Tells the server to stop execution)
AdminChangeMap changemap AdminChangeMap <MapName> (Change the map and travel to it immediately)
AdminSetNextMap changemap AdminSetNextMap <MapName> (Set the next map to travel to after this match ends)
AdminSetMaxNumPlayers config AdminSetMaxNumPlayers <NumPlayers> (Set the maximum number of players for this server)
AdminSetNumReservedSlots config AdminSetNumReservedSlots <NumReserved> (Set the number of reserved player slots)
AdminSetServerPassword private AdminSetServerPassword <Password> (Set the password for a server or use "" to remove it)
AdminSlomo cheat AdminSlomo <TimeDilation> (Set the clock speed on the server 0.1 is 10% of normal speed 2.0 is twice the normal speed)
AdminStats debug AdminStats (Retrieve stats from the server)
AdminAlwaysValidPlacement cheat AdminAlwaysValidPlacement <alwaysValid> (Sets the server to ignore placement rules for deployables)
AdminDisableVehicleClaiming cheat AdminDisableVehicleClaiming <0/1> (Set the server to disable vehicle claiming)
AdminAllKitsAvailable cheat AdminAllKitsAvailable <Valid> (Sets the server to ignore kit restrictions)
AdminNetTestStart debug AdminNetTestStart (Starts the network test and prints it to the clients logs)
AdminNetTestStop debug AdminNetTestStop (Stops the network test)
AdminDemoPlay demos AdminDemoPlay <FileName> (Plays back the demo recording, must have file from server)
AdminDemoRec demos AdminDemoRec <FileName> (Records gameplay, you must run this first)
AdminDemoStop demos AdminDemoStop (Stops recording and saves the demo to disk)
AdminProfileServer debug AdminProfileServer <SecondsToProfileFor> <bUseRaw> (Starts profiling on the server for a fixed length of time, after which the profiling data is saved to disk.)
AdminListDisconnectedPlayers ban AdminListDisconnectedPlayers (List recently disconnected player ids with associated player name and SteamId (Max. 15))
TraceViewToggle FeatureTest TraceViewToggle (Runs a trace from center of screen out to any objects and displays information about that object)

Public Commands[edit | edit source]

Command Description
ListPlayers ListPlayers (List player ids with associated player name and SteamId)

Use the player ID (not steamid) with AdminKickById or AdminBanByID.

ListCommands ListCommands (Prints out the information for all commands in the game.)
ShowCommandInfo ShowCommandInfo (Print out the details of a particular command)
ShowNextMap ShowNextMap (Ask the server what the next map is)
GiveUp GiveUp (Die and give up being wounded)
Suicide Suicide (Causes the player to commit suicide)
ChangeTeams ChangeTeams (Change teams to the other side)
ChangeTeamsWithId ChangeTeamsWithId <NewTeam> (Change teams to the specified team number, zero changes to the other side)
CreateSquad CreateSquad <Name> (Request the creation of a squad, specifying the name)
JoinSquadWithName JoinSquadWithName <Name> (Join a squad on our team with the following name)
JoinSquadWithId JoinSquadWithId <Id> (Join a squad on our team with the following id)
LeaveSquad LeaveSquad (Leave the squad we are currently in)
CreateRallyPoint CreateRallyPoint (Drop a rally point for squad members to spawn from)
ApproveVehicleClaim ApproveVehicleClaim (As a squad leader, tries to approve a vehicle clain made by a squad member attempting to enter a vehicle)
Chat Chat "<Message>" <ChatType=All|Team|Squad> (Broadcast chat message)
ChatToAll ChatToAll <Msg> (Chat to everyone)
ChatToTeam ChatToTeam <Msg> (Chat only to same team)
ChatToSquad ChatToSquad <Msg> (Chat only to same squad)
DisableHudWidgets DisableHudWidgets (Removes all widgets on the HUD)
DisableUI DisableUI (Removes the UI components from the screen)
Stat FPS Stat FPS (Draw frame rate on screen)
Stat Unit Stat Unit (Draws game, draw, and gpu times on screen)
HighResShot HighResShot <Resolution/Multiplier> (take a screen shot, e.g., "HighResShot 3840x2160" or "HighResShot 4")
r.SetRes r.SetRes <Resolution> (change screen resolution, "r.setres 1920x1080f")
Disconnect Disconnect (Disconnects from server)
Reconnect Reconnect (Reconnects to previous server)

Spectator Camera[edit | edit source]

The spectator camera (often also called "admin camera" or "admin cam"), a semi-free movement camera, is a very useful feature for clans and tournament hosts or if you want to have full camera control when recording gameplay videos of Squad.

You need to have access level "cameraman" in order to use the camera. There is one exception: on Firing Range all players can use the camera.

While in the camera, you soldier character will be invisible. When you exit the camera, you return to the soldier character.

If you want to record pure gameplay footage without any HUD elements, you can use the public commands "DisableUI" and "DisableHudWidgets".

If you want to watch from both team's sides, you will have to switch teams to see the other side.

OWI is constantly improving and adding functionality to the spectator camera, however please be aware of some known bugs and problems:

  • Very rarely when existing the camera you get glitched. In this case you will need to suicide to respawn.
  • While seated in a vehicle do not enter the spectator camera.
  • If, after existing the camera, your character arms do not move, you will need to suicide to respawn.
  • If you switch teams twice without leaving the camera you sometimes will completely glitch out and need to restart Squad.
  • If you use player stencils without having HUDViews turned on, the outlines will ghost.

The following table shows all available controls of the spectator camera. All controls only work if you have the spectator camera turned on.

Control Description
Shift + P Turn spectator camera on/off
w, a, s, d Move camera
Space Go Up
CTRL Go Down
Scroll Wheel (default) Forward: Increase movement speed

Backwards: Decrease movement speed

Left-ALT Immediately stop the camera movement
mouse Pan camera
press 1

then use Scroll Wheel

Change movement speed (default)
press 2

then use Scroll Wheel

Changes Field of View (FOV)
press 3

then use Scroll Wheel

changes focal distance of Depth of Field (DOF)
press 4

then use Scroll Wheel

changes DOF blur size
F Turn DOF on/off
6 Turn CaptureZones overlay on/off (grids visually show the capture zones)
7 Turn player stencils (outlines) on/off
8 Toogle HUDViews between the following states: ALL/FRIENDLY/ENEMY/OFF.

Upward triangle means alive, downward triangle means incapacitated or dead.

9 Turn player nametags on/off