Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Careful Plum on August 23, 2009, 09:50:43 am

Title: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 09:50:43 am
Hello there :).

I suppose this isn't really the right place to post this, since it's not directly related to Freespace, but why not? Maybe someone is able to help!

I have a Radeon HD 4600 on Windows XP and an Athlon 64. Not sure whether any other specs would be relevant...

When I try to run FSO, I get the error message "Unable to get proper pixel format for OpenGL W32". Now, I'm pretty sure that's because my computer runs on an old version of OpenGL, apparently 1.1. However, apparently the HD 4600 is supposed to support OpenGL 2.0 at least, and I have the newest Catalyst drivers. So, what could be the cause for this problem? Do I need any other drivers or something?

And of course, absolutely great projects all of you have here! I just hope I can enjoy them for myself at some time ;).
Title: Re: Radeon and OpenGL
Post by: The E on August 23, 2009, 09:54:42 am
That error is usually caused by a driver error.

Check out this entry in the FAQ (http://www.hard-light.net/forums/index.php/topic,56279.msg1180356.html#msg1180356). Try to download the atioglxx.dll referenced there, and stick it into your FS2 directory.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:00:58 am
Thanks for the amazingly fast reply... unfortunately, it doesn't seem to work. There's no change at all... :confused:
Title: Re: Radeon and OpenGL
Post by: The E on August 23, 2009, 10:06:39 am
Can you run a debug build, and post the log here? It'll be called fs2_open.log, and will be in the data folder in your FS2 directory.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:18:24 am
I'm not sure. I should have said that before, after clicking the error message from above, I get another window where it says "Unable to initialize display device" And copies the following into the clipboard:

Assert: bpp == 32
File: gropengl.cpp
Line: 2709


Call stack:
------------------------------------------------------------------
    gr_opengl_init()    gr_init_sub()    gr_init()    game_init()    game_main()    WinMain()    WinMainCRTStartup()    kernel32.dll 7c817077()
------------------------------------------------------------------

At the bottom it says "Use ok to break into Debugger, Cancel exits". However, after clicking OK, Windows just says there's a problem with FreeSpace and closes it. That's the error log from the data folder:

==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
FreeSpace version: 3.6.10
Passed cmdline options:
  <none>
Building file index...
Found root pack 'C:\Games\FreeSpace2\root_fs2.vp' with a checksum of 0x3f08ae08
Found root pack 'C:\Games\FreeSpace2\smarty_fs2.vp' with a checksum of 0x0098ee1f
Found root pack 'C:\Games\FreeSpace2\sparky_fs2.vp' with a checksum of 0x749032a2
Found root pack 'C:\Games\FreeSpace2\sparky_hi_fs2.vp' with a checksum of 0x566add58
Found root pack 'C:\Games\FreeSpace2\stu_fs2.vp' with a checksum of 0xf2983309
Found root pack 'C:\Games\FreeSpace2\tango1_fs2.vp' with a checksum of 0xd4e3ad49
Found root pack 'C:\Games\FreeSpace2\tango2_fs2.vp' with a checksum of 0x799e46a1
Found root pack 'C:\Games\FreeSpace2\tango3_fs2.vp' with a checksum of 0x825f5ee0
Found root pack 'C:\Games\FreeSpace2\warble_fs2.vp' with a checksum of 0xa7037300
Searching root 'C:\Games\FreeSpace2\' ... 8 files
Searching root pack 'C:\Games\FreeSpace2\root_fs2.vp' ... 157 files
Searching root pack 'C:\Games\FreeSpace2\smarty_fs2.vp' ... 10 files
Searching root pack 'C:\Games\FreeSpace2\sparky_fs2.vp' ... 3027 files
Searching root pack 'C:\Games\FreeSpace2\sparky_hi_fs2.vp' ... 1337 files
Searching root pack 'C:\Games\FreeSpace2\stu_fs2.vp' ... 1777 files
Searching root pack 'C:\Games\FreeSpace2\tango1_fs2.vp' ... 32 files
Searching root pack 'C:\Games\FreeSpace2\tango2_fs2.vp' ... 15 files
Searching root pack 'C:\Games\FreeSpace2\tango3_fs2.vp' ... 10 files
Searching root pack 'C:\Games\FreeSpace2\warble_fs2.vp' ... 52 files
Found 10 roots and 6425 files.
AutoLang: Language auto-detection successful...
Setting language to German
Initializing OpenAL...
  Using 'Generic Software' as OpenAL sound device...
  OpenAL Vendor     : Creative Labs Inc.
  OpenAL Renderer   : Software
  OpenAL Version    : 1.1

... OpenAL successfully initialized!
Initializing OpenGL graphics device at 640x480 with 16-bit color...
  Initializing WGL...
ASSERTION: "bpp == 32" at gropengl.cpp:2709
    gr_opengl_init()    gr_init_sub()    gr_init()    game_init()    game_main()    WinMain()    WinMainCRTStartup()    kernel32.dll 7c817077()
Int3(): From e:\storage\fso\fs2_open_3_6_10\code\globalincs\windebug.cpp at line 1075
Title: Re: Radeon and OpenGL
Post by: The E on August 23, 2009, 10:24:27 am
Ah, there we have it. You do not seem to have used the Launcher. Please go to the 3.6.10 Final release thread (http://www.hard-light.net/forums/index.php/topic,64520.0.html), and download it. Unzip it, and copy it to your FreeSpace directory. Select the 3.6.10 build in the Launcher by clicking the Browse button, then use it to set the desired resolution and color depth. You should use the 32 bit color depth, anything else, and you might see errors.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:33:22 am
Uh, no I did use the Launcher (and selected "fs2_open_3_6_10.exe" as well as "fs2_open_3_6_10d.exe" for good measure), and set the color depth to 32 bit. I forgot to set Audio to "Generic Software" (saw this in the installation instructions just now), but it doesn't make a difference. And of course I tried downloading everything again...
Title: Re: Radeon and OpenGL
Post by: The E on August 23, 2009, 10:38:17 am
Weird.

The log shows that the game is starting with a resolution setting of 640x480 with 16 bits of color depth. That's not normal. Run the Launcher again, only this time, press the "Apply" Button. Should that not work, restart the Launcher with Admin privileges.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:40:11 am
Well, I didn't set the color to 32bit for the log up there, obviously, but. Sorry! I was trying various settings ;). With it it's just the same, though (see the new log below). I'm already running it with admin privileges (it's on XP).

==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
FreeSpace version: 3.6.10
Passed cmdline options:
  <none>
Building file index...
Found root pack 'C:\Games\FreeSpace2\root_fs2.vp' with a checksum of 0x3f08ae08
Found root pack 'C:\Games\FreeSpace2\smarty_fs2.vp' with a checksum of 0x0098ee1f
Found root pack 'C:\Games\FreeSpace2\sparky_fs2.vp' with a checksum of 0x749032a2
Found root pack 'C:\Games\FreeSpace2\sparky_hi_fs2.vp' with a checksum of 0x566add58
Found root pack 'C:\Games\FreeSpace2\stu_fs2.vp' with a checksum of 0xf2983309
Found root pack 'C:\Games\FreeSpace2\tango1_fs2.vp' with a checksum of 0xd4e3ad49
Found root pack 'C:\Games\FreeSpace2\tango2_fs2.vp' with a checksum of 0x799e46a1
Found root pack 'C:\Games\FreeSpace2\tango3_fs2.vp' with a checksum of 0x825f5ee0
Found root pack 'C:\Games\FreeSpace2\warble_fs2.vp' with a checksum of 0xa7037300
Searching root 'C:\Games\FreeSpace2\' ... 8 files
Searching root pack 'C:\Games\FreeSpace2\root_fs2.vp' ... 157 files
Searching root pack 'C:\Games\FreeSpace2\smarty_fs2.vp' ... 10 files
Searching root pack 'C:\Games\FreeSpace2\sparky_fs2.vp' ... 3027 files
Searching root pack 'C:\Games\FreeSpace2\sparky_hi_fs2.vp' ... 1337 files
Searching root pack 'C:\Games\FreeSpace2\stu_fs2.vp' ... 1777 files
Searching root pack 'C:\Games\FreeSpace2\tango1_fs2.vp' ... 32 files
Searching root pack 'C:\Games\FreeSpace2\tango2_fs2.vp' ... 15 files
Searching root pack 'C:\Games\FreeSpace2\tango3_fs2.vp' ... 10 files
Searching root pack 'C:\Games\FreeSpace2\warble_fs2.vp' ... 52 files
Found 10 roots and 6425 files.
AutoLang: Language auto-detection successful...
Setting language to German
Initializing OpenAL...
  Using 'Generic Software' as OpenAL sound device...
  OpenAL Vendor     : Creative Labs Inc.
  OpenAL Renderer   : Software
  OpenAL Version    : 1.1

... OpenAL successfully initialized!
Initializing OpenGL graphics device at 1280x1024 with 32-bit color...
  Initializing WGL...
ERROR: Unable to initialize display device!

File: gropengl.cpp
Line: 2972
    gr_init_sub()    gr_init()    game_init()    game_main()    WinMain()    WinMainCRTStartup()    kernel32.dll 7c817077()
Int3(): From e:\storage\fso\fs2_open_3_6_10\code\globalincs\windebug.cpp at line 1235
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:43:32 am
I'm not sure whether I'm really running a "debug build" as instructed...
Title: Re: Radeon and OpenGL
Post by: The E on August 23, 2009, 10:49:59 am
Right. Sorry, I'm just making sure that all the i's are dotted and the t's are crossed. And right now, I would guess this is a driver error.
Oh, believe me, if you get a debug log, you have been running a debug build. But the purpose of those is not to fix bugs by themselves, but to give us troubleshooters and developers the information needed to track down errors.

Oh, and make sure your desktop color depth is set to 32 bits as well.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 10:54:46 am
Oh, of course. I'm actually unhappy to hear that all the i's seem to be dotted  :D.
And yeah, the desktop is set to 32.
Title: Re: Radeon and OpenGL
Post by: colecampbell666 on August 23, 2009, 11:19:59 am
Try a different set of drivers, older or newer ones perhaps.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 01:04:07 pm
Well, I'll try that, though old ATI drivers seem hard to find. I'll report back when I find some/get to actually try them out :).
Title: Re: Radeon and OpenGL
Post by: Wanderer on August 23, 2009, 01:49:01 pm
Hmmm.. After a bit of browsing i found something which might be worth a try

