Sof 1 CE on Ubuntu/Wine?

Models + Mapping, Computer & SOF Problems.
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

I successfully install Soldier of Fortune Community Edition on Ubuntu Wine. But when I try to open it I get an OpenGL error like this.

Screenshot:

Image

What could be the problem? Thanks.
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

Install proprietary drivers for your video card, they normally have support for OpenGL while native drivers may not:
http://www.psychocats.net/ubuntu/drivers" onclick="window.open(this.href);return false;
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

ZXProto wrote:Install proprietary drivers for your video card, they normally have support for OpenGL while native drivers may not:
http://www.psychocats.net/ubuntu/drivers" onclick="window.open(this.href);return false;
My graphics card is ATI® Radeon™ HD 5450 and unfortunately there is no driver for Ubuntu 16.04.
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote:My graphics card is ATI® Radeon™ HD 5450 and unfortunately there is no driver for Ubuntu 16.04.
You are supposed to be covered by the default driver:
https://help.ubuntu.com/community/RadeonDriver" onclick="window.open(this.href);return false;
Your chipset is CEDAR and you should have 3D acceleration. Maybe you OpenGL renderer is set to "software rasterizer" or "llvmpipe" for some strange reason. Read that page for more info.

And what about trying a propietary driver for an older version of Ubuntu?
http://support.amd.com/en-us/download/d ... 4&rev=15.9" onclick="window.open(this.href);return false;

I'm sorry but I can't help you further than this, I have an Nvidia card.
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

In fact, there is no problem with other games that use OpenGL and Direct3D. Games like Doom 2, Quake III, Delta Force: Land Warrior and Half-Life 1 are running without any problems. Only in Soldier of Fortune was such a distress. Wine logs for SoF, look like this:
Reactions: 8
Posts: 3046
Joined: 21 Nov 2011, 21:12

Re: Sof 1 CE on Ubuntu/Wine?

Post by ShocK »

I deleted your wine log megalanya, it was so long it stopped the page from loading.
Upload it in a zip file or something ;)
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote:In fact, there is no problem with other games that use OpenGL and Direct3D. Games like Doom 2, Quake III, Delta Force: Land Warrior and Half-Life 1 are running without any problems. Only in Soldier of Fortune was such a distress. Wine logs for SoF, look like this:
Before you post your compressed log, what version of the game are you using? The CE from this page, Platinum with SoFplus, or just Platinum without any patch? If you are just using vanilla Platinum, you will have to install SoFplus, or at the very least the modified ref_gl.dll:

http://sof1.megalag.org/obsolete/client/" onclick="window.open(this.href);return false;

As that page says, your video card driver is probably returning a GL_EXTENSIONS that's too long and makes the game crash.
If you already have SoFplus, please upload a zipped log somewhere :)
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: Sof 1 CE on Ubuntu/Wine?

Post by d3nd3 »

64bit Ubuntu? EDIT: tell me version of ubuntu:) + architecture
Last edited by d3nd3 on 21 May 2017, 01:06, edited 1 time in total.
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

d3nd3 wrote:64bit Ubuntu?
Doesn't matter, Wine runs in 32. SoF runs great for me with QeffectsGL activated in Ubuntu 16.04 64bit, with both Wine 2.0 and 2.6.
The big problem it has is that Unity, the desktop environment, completely steals the ALT key, so the game loses focus if you press it and you have no option to regain it, having to manually kill the game. Fortunately, Gnome will come back for Ubuntu 18.
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: Sof 1 CE on Ubuntu/Wine?

Post by d3nd3 »

I was asking OP. Please don't argue with me because i typed 2 words :D
I want to fix his problem. Mb OP should try qeffects instead of ref_gl then.
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

ShocK wrote:I deleted your wine log megalanya, it was so long it stopped the page from loading.
Upload it in a zip file or something ;)
I apologize for the trouble. Thanks.
ZXProto wrote:
megalanya wrote:In fact, there is no problem with other games that use OpenGL and Direct3D. Games like Doom 2, Quake III, Delta Force: Land Warrior and Half-Life 1 are running without any problems. Only in Soldier of Fortune was such a distress. Wine logs for SoF, look like this:
Before you post your compressed log, what version of the game are you using? The CE from this page, Platinum with SoFplus, or just Platinum without any patch? If you are just using vanilla Platinum, you will have to install SoFplus, or at the very least the modified ref_gl.dll:

http://sof1.megalag.org/obsolete/client/" onclick="window.open(this.href);return false;

