WineHQ

Soldier of Fortune

CD released versions, includes Gold and Platinum

Application Details:

Version: 1.x
License:
URL: http://www.activision.com/game...
Votes: 0
Latest Rating: Gold
Latest Wine Version Tested: 8.11

Maintainers: About Maintainership

No maintainers. Volunteer today!

Test Results

Old test results
The test results you have selected are very old and may not represent the current state of Wine.
Selected Test Results

What works

After working around a couple of problems, I was able to play through the entire single-player campaign without any major issues.

What does not

Fails to detect OpenGL renderer for AMD Mesa open-source driver due to 'generic' appearing in the name.  This prevents the game from launching.


Here is what the game doesn't like:

$ glxinfo | grep OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 5700 XT (navi10, LLVM 13.0.1, DRM 3.42, 5.15.0-56-generic)

This can be worked around by editing one of the game's dlls.


After fixing the renderer issue, I also observed severe texturing issues on most models and surfaces in the game.  This can be worked around with config file edits.

Workarounds

The fixes described by other users in the how-to section worked for me.  Specifically, the following two fixes were needed.


Modifying the ref_gl.dll to remove the special case for 'generic' in the OpenGL renderer string resolved the launch issue:

sed -i s/generic/SoFsuxx/ ref_gl.dll



Setting the following values in config.cfg resolved the texturing issues:

set gl_fogverts "0"

set gl_fogmode "0"

set gl_rj "0"

set cpu_memory_using "3"

set gl_gentextures_broken "1"

set gl_scissor_broken "0"

set gl_swapinterval "1"

set gl_s3_s3tc "0"

set gl_ext_anisotropic "0"

set gl_ext_multitexture "1"

set gl_ext_swapinterval "1"

set gl_displayrefresh "0"



Some users have reported needing to set the following ENV var, but the game worked for me without it.

MESA_EXTENSION_MAX_YEAR=2000

What was not tested

Multiplayer

Hardware tested

Graphics:

  • GPU: AMD
  • Driver: open source

Additional Comments

I installed the game using using the version 1.07f (final release) installer from GoG.  I ran the guided installation through Lutris, and allowed it to also install a community patch with widescreen and FOV fixes.

After installing, do not immediately launch the game. Further config edits are required before the game will work (see renderer and texture fixes above).

On first launch, after setting a new screen resolution, the game menu may become corrupted.  Just exit and relaunch the game, then it should be fine.  I was able to play at 1920x1080 without any issues.

Some users mentioned issues with the 'radeon' driver and recommended using 'fglrx' instead.  However, my card is newer and thus uses the 'amdgpu' driver.  See below:

$ inxi -G
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu resolution: 1920x1080
  OpenGL: renderer: AMD Radeon RX 5700 XT (navi10 LLVM 13.0.1 DRM 3.42
  5.15.0-56-generic)
    v: 4.6 Mesa 22.0.5


I did observe some graphical corruption during the Siberia mission.  When turning rapidly in the outdoor areas of the level, the left and right sides of the screen would display blank or cloned imagery.  The middle of the screen was fine and it did not impact gameplay.  I suspect this bug is related to the widescreen patch.

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
ShowUbuntu 22.04 "Jammy" (+ variants like Kubuntu)Jun 30 20238.11Yes Yes YesGoldalrito 
CurrentUbuntu 22.04 "Jammy" (+ variants like Kubuntu)Dec 30 20227.22Yes Yes YesGoldMatt Lanahan 
ShowDebian GNU/Linux Unstable "Sid" x86_64Feb 22 20183.1Yes Yes YesGoldSven Arvidsson 
ShowUbuntu 17.10 "Artful" amd64 (+variants like Kubuntu)Aug 30 20172.15-stagingYes No NoGarbageMehmet 
ShowUbuntu 16.04 "Xenial" amd64 (+ variants like Kubuntu)Apr 02 20172.4Yes No NoGarbageMehmet 

Known Bugs

Bug # Description Status Resolution Other apps affected

Show all bugs

HowTo / Notes

Missing Textures Fix

2015-06-02 Admin note: the following was extracted from user comments made in 2014 and may not apply to current Wine.


It has been reported that the following changes to the config.cfg may fix the texture-related problems:

set gl_fogverts "0"
set gl_fogmode "0"
set gl_rj "0"
set cpu_memory_using "3"
set gl_gentextures_broken "1"
set gl_scissor_broken "0"
set gl_swapinterval "1"
set gl_s3_s3tc "0"
set gl_ext_anisotropic "0"
set gl_ext_multitexture "1"
set gl_ext_swapinterval "1"
set gl_displayrefresh "0"

Other solutions:
* Use the fglx driver instead of the radeon driver
* Select 'QeffectsGL' instead of 'Default OpenGL' in de SoF video settings menu (QeffectsGL.dll is an opengl32.dll wrapper DLL that's distributed with the SoFplus 20140531 client mod)

Workaround for OpenGL rendering environment initalisation error

The default OpenGL renderer (ref_gl.dll) may reject any driver that has the string "generic" in GL_RENDERER.  This can make the game fail to launch e.g. on Ubuntu, since the kernel version is exposed in GL_RENDERER and contains the "-generic" suffix:

    $ glxinfo | grep 'renderer string'
    OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.27.0, 5.0.0-20-generic, LLVM 8.0.0)

Since ref_gl.dll contains only one occurrence of "generic", it is easy to patch the file for example by using sed to replace the word with another equal-length word that does not conflict with your GL_RENDERER:

    sed -i s/generic/SoFsuxx/ ref_gl.dll

Comments

Comments Disabled

Comments for this application have been disabled because there are no maintainers.
Back