First open the retail launcher and make sure you have that setup.

Then try opening the freespace open launcher and point to an exe file (debug exe).

And try again starting the game.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 23, 2009, 03:14:30 pm
I'm... not sure that I understand correctly. What do you mean by "make sure you have that setup."? The retail version runs fine, but it only lets me select Direct3d in the setup menu, if that's what you mean.
Title: Re: Radeon and OpenGL
Post by: Zacam on August 23, 2009, 06:24:01 pm
He means, Run the Retail Freespace2.exe and make sure IT is graphically set up for the highest possible settings and exit.

The registry keys that the launcher (FSO Launcher that is) may not being created BY said launcher.

Now, you won't (in Retail) be able to set OpenGL as a graphics device. That's fine. Just choose 1024x768x32 and let it "Detect" your system for performance and then set it to "High" if it doesn't already set it there.

Okay the Retail Launcher, exit the Retail Launcher, and re-run the FSO Launcher and choose an FSO exe and verify that yor settings are set, or set them again, hit "Apply" and then "Run".
Title: Re: Radeon and OpenGL
Post by: portej05 on August 23, 2009, 08:36:25 pm
This is kinda curious:

Code: [Select]
Passed cmdline options:
  <none>

I wonder if this is related to the problems Echelon9 is having with Antipodes at the moment.
Title: Re: Radeon and OpenGL
Post by: Careful Plum on August 25, 2009, 01:01:37 pm
Argh, I can't really find drivers old enough, and the thing with configuring the retail version didn't help either...
Maybe there's an older version that still supports Direct3D available somewhere?
Title: Re: Radeon and OpenGL
Post by: Deepstar on August 28, 2009, 03:52:47 am
There are no MediaVPs installed or at least selected?

