using opengl to run warcraft in virtualbox

Asked by thenubsauce

Sorry by the newbie here. I've read every where that one can use opengl to run warcraft 3, but I have no idea what opengl is. I went to opengl.org and I think it is a programming language used for graphics. Anyways, I would like to know how run warcraft using opengl or -opengl as I see it everywhere. It is also important that I run warcraft under virtualbox because I also want to run garena. I've also installed wined3d on my VM. I still have no luck running warcraft. Any help would be great, even if you tell me how to run any other program with opengl or something else about opengl would also be wonderful. thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Isak Frants (isakfrants) said :
#1

http://appdb.winehq.org/objectManager.php?sClass=application&iId=897
You can run Warcraft III through Wine with only a couple of problems.

This guide helps you on your way, however I recommend that you use latest development version of Wine 1.1.30 instead of the stable version 1.0.1 found in repositories.
http://www.tipsfor.us/2009/06/04/install-warcraft-3-on-ubuntu-linux-a-visual-guide/

As for Virtualbox, do you have Windows XP in it or what?

Revision history for this message
Isak Frants (isakfrants) said :
#2

I'm sorry, latest version of Wine seems to be 1.1.31.

Revision history for this message
Appiah (appiah) said :
#3

Hey.

I recommend you use Wine to install and run Wc3 , rather then using 3d accel in virtualbox, it works but its easier and better performance in Wine.

Also make sure you're using the right video card driver

Revision history for this message
thenubsauce (tantanchen) said :
#4

Thanks for all the replies, but I specifically need it to run in
virtualbox because I want to run another program (garena) with
warcraft.

On Thu, Oct 22, 2009 at 2:25 AM, Appiah
<email address hidden> wrote:
> Your question #86547 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/86547
>
> Appiah proposed the following answer:
> Hey.
>
> I recommend you use Wine to install and run Wc3 , rather then using 3d
> accel in virtualbox,  it works but its easier and better performance in
> Wine.
>
>
> Also make sure you're using the right video card driver
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/86547/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/86547
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Isak Frants (isakfrants) said :
#5

So I then ask again. Have you got Windows XP in Virtualbox?

If you have Windows XP, go to settings for your virtual computer and set 3D-acceleration to enable. Then inside XP I suppose you just install the guest addon thing and enable 3D-acceleration in that as well. If your Ubuntu (your main OS right?) has got 3D support and activated, (if you have Compiz actived then 3D works), you should simply have to install Wc3 in your Windows XP installation in Virtualbox.

This has however nothing really to do with Ubuntu and you will probably get better support at the Virtualbox forum :O

Revision history for this message
Herself (biczself) said :
#6

Why do you people give advice not even knowing what this guy is trying to achieve? Garena won't work with the current version of wine, or at least I wasn't able to make it work.

However, back to the topic. If you have correctly enabled acceleration support and the lastest guest additions, installed Garena and Warcraft, you have to just run Warcraft with the -opengl switch, which is very easy itself. Go to Garena > Settings, change your Executable settings normally, like "C:\Warcraft\war3.exe", but type "-opengl" into the Game Bootstrap Parameters field. Save and you are done, Wacraft should work.

As for performance, on my AMD 7800/2GB ram/Ge7300 I get around 20-30 fps with 1680x1050 resolution on low settings. This is way worse than wine, yes.

If the game works, you may want to disable the toolbar in virtual machine settings and the alt keybind in your window manager.

This solution isn't perfect though, as with NAT networing you will only see some games, other will be unjoinable. I believe the solution is to set up host-only networing, but I didn't have the time to try that out yet.

As for the Virtualbox forums: that may be correct, but I am googling for some time now about running garena in Virtualbox and this is the first related topic I find... So I decided to write down everything here ;-)

Hope it helped a bit.

Revision history for this message
Isak Frants (isakfrants) said :
#7

Yeah, my bad I didn't realize the importance of Garena that was mentioned in the first post. I focused too much on getting Wc3 running ;)

Revision history for this message
thenubsauce (tantanchen) said :
#8

thank you very much, that was exactly what I wanted to ask, but I
guess I didn't clarify it correctly. So I opened garena, and saw the
box for "Game Bootstrap Parameters" and I just type in "-opengl" into
that box? What do I put into the "executable setting"?

So I tried pointing to the war3.exe for the "executable settings" and
put in "-opengl" <-(theres a dash there right?) in the parameter box,
and it didn't run warcraft. I have a feeling I don't have opengl,
since I didn't install it or anything. Shouldn't I have to setup
opengl or something?

On Fri, Oct 23, 2009 at 7:29 AM, Isak Frants
<email address hidden> wrote:
> Your question #86547 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/86547
>
> Isak Frants requested for more information:
> Yeah, my bad I didn't realize the importance of Garena that was
> mentioned in the first post. I focused too much on getting Wc3 running
> ;)
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/86547
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Herself (biczself) said :
#9

No, Executable settings should point to war3.exe, and "-opengl" should be in the Game bootstrap parameter. OpenGL is no magic, it's a programming interface like, for example, Direct3D.
Warcraft 3 can use both Direct3D and OpenGL to render its graphics, Direct3D run by default and OpenGL activated by the "-opengl" switch appended to the run parameters.
If you've done all of that and still can't run Warcraft in Virtualbox, there can be a variety of things that could make that happen: no graphic drivers on the host system, no guest additions, 3d acceleration not activated in the virtual machine settings, a cpu not supporting virtualization technologies (amd-v and VT, I guess it shoud run without that, albeit very slowly).

Can you help with this problem?

Provide an answer of your own, or ask thenubsauce for more information if necessary.

To post a message you must log in.