Command Line Switches & Console Commands


Jedi Knight Command Line Switches
SwitchExampleDescription
?-?
/?
Although this is listed as a command in the exe, it's either not supposed to do anything or it doesn't work.
debug con-debug con
/debug con
Outputs JK's debugging text to a console window. Closing the console closes JK, and vice versa.
debug log-debug log
/debug log
Outputs JK's debugging text to a .log file in JK's install directory.
debug none-debug none
/debug none
This is a valid switch, but apparently it doesn't do anything.
devmode-devmode
devmode
A [debug] list will appear in the SP section allowing you to play MP levels without hosting. This switch also enables the advanced display options. Note that devmode doesn't use a forward slash.
displayconfig-displayconfig
/displayconfig
The display options will have an 'advanced' set of selections allowing you to change the engine's rendering.
dispstats-dispstats
/dispstats
Jedi Knight will display ingame statistics about the level and the player at the top of the screen. Notes.
framerate-framerate
/framerate
Jedi Knight will display the game's framerate at the top of the screen.
nohud-nohud
/nohud
This is a valid switch, but when JK first tries to render a frame in the game, it will crash.
path-path folder
/path folder
Jedi Knight will search for resources in the given folder before looking at the resource and episode folders. This folder is assumed to be in JK's install directory.
verbose-verbose
/verbose
This is a valid switch, but JK crashes when it's used.
windowgui-windowgui
/windowgui
Menus and cutscenes will be displayed inside a window instead of being fullscreen. Ingame windowing isn't changed.


Jedi Knight Console Commands
CommandExampleSP / MPDescription
5858lvr5858lvrSPAll map. Every thing in the game will be visible on the map.
bactamebactameSPHeal. The player will be given full health and shields.
coordscoordsbothPrints out the player's position, PYR, and sector in this form: POS [X, Y, Z] PYR [P, Y, R] Sector: X.
deeznutsdeeznutsSPLevel up. Gives the player 100 mana and ups his force ranking by 2 - if you're at rank 8 and you use this command, you will go back to rank 2 with 100 mana.
dispstatsdispstatsbothJedi Knight will display ingame statistics about the level and the player at the top of the screen. Notes.
endlevelendlevelMPEnds the current level. Host only.
eriamjheriamjhSPFly mode. The player will not be affected by gravity. Pressing the Jump and Crouch keys will make the player move up and down. Type the command again to turn fly mode off.
framerateframeratebothJedi Knight will display the game's framerate at the top of the screen.
hyperhyper #SPWarps the player to walkplayers placed throughout the level - hence the template name of 'walkplayer.' The number given is 1 for the first walkplayer, 2 for the next, and so on.
imayodaimayodaSPLight Master. Gives the player a force ranking of 2, 100 mana, and one star on all of the light and neutral powers.
jediwannabejediwannabe on
jediwannabe off
SPInvulnerability. Player can only be damaged by surface collision.
kickkick playerMPKicks the given player. Host only.
killkillbothKills the player.
pinotnoirpinotnoir #SPEnds the current level and takes you to the specified level in the episode. E.g., if you type 'pinotnoir 1' you will be taken to the first level in the episode.
playersplayersbothPrints out the walkplayer numbers and some information about them - sadly, only the last four show.
racoonkingracoonkingSPUber Jedi. Gives the player a force ranking of 2, 100 mana, and one star on every force power.
red5red5SPGives the player all weapons, full ammo, and 100 mana.
sithlordsithlordSPDark Master. Gives the player a force ranking of 2, 100 mana, and one star on all of the dark and neutral powers.
slowmoslowmo on
slowmo off
SPSlow Motion. Slow's the gamespeed down.
teamteam #MPChanges your team to the given number.
thereisnotrythereisnotrySPEnds the current level as a success.
ticktickMPDisplays the current tick rate.
trackshotstrackshots on
trackshots off
bothShows you what surface, sector, and material your projectiles hit.
versionversionbothDisplays the Jedi Knight version (1.0) and release date.
wampratwampratSPAll Items. Gives the player the maximum amount he can carry of each item.
warpwarp x y zSPWarps the player to the given coordinates.
whiteflagwhiteflag on
whiteflag off
SPDisable AI. Turning whiteflag on will stop the AI from reacting to the player.
yodajammiesyodajammiesSPMana. Gives the player 400 mana. Remember that force_well regulates mana so at lower ranks it will be taken away from you.


Using Switches

To use a switch, add it after the command that launches JK.exe. You can do this with the Windows run box, with a batch file, a console, or a shortcut. Shortcuts are easiest. Just create a shortcut to JK.exe and view its properties. On the shortcut tab, find the target line. There you'll see the path of the Jedi Knight executable. Write in the switch after the path. For example: C:\games\jedi knight\jk.exe -windowgui

You can use as many switches as you need, and the order isn't important. As you can see in the examples, the character used to make the text as a switch can be either a dash or a forward slash - JK will recognize them both. The only exception is devmode, which doesn't have the forward slash.

Using Console Commands

To run console commands, just press the talk key (usually 't') in a singleplayer game, and type the command. For commands in multiplayer, press the talk key and then press tab to enter the command. This should be obvious, but it's explained here just to make sure everything's covered.