Very little differs from the released version of KOTOR v1.00 and it's patch 1.03 as it's patch consists of fixes to the game itself.
Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results (selected in 'Test Results' table below)
What works
Movies (with the widescreen patch), playing the game (with a no-cd cracked executable)
What does not
Playing the game in the current X windows session. (see comments)
The original swkotor.exe file.
The securom patched swkotor.exe file.
What was not tested
Playing past Taris/finishing the game.
Additional Comments
I used WINEARCH=win32 and WINEPREFIX=~/.win32 to install and run the game.
As mentioned previously in the comments, a separate X session needs to be used to run the game. Put the following commands (changing WINEPREFIX as needed) in a script to get it working:
X :3 -ac -terminate &
sleep 2
export WINEPREFIX=${HOME}/.win32
export WINEARCH=win32
export DISPLAY=:3
cd "${WINEPREFIX}/drive_c/Program Files/LucasArts/SWKotOR"
wine swkotor.exe
The original executable quits with a securom error. The securom patched executable gives an error along the lines of "Original disk not found" and "D: is locked by another application." To get around it, I had to use a no-cd cracked executable.
The movies were playing off-center to the point where they were unwatchable. I applied the KOTOR widescreen patch to fix them. (It doesn't matter if a non-widescreen resolution is used. Mine is 1280x1024.)
1. Create empty file and name it SWKOTOR 2. Fill it with following content
#!/bin/sh
X :3 -ac &
sleep 2
export WINEPREFIX=${HOME}/.wine
export WINEDEBUG=-all
export DISPLAY=:3
cd "${HOME}/.wine/drive_c/Program Files/LucasArts/SWKotOR"
wine swkotor.exe
3. Allow executing that file as program by e.g. typing in terminal
chmod +x SWKOTOR
4. Add yourself to audio group by e.g. setting it in system-config-users 5. Start the game by SWKOTOR file
6. After you quit the game press Ctrl+Alt+Backspace Method #2 (NVIDIA only)
To disable anoying system tray do following:
1. Start Registry Editor by e.g. regedit 2. Go to HKEY_CURRENT_USER->Software->Wine 3. Create X11 Driver if it isn't created already
4. Create new String Value in X11 Driver key and name it ShowSystray 5. Set false in Value data for ShowSystray
PlayOnLinux
Star Wars Knights of the Old Republic can be easily installed and patched by PlayOnLinux. You can download PlayOnLinux from here.
Enabling Widescreen
You need to use Universal Widescreen Patcher For more information consult the widescreen gaming forum (same link).
Enabling mouse-look
Since 1.3.21 you just need to check the "Automatically capture the mouse in full-screen windows" in winecfg and you're set.
For older versions look here: Bug #6971
The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
Windowscodecs error
by Danilo Siqueira on Tuesday December 11th 2012, 16:54
Hey, people!
I'm trying to run the game, using wine 1.5.19, in Ubuntu 12.04 32bits. I've installed the game sucessufully, but when i try to run it:
danilo@danilo-Inspiron-N4050:~/.wine/drive_c/Program Files/LucasArts/SWKotOR$ wine swkotor.exe
err:module:import_dll Library windowscodecs.dll (which is needed by L"C:\\windows\\system32\\winemenubuilder.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winemenubuilder.exe" failed, status c0000135
fixme:winediag:AUDDRV_GetPriority winepulse has been temporarily disabled through the environment
fixme:win:GetWindowPlacement not supported on other process window 0x1002c
And i've tried to install windowscodecs.dll using winetricks, but i get the message:
"Note: command 'wine wic_x86_enu.exe /passive' returned status 67. Aborting."
Near perfect setup
by Daniel Santos on Wednesday January 6th 2010, 17:42
I have achieved a near-perfect setup with both movies & hardware mouse enabled using wine 1.1.32 on an system with am AMD Phenom & an nvidia card (7950 GT or some such). I'll probably refine this information later on once I re-do the entire setup to test the prescribed procedure.
INITIAL SETUP
=============
Although I previously used the "virtual desktop" setting, I am now using 100% default settings in wine except under "Desktop Integration" where I *always* unlink "My Documents", etc. from the root of my home directory as a general personal rule (I don't trust windows apps with my home directory). Also, before I install a new app (in its own wine environment) I generally run winecfg and click on the Audio tab and click "Test", although I can't say that it's truly useful.
WINEPREFIX=${HOME}/.wine-kotor winecfg
Next, copy & paste the following into a text file and save it as kotor.reg:
Next, merge it as follows (change WINEPREFIX as appropriate). This *appears* to resolve various X server crash issues.
WINEPREFIX=${HOME}/.wine-kotor regedit kotor.reg
As an alternative of the above, you can do this is regedit as well, but you'll have to create the "X11 Driver" key and the "ShowSystray" REG_SZ value.
INSTALLATION
============
IIRC, I ran the setup fairly normally and choose not to install Game Spy or DirectX (but it was a few weeks ago). I have the Star Wars "The Best of PC" collection.
RUNNING
=======
I'm currently using a bastardization of a script that was posted here and elsewhere that keeps it in it's own X server:
#!/bin/sh
X :3 -ac -gamma 1.3 &
sleep 2
export WINEPREFIX=${HOME}/.wine-kotor
export DISPLAY=:3
app_dir="${WINEPREFIX}/drive_c/Program Files/LucasArts/Star Wars Knights of the Old Republic"
cd "${app_dir}"
WINEDEBUG=-all wine launcher.exe
Note that I do not use the -terminate option as this appears to lead to the X server terminating at times when I don't expect it to. As a result, the X server will be continuing to run when you exit kotor, so you should hit CTRL-ALT-Backspace to kill it.
WIDE SCREEN (1920x1200)
=======================
KOTOR was written in 2003 -- before wide-screen monitors were widely available and, frankly, they didn't think too far ahead. Thus, the highest resolution it supports out of the box is 1600x1200, and pretty much none of the widescreen resolutions are supported. The process of getting this to work is the same collections of hacks used when running kotor on Windows and I pretty much followed the instructions here:
www.widescreengamingforum.com/forum/viewtopic.php?t=12710
I should note, however, that even though I ran the uniws.exe and selected "Star Wars: KOTOR (1024x768 interface)", the values under the "New Section" appeared as 800x600. However, I followed the instructions anyway and unpacked the 1920x1200 files into "${WINEPREFIX}/drive_c/Program Files/LucasArts/Star Wars Knights of the Old Republic/Override/" and when I entered the game (not the config app chosen from the launcher) and went into the "Screen Resolution" menu, the first entry (originally 800x600) was indeed changed to 1920x1200, so that's a little nuance to be aware of (perhaps a minor error in the uniws.exe app). So here is a summary of the instructions:
PATCHING THE GAME
-----------------
This will modify the executable to support alternate resolutions.
1. Backup the file "${HOME}/.wine-kotor/drive_c/Program Files/LucasArts/Star Wars Knights of the Old Republic/swkotor.exe" just in case it gets screwed up.
2. Download this www.widescreengamingforum.com/downloads/uniws.zip and save it to your hard drive somewhere.
3. Unzip uniws.zip.
4. WINEPREFIX=${HOME}/.wine-kotor wine uniws.exe
5. Click on the drop down and select the option "Star Wars: KOTOR (1024x768 interface)".
6. In the "Game Installation Folder" area, browse to the KOTOR directory (C:\Program Files\LucasArts\Star Wars Knights of the Old Republic).
7. Enter the desired resolution in the "New Resolution" area.
8. Click "Patch"
9. Exit.
ADDING NEW SCREEN LAYOUTS
-------------------------
In order for your in-game GUI to be properly adjusted for the new size, you must download one of the below layouts and extract them into your "${WINEPREFIX}/drive_c/Program Files/LucasArts/Star Wars Knights of the Old Republic/Override" directory. The various layouts can be found here:
www.widescreengamingforum.com/wiki/WSGF_Hacks_for_SW:KOTOR
Widescreen patches working as well......
by james on Tuesday January 20th 2009, 19:12
I recently found that KOTOR runs beautifully when I disable the hardware mouse and patch it for my widescreen resolution of 1920x1080. Videos come and go sometimes, many times if they play, its very slowly..
Fix for video playback issue
by Maarten on Thursday November 27th 2008, 2:17
Like others here I've been experiencing an issue in both Kotor 1 and 2 regarding video playback. In emulated desktop mode, videos are sometimes black and can't be skipped. When the emulated desktop is turned off, something locks up the window manager (though the effect here varies depending on which window manager you use - I've only tried IceWM and the Ubuntu/Gnome window manager) and it becomes impossible to properly go back to the game or quit.
Turns out the window manager tends to interfere with the way the Kotor games call for videos. The Wine System Tray Bar that keeps popping up may have something to do with this also, but I'll leave that to the experts. Cogadh on the Team Gizka forums came with the idea of launching the game in a separate X session without a window manager (this fix actually seems to come from the World of Warcraft scene), and this works to an extend. Something still doesn't sit well with Wine (my guess is the Wine System Tray Bar), as the window focus is still lost once a video starts playing. But now it's at least possible to go back to the game and view the videos as normal. I recommend you read the full, better readable thread at: forums.team-gizka.org/viewtopic.php?f=4&t=4439 You have to scroll down a three posts before the actual issue is brought up though.
I'll now quote the solution here (I recommend you switch to the second page of that forum link I posted, since the 'code' bits make it much better to read):
------------------------
"The launch script I created to launch the game in its own X session seems to avoid that issue entirely. I you want to try it, there are a few things you need to do first to make it work:
1. Make sure your user has permission to use audio devices. For some reason on my system, I did not have those permissions at all, but that could be a quirk of Xubuntu. Not really sure if that is the case (I'm just trying Xubuntu out for the first time), but that was the source of my audio problems with the script.
2. You need to modify the Xwrapper.config file to allow anyone to launch X. Open the file with Nano:
Code:
sudo nano /etc/X11/Xwrapper.config
and change this line:
Code:
allowed_users=console
to:
Code:
allowed_users=anybody
Once you have done that, copy this text into its own file (use Nano or any other plain text editor) and save it as "KotOR2_Launcher.sh". I usually keep scripts like this in my home directory, but you can technically keep them anywhere:
Code:
#!/bin/sh
# Launches a new X session on display 3. If you don't have an Nvidia card
# take out the "nvidia-settings --load-config-only" part
X :3 -ac -terminate & nvidia-settings --load-config-only
# Go to game directory (modify as needed)
cd "$HOME/.wine/drive_c/Program Files/LucasArts/SWKotOR2/"
# Forces the system to have a break for 2 seconds, X doesn't launch instantly
sleep 2
# Launches game (modify as needed)
DISPLAY=:3 WINEDEBUG=-all wine "C:/Program Files/LucasArts/SWKotOR2/launcher.exe"
Once you have saved the file, make it executable:
Code:
chmod +x KotOR2_Launcher.sh
To use the script to launch the game, you can either run it from a terminal or create a shortcut/launcher to the script in on the desktop or menu. Either way, the command you need to run to use the script is this:
Code:
./KotOR2_Launcher.sh
If you like what the script does, you can copy and modify it to work with any other game installed with Wine by simply changing the "cd" and launch paths to match the other game."
------------------------
Courtesy to Cogadh for bringing this up and to whoever originally came up with the idea for World of Warcraft.
RE: Can't start it by Unifying Theory on
Thursday October 9th 2008, 22:12
Can't set resolution, Wine System Tray steals focus
by Benjamin Massey on Friday June 27th 2008, 10:24
I'm running Wine 1.0rc1 on Slamd64 12.0 on an Athlon 64 X2 3800+ processor with 6GB of RAM and a nVIDIA 8500GT graphics card with 512MB of RAM.
Knights of the Old Republic almost... -almost- works great. However, there are two problems.
1) I cannot set the resolution, either in-game or in the swconfig dialog, to anything above 800x600. Other options are simply not listed. Clicking 'Scan Hardware' in swconfig misinforms me that I'm running some 19th-century video card and therefore can't run the game at all. It should be noted that the game is quite playable at 800x600 and this is more an inconvenience.
2) A small, blank dialog box named "Wine System Tray" keeps stealing focus whenever I bring up the KotOR window. In fullscreen, this makes the game unplayable. I have gotten the game to work a few times, but I don't know how; it seems random.
Silver & Garbage ratings
by Matt Wrenn on Thursday July 19th 2007, 19:12
I've noticed that this game seems to alternate between near perfect performance for some people and no performance at all for other people. I have consistently had great performance with this game and I thought it might be helpful to compare what people are using for hardware and Wine config that seems to produce such a wide range of results.
Hardware:
Pentium 4 2GHz
1024 MB RAM
GeForce FX 5200 256 MB (97.55 driver)
SB Audigy LS
Intel D865PERC mobo
OS:
Ubuntu 7.04 (2.6.20 kernel)
Wine config
Windows version: XP
Library overrides: none
Graphics:
-Allow DirectX apps...: yes
-Allow window manager...: no
-Emulate virtual...: no
-Vertex Shader Support: Hardware
-Allow pixel shader: yes
Audio:
-Driver: ALSA
-Hardware Acceleration: Full
-Default sample: 44100
-Default bits: 16
-Driver emulation: no