While you're here, please consider supporting GamingOnLinux on:
Reward Tiers:
Patreon. Plain Donations:
PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers:
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Nexus Mods retire their in-development cross-platform app to focus back on Vortex
- Windows compatibility layer Wine 11 arrives bringing masses of improvements to Linux
- GOG plan to look a bit closer at Linux through 2026
- European Commission gathering feedback on the importance of open source
- Hytale has arrived in Early Access with Linux support
- > See more over 30 days here
- Venting about open source security.
- rcrit - Weekend Players' Club 2026-01-16
- grigi - Welcome back to the GamingOnLinux Forum
- simplyseven - A New Game Screenshots Thread
- JohnLambrechts - Will you buy the new Steam Machine?
- mr-victory - See more posts
How to setup OpenMW for modern Morrowind on Linux / SteamOS and Steam Deck
How to install Hollow Knight: Silksong mods on Linux, SteamOS and Steam Deck
Thanks.
Check the tips for games using Quake 3 Arena engine at the wine DB. I off hand don't
know what variable you need.
View PC info
Here is my forum post discussing how I resolved it:
https://www.gamingonlinux.com/forum/topic/2629?page=1
Soldier of Fortune uses Quake II engine, nots Quake III.
Also there is no problem with other games that use OpenGL and Direct3D. Games like Quake III, Delta Force: Land Warrior, Call of Duty 2 and Urban Terror are running without any problems.
Only in Soldier of Fortune was such a distress.
View PC info
Since you are using Mesa just enter the following command into a terminal before launching the game from the same terminal window (or shell script like I did for SiN Gold):
export MESA_EXTENSION_MAX_YEAR=2000And you should be good to go.
export MESA_EXTENSION_MAX_YEAR=2000wine SoF.exefixme:winediag:start_process Wine Staging 2.15 is a testing version containing experimental patches.fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16
recursive shutdown
View PC info
Your current issue megalanya seems to relate to the game wanting to use a 16 bit colour mode. Some quick research indicates that setting Wine to emulate a virtual desktop through winecfg may help. You should also probably set the game to use Windows 98 compatibility wile you are there to.
View PC info
https://pcgamingwiki.com/wiki/Soldier_of_Fortune#Crashes_on_graphics_drivers_with_long_GL_EXTENSIONS_string
PCGamingWiki is your friend.
I have tried the suggestions you mentioned and many other suggestions already. But it didn't work, unfortunately. Discussion is here:
[http://www.sof1.org/viewtopic.php?t=4311](http://www.sof1.org/viewtopic.php?t=4311)
New "ref_gl.dll" have already been made in "Soldier of Fortune Community Edition". It does not work.
I see you use an AMD card and an open source driver like myself.
"Soldier of Fortune: Community Edition" is available here:
[http://www.sof1.org/sofdownload.php](http://www.sof1.org/sofdownload.php)
If want to try, you can download it here.
* Install the Windows version of the game with Wine.
* Grab the[ modified installer for the Loki port](https://liflg.org/?catid=7) (under beta) and extract it with unzip.
* Extract the resulting tar file for the linux port binaries.
* Grab game data files from Wine install.
* Symlink /usr/lib/i386-linux-gnu/libGL.so.1 (or wherever it lives on your system) to libGL.so in game dir.
* Start with ./sof +set gl_driver libGL.so
The game runs and is playable, the big gotcha is that sound doesn't work. Launching it with pasuspender results in a segfault here:
#0 0xf6d3f4f2 in sl_add () from /lib/i386-linux-gnu/libbsd.so.0
No symbol table info available.
#1 0xee110386 in _S_StartSound () from ./liboasnd.so
Seems to be working fine with MESA_EXTENSION_MAX_YEAR=2000 and gl_gentextures_broken "1" in config.cfg.
View PC info
I wrote a [resolution](http://dusted.dk/pages/sof-resolution/) hack, and that still works. I updated the page with additional information on how to fix a segmentation fault that occurs because of a too long extension list (what whizse suggest seems reasonable, but didn't work for me on Linux, so I found another way as detailed on the resolution hack page).
I'm having the same trouble as you, getting it to work with padsp.. Someone gives sl_add a bad parameter, probably _S_StartSound.. Now, I've not found the source for libaosnd.so (which provides _S_StartSound) but I've managed to get the modified alsa version from the Loki CD to build and that actually kinda works.. It will play ONE sound, after playback, it crashes, as described by rea987.
I wonder if the problem is that the poor _S_StartSound function ALSO gets unexpected data, in that case, it would get it from the alsa lib, which it loads. If that is the case, we may be able to modify the alsa lib to provide the expected parameters to _S_StartSound..
Anyone got updated info on this ? I'm very interested in knowing if rea987 were able to get hold of Alan and maybe obtain the source for the liboasnd ? :)
Running the game with "+set logfile 2 +set gl_log", the ref_gl section of the log looks like this on my main system:
However on my old system it looks like this:
The bug is likely purely user-space, possibly akin to the exported symbol problem.
But cool to have sound working via the OSS in 2020 =P
PS don't think ALSA has anything to do with the game at all, it has to be OSS only.
PPS liboasnd must be a proprietary lib, specific to SoF.,,
Think this deserves a 3rd resurrect...
It's 3 in the morning, I'm wearing my glasses and I've finally got it.
An older libbsd did the trick (http://launchpadlibrarian.net/170117961/libbsd0_0.6.0-2ubuntu1_i386.deb)
LD_PRELOAD=./libbsd.so.0 ./sof (plus your favorite OSS emulator)
Damn it's so simple.
Last edited by mos on 29 May 2020 at 10:16 pm UTC