Multiplayer Server Commands

From Bohemia Interactive Community
Revision as of 15:48, 29 October 2024 by .kju (talk | contribs) (added more info about limitOut provided by Dedmen)
Jump to navigation Jump to search
Arma Reforger
For Arma Reforger see Arma Reforger:Server Management.


It is recommended to use BattlEye's RCon tool to administrate the server.

RCON cannot be affected by in-game script exploits.

It uses custom port which one may easily secure by firewall rules!

HowTo

You can access the command line by pressing the chat key (default /).

In the chat input window you can type any of the following commands in and confirm them with the enter key.

You have to add the # character before the command.

The commands can be used in SQF scripts by using serverCommand.

Troubleshooting:

Some commands are confirmed via a message in the console.
If you enter a command that is properly formatted, and you see no confirmation of the command, then an error may have occurred.

Check your server log for potentially more information why it failed (e.g. one or more of your mission files is corrupt or has an error which prevents the Missions Lobby from loading, or may prevent other commands like #restart or #reassign from executing).


Commands

The following commands are available to you once you have connected to a server:

Admin

Command Example Description
#login

#login password

#login

#login adminPW

Log in as the admin. Without password only possible if you are listed as an admin[] in Arma 3: Server Config File#Server_Options
#logout Admin log out.
#mission filename

#mission filename difficulty

#mission myDM.intro

#mission myDM.intro Veteran

Select mission with known name and set the difficulty. Difficulty parameter is optional and if not set, current difficulty is kept.
#missions Allows selection of mission on shown list of available missions (all or those inside missionWhiteList[] = {}; within server.cfg).
Note: this will trigger `missionEnd` (so if server.cfg is set with e.g. MissionsToServerRestart or MissionsToShutdown threshold, the server may immediately restart/shutdown)
#restart Restart mission.
#reassign Start over and reassign roles.
#shutdown Shuts down the server immediately
#restartserver Shuts down and restarts the server immediately (since Arma 3 v1.66)
#shutdownaftermission Shuts down the server after mission ends (since Arma 3 1.72.142200)
#restartserveraftermission Shuts down and restarts the server after mission ends (since Arma 3 1.72.142200)
#init Reload server config file loaded by -config option.
#exec ban name

#exec ban ID
#exec ban Player#
#exec ban "user reason"

#exec ban nickName

#exec ban 47114712
#exec ban 3
#exec ban "3 Griefing"
Arma 3 logo black.png2.18 #exec ban """Some Username""" ""Some Ban Reason Text"""

Allows you to ban a player. Their ID will be added to the ban.txt file.
#kick name

#kick ID
#kick Player#
#kick user reason

#kick nickName

#kick 47114712
#kick 3
Arma 3 logo black.png2.18 #kick "Some Username" "Some Kick Reason Text"

Allows you to kick a player.
#monitor (interval in sec) #monitor 1 Shows performance information of the server. Interval 0 means to stop monitoring.
Values description
Traffic
G Guaranteed messages
NG Non-Guaranteed messages
Player info
L lobby
R role selection
B briefing
G in-game
D debriefing
#monitords (interval in sec) #monitords 1 Shows performance information in the dedicated server console. Interval 0 means to stop monitoring. (since Arma 3 v1.64)
#debug (interval in sec) #debug 30 Default interval is 10 seconds.
#debug on (command) #debug on Console

#debug on TotalSent
#debug on UserSent
#debug on UserInfo
#debug on UserQueue
#debug on JIPQueue

The available commands are:
Console - All server console prints, are forwarded to your client. Send to submitter what's on server console. Works as DebugAnswer for all writes into the console.
TotalSent - Every debug interval, tells you the bits per second, msg per second. Send/Receive for the whole server
UserSent - Every debug interval, tells you the bits per second, messages per second. Send/Receive statistics for every player
UserInfo - Every debug interval, some statistics, for every player
UserQueue - Every debug interval, Info about how many bytes/messages are currently queued up, per player
JIPQueue - Every debug interval, the number of messages in JIP queue's

Each command can be disabled by the use of the off parameter e.g. #debug off UserSent
Each command differs a bit - some output to screen, some to log file etc.
See below for example output.

You need some debugger capable of catching OutputDebugString running on the client machine.
A very small and easy to use called DebugView is available on the SysInternals website.
You launch this debugger, then launch ARMA client, connect to the server, and issue any of the commands.

#debug off <OPTION> #debug off TotalSent Disables the specific debugging <OPTION>. See available options above.
#debug off #debug off Disables all debugging options.
#debug checkFile (PATH\TO\FILE.PBO) #debug checkFile Expansion\Dta\ui.pbo Trigger integrity check on filename.
#debug von #debug von Triggers VoN debug mode. Outputs into logFile defined in server config as e.g. logFile = "server_console.log";. See below for example output.
#debug limitOut bitsPerSecond #debug limitOut 100000 Change bandwidth limit (in bits per second). Must be larger than 0. You get response message: "Outgoing bandwidth limited to %d B/s (%d bps) per client".
#debug jipPerf #debug jipPerf Dumps the JIP queue.
#maxdesync (amount in %) #maxdesync 95 Set the maximum accepted desynchronisation
#maxpacketloss (amount in %) #maxpacketloss 50 Set the maximum accepted packet loss
#maxping (time in ms) #maxping 250 Set the maximum accepted ping
#dctimeout (time in sec) #dctimeout 60 Set the disconnect timeout
Arma 3 logo black.pngPROF #captureframe The current frame on the server is captured and written to a log file in the same directory as the .rpt file. See diag_captureFrameToFile for more info.
Until 2.20 Arma 3 logo black.pngPROF on client was required to trigger #captureFrame command on server. Starting Arma 3 logo black.png2.20 they can mismatch. You can trigger #captureFrame on a Arma 3 logo black.pngPROF server (always required), coming from a Arma 3 logo black.pngPERF client for example.
Arma 3 logo black.pngPROF #captureslowframe threshold frameOffset section #captureSlowFrame 0.3 1 total equal to diag_captureSlowFrame ['total', 0.3] Captures the current frame on the server if it exceeds the set threshold in seconds and get written to a log file in the same directory as the .rpt file. See diag_captureSlowFrame for more info.
Arma 3 logo black.pngDIAG #logEntities Creates a log file containing the list of all game entities in scene. See logEntities for more info.
Arma 3 logo black.pngDIAG #exportJIPqueue Creates a log file containing an overview on all JIP (network) messages currently in the JIP queue. See exportJIPMessages for more info.
New admin commands since Armed Assault:
Command Description
#exec server side command Execute administration scripting command. Only works on dedicated servers.
#lock Locks the server, prevents new clients from joining.
#unlock Unlocks the server, allows new clients to join.


"#debug von" sample

server_console.log

*** VoN Topology Diagnostics ((***
=Player=: #2
P2PManager: Time: 13:38:48 waiting edges: 0, active negotiations: 0
Matrix:
  3056006: #2
  #2: 3056006
Cliques:
  3056006,#2
Version: 1.60.86277
Private: 192.168.178.21
Connections:
  3056006: Direct P2P, 5 KA, snd: 10 sec, rcv: 10 sec, (192.168.178.21:2317) snd=0 rcv=0(0) Repl(-5,0,0)
Cliques:
  3056006,Unknown
=Player=: 3056006
Version: 1.60.86277
Private: 192.168.178.21
Public: 77.4.35.154
Connections:
  #2: Direct P2P, 5 KA, snd: 10 sec, rcv: 10 sec, (192.168.178.21:2305) snd=0 rcv=0(0) Repl(-5,0,0)
Cliques:
  3056006,Unknown
*** VoN Topology Diagnostics ))***


"#debug on <OPTION>" sample

DebugView

#debug on TotalSent
// Send/Receive for the whole server. bps = Bits per second. Msgps = messages per second.
** Total: sent 1447 bps (2.10 Msgps), received 3788 bps (6.10 Msgps)

#debug on UserSent
// Send/Receive statistics for every player. bps = Bits per second. Msgps = messages per second.
playerName: sent 1531 bps (2.30 Msgps), received 1259 bps (1.70 Msgps)

#debug on UserInfo
// Some statistics for every player.
__SERVER__: Info Unknown player ID = 2
playerName: Info ping   0ms(   0,   1) BWfee  286Kb(   3, 204,   3) lost22.2%%(  2) queue   0B(   0) ackWait  0(0.0,0.0)

#debug on UserQueue
// Info about how many bytes/messages are currently queued up for every player.
__SERVER__: Queue 0 B (0) 0 B Guaranteed (0), Desync 0
playerName: Queue 0 B (0) 222 B Guaranteed (3), Desync 0

#debug on JIPQueue
// The total number of messages in JIP queue. As well as amount per message type.
AddInitAndRemoveOverridden  statistics ... total messages = 2543
110 ... Type_10
45 ... Type_31
57 ... Type_53
193 ... Type_54
11 ... Type_56
11 ... Type_57
52 ... Type_59
11 ... Type_60
562 ... Type_64
5 ... Type_65
11 ... Type_183
10 ... Type_187
422 ... Type_248
167 ... Type_272
34 ... Type_273
1 ... Type_274
652 ... Type_291
1 ... Type_295
5 ... Type_296
5 ... Type_307
2 ... Type_308
10 ... Type_324
2 ... Type_328
2 ... Type_329
2 ... Type_330
73 ... Type_337
35 ... Type_360
10 ... Type_364
1 ... Type

Player

Command Example Description
#vote missions Users can vote for the mission selection.
#vote mission (name) #vote mission myD.intro Users can vote on a particular mission to loaded.
#vote admin (name/ID/PLR#) #vote admin nickName

#vote admin 47114712
#vote admin 3

Users can vote an admin to control the server.
#vote kick (name, ID or Player#) #vote kick nickName

#vote kick 47114712
#vote kick 3

Users can vote to kick off an individual.
#vote restart Vote to restart the mission.
#vote reassign Vote to reassign.
#userlist Displays the list of users on the server (use PgUp to scroll up).

Battleye

Command Description
#beclient players Displays the list of GUID's of all players on the server.
#beclient guid Show your own GUID.

Arma 3

In Arma 3 #exec kick and #exec ban commands require quotes (string) for Name, UID or Player#. To do this for the UID or Player#, use format command to turn the user ID into a string.

#exec kick "5"
#exec ban "imah4x0r"
#exec kick "938679499494"

#kick command can still be used either way:

#kick imah4x0r
#kick "imah4x0r"

In case of banning, ban.txt file is created in root Arma 3 directory that contains a list of banned UIDs. To unban a user by UID (UID is the only option) or to clear the ban.txt:

#exec unban "98749837498374"
#exec clearbans