Computer-Games > International Support
Run CE mod in Wine/Linux
Shinlos:
If u have a Linux System it would be cool if u try to run the mod on Linux.
I just don't use Linux because i think it's hard or maybe impossible to make CE work on Linux.
If it works i'm gonna install Linux soon.
realmwanderer:
After hours of research and trials & errors, I finally got CE going in Wine. However due to my machine's poor spec, the mod (a truly great one) runs very slow and laggy, I can hear the hard disk at work all the time, memory is full and the swap file is almost full. I only have a 128mb RAM PII (what! ... I hear you say) and an even poorer graphics card nVidia Vanta. So those of you who have big machines and RAM to spare should have no problems. The latest Wine version 20050628 didn't work due to some CDROM access problems so I used the previous version. I also had to compile the nVidia linux kernel extension to get the grafix hardware acceleration working so D2 can run in Glide mode. The directx support from Wine did not work at all. If anybody want to know more about the rest of the gory detail please let me know.
Bottom line is, CE mod will work in Wine.
Shinlos:
That's nice.
Could u maybe write a small Guide or sth like that?
That would be godlike ; )
realmwanderer:
There are many different ways to get it running according to the many guides I found on the web. Read the Howto found in "http://appdb.winehq.org/appview.php?versionId=1177", it gives you a lot of tips. I wanted to use wine to run the Windows CE mod installation I already have going, and not use any no CD crack, so I had to use a different approach to everyone else's method. Here is how I did it:
Linux distro: Mandrake 10.0
1. Download from www.winehq.com WINE 20050524 precompiled rpm package.
2. Install the rpm, after the installation of Wine, run wineprefixcreate so that all the basic config files and directories are cerated for you under ~/.wine.
3. Make sure you have something like "/dev/cdrom /cdrom iso9660 ro,noauto,users,unhide 0 0" in your /etc/fstab file, see section 3.5.1 of the wine documentation for reasons. [edit by webwalker: no such section found]
4. I already have a working installation of D2 LOD CE mod in a windows partition so I skipped the installation of the game files into the wine generated C drive. But if you want to follow the recommended route to install Diablo, follow instructions given in "http://www.ubuntuforums.org/showthread.php?t=45231". You can then apply the CE mod installation to give you CE LOD game play. If all goes well you should have it all working and playing already, the rest of the steps you can ignore.
5. Next I created symbolic links to my CDROM and windows partition where my LOD installation sits. Mandrake has already automatically created /mnt/cdrom and /mnt/win_e for me, all I havd to do was just to map these into dos drive letters for wine. Goto ~/.wine/dosdevices, type "ln /mnt/cdrom f: --symbolic" and "lin /mnt/win_e e: --symbolic", lastly "ln /dev/hdc f:: --symbolic". I used e: and f: because that's how my windows partiotions were setup. Type ls -l to list the symbolic links, you should get:
lrwxrwxrwx 1 yourname yourname 10 Jul 23 00:02 c: -> ../drive_c/
lrwxrwxrwx 1 yourname yourname 10 Jul 23 22:53 e: -> /mnt/win_e/
lrwxrwxrwx 1 yourname yourname 10 Jul 23 22:54 f: -> /mnt/cdrom/
lrwxrwxrwx 1 yourname yourname 8 Jul 24 15:48 f:: -> /dev/hdc
lrwxrwxrwx 1 yourname yourname 1 Jul 23 00:02 z: -> //
c: and z: are created by wine automatically.
6. Create a config file under .wine if it doesn't already exist, it should contain the following:
WINE REGISTRY Version 2
[Version]
"Windows" = "nt40" [edit by webwalker: this version should probably reflect what you actually have]
[dsound]
"HardwareAcceleration" = "Emulation"
7. Download a userdef.reg file from http://www.latte.ca/D2LOD/userdef.reg and modify the following lines:
"DiabloIICD"="f:" ; Change "e:" to your CDs drive letter [edit by webwalker: drive letter should match yours]
"InstallPath"="e:\\Diablo II"
"Program"="e:\\Diablo II\\Diablo II.exe" ; Same as above but add "\\Diablo II.exe" at the end
"Save Path"="e:\\Diablo II\\save\\" ; Same as above but add "\\save\\" at the end
save this file in .wine.
8. I have a nVidia Vanta card which needed some proper Linux driver to get the glx mode going, so I downloaded from nVidia website a legacy linux driver installer and followed instructions to install. Setup the XF86Config-4 file to make it use the GLX module and restarted X server.
9. Put the LOD CD into cdrom drive and mount /mnt/cdrom. [query by webwalker: how about daemontools virtual CDs?]
10. Change to /mnt/win_e/Diablo\ II/, type in "wine D2VidTst.exe* to run the video test, choose the Glide drivers and exit.
11. Type "nice -5 wine "Diablo II.exe" -direct" and the thing starts.
Gameplay was very slow for me due to my inferior hardware, but it works! Now if my bank account were nice to me, then I should be able to get some decent hardware......
Shinlos:
Thanks i will try when i have get Linux to work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version