Widescreen fix for Star Wars: Knights of the Old Republic (SW:KOTOR)

Quite a few people have probably picked up KOTOR in recent times, especially due to the fact that it's available now on Steam for cheaps. Unfortunately KOTOR doesn't actually support proper widescreen, and it can look fairly shitty running it at 1280 x 1024 or 1024 x 768 on WS. Found some excellent tips for fixing it courtesy of the excellent Widescreengamingforum.com (WSGF) which I've copied, pasted (and altered slightly) below.. I've repackaged and provided the files needed, zipped up here 

NOTE: I do not endorse using these files provided or instuctions in order to violate ToS agreements or to pirate/copy games. Additionally, I take no responsibility if this does something to fuck up the program and render it unusable - backing up before doing this sort of thing is recommended. Use at own risk.

Special Instructions for Steam Version

Unfortunately, because the Steam version executable is encrypted, UniWS can not be used to modify the Steam version of the game directly. However, UniWS will work on a no-CD (cracked) executable of the original disc version of the game. This executable can in turn be used with the Steam version's content files to play the Steam version in widescreen.

  1. Use the FairLight v1.03 fixed no-CD exe. Please be aware that using one could be seen as a violation of Steam's Subscriber Agreement, and you accept full responsibility for whatever resulting consequences, if any. 
  2. Unzip the no-CD executable and replace the executable in the game's install directory (\Steam\steamapps\common\swkotor\).
  3. (Optional) After running UniWS, you may wish to rename the edited executable so that it is not overwritten during Steam content verification, but you'll need to manually create a shortcut to it then, as it will not launch from the Steam Games menu.

WS Resolutions

The game plays in Hor+ widescreen with the use of the UniWS patcher, originally developed by Wogg. The Patcher consists of two parts: The uniws.exe (which is the GUI interface and patcher), and the patches.ini file (which contains the game data to make the patch).

  1. Run uniws.exe. Choose "Star Wars: KOTOR (1024x768 interface)" from the Game dropdown menu, regardless of what resolution you want to patch to.
  2. Locate the game's folder in the folder browser.
  3. Enter your chosen widescreen resolution and click the Patch button. Not all widescreen resolutions work. If you need to patch to a resolution lower than 1440x900 see the Notes below. 
  4. After starting the game, the new resolution will need to be selected from the options menu. Alternatively, if the option in the game's menu isn't working for some reason, or if you simply want to the set the new resolution before starting the game, edit the "Height=" and "Width=" settings in the swkotor.ini file found in the game's main installation directory. 
  5. If the Patch button or resolution boxes are greyed out, you have either not selected the appropriate directory, or your version of the game is not compatible with UniWS (UniWS supports only the v1.03 disc or no-CD versions of KOTOR).


If the UniWS patcher does not work for some reason, please see the detailed explanation on how to edit the HEX in this forum thread.

HUD Correction

Sweetz (old username: Stevedroid), with the help of Malakaius (who originally discovered the HUD files could be edited), has created adjusted HUD files for all working common widescreen resolutions as well as corrected 2D backgrounds for the menus. Many thanks to both of them, without whom this would not be possible.

Copy the files in the appropriate directory into the "Override" directory found under your main KOTOR installation directory.

Movies not displaying?

Hmm. It sounds like the UniWS hack to fix the movies went bad, or the game's built-in movie player doesn't work correctly at 1920x1080 for some reason. (Note, altered patches.ini is included in the .zip)

  1. First use UniWS to unpatch the game and restore it to the original state. You don't need to remove the fixed HUD files or anything, just undo the UniWS part. 
  2. Next open the patches.ini file that came with UniWS. You may want to open it with Wordpad as opposed to Notepad for easier editing. For whatever reason it was saved with non-standard newline characters so there are no line breaks when you open it in Notepad. 
  3. Find the [Star Wars: KOTOR (1024x768 interface)] section (which is what you should be using for the game to work with the edited files). 
  4. Find these two entries under that section and either delete them, or put semi-colons (UniWS use them to designate comments) at the start of every line. Then save it. 

    Code:

    ;movies edit 1
    p4modfile=swkotor.exe
    p4undofile=swkotorc.undom1
    p4sig=800200007515813DD8D17800E001
    p4sigwild=00000000000000
    p4xoffset=0
    p4yoffset=12
    p4occur=1

    ;movies edit 2
    p5modfile=swkotor.exe
    p5undofile=swkotorc.undom2
    p5sig=80020000C7442410E001 
    p5sigwild=0000000000
    p5xoffset=0
    p5yoffset=8
    p5occur=1

  5. Repatch with UniWS to your desired resolution. 
As stated, these will make the movies run at 1024x768. So you may have a couple seconds of blankness as your display changes resolutions. Some HDTVs can be pretty slow to changes res.