RCON

From Jedi Knight Wiki | JKHub
Revision as of 14:50, 31 January 2023 by Circa (talk | contribs)

RCON is a facility in Jedi Academy and other Quake III-based games which allows server administrators to run commands on a server remotely.

Mods like JA+ made being an admin of a server much easier for using commands like kicking, banning, etc. but they aren't needed to be a successful admin. Basic commands are built right into the game, but can be hard to remember if you're new to being an admin.

How to use RCON

The admin access method is called "rcon" which is short for remote control. The only way to use any rcon command is to set an rcon password in your server's server.cfg file like so:

rconpassword "password"

Replace the word password with one of your choice, leaving the quotation marks.

Now that you have a password, you must log into rcon before using any of the below commands. To log in, join your server, open the console, and type the same command as above, /rconpassword password, but replace password with your password.

Now you're logged in and ready to control your server. Here are the basic commands you'll be able to use.

Game and match management

The commands below are for changing rules for the current game in session. Most of these require using /rcon map_restart to take effect. The game will remind you, if needed.

/rcon map_restart

Restarts the map after 5 seconds. You can add a number if you want it to be more or less then 5 seconds. (0 = instant map change)

Example: \rcon map_restart 10

/rcon map mapname

Example: /rcon map mp/ffa1

/rcon devmap [mapname]

For cheats enabled.

Example: /rcon devmap mp/ffa1

/rcon g_gametype X

Changes the current game mode. Each mode has a number and are as follows:

0 - Free For All

3 - Duel

4 - Power Duel

6 - Team Free For All

7 - Siege

8 - Capture the Flag

Time limit:

/rcon timelimit XX

Changes the time limit in minutes

Example: /rcon timelimit 10

\rcon fraglimit XX 

Changes the frag (kill) limit - 0 is no limit

\rcon capturelimit XX

Sets the number of flags that should be captured in CTF in order to win.

\rcon forcetoggle

You can type this in the server console to see the list of options and proper usage. This command basically allows you to toggle all force powers on/off at your will.

\rcon timescale

Set the ratio between game time and real time. Setting less than one (i.e. 0.5) makes everything go slower, setting higher then one (i.e. 1.5) makes everything faster. Default is 1.

Note: best is not to set this higher then 2. Your server will start to lag like crazy and might crash eventually

/rcon g_weaponDisable X

Nothing is disabled if set to zero. Lightsaber only if set to 524279. The number is the total of a bitfield with 16 bits, each bit representing a weapon.

/rcon forcetoggle X

You can type this without a number in the server console to see the list of options and proper usage. This command basically allows you to toggle all force powers on/off at your will. Replace X with the number you want.

/rcon g_forcepowerdisable X
2=Disables force jump
8=Disables force push
16=Disables force pull
4=Disables force speed
16284=Disables force sense/seeing
32768=Disables saber attack
65536=Disables saber defense
131072=Disables saber throw
1024=Disables force absorb
1=Disables force heal
512=Disables force protect
32=Disables mind trick
2048=Disables team heal
64=Disables force grip
8192=Disables force drain
128=Disables force lightning
256=Disables force rage
4096=Disables team energize
/rcon disable_item_medpak_instant 1

Disables the medpack pickups. Note the spelling of "medpack"

Here's the entire list of pick up items you can disable. To enable, set them to zero.

disable_item_medpak_instant "1"

disable_item_shield_lrg_instant "1"

disable_item_shield_sm_instant "1"

disable_ammo_blaster "1"

disable_ammo_metallic_bolts "1"

disable_ammo_detpack "1"

disable_ammo_powercell "1"

disable_ammo_rockets "1"

disable_ammo_thermal "1"

disable_ammo_tripmine "1"

disable_item_force_boon "1"

disable_item_force_enlighten_dark "1"

disable_item_force_enlighten_light "1"

disable_item_medpac "1"

disable_item_seeker "1"

disable_item_sentry_gun "1"

disable_item_shield "1"

disable_item_ysalimari "1"

disable_weapon_blaster "1"

disable_weapon_bowcaster "1"

disable_weapon_demp2 "1"

disable_weapon_det_pack "1"

disable_weapon_disruptor "1"

disable_weapon_emplaced "1"

disable_weapon_flechette "1"

disable_weapon_repeater "1"

disable_weapon_rocket_launcher "1"

disable_weapon_saber "1"

disable_weapon_stun_baton "1"

disable_weapon_thermal "1"

disable_weapon_trip_mine "1"

User management

The commands below are for managing players on the server.

\rcon status 

Shows the client number (num), score, ping, player name (name), client IP address (address), and port connected through (qport). Client number is used in conjunction with the kick/clientkick command below.

\rcon clientkick XX 

Replace XX with the ID number of the player you wish to kick. ID numbers can be found with rcon status.

\rcon kick [player's name or ID number]

The ID number of the player is found when you have already done an rcon status. ID number isn't always reliable, keep in mind.

Once this variable is set, you can ban IP addresses from the rcon using the below command.

Example: /rcon kick 3

\rcon addip XXX.XXX.XXX.XXX

Adds this IP address to the ban list. Replace the X's with the IP address found with /rcon status

Example: /rcon addip 244.212.532.102

\rcon addip XXX.XXX.0

Bans the entire subnet, which bans everyone in the 289.292.0.XXX network. Effective for banning problem players who have a dynamic IP address. Yes, you probably can ban the entire subnet, but you'll loose a lot of potential players.

Example: /rcon addip 244.212.0

\rcon removeip XXX.XXX.XXX.XXX

Removes this IP address from the ban list.

Example: /rcon removeip 289.292.291.283

\rcon g_banips

Shows the IP banlist in console.

The below settings are best set in your server.cfg but can be fun or needed to change ingame too.

/rcon g_forceregentime X 

Makes your force bar go back up very quickly.

Example: /rcon g_forceregentime .1


g_friendlyfire 1

Allows you to hurt your own allies with force powers or weapons other than your lightsaber

g_friendlysaber 1

Allows you to hurt your own allies with your lightsaber

Recommend friendly damage off for casual play but enable for a hardcore feel or if your teammate will not stop team bumping you and needs to be taught a lesson.

g_saberdamagescale X 

Affects how much damage lightsabers do. Setting to 0 makes everyone invulnerable. Default is 1 on basejka. Set to .8 for slightly more balanced damages while still feeling deadly.

There are other commands you can use in-game that can be found in the server.cfg file in your server. ​