WineHQ
Star Wars: Knights of the Old Republic 1.03



Category: Main > Games > Role Playing Games > Star Wars: Knights of the Old Republic > 1.03


NameStar Wars: Knights of the Old Republic
Version1.03
License  
URLhttp://www.lucasarts.com/produ...
Votes 4
RatingGold
Wine Version1.5.11
Maintainers of this version:
Description
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.)
Test Results
DistributionTest dateWine versionInstalls?Runs?RatingSubmitter
CurrentArch Linux x86_64Aug 26 20121.5.11 Yes Yes Gold dan 
ShowDebian GNU/Linux Unstable "Sid" x86_64Jul 06 20121.4.1 Yes Yes Gold an anonymous user 
ShowUbuntu 12.04 "Precise" x86_64 (+ variants like Kubuntu)Feb 08 20121.3.34 Yes Yes Gold an anonymous user 
ShowUbuntu 10.04 "Lucid" x86_64 (+ variants like Kubuntu)Aug 20 20111.2.3 Yes Yes Platinum Krukutu 
ShowMac OS X 10.7 "Lion"Nov 26 20111.2.2 Yes Yes Gold an anonymous user 


Known bugs
Bug # Description Status Resolution Other apps affected
3817 InstallShield very slow when copying many small files NEW View
13398 Star Wars Knights Of The Old Republic Will Shows Splash Screen and Quits NEW View
22268 SWKOTOR: Fails to detect installed graphic drivers UNCONFIRMED View
22278 swkotor crashes on videos UNCONFIRMED View
24495 Knights of the Old Republic can't keep a video mode. UNCONFIRMED View

 
Fullscreen
­

by ­NSLW on (April 6th 2010)

Method #1

   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)


   1. Type in terminal

sudo nvidia-xconfig --no-dynamic-twinview

   2. Start the game as usual


 
Widescreen

by ­NSLW on (April 6th 2010)

It's possible to run this game in widescreen resolutions. For more informations visit www.widescreengamingforum.com


 
WARNING

by ­NSLW on (April 6th 2010)

Option Enable Hardware mouse, in configurator, works only in fullscreen (Method #1), in other cases you should disable it.


 
Systray

by ­NSLW on (April 6th 2010)

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."

I love this game, please help!

[post new] [reply to this]


by Przemyslaw Kochanski on Saturday September 3rd 2011, 9:57
If you have no textures on ATI Radeon X1300 and you are using Debian Squeeze, do the following:

stock wine 1.0 is OK
for debian squeeze add repos (it will not work without them!):

debian backports:
backports-master.debian.org/Instructions/
debian multimedia:
debian-multimedia.org/

install/upgrade packages:
# apt-get install libdrm-radeon1 xserver-xorg-video-radeon libtxc-dxtn0 driconf mesa-utils libgl1-mesa-dri libgl1-mesa-glx

reboot and now it works :)

if not check following:
$ glxinfo | grep renderer
should output:
"OpenGL renderer string: Gallium 0.4 on ATI RV515"

$ glxinfo | grep s3tc
should output:
"GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_S3_s3tc,"

[post new] [reply to this]

Not being able to select some chat options
by Adam Chance on Monday February 7th 2011, 11:43
That is also a problem on Windows PCs.

[post new] [reply to this]

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:

REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ShowSystray"="false"

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.

WINEPREFIX=/home/daniel/.wine-kotor wine /media/cdrom/KOTOR/setup.exe


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

[post new] [reply to this]

Game fails after splash screen
by Greg Noe on Saturday August 15th 2009, 20:38
After the splash screen pops up for the game, I get a Program Error that says:

"The program swkotor.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience."

KotOR 1.03
Wine 1.1.27
Nvidia 9800 GTX+
AMD Phenon II 940
4GB RAM

I got the same error also for v1.0 of KotOR. I was using the no-cd patch for each.

[post new] [reply to this]

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..

For the widescreen resolution patches - www.widescreengamingforum.com/wiki/index.php/WSGF_Hacks_for_SW:KOTOR

System specs:

Ubuntu 8.10 64 bit
Wine 1.1.13
Intel Pentium E5200
Nvidia 9400GT
4GB ram
500 GB WD Scorpio Blue
Dell 22" @ 1920x1080 (not sure of the model)

[post new] [reply to this]

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.

[post new] [reply to this]

Can't start it
by Chris on Sunday August 3rd 2008, 16:43
I installed this with no trouble at all, and then installed the 1.03 patch with no problem. But I can't get the game to start, I get this error:

Conflict with Disc Emulator Software detected. See www.securom.com/emulation for more details

Has anyone else had this problem?

I'm on Ubuntu 8.04 with Wine 1.0.0.

[post new] [reply to this]

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.

[post new] [reply to this]

the game crashes
by melkor on Monday November 26th 2007, 13:07
hi, I tried without the patch and with the patch, however the message is the same. I paste what the console says:

ALSA lib conf.c:3949:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0
fixme:system:SystemParametersInfoW Unimplemented action: 94 (SPI_GETMOUSETRAILS)
wine: Unhandled page fault on read access to 0x00000000 at address 0x423bba (thread 0018), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00423bba).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:00423bba ESP:0034fb88 EBP:00000001 EFLAGS:00010206( - 00 - RIP1)
EAX:02410428 EBX:00000000 ECX:00000000 EDX:00000002
ESI:02410358 EDI:02410404
Stack dump:
0x0034fb88: 0044a757 00000000 00000001 00000002
0x0034fb98: 00000000 02410404 02410358 00736420
0x0034fba8: 02410060 00000000 02410358 40a00000
0x0034fbb8: 40a00000 41200000 0034fc58 0070eb91
0x0034fbc8: 00000002 00458617 0034fbf8 00000000
0x0034fbd8: 02410020 0034fd34 00000002 02410358
Backtrace:
=>1 0x00423bba in swkotor (+0x23bba) (0x00000001)
2 0x00000000 (0x00000000)
0x00423bba: movl 0x0(%ecx),%eax

Please help!!

[post new] [reply to this]

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

Additional registry edits:
HKCU\Software\Wine\Direct3D\UseGLSL - enabled
HKCU\Software\Wine\Direct3D\VideoMemorySize - 256

[post new] [reply to this]




   << Back

Page loaded in 0.17317 seconds.