Age of Wonders III

Age of Wonders III

View Stats:
Jose[Linux] Mar 12, 2015 @ 3:38pm
[Linux] Game does not render properly with mesa drivers (radeonsi)
Although the game can start properly when passing the MESA_GL_VERSION_OVERRIDE=4.0 MESA_GLSL_VERSION_OVERRIDE=400 arguments, some texture do not render correctly.

For example, the character in the main menu shows all in black. And when starting a match, the view goes all brown (no proper textures showing).

I presume this is a current limitation of mesa, which does not fully support OpenGL 4.0 yet.

So for now I will refrain from sending the beta report mail cause the problem described probably is not related to the game itself.

Any other mesa users are welcome to inform about their experience.
< >
Showing 1-15 of 30 comments
Happy Mar 13, 2015 @ 1:53am 
We're using OpenGL 3.2 with GLSL version 1.4, could you try that as the override?
Jose[Linux] Mar 13, 2015 @ 3:36am 
Thank you for your quick reply! I'll try to give it a go during the weekend. I am longing for playing this game!! :D

By the way, if I don't force the mesa override, the following happens:
- The game starts the loading process (black screen while loading instead of the logo of the game, which correctly shows with the override).
- The console log spits numerous errors regarding not being able to compile shaders (IIRC) and GLSL 1.40 and 1.50 not being supported by the driver (While in fact mesa does indeed support those versions. However, IIRC mesa had some trouble with creating OpenGL contexts...).
- Once the loading is complete (the log says something about finishing the loading process) and thus the menu should appear, the game crashes.

Interestingly, according to the log the game tries to use some files under some subdirectories in /home/lascha/ That directory obviously does not exist in my system. Is that the correct behaviour? I presume yes because with the override it loads OK, but not sure if that could be related to textures not showing correctly.

I will also post the log output without the override.
Happy Mar 13, 2015 @ 3:55am 
If the drivers do support it, then I suspect it's a context issue. I can reproduce it, and even though I tell it to create a 3.2 context it results in a OpenGL 3.0 / GLSL 1.30 context. I don't know much about this, but I shall look into this a bit more soon (a bit swamped at the moment).

Could you post the log for when it tries to load files from /home/lascha/? That's a mistake. :)
Jose[Linux] Mar 13, 2015 @ 2:34pm 
I've pasted the logs both with and without the overrides. You can find them here:

- With overrides: http://pastebin.com/q9V27738

- Without overrides: http://pastebin.com/tLAykArx

I hope they help! Please, if you need anything else, just let me know.
Jose[Linux] Mar 13, 2015 @ 2:48pm 
Ooops, I almost forgot. The log with OpenGL 3.2 and GLSL 1.50 overrides (almost identical to that of the OpenGL and GLSL 4.0 overrides):

Setting breakpad minidump AppID = 226840
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198042971456 [API loaded no]
ATTENTION: default value of option vblank_mode overridden by environment.
Setting breakpad minidump AppID = 226840
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198042971456 [API loaded no]
ATTENTION: default value of option vblank_mode overridden by environment.
UserPath: \home\jose\AoW3\
Working Directory: \media\documentoslinux\jose\Steam\SteamApps\common\AoW3\\
[ERROR]NetGetRegion() not implemented!
STATE [ListProfiles]
STATE [LoadProfiles]
[LANGUAGE] Parsing file "LANGUAGE\TEXT\TITLE\LAUNCHER.8LD" in language "ENGLISH".
[LANGUAGE] Parsing file "LANGUAGE\TEXT\TITLE\NET.8LD" in language "ENGLISH".
STATE [DownloadUserContent]
[Steam] RetrieveSubscribedFiles

[Steam] CreateSubscribedFileQuery: 1

[Steam] CreateSubscribedFileQuery - CreateQueryUserUGCRequest

[Steam] CreateSubscribedFileQuery - SendQueryUGCRequest

[Steam] OnSubcribedFilesRetrieved

[Steam] OnSubcribedFilesRetrieved result: 1

[Steam] OnSubcribedFilesRetrieved init SteamUGCDetails

[Steam] OnSubcribedFilesRetrieved num results returned: 0

[Steam] OnSubcribedFilesRetrieved All Results Processed

[STEAM] RetrieveSubscribedFilesCallback
STATE [UnpackUserContent]
STATE [CreateArchives]
STATE [LoadUserContent]
[LOBBY_CLIENT]Connecting to server...
[INFO][LobbyClient][CON1]Connected (54.229.188.129:48035)
STATE [Play]
[LOBBY_CLIENT]Connected to server
LC_MSG: 1 (res:0) - (state: 8)
LC_MSG: 17 (res:0) - (state: 8)
Storing settings
Saving profile..
STATE [Launch]
Profile saved..
OpenProcess: -profile "jsa1983" -no_registration (null) Create process succeeded..
STATE [Exit]
[INFO][LobbyClient][CON1]Disconnected (54.229.188.129:48035)
Build Number: 15353 - Build Time: UnknownDate UnknownTime -STEAM BUILD
SignIn parameter: jsa1983
-NO_REGISTRATION
[OpenGL] X.Org : Gallium 0.4 on AMD PITCAIRN (3.2 (Core Profile) Mesa 10.6.0-devel (git-48b0a3c 2015-03-12 utopic-oibaf-ppa)) GLSL: 1.50
Content Search Path Added: \home\jose\AoW3\MAPS\ (prio:0) [ENABLED]
Content Search Path Added: \home\jose\AoW3\CAMPAIGNS\ (prio:0) [ENABLED]
Content Search Path Added: \media\documentoslinux\jose\Steam\SteamApps\common\AoW3\LANGUAGE\TEXT\ (prio:1) [ENABLED]
Content Search Path Added: \media\documentoslinux\jose\Steam\SteamApps\common\AoW3\LANGUAGE\ENGLISH\ (prio:1) [ENABLED]
Content Search Path Added: \media\documentoslinux\jose\Steam\SteamApps\common\AoW3\DEVELOPMENT\DEVCONTENT\ (prio:0) [ENABLED]
[ERROR]NetGetRegion() not implemented!
NetRegion: unknown
Using network port: 14800..
[ERROR]NetGetRegion() not implemented!
Initialize took 332 ms
[STATE +] SYSTEM: BOOTUP
Content Search Path Added: \MEDIA\DOCUMENTOSLINUX\JOSE\STEAM\STEAMAPPS\COMMON\AOW3\CONTENT\DLC2\ (prio:10)
Package found: DLC2
Content Search Path Added: \MEDIA\DOCUMENTOSLINUX\JOSE\STEAM\STEAMAPPS\COMMON\AOW3\CONTENT\DLC3\ (prio:10)
Package found: DLC3
Content Search Path Added: \MEDIA\DOCUMENTOSLINUX\JOSE\STEAM\STEAMAPPS\COMMON\AOW3\CONTENT\System\ (prio:10)
Package found: SYSTEM
Content Search Path Added: \MEDIA\DOCUMENTOSLINUX\JOSE\STEAM\STEAMAPPS\COMMON\AOW3\CONTENT\Title\ (prio:10)
Package found: TITLE
List of UPNP devices found on the network :
desc: http://10.10.10.1:5691/gateway.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Installed features:
-no features installed--------------------------------------------------
Resource Feature Validation: Disabled
--------------------------------------------------
NetSyncCRC: -1821544806
[ERROR][FE_BuildVersion]Iggy function EndUpdate returned errors!
[Steam] OnUserStatsReceived
[Steam]Received stats and achievements
Stream Customization Meshes: 6129 ms
[STATE -] SYSTEM: BOOTUP
[STATE +] SYSTEM: INTRO
[STATE -] SYSTEM: INTRO
[STATE +] SYSTEM: START
[STATE -] SYSTEM: START
[STATE +] SYSTEM: TITLE
[STATE -] SYSTEM: TITLE
Release device called
Destroying Window..
Terminate duration: 1.131 seconds
Last edited by Jose[Linux]; Mar 13, 2015 @ 2:50pm
Happy Mar 13, 2015 @ 3:03pm 
Thank you very much :) I'll have a look next week when I get back.

PS. The logging with /home/lascha/ is not an issue. This is the __FILE__ preprocessor macro in gcc (thus hardbaked into the binary) and is purely for debugging purposes (locating which file is causing the issue).
Happy Mar 16, 2015 @ 9:05am 
Tried switching to the "X.Org X Server" open source driver. Was getting the same error as you.

For some reason, when I tell it to create an OpenGL 3.2 context, it creates a 3.0 context instead. Now I tell it to create an OpenGL 3.3 context and it runs fine (except that this driver seems to be extremely slow...).

I don't really know anything about mesa drivers, any chance you (or anyone else) could tell me how to switch to that so I can try to test with that? Thanks :)
Halfy Mar 16, 2015 @ 9:17am 
Originally posted by Lascha:
Tried switching to the "X.Org X Server" open source driver. Was getting the same error as you.

For some reason, when I tell it to create an OpenGL 3.2 context, it creates a 3.0 context instead. Now I tell it to create an OpenGL 3.3 context and it runs fine (except that this driver seems to be extremely slow...).

I don't really know anything about mesa drivers, any chance you (or anyone else) could tell me how to switch to that so I can try to test with that? Thanks :)

Hey, FOSS guy and general Mesa-know-it-all at your service.

The driver you mentioned you are running it on is most likely the driver that renders everything CPUside and will be about as slow as those Intel Intergrated cards from 2008.

Ideally if you could set up a fresh install of any of the Ubuntu releases (Newer the better for mesa) and it will have mesa installed by default in a nice and clean environment to test in. Do not select anything about 'additional' or 'Propitiatory' drivers as that will attempt to install the offical AMD or Nvidia drivers and will not run via the Mesa driver.

Nvidia cards are generally slower on Mesa than AMD depending on the card you own so it would be great if you could give me an outline of the system your using to test with.

