swkotor.exe not working anymore

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
src386
Newbie
Newbie
Posts: 2
Joined: Mon May 10, 2021 6:30 am

swkotor.exe not working anymore

Post by src386 »

Since 2006/2007 I've been able to play StarWars Knights of the Old Republic (KOTOR) without any issue in wine, this game had a very good compatibility. But now I struggle trying to make it work, I think something this game is not compatible anymore.

Game versions I tried:
- CD (FR)
- CD (EN)
- Steam (EN)

Wine versions I tried:
- 4.0 (Debian 10 repository)
- 4.2 (Debian 10 repository)
- 6.8 (wine-devel from winehq repository)

Steps to reproduce:

Code: Select all

WINEPREFIX='/path/to/prefix' WINEARCH=win64 winecfg # Set a 1024x768 Desktop, Windows XP compatibility

WINEPREFIX='/path/to/prefix' /path/to/cd1/Setup.exe

WINEPREFIX='/path/to/prefix' /path/to/patch_1.3.exe

# (Copy magic swkotor.exe file to avoid CD-ROM requirements)

WINEPREFIX='/path/to/prefix' /path/to/prefix/drive_c/KOTOR/swkotor.exe
What happens:
The program swkotor.exe has encountered a serious problem and needs to be close. We are sorry for the inconvenience.
Console output:

Code: Select all

$ WINEPREFIX='/home/xavier/wine64_dev' WINEARCH=win64 /opt/wine-devel/bin/wine /home/xavier/wine64_dev/drive_c/KOTOR/swkotor.exe 

0128:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
wine: Unhandled page fault on read access to 00000024 at address 0045A321 (thread 0128), starting debugger...
Unhandled exception: page fault on read access to 0x00000024 in 32-bit code (0x0045a321).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0045a321 ESP:0021fc9c EBP:0021fd3c EFLAGS:00210202(  R- --  I   - - - )
 EAX:00000000 EBX:01627b80 ECX:01668580 EDX:0073f160
 ESI:01627ae8 EDI:00000000
Stack dump:
0x0021fc9c:  0166a380 0021fd3c 0021fce0 0166a2b0
0x0021fcac:  0166a30c 0166a2b0 0021fd3c 0166a2b0
0x0021fcbc:  00414eae ffffffff 004162cd 0166a30c
0x0021fccc:  0166a2b0 004177d2 0021fce0 00000000
0x0021fcdc:  01669d38 00000000 00000000 00000320
0x0021fcec:  00000258 0067a8f5 0021fd18 015e4b80
Backtrace:
=>0 0x0045a321 EntryPoint+0xffffffff() in swkotor (0x0021fd3c)
  1 0x005f5218 EntryPoint+0xffffffff() in swkotor (0x0021fd70)
  2 0x004044b5 EntryPoint+0xffffffff() in swkotor (0x0021fe08)
  3 0x006fb50e in swkotor (+0x2fb50d) (0x0021ff30)
  4 0x7b62d6e0 EntryPoint+0xffffffff() in kernel32 (0x0021ff48)
  5 0x7bc54b77 EntryPoint+0xffffffff() in ntdll (0x0021ff5c)
  6 0x7bc54dd0 EntryPoint+0xffffffff() in ntdll (0x0021ffec)
0x0045a321 EntryPoint+0xffffffff in swkotor: movl       0x24(%edi),%ebp
Modules:
Module  Address                 Debug info      Name (28 modules)
PE        400000-  86d000       Export          swkotor
PE        870000-  9df000       Deferred        winmm
PE        9e0000-  e57000       Deferred        comctl32
PE      21100000-21164000       Deferred        mss32
PE      30000000-30072000       Deferred        binkw32
PE      61740000-6182a000       Deferred        advapi32
PE      62fc0000-631e5000       Deferred        rpcrt4
PE      63480000-6349c000       Deferred        version
PE      64ec0000-652ab000       Deferred        oleaut32
PE      67780000-67805000       Deferred        glu32
PE      67d40000-67de6000       Deferred        mmdevapi
PE      682c0000-68459000       Deferred        dsound
PE      68500000-6864b000       Deferred        combase
PE      6a040000-6a0a1000       Deferred        msacm32
PE      6a400000-6a881000       Deferred        ole32
PE      6bc00000-6bca2000       Deferred        sechost
PE      6bcc0000-6be9f000       Deferred        setupapi
PE      6c9c0000-6cf39000       Deferred        gdi32
PE      6ed00000-6f39d000       Deferred        user32
PE      70b40000-70de4000       Deferred        ucrtbase
PE      71200000-71246000       Deferred        imm32
PE      7a840000-7a844000       Deferred        opengl32
PE      7b000000-7b2f1000       Deferred        kernelbase
PE      7b600000-7b91c000       Dwarf           kernel32
PE      7bc00000-7be85000       Dwarf           ntdll
PE      7e240000-7e243000       Deferred        winepulse
PE      7e580000-7e584000       Deferred        winex11
PE      7e9b0000-7e9bb000       Deferred        dinput8
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
        0000003c    0
        00000040    0
        0000004c    0
        00000070    0
        0000008c    0
        000000b8    0
        000000f0    0
00000044 winedevice.exe
        00000048    0
        00000054    0
        00000058    0
        0000005c    0
00000068 plugplay.exe
        0000006c    0
        00000074    0
        00000078    0
        0000007c    0
        00000098    0
00000080 winedevice.exe
        00000084    0
        00000090    0
        00000094    0
        000000a0    0
        000000a4    0
        000000a8    0
        000000ac    0
000000b0 svchost.exe
        000000b4    0
        000000bc    0
        000000c0    0
000000e8 rpcss.exe
        000000ec    0
        000000f8    0
        000000fc    0
        00000100    0
        00000104    0
        00000150    0
00000124 (D) C:\KOTOR\swkotor.exe
        00000128    0 <==
        00000158   -2
        0000015c    0
        00000160    0
        00000164   15
        00000190    0
        00000194    0
        000001a0    0
0000012c conhost.exe
        00000130    0
00000134 explorer.exe
        00000138    0
        0000013c    0
        00000148    0
        0000014c    0
System information:
    Wine build: wine-6.8
    Platform: i386 (WOW64)
    Version: Windows 7
    Host system: Linux
    Host version: 4.19.0-16-amd64
Killed
Don't know if it's related, but the game works on Steam with an old Proton version. Does not work with newer.

Any help would be appreciated, thanks !
src386
Newbie
Newbie
Posts: 2
Joined: Mon May 10, 2021 6:30 am

Re: swkotor.exe not working anymore

Post by src386 »

Okay, I managed to run the game.

I already mentioned that I tried the Steam version:
src386 wrote: Mon May 10, 2021 6:45 am Game versions I tried:
- CD (FR)
- CD (EN)
- Steam (EN)
But it was in fact the Steam version with an "alternate" swkotor.exe file.

I managed to install Steam in a WINEPREFIX, then KOTOR, and run the game.
Locked