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 https://quake2-gwt-port.googlecode.com/hg/ 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: http://nightly.webkit.org/
  9. To enable WebGL, type this into a terminal: defaults write com.apple.Safari 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:

About these ads

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 525 other followers

%d bloggers like this: