It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Just a reminder, d3nd3 recently installed the loki linux version, and managed to patch the protocol. so now the loki version (1.06) can connect to the latest 1.07 version servers. Info here if anyone is interested https://github.com/d3nd3/soflinux

(a 'how-to' of installing the native linux verssion + some fixes for crashes)
Post edited April 04, 2021 by gTh1mfdvlA
thanks @adamhm

SoF1 works great.
but SoF2 has a .sh problem with the filename and the checksum

the new name is
setup_soldier_of_fortune_ii_double_helix_1.03_hotfix_(45658).exe


Testing checksum for PlayOnLinux-wine-6.0-upstream-linux-x86.tar.gz
PlayOnLinux-wine-6.0-upstream-linux-x86.tar.gz: OK
Checking for the lnkread archive...
/home/mcmarius11/.cache/winewrap/lnkread-20180903.tar.xz: OK
Testing SHA256 hashes for installer and wrapper resource files...
/home/mcmarius11/Games/SoF2/soldier_of_fortune_2_res.tar.xz: OK
/home/mcmarius11/Games/SoF2/setup_soldier_of_fortune_ii_double_helix_1.03_(23985).exe: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
ERROR: checksum failed on one or more files
Post edited April 04, 2021 by McMarius11
It's updated now :)
avatar
adamhm: It's updated now :)
thanks for the quick update,

when i use the .sh for SoF2 then everything looks good except this

Moving files into place...
Archive: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/temp/app/webcache.zip
inflating: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/temp/7f1b54f1a9d58a21349484b53bf937a24da46957b69b6a57ebc0d3d55ff30dfa.png
wrestool: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/temp/app/SoF2.exe: don't know how to extract resource, try `--raw'
wrestool: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/temp/app/SoF2MP.exe: don't know how to extract resource, try `--raw'
wrestool: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/temp/app/SoF2MP.exe: don't know how to extract resource, try `--raw'
Done.

after that i want to run the start.sh and the game crashes
Don't worry about those messages, some files make wrestool/icotool produce messages like that even though they've worked as expected.

avatar
McMarius11: after that i want to run the start.sh and the game crashes
You're probably just missing some dependencies that Wine/the game needs... try opening the wrapper directory in a terminal and running the start script like this to see what error messages it produces:

WINEDEBUG="" ./start.sh play
Post edited April 04, 2021 by adamhm
avatar
adamhm: Don't worry about those messages, some files make wrestool/icotool produce messages like that even though they've worked as expected.

avatar
McMarius11: after that i want to run the start.sh and the game crashes
avatar
adamhm: You're probably just missing some dependencies that Wine/the game needs... try opening the wrapper directory in a terminal and running the start script like this to see what error messages it produces:

WINEDEBUG="" ./start.sh play
this is the log

this is the error i am getting

Current desktop resolution: 1920x1080
Detected 2 display output(s). Connected outputs:
eDP: 1920x1080 (primary)
Could not read the display gamma.
Wine version: wine-6.0
Prefix is 32-bit
Userdata directory: /home/mcmarius11/.local/share/soldier_of_fortune_2
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
Running: SoF2.exe
Working directory: /home/mcmarius11/Games/gog/SoF_2/Soldier of Fortune 2/prefix/drive_c/Soldier of Fortune 2
Using virtual desktop with resolution: 1920x1080
00d4:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0x1.
00d4:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (00A1EA1C 1 C) semi-stub
wine: Unhandled page fault on read access to 00000000 at address 00000000 (thread 00d4), starting debugger...
Hmm, doesn't say a lot. What GPU and graphics drivers are you using?

It might be helpful to create a system report: from the start script's menus, select Advanced options... --> Create system report
avatar
adamhm: Hmm, doesn't say a lot. What GPU and graphics drivers are you using?

It might be helpful to create a system report: from the start script's menus, select Advanced options... --> Create system report
https://gist.github.com/McMarius11/0264cfb10d0ee717ea6cb24bba1f3cba

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.10-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Memory: 5,6 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 10 Graphics
My initial thought was that maybe you were using an Nvidia GPU & there might be issues with the workaround that needs... but you're using an AMD GPU with the open drivers. I can see from the system library checks that you're missing some libraries though:

libmpg123 (32-bit)
libncurses (32 & 64 bit)
libpng12 (32 & 64 bit)
libSDL2_image (32 & 64 bit)
libSDL2_mixer (32 & 64 bit)

libpng12 is not needed for this but try installing the others at least and seeing if that helps.
avatar
adamhm: My initial thought was that maybe you were using an Nvidia GPU & there might be issues with the workaround that needs... but you're using an AMD GPU with the open drivers. I can see from the system library checks that you're missing some libraries though:

libmpg123 (32-bit)
libncurses (32 & 64 bit)
libpng12 (32 & 64 bit)
libSDL2_image (32 & 64 bit)
libSDL2_mixer (32 & 64 bit)

libpng12 is not needed for this but try installing the others at least and seeing if that helps.
i had to activate emulate virtual desktop and start the game and disable it after it first started.

the game will create sof2sp.cfg in /gamedir/base after the creation it works

someone on lutris posted the fix
https://lutris.net/games/soldier-of-fortune-ii-double-helix/

edit:
i installed the game fresh and copied sof2sp.cfg to /gamedir/base and started the game and it worked
Post edited April 05, 2021 by McMarius11
The start script should copy over a default sof2sp.cfg with the desktop display resolution preset on first run making that unnecessary; it should work outright without needing any extra steps like that, and it does on my systems at least...

Also the wrapper is configured to automatically use a virtual desktop at your desktop resolution; there should be no need to set one manually?

Try building the wrapper, clearing the userdata directory and then running start.sh *but not starting the game*. There should be a sof2sp.cfg in the userdata directory along with gfx and save directories, and starting the game should work fine - the only issue is that due to the widescreen fix the intro videos won't work properly, so you'll need to either wait them out or hit escape to skip them.
Post edited April 05, 2021 by adamhm
now it works, i don't get it, maybe the reboot i did fixed it somehow.
i think the script did not get executed correctly but now it does.

but the packages are still missing and now it runs without any problem.

thanks for the help :) maybe i can replicate it somehow

SoF1 worked out of the box, the problem was only with SoF2, i will test this later on my other PC

edit: on my other PC it worked flawless
Post edited April 17, 2021 by McMarius11