As that page says, your video card driver is probably returning a GL_EXTENSIONS that's too long and makes the game crash.
If you already have SoFplus, please upload a zipped log somewhere :)
My English is too bad. I apologize for this. Unfortunately I have this problem in all SoF versions that I can find. I can finded and tested:

Soldier of Fortune for PC Demo
Soldier of Fortune for PC
Soldier of Fortune: Platinum Edition
Soldier of Fortune: Special Edition
Soldier of Fortune: Community Edition v6.2

SoF CE v6.2's Wine logs:

https://drive.google.com/file/d/0B6l0qI ... lMS1k/view
d3nd3 wrote:64bit Ubuntu?
Yes. I am using 64-bit Ubuntu 16.04.2

Code: Select all

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: Sof 1 CE on Ubuntu/Wine?

Post by d3nd3 »

Have you been able to test other versions of wine?
wine --version ( in terminal )
please.

EDIT: whilst being in the sof folder in terminal ... 'cd blablabla/sof' give me output of :
LIBGL_DEBUG=verbose wine SoF.exe

and try out of curiosity if this helps :
wine SoF.exe +set gl_driver qeffectsgl

EDIT2: have you tried using system defaults instead of bleeding edge things and extra PPA's. ( i noticed you are using an updated mesa ppa ). Or was that after you had problems?
Those games that you listed that WORK... did you use wine with them? If so, which ones?
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

d3nd3 wrote:Have you been able to test other versions of wine?
wine --version ( in terminal )
please.

EDIT: whilst being in the sof folder in terminal ... 'cd blablabla/sof' give me output of :
LIBGL_DEBUG=verbose wine SoF.exe

and try out of curiosity if this helps :
wine SoF.exe +set gl_driver qeffectsgl

EDIT2: have you tried using system defaults instead of bleeding edge things and extra PPA's. ( i noticed you are using an updated mesa ppa ). Or was that after you had problems?
Those games that you listed that WORK... did you use wine with them? If so, which ones?
I tried between 2.0 to 2.8 versions and did not get a result. Current Wine version:

Code: Select all

wine-2.4 (Staging)
LIBGL_DEBUG=verbose wine SoF.exe

Code: Select all

fixme:winediag:start_process Wine Staging 2.4 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
libGL: Can't open configuration file /home/ubuntu/.drirc: Böyle bir dosya ya da dizin yok.
libGL: pci id for fd 24: 1002:68f9, driver r600
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/r600_dri.so
libGL: Can't open configuration file /home/ubuntu/.drirc: Böyle bir dosya ya da dizin yok.
libGL: Can't open configuration file /home/ubuntu/.drirc: Böyle bir dosya ya da dizin yok.
libGL: Using DRI3 for screen 0
recursive shutdown
wine SoF.exe +set gl_driver qeffectsgl

Code: Select all

fixme:winediag:start_process Wine Staging 2.4 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
recursive shutdown
PPA's were added later. Someone recommended Mesa PPAs, but it did not work. Details are in:

https://forum.linuxmint.net.tr/index.php?topic=7940
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote:In fact, there is no problem with other games that use OpenGL and Direct3D. Games like Doom 2, Quake III, Delta Force: Land Warrior and Half-Life 1 are running without any problems.
Sorry Megalanya but I want to get back to this. From those games, only Delta Force is D3D, but also it's the only one which is Windows-only. How many of those are you running under Wine?

My real question is: have you successfully run any other Windows, OpenGL game under Wine?

And I feel your pain, english is not my primary language either but we have to communicate through something. You won't want to read my google-translated turkish :)
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

ZXProto wrote:
megalanya wrote:In fact, there is no problem with other games that use OpenGL and Direct3D. Games like Doom 2, Quake III, Delta Force: Land Warrior and Half-Life 1 are running without any problems.
Sorry Megalanya but I want to get back to this. From those games, only Delta Force is D3D, but also it's the only one which is Windows-only. How many of those are you running under Wine?

My real question is: have you successfully run any other Windows, OpenGL game under Wine?

And I feel your pain, english is not my primary language either but we have to communicate through something. You won't want to read my google-translated turkish :)
You're right. Thank you.

Half-Life 1 (Steam Linux version)
Half-Life: Opposing Force (Steam Linux version)
Half-Life: Blue Shift (Steam Linux version)

Runs without any problems. However, I tried some games with Wine. According to this;