I'm not sure... but isn't the mv_core required for 3.6.10?
Title: Re: Radeon and OpenGL
Post by: The E on August 28, 2009, 03:56:38 am
No. 3.6.10 does not need mv_core to function correctly, it runs just fine with just the retail data. Usually, anyway.
Title: Re: Radeon and OpenGL
Post by: ShihiZu on November 26, 2009, 08:21:51 am
I've got the exactly the same problem.
I got a noteboot with a ATI Mobility HD 4570 and installed Catalyst 9.3 with DH Mobility Modder. I tried installing 9.11, but I couldn't get it working.

Any help would be appreciated. :)

My fs2_open.log looks like this:
Code: [Select]
==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
FreeSpace version: 3.6.10
Passed cmdline options:
  -spec_exp 15
  -ogl_spec 20
  -spec_static 1.5
  -spec_point 1.2
  -spec_tube 1.5
  -ambient_factor 35
  -env
  -missile_lighting
  -glow
  -spec
  -3dshockwave
  -3dwarp
  -warp_flash
  -mod mediavps
Building file index...
Found root pack 'D:\Spiele\FreeSpace2\mediavps\3610_Patch.vp' with a checksum of 0x07e72699
Found root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Advanced.vp' with a checksum of 0xd06bf123
Found root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Assets.vp' with a checksum of 0xc9e372bb
Found root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Core.vp' with a checksum of 0x0dc7bb8f
Found root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Effects.vp' with a checksum of 0xa3141c30
Found root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Music.vp' with a checksum of 0x4dbbbe96
Found root pack 'D:\Spiele\FreeSpace2\root_fs2.vp' with a checksum of 0x3f08ae08
Found root pack 'D:\Spiele\FreeSpace2\smarty_fs2.vp' with a checksum of 0x0098ee1f
Found root pack 'D:\Spiele\FreeSpace2\sparky_fs2.vp' with a checksum of 0x749032a2
Found root pack 'D:\Spiele\FreeSpace2\sparky_hi_fs2.vp' with a checksum of 0x566add58
Found root pack 'D:\Spiele\FreeSpace2\stu_fs2.vp' with a checksum of 0xf2983309
Found root pack 'D:\Spiele\FreeSpace2\tango1_fs2.vp' with a checksum of 0xd4e3ad49
Found root pack 'D:\Spiele\FreeSpace2\tango2_fs2.vp' with a checksum of 0x799e46a1
Found root pack 'D:\Spiele\FreeSpace2\tango3_fs2.vp' with a checksum of 0x825f5ee0
Found root pack 'D:\Spiele\FreeSpace2\warble_fs2.vp' with a checksum of 0xa7037300
Searching root 'D:\Spiele\FreeSpace2\mediavps\' ... 0 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\3610_Patch.vp' ... 180 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Advanced.vp' ... 2868 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Assets.vp' ... 1810 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Core.vp' ... 146 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Effects.vp' ... 1046 files
Searching root pack 'D:\Spiele\FreeSpace2\mediavps\MV_Music.vp' ... 32 files
Searching root 'D:\Spiele\FreeSpace2\' ... 9 files
Searching root pack 'D:\Spiele\FreeSpace2\root_fs2.vp' ... 157 files
Searching root pack 'D:\Spiele\FreeSpace2\smarty_fs2.vp' ... 10 files
Searching root pack 'D:\Spiele\FreeSpace2\sparky_fs2.vp' ... 3027 files
Searching root pack 'D:\Spiele\FreeSpace2\sparky_hi_fs2.vp' ... 1337 files
Searching root pack 'D:\Spiele\FreeSpace2\stu_fs2.vp' ... 1777 files
Searching root pack 'D:\Spiele\FreeSpace2\tango1_fs2.vp' ... 32 files
Searching root pack 'D:\Spiele\FreeSpace2\tango2_fs2.vp' ... 15 files
Searching root pack 'D:\Spiele\FreeSpace2\tango3_fs2.vp' ... 10 files
Searching root pack 'D:\Spiele\FreeSpace2\warble_fs2.vp' ... 52 files
Found 17 roots and 12508 files.
AutoLang: Language auto-detection successful...
Setting language to German
TBM  =>  Starting parse of 'mv_strings-lcl.tbm' ...
Initializing OpenAL...
  Using 'Generic Software' as OpenAL sound device...
  OpenAL Vendor     : Creative Labs Inc.
  OpenAL Renderer   : Software
  OpenAL Version    : 1.1

... OpenAL successfully initialized!
Initializing OpenGL graphics device at 640x480 with 32-bit color...
  Initializing WGL...
ERROR: Unable to initialize display device!

File: gropengl.cpp
Line: 2972
    gr_init_sub()    gr_init()    game_init()    game_main()    WinMain()    WinMainCRTStartup()    kernel32.dll 7c816fe7()
Title: Re: Radeon and OpenGL
Post by: Wanderer on November 26, 2009, 09:05:37 am
In short OpenGL initialization fails..

I have no real solutions that i know for certain that they will work but at least google search brought something up...


...as said no ideas if any of these will help you with the issue though.. You could wait for second (and third) opinion first.
Title: Re: Radeon and OpenGL
Post by: Aardwolf on November 26, 2009, 02:45:40 pm
Perhaps he selected options in the launcher but then ran the .exe on its own instead of using the launcher 'Run' button? (Use the Run button, if you weren't)
Title: Re: Radeon and OpenGL
Post by: Wobble73 on November 27, 2009, 10:41:39 am
Perhaps he selected options in the launcher but then ran the .exe on its own instead of using the launcher 'Run' button? (Use the Run button, if you weren't)

I don't think that would make a difference as long as he pressed "Apply" on the launcher.
Title: Re: Radeon and OpenGL
Post by: ShihiZu on November 27, 2009, 10:45:22 am
I use the run button. :)
Title: Re: Radeon and OpenGL
Post by: Jeff Vader on November 27, 2009, 03:12:55 pm
Somewhat unrelated, but
Code: [Select]
Searching root pack 'D:\Spiele\FreeSpace2\stu_fs2.vp' ... 1777 filesyour stu_fs2.vp is borked. It should contain 2355 files.
Title: Re: Radeon and OpenGL
Post by: ShihiZu on December 03, 2009, 03:44:31 am
Problem solved. I installed the Catalyst driver of my laptop manufacture and it's now working. Thanks for the help. :)
Title: Re: Radeon and OpenGL
Post by: Herra Tohtori on December 03, 2009, 04:10:30 am
That error is usually caused by a driver error.

Check out this entry in the FAQ (http://www.hard-light.net/forums/index.php/topic,56279.msg1180356.html#msg1180356). Try to download the atioglxx.dll referenced there, and stick it into your FS2 directory.


The old drivers are required specifically for the Radeon X1*** series of cards (X1200-X1950), in which ATI in their great wisdom actually didn't include hardware support for GLSL but instead added support for it in driver hack, but only in the drivers from that time. Later drivers do not support this, so as a result the GLSL implementation of FS2_Open shaders will fail when using radeon X1*** series cards in conjunction with new Catalyst drivers.

The later Radeon cards - like the HD4600 card in question here - should work just fine with the latest drivers, and in fact using the DLL's from older driver sets might cause other problems.