STAR WARS™ Knights of the Old Republic™ II: The Sith Lords™

STAR WARS™ Knights of the Old Republic™ II: The Sith Lords™

View Stats:
LadyGrelka Jan 8, 2023 @ 2:56am
console does not work
As the title says the console does not work. I added EnableCheats=1 to Game Options in the swkotor2.ini use the tilde key (on a US keyboard), I know the console is invisible, start typing the cheat and my character moves and my item menu opens (I rebound my inventory key to E for ease of access) I have looked all over and have found others with the same problem but no solution for said problem.
< >
Showing 1-15 of 15 comments
Vennek Jan 8, 2023 @ 6:22pm 
Try this guide:
https://gameskeys.net/kotor-1-kotor-2-console-commands/
It's a somewhat more detailed than most guide,
The steps you seem to have taken seem about right, but the console did not come up ingame because when you tried to make it come up, you said when you typed into what you hoped was it that you saw your character move on the screen. Character movement is disabled when the console is being typed into. So it didn't work.

You may have to navigate to your local files for the game, click on the .ini file and make sure the "Read Only" option is unchecked. That's all I can think of.
cerberusiv Jan 9, 2023 @ 2:44am 
Sounds like the tilde key is not mapped where you expect it. If you are able to move your character then the console is not open.

Does your computer definitely have a US keyboard layout? Do the regional settings match the physical keyboard you have? I know that sounds obvious but it took me a while to figure out how to open the console with a UK keyboard.
LadyGrelka Jan 9, 2023 @ 7:39am 
Originally posted by Vennek:
Try this guide:
https://gameskeys.net/kotor-1-kotor-2-console-commands/
It's a somewhat more detailed than most guide,
The steps you seem to have taken seem about right, but the console did not come up ingame because when you tried to make it come up, you said when you typed into what you hoped was it that you saw your character move on the screen. Character movement is disabled when the console is being typed into. So it didn't work.

You may have to navigate to your local files for the game, click on the .ini file and make sure the "Read Only" option is unchecked. That's all I can think of.

the .ini is not set for read only, when it did not work that was the first thing I checked.
LadyGrelka Jan 9, 2023 @ 7:52am 
Originally posted by cerberusiv:
Sounds like the tilde key is not mapped where you expect it. If you are able to move your character then the console is not open.

Does your computer definitely have a US keyboard layout? Do the regional settings match the physical keyboard you have? I know that sounds obvious but it took me a while to figure out how to open the console with a UK keyboard.

Yes my PC has a US keyboard layout, and as I said is a US keyboard. I know it is mapped right because the console works just fine in the first Knight of the Old republic game. This seems to be a problem with the game itself for more then just a few people because there are quite a few threads about it just here on the Steam discussion forum and then more on other sites as well. I was just hoping that by now there was a fix.
cerberusiv Jan 10, 2023 @ 8:49am 
Originally posted by LadyGrelka:
Originally posted by cerberusiv:
Sounds like the tilde key is not mapped where you expect it. If you are able to move your character then the console is not open.

Does your computer definitely have a US keyboard layout? Do the regional settings match the physical keyboard you have? I know that sounds obvious but it took me a while to figure out how to open the console with a UK keyboard.

Yes my PC has a US keyboard layout, and as I said is a US keyboard. I know it is mapped right because the console works just fine in the first Knight of the Old republic game. This seems to be a problem with the game itself for more then just a few people because there are quite a few threads about it just here on the Steam discussion forum and then more on other sites as well. I was just hoping that by now there was a fix.