Call of Duty 2 (Windows version)
Delta Force: Land Warrior (Windows version)
Urban Terror (Windows version)

Runs on Wine without any problems. As proof I got some screenshots:

Call of Duty 2:

Image

Delta Force: Land Warrior:

Image

Urban Terror:

Image

Soldier of Fortune:

Image
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote: However, I tried some games with Wine. According to this;

Call of Duty 2 (Windows version)
Delta Force: Land Warrior (Windows version)
Urban Terror (Windows version)

Runs on Wine without any problems.
Thanks for all the info. From those three, only Urban Terror is OpenGL, but that's good enough to discard it as the problem IMHO.

Run the following in your SoF directory:
wine SoF.exe +set logfile 2 +set gl_log 1

This should create the file sof.log in your User directory. Please post its content, or upload it somewhere if its too long.
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

ZXProto wrote:
megalanya wrote: However, I tried some games with Wine. According to this;

Call of Duty 2 (Windows version)
Delta Force: Land Warrior (Windows version)
Urban Terror (Windows version)

Runs on Wine without any problems.
Thanks for all the info. From those three, only Urban Terror is OpenGL, but that's good enough to discard it as the problem IMHO.

Run the following in your SoF directory:
wine SoF.exe +set logfile 2 +set gl_log 1

This should create the file sof.log in your User directory. Please post its content, or upload it somewhere if its too long.
sof.log has been created. Is here;

https://paste.ubuntu.com/24619780/
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote:sof.log has been created. Is here;

https://paste.ubuntu.com/24619780/
That is super weird. Tell me what this returns:
LIBGL_DEBUG=verbose glxinfo

If it doesn't work, do this:
sudo apt-get install mesa-utils
...and then try again.

Also, post what this returns:
dmesg | egrep 'drm|radeon'

If you have the patience, try the Q3A demo and see how it behaves:
https://www.fileplanet.com/34621/30000/ ... Arena-Demo" onclick="window.open(this.href);return false;
I still don't have an answer why a Quake 3 game works and a Quake 2 one doesn't.
Reactions: 0
Posts: 14
Joined: 06 Apr 2017, 20:08

Re: Sof 1 CE on Ubuntu/Wine?

Post by megalanya »

ZXProto wrote:
megalanya wrote:sof.log has been created. Is here;

https://paste.ubuntu.com/24619780/
That is super weird. Tell me what this returns:
LIBGL_DEBUG=verbose glxinfo

If it doesn't work, do this:
sudo apt-get install mesa-utils
...and then try again.

Also, post what this returns:
dmesg | egrep 'drm|radeon'

If you have the patience, try the Q3A demo and see how it behaves:
https://www.fileplanet.com/34621/30000/ ... Arena-Demo" onclick="window.open(this.href);return false;
I still don't have an answer why a Quake 3 game works and a Quake 2 one doesn't.
Mesa is already installed. Outputs;

LIBGL_DEBUG=verbose glxinfo

https://paste.ubuntu.com/24620472/

dmesg | egrep 'drm|radeon'

https://paste.ubuntu.com/24620482/

Quake III works great. Screenshot:

Image
Reactions: 0
Posts: 12
Joined: 23 Mar 2017, 03:10

Re: Sof 1 CE on Ubuntu/Wine?

Post by ZXProto »

megalanya wrote:Mesa is already installed. Outputs;

LIBGL_DEBUG=verbose glxinfo

https://paste.ubuntu.com/24620472/

Code: Select all

OpenGL renderer string: Gallium 0.4 on AMD CEDAR (DRM 2.43.0 / 4.4.0-78-generic, LLVM 4.0.0)
That is a software renderer. Somehow Q3 accepts it but Q2 rejects it. People say it's pretty quick, so I don't blame you if you couldn't tell the difference.
https://www.mesa3d.org/llvmpipe.html" onclick="window.open(this.href);return false;
I'm sorry, but I don't know how it ended there or how to fix it. You can try asking in Linux forums about your card and how to change Gallium for an OpenGL renderer. As I said before, normally video drivers take care of that.

In any case, I'm curious about how Steam handles this. I'd like you to try one last thing: delete (if exists) config.cfg from the User directory inside SoF, then run the following in the SoF directory:

Code: Select all

LD_LIBRARY_PATH=~/.local/share/Steam/ubuntu12_32:~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu:~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu:. wine SoF.exe
Let's see if the game loads using the libraries from Steam.
Post Reply

Who is online

Users browsing this forum: Dot and 31 guests