If you would prefer to use your current install then I will need to know which GPU you have so I can tell you how to remove the non-free driver driver which will install Mesa. Unfortunatly, it's more work than it's worth to have two sets of drivers installed.

Also if you could chuck me the output of 'glxinfo', that will tell me everything about how opengl is set up for you.

P.S If you prefer then I'm happy to do any mesa testing you want. I'm quite used to debugging issues on these drivers for various games.
Happy Mar 16, 2015 @ 12:14pm 
Awesome! Thank you very much ;) Currently I've got two computers setup. One is a lower end using ATI and the other is a bit higher end using NVIDIA. They're both debugging environments where source control etc, is all already setup so I'd like to keep the current install on both of them. I'll pass you on the info for both computers tomorrow morning (CET) when I get back.
Jose[Linux] Mar 16, 2015 @ 12:26pm 
Originally posted by Lascha:
Awesome! Thank you very much ;) Currently I've got two computers setup. One is a lower end using ATI and the other is a bit higher end using NVIDIA. They're both debugging environments where source control etc, is all already setup so I'd like to keep the current install on both of them. I'll pass you on the info for both computers tomorrow morning (CET) when I get back.

If you have an spare HDD that could be easy to setup and you wouldn't mess your environment.
Halfy Mar 16, 2015 @ 1:45pm 
Originally posted by JoseLinux:
Originally posted by Lascha:
Awesome! Thank you very much ;) Currently I've got two computers setup. One is a lower end using ATI and the other is a bit higher end using NVIDIA. They're both debugging environments where source control etc, is all already setup so I'd like to keep the current install on both of them. I'll pass you on the info for both computers tomorrow morning (CET) when I get back.

If you have an spare HDD that could be easy to setup and you wouldn't mess your environment.


It's a good idea. Failing that though the lower end ATI would probably benefit from having the open source drivers unless it's a 200 series card.
Happy Mar 17, 2015 @ 1:50am 
Originally posted by JoseLinux:
If you have an spare HDD that could be easy to setup and you wouldn't mess your environment.

I want the environment in /and/ the mesa drivers at the same time, so that I can adjust code, recompile, test. Though if uninstalling current drivers becomes too troublesome I'll do that.

ATI Computer:
Curacao XT Radeon R9 270X
Using Video driver for the AMD graphics accelerators from fglrx-updates
glxinfo: pastebin.com/AzUsvnYD

NVIDIA Computer:
GeForce GTX 660
Using NVIDIA binary driver - version 331.113 from nvidia-331
glxinfo: pastebin.com/dYp5n09a
Last edited by Happy; Mar 17, 2015 @ 1:51am
Halfy Mar 17, 2015 @ 6:26am 
Originally posted by Lascha:
Originally posted by JoseLinux:
If you have an spare HDD that could be easy to setup and you wouldn't mess your environment.

I want the environment in /and/ the mesa drivers at the same time, so that I can adjust code, recompile, test. Though if uninstalling current drivers becomes too troublesome I'll do that.

ATI Computer:
Curacao XT Radeon R9 270X
Using Video driver for the AMD graphics accelerators from fglrx-updates
glxinfo: pastebin.com/AzUsvnYD

NVIDIA Computer:
GeForce GTX 660
Using NVIDIA binary driver - version 331.113 from nvidia-331
glxinfo: pastebin.com/dYp5n09a


Looks like your second computer is running 'nouveau' (the open source nvidia driver) which is interesting. Unless your running on a laptop with a intel processor, you might need to reinstall those drivers.


But back to the issue at hand.

http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide#Removing_Catalyst.2Ffglrx

(Would also be handy to install mesa-demos)

Will tell you how to remove the fglrx drivers and install the open drivers.

If all goes well you should be able to run 'glxgears' without issue.
Happy Mar 17, 2015 @ 8:35am 
Hmm, okay that worked. Managed to reproduce the issue with the mesa drivers. Asking for an OpenGL 3.3 seems to fix those errors, and from what I read a 3.3 context should work fine with 3.2 code. The interface seems to work fine, mostly. But there seem to be lots of other glitches though, black textures and so on. I'll post when I know more.
Last edited by Happy; Mar 17, 2015 @ 8:36am
Jose[Linux] Mar 17, 2015 @ 8:47am 
Originally posted by Lascha:
Hmm, okay that worked. Managed to reproduce the issue with the mesa drivers. Asking for an OpenGL 3.3 seems to fix those errors, and from what I read a 3.3 context should work fine with 3.2 code. The interface seems to work fine, mostly. But there seem to be lots of other glitches though, black textures and so on. I'll post when I know more.

Yup, mainly the black textures is the problem I originally reported when forcing the OpenGL, GLSL 4.0 overrides.

I don't know how to debug these problems, but I'd be more than happy to provide any further info or try any fix.

Notice that, in addition to the OpenGL debuggers, with mesa you can use these env vars to help you detect the source of the problems: http://www.mesa3d.org/envvars.html
Last edited by Jose[Linux]; Mar 17, 2015 @ 9:13am
< >
Showing 1-15 of 30 comments
Per page: 1530 50