https://wiki.archlinux.org/api.php?action=feedcontributions&user=McDoenerKing&feedformat=atomArchWiki - User contributions [en]2024-03-29T10:32:04ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Diablo_II&diff=179042Diablo II2012-01-18T21:47:18Z<p>McDoenerKing: </p>
<hr />
<div>{{i18n|Diablo II}}<br />
<br />
This page explains how to install Diablo II and play it under Archlinux. This works as of latest patch 1.13c.<br />
== Installing ==<br />
<br />
=== Step 1 ===<br />
Install the wine package.<br />
# pacman -S wine<br />
<br />
=== Step 2 ===<br />
Download Diablo II and Diablo II Lord of Destruction installation files from battle.net. I downloaded them on Windows and them moved via USB stick. You can also run the downloaders directly from Arch. They will produce 2 folders: D2-1.12A-enUS and D2LOD-12.12A-enUS (locale may be different for you).<br />
<br />
After that, go to first folder and run<br />
$ wine Installer.exe<br />
<br />
Enter your product key which can be found In your battle.net account and install. After it is finished, go to the second folder and run the same command. Once both are installed, download patch 1.13c from the Internet as updater will not work. The file name is LODPatch_113c.exe. After that, run:<br />
$ wine LODPatch_113c.exe<br />
<br />
=== Step 3 ===<br />
<br />
Now you need to configure the graphics. Go to ~/.wine/drive_c/Program Files/Diablo II (or where ever you installed) and run:<br />
$ wine D2VidTst.exe<br />
Click on Run Test. Once it's finished, pick whichever you want. Generally I prefer 2D even on Windows as very few modern cards support Glider. You can try 3D though and see if it lags or not.<br />
<br />
=== Step 4 ===<br />
$ winecfg<br />
Then, add Game.exe and make sure it uses ALSA under the sound tab and that it is emulated as Windows XP. I didn't have to change anything as those were default for me.<br />
<br />
== Additional information ==<br />
<br />
While the information above will work for a fresh install from the actual CD's themselves, if you are a dual boot user you most likely have Diablo II<br />
installed on your windows partition. If this is the case, you're more than capable of running the installation in ArchLinux, without much hassle.<br />
<br />
You can start by mounting your windows installation to a fixed-name directory, I like to create one in /media and make sure it can be accessed by anyone.<br />
<br />
$ mkdir /media/windows<br />
$ chmod 777 /media/windows<br />
$ mount /media/sdb2 /media/windows<br />
<br />
Keep in mind that your drive letter will be different than documented, to locate your windows partition do the following:<br />
$ fdisk -l<br />
<br />
The output will tell you what drive is HPFS/NTFS, the smaller size will be your windows recovery partition (unless you do not have one), and the larger one will be your entire windows partition.<br />
<br />
I also recommend using the package ntfs-3g, which will allow you to write content to your windows partition, in addition to being able to read it. This will make life much easier at one point or another.<br />
<br />
$ pacman -S ntfs-3g<br />
<br />
Once you have your windows partition mounted you may wish to copy your Diablo II directory to a location on the Linux partition, and choose not to mount windows at all, this is perfectly fine and does not cause any problems, make sure you know whether or not your installation is in a x64 bit folder or a x86 bit folder.<br />
<br />
$ cp -dpR /media/windows/Program Files/Diablo II /home/username/Desktop<br />
$ cp -dpR /media/windows/Program files (x86)/Diablo II /home/username/Desktop<br />
<br />
Once you have successfully decided how to gain access to your content, you will need to have a Diablo II play disc for either classic, if you play classic, or expansion, if you play expansion. If you do not have the actual disc, and use a ISO I recommend mounting it using fuseiso.<br />
<br />
$ mkdir /media/diablo<br />
$ chmod 777 /media/diablo<br />
$ pacman -S fuseiso<br />
<br />
Make sure you do the above commands as root, and when you mount the actual ISO do it as a regular user, this will ensure the game is mounted with the proper permissions.<br />
<br />
$ fuseiso /location/of/diablo.iso /media/diablo<br />
<br />
$ Note: you will need to run winecfg as a regular user, and set up the mounted ISO location under "Drives". I choose drive "S:" and configured<br />
$ it as a CD-ROM mount to /media/diablo<br />
<br />
You may also have issues running the D2VidTst, noticing that you have no available video displays, if this is the case you must take note to run Diablo II's "Game.exe" with the window extension, other wise it will crash. WineHQ noted this as a coding error on behalf of Blizzard.<br />
<br />
$ wine /media/windows/Program Files/Diablo II/Game.exe -w<br />
$ wine /media/windows/Program Files x(86)/Diablo II/Game.exe -w<br />
<br />
On a additional note, use of a "NO-CD" crack will result in a ban on Battle.net, and if you do not wish to be restricted from realm play, should invest in finding a ISO you can mount locally.<br />
<br />
And on a final note, this is a Windows game and you will notice that you will generate many notifications about missing fonts, this can be corrected by creating a symlink between the wine fonts directory, and the windows directory.<br />
<br />
$ ln -s /media/windows/Windows/Fonts /usr/share/wine/fonts<br />
<br />
If you do not want to mount the Windows parition as mentioned before, copy the windows Fonts directory into the Diablo II folder you have on the Linux partition, and create the symlink between wine and that directory.<br />
<br />
== Playing ==<br />
If you use a desktop, you can create a shortcut. Otherwise just run:<br />
$ wine ~/.wine/drive_c/Program\ Files/Diablo\ II/Game.exe<br />
Warning: Don't append the argument -opengl , because it was left unfinished by the developers and may cause extra problems for you!<br />
<br />
== Troubleshooting ==<br />
<br />
=== Error "ACCESS_VIOLATION" on start===<br />
Try setting dsoundhw=Emulation. This can be done by starting winetricks "Select the default wineprefix"and then choose "Change settings" and check the box in front of "dsoundhw=Emulation".<br />
<br />
=== Only starts in windowed mode ===<br />
Try running D2VidTst.exe in the game folder and then select 3dfxGlide.<br />
If the game still doesn't start in fullscreen place the glide3x.dll into the game folder from this website http://www.svenswrapper.de/english/downloads.html. It is extra written for running Diablo2 with glide.<br />
<br />
[[Category:Gaming (English)]]<br />
[[Category:Wine (English)]]</div>McDoenerKinghttps://wiki.archlinux.org/index.php?title=Diablo_II&diff=179041Diablo II2012-01-18T21:39:15Z<p>McDoenerKing: </p>
<hr />
<div>{{i18n|Diablo II}}<br />
<br />
This page explains how to install Diablo II and play it under Archlinux. This works as of latest patch 1.13c.<br />
== Installing ==<br />
<br />
=== Step 1 ===<br />
Install the wine package.<br />
# pacman -S wine<br />
<br />
=== Step 2 ===<br />
Download Diablo II and Diablo II Lord of Destruction installation files from battle.net. I downloaded them on Windows and them moved via USB stick. You can also run the downloaders directly from Arch. They will produce 2 folders: D2-1.12A-enUS and D2LOD-12.12A-enUS (locale may be different for you).<br />
<br />
After that, go to first folder and run<br />
$ wine Installer.exe<br />
<br />
Enter your product key which can be found In your battle.net account and install. After it is finished, go to the second folder and run the same command. Once both are installed, download patch 1.13c from the Internet as updater will not work. The file name is LODPatch_113c.exe. After that, run:<br />
$ wine LODPatch_113c.exe<br />
<br />
=== Step 3 ===<br />
<br />
Now you need to configure the graphics. Go to ~/.wine/drive_c/Program Files/Diablo II (or where ever you installed) and run:<br />
$ wine D2VidTst.exe<br />
Click on Run Test. Once it's finished, pick whichever you want. Generally I prefer 2D even on Windows as very few modern cards support Glider. You can try 3D though and see if it lags or not.<br />
<br />
=== Step 4 ===<br />
$ winecfg<br />
Then, add Game.exe and make sure it uses ALSA under the sound tab and that it is emulated as Windows XP. I didn't have to change anything as those were default for me.<br />
<br />
== Additional information ==<br />
<br />
While the information above will work for a fresh install from the actual CD's themselves, if you are a dual boot user you most likely have Diablo II<br />
installed on your windows partition. If this is the case, you're more than capable of running the installation in ArchLinux, without much hassle.<br />
<br />
You can start by mounting your windows installation to a fixed-name directory, I like to create one in /media and make sure it can be accessed by anyone.<br />
<br />
$ mkdir /media/windows<br />
$ chmod 777 /media/windows<br />
$ mount /media/sdb2 /media/windows<br />
<br />
Keep in mind that your drive letter will be different than documented, to locate your windows partition do the following:<br />
$ fdisk -l<br />
<br />
The output will tell you what drive is HPFS/NTFS, the smaller size will be your windows recovery partition (unless you do not have one), and the larger one will be your entire windows partition.<br />
<br />
I also recommend using the package ntfs-3g, which will allow you to write content to your windows partition, in addition to being able to read it. This will make life much easier at one point or another.<br />
<br />
$ pacman -S ntfs-3g<br />
<br />
Once you have your windows partition mounted you may wish to copy your Diablo II directory to a location on the Linux partition, and choose not to mount windows at all, this is perfectly fine and does not cause any problems, make sure you know whether or not your installation is in a x64 bit folder or a x86 bit folder.<br />
<br />
$ cp -dpR /media/windows/Program Files/Diablo II /home/username/Desktop<br />
$ cp -dpR /media/windows/Program files (x86)/Diablo II /home/username/Desktop<br />
<br />
Once you have successfully decided how to gain access to your content, you will need to have a Diablo II play disc for either classic, if you play classic, or expansion, if you play expansion. If you do not have the actual disc, and use a ISO I recommend mounting it using fuseiso.<br />
<br />
$ mkdir /media/diablo<br />
$ chmod 777 /media/diablo<br />
$ pacman -S fuseiso<br />
<br />
Make sure you do the above commands as root, and when you mount the actual ISO do it as a regular user, this will ensure the game is mounted with the proper permissions.<br />
<br />
$ fuseiso /location/of/diablo.iso /media/diablo<br />
<br />
$ Note: you will need to run winecfg as a regular user, and set up the mounted ISO location under "Drives". I choose drive "S:" and configured<br />
$ it as a CD-ROM mount to /media/diablo<br />
<br />
You may also have issues running the D2VidTst, noticing that you have no available video displays, if this is the case you must take note to run Diablo II's "Game.exe" with the window extension, other wise it will crash. WineHQ noted this as a coding error on behalf of Blizzard.<br />
<br />
$ wine /media/windows/Program Files/Diablo II/Game.exe -w<br />
$ wine /media/windows/Program Files x(86)/Diablo II/Game.exe -w<br />
<br />
On a additional note, use of a "NO-CD" crack will result in a ban on Battle.net, and if you do not wish to be restricted from realm play, should invest in finding a ISO you can mount locally.<br />
<br />
And on a final note, this is a Windows game and you will notice that you will generate many notifications about missing fonts, this can be corrected by creating a symlink between the wine fonts directory, and the windows directory.<br />
<br />
$ ln -s /media/windows/Windows/Fonts /usr/share/wine/fonts<br />
<br />
If you do not want to mount the Windows parition as mentioned before, copy the windows Fonts directory into the Diablo II folder you have on the Linux partition, and create the symlink between wine and that directory.<br />
<br />
== Playing ==<br />
If you use a desktop, you can create a shortcut. Otherwise just run:<br />
$ wine ~/.wine/drive_c/Program\ Files/Diablo\ II/Game.exe<br />
<br />
== Troubleshooting ==<br />
<br />
=== Error "ACCESS_VIOLATION" on start===<br />
Try setting dsoundhw=Emulation. This can be done by starting winetricks "Select the default wineprefix"and then choose "Change settings" and check the box in front of "dsoundhw=Emulation".<br />
<br />
=== Only starts in windowed mode ===<br />
Try running D2VidTst.exe in the game folder and then select 3dfxGlide.<br />
If the game still doesn't start in fullscreen place the glide3x.dll into the game folder from this website http://www.svenswrapper.de/english/downloads.html. It is extra written for running Diablo2 with glide.<br />
<br />
[[Category:Gaming (English)]]<br />
[[Category:Wine (English)]]</div>McDoenerKing