Diablo 2 issue with direct3d

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Diablo 2 issue with direct3d

Post by lanzd »

I'm running wine 1.2.2 and used the blizzard installer while downloading everything off of their site for d2 - No expansion yet. I tried to run d2 to make sure its working up to this point before I continue to install lod. I get an error that goes like this:

Error 25: A critical error has occurred while initializing Direct3D.

I thought wine didn't support direct3D and that was why I was forced to play world of warcraft in opengl mode. I also read that d2 doesn't have support for opengl mode due to blizzard not finishing it and ending up taking it out completely despite leaving the tag there. I've read the issue has to due with the dlls I have and I think I need to copy the right ones to my diablo directory (I have no idea what dll files are for). I tried running the D2VidTst.exe and after it runs the test the output says that "No video modes are found". I hope the solution is as easy as going into the wine config and specifying a specific dll override but I'm not sure which one to use (if it is even a solution). I'm not sure if these assumptions are correct or not. Can someone help me understand the problem and help point me in the right direction to fixing it.

Thank you, lanzd
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

Diablo 2 issue with direct3d

Post by tparker »

On 10/23/2011 02:03 PM, lanzd wrote:
I'm running wine 1.2.2
Have you tried the game with a newer version of Wine? 1.2.2 is very old
and a newer version (1.3.30 or newer preferably) may include things that
address the issue.
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Post by lanzd »

I just downloaded the latest wine (development release). I tried running the already installed version of diablo 2 and got the same issue, but I'm un-installing it and then reinstalling it now to see if I have any luck.

I just didn't try the development release before because it said it may have been unstable. Now looking back I guess it wouldn't have hurt to try. Ill post again when it's done installing.

Thank you
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

Diablo 2 issue with direct3d

Post by tparker »

On 10/23/2011 02:57 PM, lanzd wrote:
I just downloaded the latest wine (development release). I tried running the already installed version of diablo 2 and got the same issue, but I'm un-installing it and then reinstalling it now to see if I have any luck.
Sometimes video drivers get scrabbled by updates to wine, X, or the
kernel. It wouldn't hurt to uninstall and re-install your video driver
as well after all other installs are done.
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Post by lanzd »

Allright, I'm still getting the same error. I read somewhere if I try to run a program using wine from the terminal It will give output that will help figure out the problem. I thought the command to run a program in wine was just

wine "program name" no quotes

but

wine DiabloII.exe
wine Diablo II.exe

do not work, I even copied and pasted the same name as the icon in my diablo II folder that is used to run it and still no luck.

I feel I'm not in the right directory but when I try to navigate past the folder "Program Files" in the terminal it won't let me because of the space.

Again, When I run the video test it says to the liking of "The video test had not detected any usable video modes"

To tparker: I'm in ubuntu 10.04 and I know I can goto System -> Administration -> Hardware Drivers to enable and disable any Proprietary drivers. Is this the same as what your talking about? If not how would I go about uninstalling the driver and then reinstalling the same driver.
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

Diablo 2 issue with direct3d

Post by tparker »

On 10/23/2011 04:07 PM, lanzd wrote:
I feel I'm not in the right directory but when I try to navigate past the folder "Program Files" in the terminal it won't let me because of the space.
You can use a backslash before the space to let Linux know how to handle
it. For example on my system getting to Lord of the Rings Online would be:

cd .wine/drive_c/Program\ Files/PyLotRO/

and then:

wine pylotro.exe
Again, When I run the video test it says to the liking of "The video test had not detected any usable video modes"

To tparker: I'm in ubuntu 10.04 and I know I can goto System -> Administration -> Hardware Drivers to enable and disable any Proprietary drivers. Is this the same as what your talking about? If not how would I go about uninstalling the driver and then reinstalling the same driver
You may need the proprietary driver enabled for most games to work. I
have not used Ubuntu in many years so I am not sure if disabling it and
then re-enabling it is enough or if you need to use a package manager or
command line tool to uninstall the driver you have and then reinstall
it, so that it goes through it's set up process again. If you have not
tried disable/re-enable I would definitely try that first. Maybe someone
using Ubuntu can chime in on the reinstall process if that doesn't work.
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Post by lanzd »

Allright, I uninstalled and reinstalled my graphics driver. It was nivida current, I did it through the package manager (Kinda forgot about that).

I also was able to run the diablo II.exe from the terminal and this was the output.

dan@dan-desktop:~/.wine/drive_c/Program Files/Diablo II$ wine Diablo\ II.exe
fixme:advapi:SetSecurityInfo stub
dan@dan-desktop:~/.wine/drive_c/Program Files/Diablo II$ fixme:win:EnumDisplayDevicesW ((null),0,0x33e9c4,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x16 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1440x900x32 @0! (XRandR)

and I also got the same pop up I was gettin before which was

Error 25: A Critical error has occurred while initializing Direct3D
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

Diablo 2 issue with direct3d

Post by tparker »

On 10/23/2011 04:49 PM, lanzd wrote:
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x16 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1440x900x32 @0! (XRandR)
I am not sure of the process for doing so in Ubuntu - but it looks like
the system may be trying to use both the nvidia driver and the native
non-proprietary driver. On my system if I use the package manager and
search for nvidia it shows my current proprietary nvidia driver and also
has an entry for an x11 (nouveau) driver that I have
uninstalled/disabled. Checking to be sure yours doesn't have both may
help, but I can't give directions for doing so on your system, sorry.
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Post by lanzd »

I have

The ones I un/reinstalled installed
nvidia-Current 285.05.09-0ubuntu1~lucid~xup1
nvidia-settings 285.05.09-0ubuntu1~lucid~xup1

then these

(should I also get rid of these two because the versions don't match up to 285.05.09)
nvidia-173-modaliases 173.14.27-0ubuntu1
nvidia-96-modaliases 96.43.18-0ubuntu1

and
nvidia-current-modaliases 285.05.09-0ubuntu1~lucid~xup1

xserver-xorg-video-nouveau ( uninstall this one and
xserver-xorg-video-nv this one?)

some others that I don't believe apply to my issue
smartdimmer
jockey-gtk
jockey-common
libvdpau1
lanzd
Level 1
Level 1
Posts: 7
Joined: Sun Oct 23, 2011 1:01 pm

Post by lanzd »

Allright, I found a glidewrapper made specifically for diablo 2. It seems to work, i created a character on single player and multiplayer and didn't have any issues for the minute or so I was on. Allthough sound doesn't work, but I've seen threads on that issue plenty so I'm sure I can find the solutions to that. I'm going to continue with LOD installation now.

Please let me know if it would be advisable for me to delete those two entries I have. I know they have nouveau in the names which is what you told me to get rid of, but they also say xserver in them and I thought that was important for my displays (I'm running duel screen if it matters). So that is why I asked before I got rid of them.
Locked