Welcome to Soldier of Fortune Community Forums
25 May 2017, 01:08


View unanswered postsView active topics



Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Sof 1 CE on Ubuntu/Wine? 
Author Message
Turkey

User avatar

Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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.


14 Apr 2017, 00:06
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
Install proprietary drivers for your video card, they normally have support for OpenGL while native drivers may not:
How to install proprietary drivers in Ubuntu


23 Apr 2017, 11:04
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
ZXProto wrote:
Install proprietary drivers for your video card, they normally have support for OpenGL while native drivers may not:
How to install proprietary drivers in Ubuntu


My graphics card is ATI® Radeon™ HD 5450 and unfortunately there is no driver for Ubuntu 16.04.


28 Apr 2017, 19:50
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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:
RadeonDriver - Community Help Wiki
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

I'm sorry but I can't help you further than this, I have an Nvidia card.


01 May 2017, 17:29
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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:


20 May 2017, 17:59
Profile
Great Britain

User avatar

Joined:
Mon Nov 21st, 2011
Location: England
Posts: 3076
Reply with quote
I deleted your wine log megalanya, it was so long it stopped the page from loading.
Upload it in a zip file or something ;)


20 May 2017, 18:02
Profile WWW
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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:

Soldier of Fortune things

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 :)


20 May 2017, 23:51
Profile
Great Britain

User avatar

Joined:
Fri Dec 02nd, 2011
Posts: 88
Reply with quote
64bit Ubuntu? EDIT: tell me version of ubuntu:) + architecture


Last edited by d3nd3 on 21 May 2017, 00:06, edited 1 time in total.



20 May 2017, 23:55
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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.


21 May 2017, 00:05
Profile
Great Britain

User avatar

Joined:
Fri Dec 02nd, 2011
Posts: 88
Reply with quote
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.


21 May 2017, 00:08
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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:

Soldier of Fortune things

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/0B6l0qI2uOWsIMFMyWE9wY3lMS1k/view

d3nd3 wrote:
64bit Ubuntu?


Yes. I am using 64-bit Ubuntu 16.04.2

Code:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


21 May 2017, 00:24
Profile
Great Britain

User avatar

Joined:
Fri Dec 02nd, 2011
Posts: 88
Reply with quote
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?


21 May 2017, 03:00
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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:
wine-2.4 (Staging)


LIBGL_DEBUG=verbose wine SoF.exe

Code:
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:
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


21 May 2017, 03:30
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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 :)


21 May 2017, 15:57
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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


21 May 2017, 17:27
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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.


21 May 2017, 20:01
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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/


21 May 2017, 20:32
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
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:
Quake3: Arena Demo - FilePlanet
I still don't have an answer why a Quake 3 game works and a Quake 2 one doesn't.


21 May 2017, 21:53
Profile
Turkey

User avatar

Topic author
Joined:
Thu Apr 06th, 2017
Posts: 10
Reply with quote
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:
Quake3: Arena Demo - FilePlanet
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


21 May 2017, 22:34
Profile
Chile

User avatar

Joined:
Thu Mar 23rd, 2017
Posts: 11
Reply with quote
megalanya wrote:
Mesa is already installed. Outputs;

LIBGL_DEBUG=verbose glxinfo

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


Code:
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.
llvmpipe
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:
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.


21 May 2017, 23:39
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 23 posts ]  Go to page 1, 2  Next
Topic Views: 360


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org