Short of finding out the correct key by trial and error (it is shift + the key immediately above return and below backspace for me, it should be shift or Ctrl or Alt and the key to the left of 1 on the row of numbers across the top of the keyboard for you) I don't know of a specific fix for this.
Last edited by cerberusiv; Jan 10, 2023 @ 8:49am
Suggestion: use steam's "browse local files" to make absolutely sure you're in the correct directory as opposed to navigating there yourself. In my case, I was editing an identical ini file from the remnants of an older, but identical looking, installation of KOTOR 2 I had on one of my older drives. Not sure exactly how it got there, but my guess is that it's the re-installation of KOTOR 2 in different drives over time. Hope this helps someone out there who has recently torn out all of their hair.
LadyGrelka Jan 16, 2023 @ 5:15am 
Originally posted by GORGULON THE BERSERKER:
Suggestion: use steam's "browse local files" to make absolutely sure you're in the correct directory as opposed to navigating there yourself. In my case, I was editing an identical ini file from the remnants of an older, but identical looking, installation of KOTOR 2 I had on one of my older drives. Not sure exactly how it got there, but my guess is that it's the re-installation of KOTOR 2 in different drives over time. Hope this helps someone out there who has recently torn out all of their hair.

I use the browse local files because it is faster so I know I changed the right file.
Djozar Jan 16, 2023 @ 11:21am 
Originally posted by LadyGrelka:
Originally posted by GORGULON THE BERSERKER:
Suggestion: use steam's "browse local files" to make absolutely sure you're in the correct directory as opposed to navigating there yourself. In my case, I was editing an identical ini file from the remnants of an older, but identical looking, installation of KOTOR 2 I had on one of my older drives. Not sure exactly how it got there, but my guess is that it's the re-installation of KOTOR 2 in different drives over time. Hope this helps someone out there who has recently torn out all of their hair.

I use the browse local files because it is faster so I know I changed the right file.
There are 2 .ini files in the Steam local files. BOTH have "Game Options" as headers of their respective sections. Make sure you have the right one. If you put it in the right spot there will be no issues. I use this every time I play. Never had an issue unless I put the cheat enable code into the wrong .ini. You're doing something wrong, we just can't see it. It can't be what that we're wrong, because we use it just fine.
LadyGrelka Jan 19, 2023 @ 7:25am 
Originally posted by Djozar:
Originally posted by LadyGrelka:

I use the browse local files because it is faster so I know I changed the right file.
There are 2 .ini files in the Steam local files. BOTH have "Game Options" as headers of their respective sections. Make sure you have the right one. If you put it in the right spot there will be no issues. I use this every time I play. Never had an issue unless I put the cheat enable code into the wrong .ini. You're doing something wrong, we just can't see it. It can't be what that we're wrong, because we use it just fine.

Yes I have two .ini files, one is swkotor2.ini the other is swplayer.ini I added EnableCheats=1 to the swkotor2.ini file like this:

[Display Options]
FullScreen=1
Disable Movies=0
Disable Intro Movies=0
Sort Modules=1
Width=640
Height=480
BitsPerPixels=32
RefreshRate=60

[Sound Options]
Disable Sound=0

[Graphics Options]
RefreshRate=60
Height=600
Width=800
V-Sync=1
Anisotropy=4
Frame Buffer=1
Anti Aliasing=4
Texture Quality=2
Grass=1
Soft Shadows=0
Shadows=1
EnableHardwareMouse=1
FullScreen=1
DisableVertexBufferObjects=1

[Game Options]
EnableCheats=1
TooltipDelay Sec=

When that did not work I removed the enable cheats line from the swkotor2.ini and added it to swplayer.ini, this file has four different sections with game options and I tried adding it to all of them, added it to the first one saved the file started the game and tried to use the console and when that one did not work I exited the game opened the file removed the line from the fist game options section and added it to the next game options section, I did this for all four game options sections of this file and none of them work.
This is what the swplayer.ini file looks like:


[Game Options]
Single Player ItemLevelRestrictions=1
Single Player Enforce Legal Characters=1
Difficulty Level=2
Hide SecondStoryTiles=0
TooltipDelay uSec=1.000000
Memory Level=1
NewCharStartLevel=001EBO

[Game Options]
Memory Access=1

[Control Options]
CameraTurnSpeed=1.000000
Enable ScreenEdgeCameraTurn=1
Zoom Speed=3.000000

[Control Options]
CameraTurnSpeed=1.000000

[Game Options]
TooltipDelay uSec=1.000000

[Game Options]
Hide SecondStoryTiles=0

[Profile]
JournalPage=0
ShowMessageOfTheDay=1

[Server Options]
Game Type=0
Server Name=Server
Max Players=16

