Results 1 to 1 of 1

Thread: Linux and Wine for KeeperFX (+ Troubleshooting)

  1. #1
    Imp Yani's Avatar
    Join Date
    Mar 2019

    Default Linux and Wine for KeeperFX (+ Troubleshooting)

    In this thread we can combine some of the info for Linux and Wine users, as well as any problems that might arise and what fixed those issues.

    I am using Ubuntu, so most of this will be tailored towards Ubuntu users.

    Setting it up with wine requires no custom wine prefixes. You should just be able to run wine keeperfx and get going.

    I also made ImpLauncher so we have a Cross-Platform launcher. Be sure to give it a try as it also fixes some of the errors.

    Error: LbBullfrogMain, and a gray background for the official launcher

    You are most likely running the launcher and keeperfx with the wrong "current working directory" set.

    This often happens when executing from a different path or when using a misconfigured keeperfx.desktop file.

    The solution is to first navigate the the keeperfx directory and then run wine launcher.exe. When you get the correct launcher background you are executing from the correct working directory.

    If you are using a .desktop file, you should make sure it executes while being in the correct directory too. I currently do not have an example file for you, but will do so later. I think the correct "Dir=" variable needs to be set.

    Error: Ubuntu: X BadWindow error (KeeperFX shows a small window and closes instantly)

    X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 10 (X_UnmapWindow)
    Resource id in failed request: 0x5200003
    Serial number of failed request: 190
    Current serial number in output stream: 193
    If you get an error that looks like this, it most likely means your Wine setup is wrong.

    This happened to me personally when I updated Ubuntu 22.04 to 22.10 to 23.04 and eventually to 23.10 where it broke.
    The fix was to remove my wine-jammy.sources file in /etc/apt/sources.list.d/ folder and download the wine-mantic.sources file.
    Both sources provide a Wine 8.0.2 release file, but the one for the older Ubuntu release was wrong.

    You can figure out your Ubuntu codename by running lsb_release -a

    Try reinstalling Wine but make sure your apt sources are correct.

    If this does not fix it, your Wine or X/Wayland setup could be wrong. Feel free to let me know so I can update this issue

    I manually moved the DK data files to /data but it still doesn't work

    This is actually an error that doesn't exist yet. I'll add this because this might become an issue when KeeperFX gets a native Linux build.

    For now, KeeperFX requires the data files to have lowercase names. Manually moving the files does not rename them to be lowercase.

    Wine does some magic to simulate a Windows filesystem and their filename conventions, so when using Wine this should not be an issue.

    When installing using the official launcher, these files get renamed to be lowercase. (When using ImpLauncher, manually copied uppercase files are automatically renamed as an extra fix)
    Last edited by Yani; November 14th, 2023 at 12:58.

Similar Threads

  1. Problem with music playback on Wine (Linux)
    By marqsman in forum DK1 Troubleshooting
    Replies: 2
    Last Post: June 17th, 2019, 14:06
  2. Linux Crash Fix & Patch 2.0.4 Release Notes
    By Mentor in forum War for the Overworld
    Replies: 0
    Last Post: August 1st, 2018, 17:53
  3. Troubleshooting
    By Sijtze Roar in forum OpenKeeper
    Replies: 5
    Last Post: June 21st, 2018, 18:05
  4. running dk1 with wine in gentoo
    By shorty in forum KeeperFX
    Replies: 4
    Last Post: August 8th, 2011, 14:04
  5. Sick of Crashes? -> Dungeon Keeper 2 Multiplayer on Linux
    By darkbytes in forum DK2 Multiplayer
    Replies: 2
    Last Post: May 26th, 2010, 12:41

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts