Diablo 2, cant start, (direct draw?)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
halp
Level 1
Level 1
Posts: 7
Joined: Wed Apr 15, 2009 3:08 am

Diablo 2, cant start, (direct draw?)

Post by halp »

Hello.

I have installed Diablo 2 + LOD, no problems there.

Try to start the game I get an error like this:
"Error 22: A critical error has occured while initializing Direct Draw."

When I run the D2vidtst.exe it cant find any working video mode, It could be because of my graphics card (Mobile Intel® Graphics Media Accelerator X3100), but on wintendo it is working fine.

I get this in the terminal:
Lots of these:

Code: Select all

"err:wgl:X11DRV_ChoosePixelFormat No libGL on this box - disabling OpenGL support !"
Then:

Code: Select all

err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Your wine lacks opengl supports which prevents any 3d from functioning.
felix
Level 2
Level 2
Posts: 45
Joined: Thu Feb 28, 2008 10:04 am

Diablo 2, cant start, (direct draw?)

Post by felix »

On Wed, Apr 15, 2009 at 07:06:14AM -0500, Thunderbird wrote:
Your wine lacks opengl supports which prevents any 3d from functioning.
My reading of that error message is that wine has opengl support, but
can't find the appropriate library that is supposed to be installed by
the graphics driver in order to perform the accelerated opengl actions.

Looks more likely that the appropriate graphics drivers aren't
installed.

--
Darragh

"Nothing is foolproof to a sufficiently talented fool."
halp
Level 1
Level 1
Posts: 7
Joined: Wed Apr 15, 2009 3:08 am

Post by halp »

So I need drivers? Where do I download them?

I dont know if this means anything but if i run glxinfo:

Code: Select all

name of display: :0.0
Segmentation fault
Sephiroth
Level 2
Level 2
Posts: 36
Joined: Fri Mar 27, 2009 4:57 pm

Post by Sephiroth »

It has been my experience that Intel driver support on Linux is weak while nVidia is probably the best and ATI is getting better. It may be worth your time to invest in a decent video card and pick up something by nVidia or ATI.
halp
Level 1
Level 1
Posts: 7
Joined: Wed Apr 15, 2009 3:08 am

Post by halp »

Ok there is some problem with opengl. Can anyone help me? I cant find any answers on the internet.

If i run "glxgears" its working and from what i understand it means opengl IS working, to some extent. But as i mentioned before "glxinfo" just gives this message:

Code: Select all

name of display: :0.0
Segmentation fault
and nothing more.

I am quite positive opengl is suported by my graphics card because glxgears is working.

Its not only a problem in wine, so maybe I should post this elsewhere but maybe you can help me, or at least point me in the right direction. Thanks.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

halp wrote:If i run "glxgears" its working and from what i understand it means opengl IS working, to some extent.
No, it doesn't "Segmentation fault" means crash.

You need to reinstall video drivers. Since you have Intel graphics, that would mean installing latest version of Xorg server. For more details please refer to your distro's forum/mailing list.
Sephiroth
Level 2
Level 2
Posts: 36
Joined: Fri Mar 27, 2009 4:57 pm

Post by Sephiroth »

I have read on this forum and many others including Debian's forum that Intel cards and GL aren't very good under Linux. I've read that this is due to closed-source drivers from Intel, but either way the Intel built-in cards are not much. They seem to be fine for basic web browsing and office work in Windows, but that's about it. I've used a few computers with them and did not like it, but I'm a spoiled nVidia boy.
halp
Level 1
Level 1
Posts: 7
Joined: Wed Apr 15, 2009 3:08 am

Post by halp »

Ok, so now opengl is working (reistalled the OS), but Diablo 2 was still not working ,it gave that "Error 22: blablala DirectDraw blabla"

But then I checked "Emulate a virtual desktop", and now it works! Only in virtual desktop though... Why is that?

Anyways... Just wanted to report back in case someone have the same problem.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

halp wrote:But then I checked "Emulate a virtual desktop", and now it works! Only in virtual desktop though... Why is that?
You might not have the monitor resolution it wants.

Run 'xradnr' command and check what all resolutions it returns. And make sure it lists the resolution your game wants.
halp
Level 1
Level 1
Posts: 7
Joined: Wed Apr 15, 2009 3:08 am

Post by halp »

Yes, thats the problem! xrandr gives me only one resolution: "1280x800 58.5", in LVDS.

I added two resolutions; "800x600_58.50 58.5", and "640x480_58.50 58.5", I made them with "58.5" refreshrate as the original one.

Here's how I did:
anton@anton ~ $ gtf 800 600 58.5

# 800x600 @ 58.50 Hz (GTF) hsync: 36.33 kHz; pclk: 37.20 MHz
Modeline "800x600_58.50" 37.20 800 832 912 1024 600 601 604 621 -HSync +Vsync

anton@anton ~ $ xrandr --newmode "800x600_58.50" 37.20 800 832 912 1024 600 601 604 621 -HSync +Vsync
anton@anton ~ $ xrandr --addmode LVDS 800x600_58.50
anton@anton ~ $ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
1280x800 58.5*+
800x600_58.50 58.5
TV disconnected (normal left inverted right x axis y axis)
anton@anton ~ $ gtf 640 480 58.5

# 640x480 @ 58.50 Hz (GTF) hsync: 29.07 kHz; pclk: 23.26 MHz
Modeline "640x480_58.50" 23.26 640 656 720 800 480 481 484 497 -HSync +Vsync

anton@anton ~ $ xrandr --newmode "640x480_58.50" 23.26 640 656 720 800 480 481 484 497 -HSync +Vsync
anton@anton ~ $ xrandr --addmode LVDS 640x480_58.50
anton@anton ~ $ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
1280x800 58.5*+
800x600_58.50 58.5
640x480_58.50 58.5
TV disconnected (normal left inverted right x axis y axis)
anton@anton ~ $
And now it works in fullscreen, without Virtual Desktop!
Theres one some minor problems though:

1. When the game replaces the mouse pointer the original gets stuck at that position, while i can only move the "game pointer", so I have to push the pointer to the egde of the screen so it isnt visible when the switch occurs

2. I can not tab out of the game. Well, I can but then I cant get back into the game.

But its alright now. Thanks.
Locked