Sunday, 3 April 2022

How to fix Killing Floor (native Linux version) issues due to outdated SDL library

 

Killing Floor has a native Linux version, which is great, but the problem with it is the fact that it uses the very old SDL 1.2, and that has problems when alt+tabbing and has problems with wayland. So we'll fix this by replacing the SDL library.

Why not use the windows version in proton, you might ask? Well, for some people, it works great. However, on the laptop I use (Thinkpad with Intel HD Graphics) the proton version stutters a LOT.

This guide is for Fedora, so if you use another distro you'll have to use the correct package names.

Simply put, the fix is you install sdl12-compat.i686 with dnf or whatever package manager you use. It has to be the 32-bit version of sdl12-compat.

Then you replace "libSDL-1.2.so.0" in the game's "System" directory with the version from the package you just installed.

In my case on Fedora 36, it's:

$ cp /usr/lib/libSDL-1.2.so.1.2.50 steamapps/common/KillingFloor/System/libSDL-1.2.so.0

Done!

Edit: Also, maybe set "SDL_VIDEODRIVER=x11" %command% in launch options if using wayland.

Edit 2: Another option is to use Proton 5.13 with OpenGL instead of DirectX 9 (because OpenGL has messed up gamma on newer Proton versions)

1 comment:

  1. Tutorials, tips, and software recommendations are especially useful since Linux often requires a bit more hands-on learning compared to other operating systems, but that’s also what makes it powerful and flexible. Platforms like these act as a helpful toolbox for users exploring customization and system optimization.

    For those who also want to enhance how applications and interfaces are designed to improve user experience, this
    Figma UI UX Course
    is a great resource to build strong UI/UX skills and create more intuitive digital experiences.

    ReplyDelete