Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There's only one thing I miss from using Windows, Warcraft 3.
I read an article on the WineHQ site about how to run Warcraft 3. It installed ok, I got the NoCD patch, I renamed the movies folder, and tried to run it when I got this error:
$ wine War3.exe -- -opengl
fixme:ole:CoCreateInstance no classfactory created for CLSID {cda42200-bd88-11d0-bd4e-00a0c911ce86}, hres is 0x80040154
fixme:ole:CoCreateInstance no classfactory created for CLSID {e436ebb2-524f-11ce-9f53-0020af0ba770}, hres is 0x80040154
The same article on WineHQ said that I needed the newest version of wine, so I got it. Still the same error.
Many ppl have warcarft iii running under Linux well. I don't personally use wine, instead I use winex (from transgaming.com). I would highly recommend you get it and use it instead of wine.
In that case, I set up winex (very similar to wine). I then ran the installer from the CD
At the terminal prompt type:
nice -5 winex3 /mnt/cdrom/install.exe
Note: if you are just using wine you would do:
nice -5 wine /mnt/cdrom/install.exe
Go through the setup options and it should be installed. The install process is usually pretty easy.
After the install, when you try to run it is when the problems begin.
Some people have problems at this point with the program not finding the correct CD in the drive and in trying to resolve that they run into the problem you are encountering.
So, who cares if the CD for the game has to be in the drive, right (at least for the purposed of a first time test run after a new install)?
Logically, if you installed it off the CD it has to be in the drive anyway, right? The problems start to popup when users run the game the first time and they get a message box from Warcraft telling them that the program can't find the CD in the drive so they go about this nightmarish quest to find out how to make it work. One of the suggestions is to replace the executable with a hacked version that is written to bypass the check for the CD. But this doesn't always work and if you don't care if the CD remains in the drive then it is unnecessary.
In winex there's a config file in the .transgaming directory. You can edit it with any text editor. In this file there are sections that are formatted similar to an .ini file (not exactly but you should be able to easily interpret it). Make sure there is a section there for your CD drive and that is using the right mount point and the correct device.
This section here needs to actually point to the correct mount point (that's the "Path" in the above example. The Device should also exist in the /dev directory.
If you only have one hard drive and you have only 1 cdrom then it should look like the example above given you have a directory called /mnt/cdrom and a file in the /dev directory called cdrom.
Yes, the file is called "cdrom". You can look in there and when you do a ls -al cdrom* it will show it.
Once this section in your .ini file is corrrect and the cdrom is in the drive, and as long as you aren't using the hacked verions of the executable, you should be able to start warcraft by executing:
Go into the directory where you installed warcraft (using the terminal prompt), and execute the following:
cd .transgaming/c_drive/Warcraft\ III
nice -5 winex3 Warcraft\ III.exe -opengl
Now, of course, this assumes you are using winex3. It is from transgaming. Otherwise, I would assume that you would just remove the x3 from the command and it should still work.
cd .transgaming/c_drive/Warcraft\ III
nice -5 wine Warcraft\ III.exe -opengl
Note: You may have installed warcraft under the programs files subdirectory (just like windows) and if so you will have to add that to the path in your CD command.
cd .transgaming/c_drive/Program\ Files/Warcraft\ III
(or if you want to be more windows like:
cd .transgaming/c_drive/"Program Files"/"Warcraft III"
The error you may be chasing may be a wild goose. No reason running around and doing 10,000 different things when you can just use the cd in the drive and use the original warcraft exe file. The movies are irrelevant to the whole. I have mine there and they play without a hitch.
You may have to run:
prelink -ua at the terminal prompt and then reboot and try again. Don't go looking for or making tons of changes to files that you don't know what they do or why without trying these things first.
I play WCIII (with expansion), diablo II (with expansion) , everquest, starcraft (with expansion), and many other windows games under winex with few troubles. Warcraft III plays exceptionally well and looks beautiful.
I also have ut2004, ut2003, enemy-territory, neverwinter night, quake III, etc all running as native linux games with zero headaches (except ut2003 due to neglect by the vendor in keeping up the master browser server).
Finally, all of this could be for nothing if you don't have your video drivers setup properly to run with 3d acceleration.
I set the wine config file to:
[Drive D]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win95"
"Device" = "/dev/hdd"
I have also tried /dev/cdrom, and /dev/cdroms/cdrom0 (the files are in the /dev/ directory and they all point to the same place).
I still get the "No CD In Drive" error.
Also, I believe the video driver is setup for 3D acceleration... how would I check?
I really don't care about the movies, so I renamed the folder to avoid them (already seen them all).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.