Sign in to follow this  
lachjames

TOOL:K2Console - A Console For KOTOR 2

Recommended Posts

K2Console - A Console For KOTOR 2


DESCRIPTION
This is a little tool that mimics the visible console from K1, in TSL. It's written in Python (I've attached the source code below).

IMPORTANT NOTES
 - The tool does not work in fullscreen mode (for now). I'd like to fix this in the future, but for now it only works in windowed mode.
 - The tool doesn't connect to TSL at all - it's completely separate. This means that (for example) if you open the console in TSL with tilde, and then alt-tab out of TSL and press tilde again, K2Console will detect this but TSL itself won't (meaning K2Console and TSL will be out of sync).
 - If you get out of sync and/or want to start the program again, you can type "xxxxx" (five x's in a row) into the console while it's open, which will close the program. Then just run the file "k2console.exe" and it'll start up again. No need to restart TSL (but make sure the TSL console is closed when you start K2Console, or you'll still be out of sync).
 - This program works by reading your keyboard inputs and storing them to memory, which is also one way a keylogger might work - so your anti-virus might identify it as such. This code does not connect to the internet at all (you can verify this for yourself if you like). I haven't included the source with the program package to avoid cluttering your TSL installation, but I included it as a separate download below.

INSTALLATION
Unzip all three files into the same folder as swkotor2.exe (i.e. C:\SteamLibrary\steamapps\common\Knights of the Old Republic II\, or wherever your TSL installation is located).

UNINSTALLATION
Delete the three files "k2console.exe", "console.bat", and "steam_console.bat".

INITIALIZATION
If you use Steam: Instead of starting your game through Steam, you can start it by running the file "steam_console.bat", located in your TSL install folder.
Otherwise: Start the game by running "console.bat", again located in your TSL install folder.

USAGE
 - Whenever you press ` to open the console in TSL, the mimic console should pop up too. I tried my best to exactly match the behavior of the TSL console (e.g. when it keeps text vs clears it), but if you find any discrepancies please let me know so I can fix them.
 - If I did my job, you shouldn't really be able to tell that the console's not built into TSL, so just use it as normal (with the ability to see what you wrote!)
 - To close the program (not TSL, just the console), type "xxxxx" (5 x's in a row) into the open console (this won't work if the console's not visible). Alternatively, you can close the command line that opens when you run the .bat file.

INCLUSION IN OTHER MODS
I'm not sure why you'd want to include this in other mods, but if you want to, you're welcome to do so with appropriate attribution.

CREDITS
Thanks to Thor110 for the idea for this tool, and for helping out with testing and ideas (as well as taking the screenshot for me).

k2console.py


 

  • Like 1

Share this post


Link to post
Share on other sites

INSTALLATION
Unzip all three files into the same folder as swkotor2.exe (i.e. C:\SteamLibrary\steamapps\common\Knights of the Old Republic II\, or wherever your TSL installation is located).INSTALLATION
Unzip all three files into the same folder as swkotor2.exe (i.e. C:\SteamLibrary\steamapps\common\Knights of the Old Republic II\, or wherever your TSL installation is located).

unzip? i don't need to unzip, it is not archive file, you don't even check file format before writing description to it 

Share this post


Link to post
Share on other sites
9 hours ago, Evrar said:

unzip? i don't need to unzip, it is not archive file, you don't even check file format before writing description to it 

7z is an archive file format. You don't need to unzip because your computer already has a built-in program to unzip archive files, but some of us still prefer to use a third-party software to extract archive files.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this