Almost 15 years ago, Star Wars: Knights of the Old Republic, the game many of us hold close to our hearts, was launched. The sequel to KOTOR, KOTOR II: The Sith Lords launched two years later in 2005. Both of these games, unsurprisingly, remain popular today, over a decade later.
Many believe that one of the reasons for their insane success is the ability to use cheat codes (console commands), these spice up gameplay and allow players to play the game the way they want it to be played. This article will show you how to enable the console in both versions of the game, how to open it, and how to use it (with an example). Use the links below to jump to a specific part, if you don't need to know everything:
Unfortunately, there's no in-game option to enable the console in KOTOR 1 or KOTOR 2, but it can be enabled pretty easily by adding a line to a configuration file. In both versions of the game, the process to enable cheats is almost identical.
First, make sure KOTOR is closed before continuing. If you're using Steam on PC or Mac, go to your library, right click "STAR WARS™ Knights of the Old Republic™" (or for KOTOR II, the equivalent), click "Properties", then click the "LOCAL FILES" tab at the top of the newly opened window, and finally, press the "BROWSE LOCAL FILES..." button to open your game files. The process is pictured below:
If you're not using Steam, navigate to the folder that you installed KOTOR or KOTOR 2 within. For KOTOR 1, this is usually in the "LucasArts" folder that can be found somewhere in "Program Files" on Windows. For Mac (via Finder), the location is usually "Library > Application Support > Knights of the Old Republic".
After opening the game files, if you're using KOTOR 1, you want to open the file "swkotor.ini" with Notepad or any other text editor. If you're using KOTOR 2, the file you want to open with Notepad or another text editor is "swkotor2.ini". These files are located in the main game folder (i.e. the one that opens when you click browse local files from Steam). If the file isn't opening with Notepad when you double click it on Windows, right click the file, click "Open With", and select Notepad from the list of applications.
Once you've got the swkotor.ini or swkotor2.ini file opened, scroll to the "[Game Options]" line (usually about 40 lines from the top). Add a new line below "[Game Options]" and add the following text:
After adding that line, that part of the file should look something like this:
Save the file, close it.. and you're done! You can now open up KOTOR or KOTOR II and use the console. Note that in KOTOR 2, the console is invisible (it still works, you just can't see it). Read below for help opening and using the console.
Thankfully, once you've got the console enabled, opening the console is a fairly swift process. As mentioned earlier in this tutorial, the console in KOTOR 2 is invisible - when you press the hotkey to open the console, it does open, you just can't see it! So to use the console in KOTOR 2, you'd hit the console hot key, type a command, hit enter, and it will run, but you won't see any console window like you would in KOTOR 1. You can check to see if your console is opened by pressing the hotkey, and then trying to move forward by pressing W - if the console is open, you won't move (because W would be typed into the console).
Simply press one of the following hotkeys (varies based on your keyboard layout):
With all the complicated stuff like enabling the console out of the way, you're ready to actually use cheat codes with the console! Cheat codes are typed into the console using your keyboard, and sent by pressing the ENTER key (also known as return). If you're on KOTOR 2, you'll not be able to see what you're typing (because the console is invisible), but commands are still typed with the keyboard and sent with the ENTER key (after pressing your console hotkey).
As an example, we'll show you how to use the giveitem command to give yourself an item - the Double-Bladed Lightsaber in this case. The Double-Bladed Lightsaber has the item code g1_w_dblsbr001 (you can find all item codes here). To give ourselves this item, we'd type giveitem, followed by a space, followed by the item code, and then hit ENTER, like so:
It's really that simple!
Now you've got to know the basics of cheat codes and the console, check out our cheats list for an entire list of all cheats from KOTOR 1 and KOTOR 2.