[Server Options]
Server Name=Server

[Server Options]
Game Type=0
LadyGrelka Jan 19, 2023 @ 8:45am 
So an update, cheats work when using legacypc version of the game but not the normal version. So it seems to be a problem with the normal version of the game, at least for me.

I noticed something, the folder path is a bit different between the normal version of the game and the legacypc version. With the legacypc version the path to the swkotor2.ini is this
/home/ladygrelka/.steam/debian-installation/steamapps/common/Knights of the Old Republic II

however the path to the swkotor2.ini file in the normal version is this

/home/ladygrelka/.steam/debian-installation/steamapps/common/Knights of the Old Republic II/steamassets

Could that be what is stopping the console from working in the normal version?
Last edited by LadyGrelka; Jan 19, 2023 @ 9:08am
Ragnarök Jan 19, 2023 @ 4:48pm 
Cheats work fine in the normal version. The swkotor2.ini file is in the game's main folder where it should be. If I were you, I'd just Uninstall/reinstall, making sure to delete the game folder from the steamapps/common folder before reinstalling to ensure no stray files are left over.
LadyGrelka Jan 19, 2023 @ 6:18pm 
Originally posted by Ragnarök:
Cheats work fine in the normal version. The swkotor2.ini file is in the game's main folder where it should be. If I were you, I'd just Uninstall/reinstall, making sure to delete the game folder from the steamapps/common folder before reinstalling to ensure no stray files are left over.

I tried clean install, including deleting the game folder. But as I said the swkotor2.ini path in the normal version of the game is in a different place from where it is in the legacypc version of the game. In the legacypc version of the game it is in the main game folder like this

/home/ladygrelka/.steam/debian-installation/steamapps/common/Knights of the Old Republic II

however in the normal version of the game it is NOT in the main game folder, it is in a sub folder like this

/home/ladygrelka/.steam/debian-installation/steamapps/common/Knights of the Old Republic II/steamassets

I was wondering this that might be what is causing the problem.
Ragnarök Jan 19, 2023 @ 11:36pm 
Did you try just moving the .ini file to the main folder?

Also, you should have mentioned somewhere in the initial post you're on a Linux OS.
LadyGrelka Jan 22, 2023 @ 9:06am 
Originally posted by Ragnarök:
Did you try just moving the .ini file to the main folder?

Also, you should have mentioned somewhere in the initial post you're on a Linux OS.

That is my bad, normally I make sure I add that I am on POP OS Linux, sorry about that.

I have fixed the problem, for some reason there are TWO swkotor2.ini in two completely different places, the first is in my normal .steam KOTOR2 directory, but I found another one while looking for the damn saves folder so I could get KSE to work, it was not in my game directory so I went looking online for where Steam stashed the darn thing and found my save folder was here

/home/ladygrelka/.local/share/aspyr-media/kotor2

and to my surprise there was ANOTHER swkotor2.ini file in folder where my saves folder is, so just as a last hope I added the line to enable cheats to THAT .ini and started the game and BAM cheats work.
Djozar Jan 26, 2023 @ 6:03pm 
Originally posted by LadyGrelka:
Originally posted by Ragnarök:
Did you try just moving the .ini file to the main folder?

Also, you should have mentioned somewhere in the initial post you're on a Linux OS.

That is my bad, normally I make sure I add that I am on POP OS Linux, sorry about that.

I have fixed the problem, for some reason there are TWO swkotor2.ini in two completely different places, the first is in my normal .steam KOTOR2 directory, but I found another one while looking for the damn saves folder so I could get KSE to work, it was not in my game directory so I went looking online for where Steam stashed the darn thing and found my save folder was here

/home/ladygrelka/.local/share/aspyr-media/kotor2

and to my surprise there was ANOTHER swkotor2.ini file in folder where my saves folder is, so just as a last hope I added the line to enable cheats to THAT .ini and started the game and BAM cheats work.
Glad to hear you found the issue! I haven't done the add-on/mod yet.
< >
Showing 1-15 of 15 comments
Per page: 1530 50

Date Posted: Jan 8, 2023 @ 2:56am
Posts: 15