Getting Quake II Working in WebKit Mac

Google has released some code that runs the Quake II demo in a browser with no plugins, using HTML5 and WebGL. You can run it in a WebKit nightly build, but I found that it takes a few more steps than in their instructions. Here’s what I did:

  1. Install MacPorts and then run sudo port install vorbis-tools and sudo port install lame
  2. Install Mercurial version control client
  3. Check out the code by running hg clone quake2-gwt-port
  4. Change into the project directory (cd quake2-gwt-port)
  5. ./build-dedicated-server (will build the tools and the client and server code).
  6. ./install-resources (will download, unpack, and convert the original Quake II demo resources). Due to a glitch in our maven build files, you currently also need cp -r maven-build/server/target/gwtquake/war/gwtquake war. We are fixing this.
  7. ./run-dedicated-server [port] (will run the local Quake II server).
  8. Install the latest WebKit nightly build:
  9. To enable WebGL, type this into a terminal: defaults write WebKitWebGLEnabled -bool YES
  10. Run WebKit and navigate to http://localhost:8080/GwtQuake.html (or whatever port you specified to the server). You should see a console.
  11. The menus were a bit messed up for me, but you have to hit enter a few times. Then you’ll see a number of files being requested, and then the game will start.

It took a while for the textures to load for me, but then again my MacBook is from ’06 =] If you have any problems, I can’t help you, so check the comments on these pages:

2 Responses to Getting Quake II Working in WebKit Mac

  1. […] will have to checkout the source code and launch the maven build in order to get the war (see also here). We can watch a demo video at […]

  2. stefano says:

    I can’t do “./build-dedicated-server” and “./install-resources”: there commands are not found. I think that in the folder quake2-gwt-port there aren’t *.sh files. How can I do?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: