Caveat: We've been building entirely on Mac & Linux boxes, so YMMV on Windows. It shouldn't be too much work to get it going, but we haven't tried yet.
4 easy steps:
- Make sure Ogg Vorbis, Java and Lame are installed. Java is needed to compile the code and to convert the images. Ogg and Lame are needed to convert the Quake II sound resources for the Web.
- On Linux, run sudo apt-get install vorbis-tools openjdk-6-jdk and try sudo apt-get install lame. If installing Lame via apt does not work, install it from the original source.
- On a Mac, install MacPorts and then run sudo port install vorbis-tools and sudo port install lame.
- 64.brian suggests to use HomeBrew instead of MacPorts because it requires less resources.
- Check out the code and change into the project directory (cd quake2-gwt-port).
- ant run (will install the original Quake II demo resources, build the client and server code, then run the server).
- Navigate to: http://localhost:8080/GwtQuake.html (or whatever port you specified to the server).
If you run into an issue on a particular platform, the comments below may contain some help.
Ubuntu Karmic - Step 4: "Unable to access jarfile maven-build/installer/target/gquake-installer-1.0-SNAPSHOT.jar"
@AlistairGMacDonald: doing sudo apt-get install openjdk-6-jdk (vs. I just had JRE installed on the machine) fixed something very close to that for me.
On MacOS X, I ran into the following in step 3:
The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError?: Java heap space
Increasing the heap maven uses let me passed that: export MAVEN_OPTS=-Xmx512m
Great job guys!
Compiling in CygWin? under Win7 64bit. Everything goes fine until the installer JAR is run in step 4:
$ java -jar maven-build/installer/target/gquake-installer-1.0-SNAPSHOT.jar raw/baseq2 already exists; no need to download Opened packfile C:\games\quake2-gwt-port\raw\baseq2\pak0.pak (1106 files)
pics/p_megahealth.pcx java.io.FileNotFoundException?: C:\Games\quake2-gwt-port\war\baseq2\pics\p_megahe alth.png (The system cannot find the path specified)
ce(Unknown Source) Exception in thread "main" java.lang.NullPointerException?Sound isn't working for me. I built it on Ubuntu 9.04. Ogg vorbis and LAME were installed using "sudo apt-get install vorbis-tools" and "sudo apt-get install lame".
I'm viewing the game in the latest build of Chromium (5.0.368.0 - 43385)
Any idea what the problem could be?
In Ubuntu 10.04, ./install-resources breaks: /bin/sh doesn't know what pushd means. Doing s/sh/bash/ in the hashbang line fixes it.
I was able to get through steps 1-5 just fine. When visiting http://localhost:8080/GwtQuake.html, I get a black screen and noticed the following error in the inspector console: com.google.gwt.core.client.JavaScriptException?: (TypeError?): undefined is not a function
This message is preceded with:
Quake2 Initialized
static buffer created; id: 0 remaining: 8
Environment: - Chromium 5.0.367.0 (Developer Build 43319) - Ubuntu 10.04 x64
Any ideas?
Seconding AlistairGMacDonald's problem. Installing the jdk didn't resolve it.
@feross on MacOS X, I had no sound with Chromium but it worked with webkit.
Nevermind, figured it out. I'm running Ubuntu, which uses /bin/dash as the default shell. Change it so that "/bin/sh" points to "/bin/bash", and it will work like a charm
Now I'm getting "Unable to access jarfile maven-build/server/target/gwtquake/gquake-server-1.0-SNAPSHOT.jar" in step 5
Alright weird, I just had to go back and re-run "./build-dedicated-server", and then run "./install-resources" for it to work.
Guys, I want to check this out but could I ask for a favor? Please make the installation kit easy to understand for non-developers and more user friendly. Something like a install.exe would suffice. All these instructions sounds gibberish to me (except the words Mac, Linux and Windows.) lol ^^
Sweet!!!!!
Here's what I got in Windows 7 built in cygwin after some fiddling. Screenshot
Unpacking must've failed, so I unpacked manually and converted some pcx files to png and this is what I got.
@imnichol5253 Same here. It seems like the first time the script is executed it doesn't actually compile anything, just seemed to download a lot of files.
Oh My God! People are still falling for this April Fool Prank up till today.
Instead of MacPorts??, which is horrible bloated and of itself installs a bunch of unneeded duplicate components already present in the OS, use Homebrew.
It takes all of 10 seconds to install, and then a short bit to install vorbis-tools and lame.
http://github.com/mxcl/homebrew/tree/
If you want to just run everything from the commandline:
sudo chown -R $USER /usr/local
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xvz -C/usr/local --strip 1
brew install vorbis-tools
brew install lame
Wow!!!!! this is a wonderful great project!! @3@ I love Quake2~ XD
When running the ./build-dedicated-server:
Exception in thread "main" java.lang.NoClassDefFoundError?: org/codehaus/classworlds/Launcher
Anyone else run into this? Any advice?
@feross same problem here, no sound on chromium on ubuntu karmic
This is friggin awesome though :) 40fps in the browser... wow
@AlistairGMacDonald
doing
%sudo ./build-dedicated-server
for Mac OSX users - confirmed working with following install:
installed vorbis-tools and lame using fink had to set heap size to (export MAVEN_OPTS=-Xmx512m) followed rest of commands as followed:
had a black screen at this point
edit GwtQuake?.html in the war directory to point to 'gwtquake.nocache.js' instead of 'gwtquake/gwtquake.nocache.js'
works with safari and chrome builds listed in browser compatibility page
good luck'
(after some considerable searching around to check this wasn't an april fool's joke ... :)
./build-dedicated-server INFO? Scanning for projects... INFO? Reactor build order: INFO? GwtQuake? INFO? GwtQuake? Client INFO? GwtQuake? Dedicated WebSocket? Server INFO? GwtQuake? Demo Installer INFO? ------------------------------------------------------------------------ INFO? Building GwtQuake? INFO? task-segment: [clean, install] INFO? ------------------------------------------------------------------------ Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//org/apache/maven/maven/2.0.2/maven-2.0.2.pom INFO? Unable to find resource 'org.apache.maven:maven:pom:2.0.2' in repository gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/) Downloading: http://snapshots.repository.codehaus.org//org/apache/maven/maven/2.0.2/maven-2.0.2.pom INFO? Unable to find resource 'org.apache.maven:maven:pom:2.0.2' in repository codehaus-snapshots (http://snapshots.repository.codehaus.org/) Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//org/apache/maven/maven/2.0.2/maven-2.0.2.pom INFO? Unable to find resource 'org.apache.maven:maven:pom:2.0.2' in repository gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.2/maven-2.0.2.pom
..and lots more Maven errors in same vein. This after Port installing vorbis-tools and lame with no problems.
Hello guys. Get these errors on stage 3 when executing build-dedicated-server:
line 2: cd: maven-build: No such file or directory
line 3: ./maven/bin/mvn: No such file or directory
In on mac, and would appreciate walkthrough:)
Managed to compile using instructions from: 64.brian (use brew for easy install of ogg). If you don’t have hg to checkout the source code, you can then use brew to install it:
brew install pip && pip install mercurial
Increase maven’s memory "export MAVEN_OPTS=-Xmx512m" (comment by redchris)
Everything compiled, but when I run it in WebKit? Nightly, I get a black screen and the console text overprints itself (no framebuffer?). Can anybody help with this please! I need to do a writeup for osnews.
How would you get something like this working on Chrome OS? 'Cause this definitely seems to be another case of things pointing toward "the Web as operating system."
Hi guys. I have MAC OSX (Leopard) and i have a problem in step 3: when running ./build-dedicated-server i see INFO? Scanning for projects... INFO? Reactor build order: INFO? GwtQuake? INFO? GwtQuake? Client INFO? GwtQuake? Dedicated WebSocket? Server INFO? GwtQuake? Demo Installer INFO? ------------------------------------------------------------------------ INFO? Building GwtQuake? INFO? task-segment: [clean, install] INFO? ------------------------------------------------------------------------ Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom INFO? Unable to find resource 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' in repository gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/) Downloading: http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom INFO? Unable to find resource 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' in repository codehaus-snapshots (http://snapshots.repository.codehaus.org/) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom Downloading: http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom INFO? Unable to find resource 'org.apache.maven.plugins:maven-plugins:pom:10' in repository gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/) Downloading: http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom INFO? Unable to find resource 'org.apache.maven.plugins:maven-plugins:pom:10' in repository codehaus-snapshots (http://snapshots.repository.codehaus.org/) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom
what i have to do?
I keep getting a compile error on ubuntu karmic 9.10:
WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! INFO? skip non existing resourceDirectory /home/mark/Games/quake2-gwt-port/maven-build/server/src/main/resources INFO? [compiler:compile {execution: default-compile}] INFO? Compiling 263 source files to /home/mark/Games/quake2-gwt-port/maven-build/server/target/classes INFO? ------------------------------------------------------------------------ ERROR? BUILD ERROR INFO? ------------------------------------------------------------------------ INFO? Fatal error compiling
Embedded error: Error while executing the external compiler. java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? For more information, run Maven with the -e switch INFO? ------------------------------------------------------------------------ INFO? Total time: 1 minute 15 seconds INFO? Finished at: Fri Apr 02 11:52:59 BST 2010 INFO? Final Memory: 47M/360M INFO? ------------------------------------------------------------------------
Any Ideas?
lots of various errors on the main build, but it worked all right, a little jumpy (as I guess I would expect). No sound. Over all, neat project! I'm going to see if I can access it from my wife's computer on the LAN later, maybe we'll setup a server and have a death-match.
Compiling in cygwin under window XP. I met following error message at ./install-resources.
Any ideas?
Tried "export MAVEN_OPTS=-Xmx512m" on OS X 10.6.3, but still running out of resources at step #3. Even tried "export MAVEN_OPTS=-Xmx2048m". Still not enough. Thoughts?
INFO? ------------------------------------------------------------------------ ERROR? BUILD FAILURE INFO? ------------------------------------------------------------------------ INFO? Compilation failure Failure executing javac, but could not parse the error:
The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError?: Java heap space
I've got it running on Snow Leopard using steps 1-6. just had to reinstall MacPorts??. No problems apart from the lack of sound as @freross says. i'm only getting 13 odd frames a second on my macbook though!
@mwillis.fb
apt-get install sun-java6-jdk
Every time I try to run ./build-dedicated-server, it fails with:
'INFO? ------------------------------------------------------------------------ ERROR? BUILD ERROR INFO? ------------------------------------------------------------------------ INFO? Command [[ /bin/sh -c /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java -Xmx512m -classpath "/home/user/quake2-gwt-port/maven-build/client/../../src":"/home/user/quake2-gwt-port/maven-build/client/src/main/resources":"/home/user/quake2-gwt-port/maven-build/client/target/classes":"/home/user/.m2/repository/com/google/gwt/gwt-servlet/2.0.0/gwt-servlet-2.0.0.jar":"/home/user/.m2/repository/com/google/gwt/gwt-user/2.0.0/gwt-user-2.0.0.jar":"/home/user/.m2/repository/com/google/gwt/gwt-dev/2.0.0/gwt-dev-2.0.0.jar" com.google.gwt.dev.Compiler -gen "/home/user/quake2-gwt-port/maven-build/client/target/.generated" -logLevel INFO -style OBF -war "/home/user/quake2-gwt-port/maven-build/client/target/gquake-client-1.0-SNAPSHOT" -localWorkers 8 jake2.GwtQuake? ]] failed with status 134'
Does someone know how to avoid this error?
It builds and runs but I can't make multiplayer work on any computer other than the one the server is on.
I added the <script>var serverAddress = "XXXX";</script> to GwtQuake?.html but it doesn't seem to help. Neither does typing connect <IP> from the command line.
Any other tricks I should know about?
it runs pretty fucking good! ~20 fps, no sound tho :(
for karmic: I finally got it too build after running this:
sudo aptitude install javacc sun-java6-jdk gcj openjdk-6-jdk
for better error messages add -e option to ./build
MAKE IT RUN ON APP ENGINE NOW PLEASE ! sorry, that was impolite. its just so plausibl. It could be done and well
I also get the same errors as giulio.prandini, but I am using ubuntu jaunty.
for OSX people having "The system is out of resources" problems, this solved it for me:
export MAVEN_OPTS=-Xms512m export MAVEN_OPTS=-Xmx512m
WebGraphicsContext3DDefaultImpl: OpenGL 2.0 not supported
Any ideas?
@Iori.Nishizawa sudo did it for me. Thanks! Running great in Webkit at > 13fps. No sound, but possibly faster (?) in Chromium.
Installs and runs as outlined for me (on an early 2008 mac pro). In chromium I get no sound though, and in Webkit everything except the background (boxes, players, my hand/gun, items ) flickers incessantly and annoyingly. Still pretty exciting.
I could compile it but when I visit the localhost address all I get is a black screen. Any idea?
Can compile with Fedora. Wish I could make it listen to a different interface and port though.
up and running on a macbook at around 7fps - going to try on my hackintosh tonight. pretty awesome all the way around, tho.
YMMV: Your Mileage May Vary
YMMV: Your microsoft machine (is) vomitive.
AKA: Don't use Windows.
happy April Fools Day!
So... if I want to use Windows, I should use CygWin? to build it? I don't have a Linux or Mac box handy... so yeah.
Hi,
I run it on WinXP.
Great and funny.
NOOOOOOOO......I just get a black screen, like jabba.laci, please help me!!
I was able to get the server to build and run w/o any issues or errors however I'm having a hard time getting my browser to connect to http://localhost:8080/GwtQuake.html. I'm on Debian Squeeze. Using the Debian version of Chrome (5.0.356.2 dev) and starting it with the --enable-webgl I get the "Aw, Snap!" error page. On the console I get this error:
No protocol specified GraphicsContext3D: error opening X display
I also tried to download chrome directly and when running that it won't connect at all.
export MAVEN_OPTS=-mx1024M worked for me in 10.6.2.
i've got the black screen too =\
When I try to run I got the following message:
Do I have to download the quake2 demo and copy the resources to the quake2-gwt-port?
Quake2 Initialized
java.io.FileNotFoundException?: maps/demo1.bsp
If you get a black screen make sure you are launching Chrome with --enable-webgl otherwise Quake 2 will be unable to use 3d graphics
Anyway to lock the mouse when playing in Chromium? Also no sound here on Ubuntu 9.10 Karmic
Oh it seems on Chrome Dev, most textures are not rendered, leading to black screen. Wait for a new Dev channel or try trunk, maybe.
I was getting a blank screen in Webkit. The Activity monitor said the nocache.js file wasn't found, so I looked around, found the file and copy-pasted it into the proper location.
Now Quake II loads, but the moment it shows the menu it refreshes the page or reloads or something.
If you are getting black screen in folder quake2-gwt-port run command:
cp -R maven-build/server/target/gwtquake/war/gwtquake ./war/
Hmm I tried the nightly here: http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/43525/
And still no go. No textures like before, except now sound is broken too.
Fixed it, forgot to turn off the sandbox :facepalm:
mwillis.fb, I was getting the same error (Embedded error: Error while executing the external compiler. java.io.IOException: error=2, No such file or directory). It's because you don't have anything to satisfy "javac". Installing openjdk-6-jdk will correct your issue.
if you have problems with
pics/p_megahealth.pcx java.io.FileNotFoundException??: C:\Games\quake2-gwt-port\war\baseq2\pics\p_megahe alth.png (The system cannot find the path specified)
download PakExplorer? at http://francis.dupont.free.fr/coindev/pakexp.zip and extract all the files from .\quake2-gwt-port\raw\baseq2\pak0.pak into quake2-gwt-port\raw\baseq2. Then copy the baseq2 folder into the quake2-gwt-port\war
i don't know what any of the stuff you guys are sayin i just want to play it :(
I've figured out how to fix the gamma issue. Just run "xgamma -gamma 1.8" Then launch your browser to the game. I am having some major sound issues though. I am running Slackware 64. When Chrome is ran i get these issues: http://pastebin.com/aPBWYT4K
I made a few more notes of things I found out as well and put them on my blog. http://learnix.net/html5-quake2-awesome-plus-a-way-to-fix-the-gamma-problem/
Really funny jake.. I mean joke.. Happy april fools!
http://internetgames.about.com/b/2005/11/28/quake-2-in-java.htm
Ok, the April Fool's Day folks either can't successfully compile it, or aren't trying to. It works really, really well. On Ubuntu 10.04 Beta, I had to install (sudo apt-get install maven2) Maven, and then the instructions worked fine, without sound, but working fine. BTW, I was able to get successful compile messages without Maven installed, but it resulted in the "black screen" issue that some other people seem to be having.
Amazing job, guys. This has blown some of my co-workers minds, considering I've got it running the server in an Ubuntu virtual machine and it works over the WWW without any fuss at all. I was happy it ran on the LAN, but I was very surprised at how well it worked over the Internet at large.
Don't give people command lines to copy and paste, just tell them what to install. They need to think for themselves and learn how to use their computer. If people just copy and paste commands from a web site, they could easily be tricked into damaging their computer.
I was able to get it running in Windows 7 (64-bit). However, images on the menu were all grayscale and the map and models on game load were wireframe. Sound worked, though.
Not getting any sound in google chrome :(
im getting a lot of unable to find resource when trying this...
If you see
on Windows. This is a problem in the src\jake2\tools\Unpak.java class where it assumes Windows uses a "/" for files instead of "\". Here is a quick change to fix it to get it working on Windows
Anything else are all OK, but I get ERROR on the step "Building GwtQuake? Dedicated WebSocket? Server": HOW TO FIX IT??????
INFO? ------------------------------------------------------------------------ INFO? Building GwtQuake? Dedicated WebSocket? Server INFO? task-segment: [clean, install] INFO? ------------------------------------------------------------------------ INFO? [clean:clean {execution: default-clean}] INFO? Deleting directory /root/quake2-gwt-port/maven-build/server/target INFO? [resources:copy-resources {execution: default}] WARNING? Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! INFO? Copying 6 resources INFO? [resources:resources {execution: default-resources}] WARNING? Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! INFO? skip non existing resourceDirectory /root/quake2-gwt-port/maven-build/server/src/main/resources INFO? [compiler:compile {execution: default-compile}] INFO? Compiling 263 source files to /root/quake2-gwt-port/maven-build/server/target/classes INFO? ------------------------------------------------------------------------ ERROR? BUILD ERROR INFO? ------------------------------------------------------------------------ INFO? Fatal error compiling
Embedded error: Error while executing the external compiler. java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? For more information, run Maven with the -e switch INFO? ------------------------------------------------------------------------ INFO? Total time: 2 minutes 45 seconds INFO? Finished at: Sat Apr 03 10:22:33 CST 2010 INFO? Final Memory: 24M/44M INFO? ------------------------------------------------------------------------ [root@localhost quake2-gwt-port]#
I run RHEL4 on 1G RAM.
When I using the -e switch to trace the ERROR, I get this: INFO? ------------------------------------------------------------------------ INFO? Building GwtQuake? Dedicated WebSocket? Server INFO? task-segment: [clean, install] INFO? ------------------------------------------------------------------------ INFO? [clean:clean {execution: default-clean}] INFO? Deleting directory /root/quake2-gwt-port/maven-build/server/target INFO? [resources:copy-resources {execution: default}] WARNING? Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! INFO? Copying 6 resources INFO? [resources:resources {execution: default-resources}] WARNING? Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! INFO? skip non existing resourceDirectory /root/quake2-gwt-port/maven-build/server/src/main/resources INFO? [compiler:compile {execution: default-compile}] INFO? Compiling 263 source files to /root/quake2-gwt-port/maven-build/server/target/classes INFO? ------------------------------------------------------------------------ ERROR? BUILD ERROR INFO? ------------------------------------------------------------------------ INFO? Fatal error compiling
Embedded error: Error while executing the external compiler. java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? Trace org.apache.maven.lifecycle.LifecycleExecutionException?: Fatal error compiling
Caused by: org.apache.maven.plugin.MojoExecutionException?: Fatal error compiling Caused by: org.codehaus.plexus.compiler.CompilerException?: Error while executing the external compiler. Caused by: org.codehaus.plexus.util.cli.CommandLineException?: Error while executing process. Caused by: java.io.IOException: Cannot run program "javac" (in directory "/root/quake2-gwt-port/maven-build/server"): java.io.IOException: error=2, No such file or directory Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? Total time: 1 minute 59 seconds INFO? Finished at: Sat Apr 03 10:40:39 CST 2010 INFO? Final Memory: 24M/44M INFO? ------------------------------------------------------------------------ [root@localhost quake2-gwt-port]#Is it meaning that there is something missing? HOW TO FIX ????
Holy crap! Please open up bug tracking somewhere so this page is more than just random bug reports.
It doesn't seem like setting the port works. Anytime I try to run it, it just defaults to 8080 #./run-dedicated-server 8801 still tries to use 8080.
I think is good you make a video for install on linux and Mac OS.
@filmorependrgn : People choose the easier path, there surely seems an Issues? tab in the site to report issues.
Got it working Windows 7 64bit. It only runs at between 4 and 13 fps for me.
"WebGL support in Chrome now runs inside the security sandbox. If you have been testing WebGL, please remove the --no-sandbox flag from your Chrome options. WebGL may be enabled via the --enable-webgl command line option."
removing the no-sandbox flag breaks quake 2 and it ends up stuck. The menu even doesn't show.
Working very nicely on Lucid Lynx/Chromium, though without sound.
Had to install JDK, set JAVA_HOME, do #!/bin/bash in files, fix ref to gwtquake.nocache.js in Gwtquake.html, plus copy it in. Framerate is very nice tho.
Next -- sound.
Andy
Not a dream, not an imaginary story...Works fine on my MBP 13" running Snow Leopard. FPS is only 24, but what do want for a small tech miracle?
Great job!
there is an error in the running instruction #5 ./run-dedicated-server always run on port 8080 whatever the port you specify on the command line !
also, like suggested above, I modified war/GwtQuake?.html to use gwtquake.nocache.js but I still get a black screen.
@mrdomino fixed in hg
@64.brian updated the instructions accordingly
Doesn't work. Only black screen in Chrome. WebGL test runs just fine. Console gives following message: GraphicsContext3D: multisampling framebuffer was incomplete What am I supposed to do? Running Ubuntu 9.10, latest Chrome (I think at least, verison 5.0.370.0 (43578)) and Quake setup like told on this page. BTW: I had to install also sun-java6-jdk.
Works great for me on WebKit? nightly.
On Debian Lenny you can install twolame instead of lame. On Mac OS X you can also use Fink to install vorbis-tools and lame.
Ive come to two problems: #1. Download has really poor transfer for me(from the mirror selected by installer) and it times out i think cause it stops at some point. I have downloaded the file and i'd like to know if there's possibility to force the installer to use this file from my hdd.
#2. I have installed chrome specialy for this and when i launch the server and try to open it in chrome with --enable-webgl --no-sandbox it says i dont have webGL - will it tell me that if i dont have everything installed yet?(see #1)
I use ubuntu lucid i386.
"removing the no-sandbox flag breaks quake 2 and it ends up stuck. The menu even doesn't show."
Actually it keeps most textures from rendering. You can pop open the console and start a map to see that models have textures applied but not much else does.
@kacperpl1
I had the same problem, using --enable-webgl and --no-sandbox still brought up the 'no webgl' error page. I figured out you have to switch your chrome to the "developer" channel, and update it. Click here, run the installer, and restart chrome after updating: http://www.google.com/chrome/eula.html?extra=devchannel
As for everyone saying you don't need --no-sandbox, I imagine there are other features this uses aside from webgl that won't run inside the sandbox.
I meant to ask in my previous comment, has anyone gotten multiplayer to work? It would be nice if my friends and I could all visit one page and be in the same game.
thanks @nick.lipple, but still it doesn't work for me
For anyone having trouble getting the startup script to specify a port there is a fix here
http://www.google.com/chrome/eula.html?extra=devchannel
that helped me =) Thanks
@nick.lipple Make sure you have all Chrome windows closed before trying to run it with those switches or it wont work. If you go to help and about, what version of chrome do you have? Maybe you need to update it?
The only other thing could be is your cache. Either clear it or create a new user and try it with them.
1
My build on debian originally gave me all sorts of issues, as I was missing many specific packages, but went perfect with the following steps;
starting from /usr/src/
./apt-get install vorbis-tools hgsvn openjdk-6-jdk
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?use_mirror=voxel
gunzip lame-3.98.4.tar.gz
tar -xf lame-3.98.4.tar
cd lame-3.98.4
./configure && make && make install
cd ..
hg clone https://quake2-gwt-port.googlecode.com/hg/ quake2-gwt-port
cd quake2-gwt-port
./build-dedicated-server
./install-resources
After that, running the server went perfectly for me. YMMV.
Using VirtualBox? (3D activated) and Xubuntu OS. last chrome version.
Still error : WebGraphicsContext3DDefaultImpl: glXChooseFBConfig failed
:/
Awesome!
Running Chromium 5.0.370.0 (43578) with "/Applications/Chromium.app/Contents/MacOS/Chromium --enable-webgl --no-sandbox" on Mac OS 10.5.8, I get:
WebGL Support Required
For a list of compatible browsers and installation instructions, please refer to
http://code.google.com/p/quake2-gwt-port/wiki/CompatibleBrowsers For a detailed error log, please refer to the JS console.
Exact same problem as glenpowers, osx 10.5.8 using the default build.
if I follow the advice of editing GwtQuake?.html to point to 'gwtquake.nocache.js' instead of 'gwtquake/gwtquake.nocache.js', I get the blank black screen problem.
works great here (mac os x 10.6.3, chromium) except for audio which doesn't seem to exist. installed vorbis-tools and lame via fink and set the heap size as suggested but no audio... anyone else has this problem?
I wrote a detailed post on how to do the install on Ubuntu 9.10: http://theojalba.me/blog/2010/04/quake2-in-the-browser-ubuntu/
Everything working minus sound after following instructions above
For folks who are using Windows and trying to get this to run under Cygwin, it does seem to want to use PNG files instead of PCX. You can download ImageMagick? and then use 'convert <file>.pcx <file>.png' on each of the .pcx files in war/baseq2 to convert them to PNG format. This will let you see more than a black screen, but as noted by jtchange22, it doesn't seem to completely solve the problem. I'm going to keep monkeying with it (Win7 64-bit) and if any of you are under Windows, please post here how it's going for you. When I get a reliable pipeline going, I'll post it up.
Mac OS 10.5.8 WebKit? r57054 Sound working perfectly Screen either pixels, black, pink or a static image of the game
Mac OS 10.5.8 Chromium 5.0.370.0 (43585) No sound Black screen
None of the tips listed above worked...
To anyone still getting the black screen despite no Javascript errors or compile errors, don't type: cp -r maven-build/server/target/gwtquake/war/gwtquake war. type instead cp -r maven-build/server/target/gwtquake/war/gwtquake war The fullstop at the end from the guide is for the end of a sentence, and not part of a directory. Looking over the comments I suspect a few people have made this mistake.
I got it working. I forgot to command: cp -r maven-build/server/target/gwtquake/war/gwtquake war So it was my bad. How I can get it to show fps?
if you are behind proxy. mvn doesn't download all packages even export http_proxy doesn't work out. To get around this issue you have to specify proxy settings in maven-build/maven/conf/settings.xml file by uncommenting and replacing correct values in <proxies>
I can confirm that the server also builds and runs on Solaris 10. You just need to install vorbtools and lame from blastwave. Client of course is Mac
The ftp demo links in "install-resources" don't really work. I had to download it seperatively.
works. nice works.
hey can you make a firefox port of quake 2?
Fantastic work, Google Dudes - take a bow! This is a very impressive demo and milestone for browser caps with HTML5, WebGL, web sockets, and GTK.
I'm clocking about 11 fps on the demo running Chrome 5.0.366.0 on my 2.4Ghz Core 2 Duo MBPro (running both server and client)
I'm running Snow Leopard (10.6.3) - and built/installed/ran as your instructions, with the following results/workarounds others have posted:
Runs great! Challenging to play on a multi-touch mousepad!
I compiled on WinXPSP3, only mp3 sound, oggenc fails here but lame from rarewares works good.
However, it shows a WARN about some textures:
Server started
ShutdownGame?
InitGame?
------- Server Initialization -------
Quake2 Initialized
nextmap: demo2 2010-04-04 23:59:38.359::WARN: Aliased resource: file:/H:/QuakeII/war/baseq2/textures/e1u1/wGRATE1_4.png==file:/H:/QuakeII/war/baseq2/textures/e1u1/wgrate1_4.png 2010-04-04 23:59:39.718::WARN: Aliased resource: file:/H:/QuakeII/war/baseq2/textures/e1u1/FLAT1_2.png==file:/H:/QuakeII/war/baseq2/textures/e1u1/flat1_2.png
and it also shows a red background, btw all those pictures were converted to PNG files. snapshot:
:-/
I built the project, Install it, and Run the Server. But when i open in Chromium Under Ubuntu 10.04 beta it gives me a black screen.
under ubuntu 9.10, i'm getting a black screen and the following javascript error in the console
Quake2 Initialized
gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:7099 gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:59817: static buffer created; id: 0 remaining: 8 gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033com.google.gwt.core.client.JavaScriptException?: (TypeError?): undefined is not a function
gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.CALL_NON_FUNCTION_AS_CONSTRUCTOR(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.wSd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.gSd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.zQd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.nQd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.qQd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.uQd(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.Mub(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.PDb(Unknown source:0) gwtquake/80F87E8A6DAD9DE7ED4B3687523EC181.cache.html:6033 at Unknown.MKd(Unknown source:0)Am currently plodding through the steps on Hexxeh's flow build of chromium OS. One additional pointer, you will need to install mercurial, sudo apt-get install mercurial
I'm running it on a 2GHz MacBook?, 10.6, latest WebKit? nightly. It comes up and runs just fine, but a few FYIs: the console takes up the whole screen at the start, so I can't see the menus. I have to just hit Return a few times to start the game. Also, some of the objects are flickery. The UI elements, in particular, are almost never visible. Still, amazing! =]
Oh, and if it's not bad form: I wrote a blog post with a few extra steps for Mac/WebKit?, to make it easier: http://joshjustice.wordpress.com/2010/04/02/getting-quake-ii-working-in-webkit-mac/
it suck everyting on tat suck the normal quake is better!!!
thats stupid and gay "no pluggin" you have to do a lot of things thats all stupid and gay
@fliper97: to set up the server, some unusual things are required, yes. to play, you only need a ... nevermind. you're a moron.
All the non map elements flicker wildly. It's a shame because I can see that it's running at near 60FPS. This is on the latest webkit.
joshjustice, I have the same issues in webkit, but I can run it fine in Chromium apart from the sound not working. I also can't use the console.
Built and run successfully. The specified port by './run-dedicated-server port?' seems no effects, it always tries to listen 8080. I still could not test the result as my environment(Chrome/Windows XP/Intel graphic driver) crashes on all WebGL sites like this one or the WebGL examples of webkit.org. but anyway, it is absolutely a great work.
So far, I have it all running fine on Windows 7 / Cygwin with Chromium, but I'm still fighting a few issues. I've converted all the pcx files over to PNGs and most things render properly now, but the wall/floor/etc textures are not mapping right. Of course, no sound like others are reporting, as well.
I'll post more if I get the rest of this figured out tomorrow (need to sleep for work in the morning)
Awesome! Can't wait to try this at home!
the ftp is broken
Trying mirror: ftp://ftp.fragzone.se/pub/spel/quake2/q2-314-demo-x86.exe Donwload Failed
./chrome --enable-webgl http://localhost:8080/GwtQuake.html
10.04 Ubuntu Lucid, Intel Graphics (gateway laptop) WebGl?? Support Error
At the client maven pom.xml <version>1.2-SNAPSHOT</version> doesn't work for but <version>1.2</version> did the job
Some intel Graphics don't support OpenGL, to test using software rendering: http://learningwebgl.com/blog/?p=11#install-firefox
Ok so i have explanation why it doesnt work for me thanks to leonardotw. I suppose i cannot run this because of my GMA950. Is there any possibility to override this problem?
I am trying to get it working on XP. The step 4 seems to never end for me. C:\quake2-gwt-port>java -jar maven-build\installer\target\gquake-installer-1.0-SNAPSHOT.jar Trying mirror: ftp://ftp.cs.tu-berlin.de/pub/msdos/mirrors/ftp.idsoftware.com/quake2/q2-314-demo-x86.exe Downloading.......................................
I tried to run the server and got the following error:
Quake2 Initialized
java.io.FileNotFoundException?: maps/demo1.bsp
However, the server is started. When I access GwtQuake?.html, I get a black page. The Javascript console indicates the JS is looking for some resources I dont have:
Quake2 Initialized
gwtquake/E566403CA88AF40977FF05D4BFC50CAA.cache.html:7100 gwtquake/E566403CA88AF40977FF05D4BFC50CAA.cache.html:59817: static buffer created; id: 0 remaining: 8 gwtquake/E566403CA88AF40977FF05D4BFC50CAA.cache.html:59818: too many load errors for http://localhost:8282/baseq2/pics/conchars.png&rt&rt&rt&rt; giving up! gwtquake/E566403CA88AF40977FF05D4BFC50CAA.cache.html:59819: too many load errors for http://localhost:8282/baseq2/pics/conback.png&rt&rt&rt&rt; giving up!
I downloaded q2-314-demo-x86.exe manually but I cant find these PNGs.
Matthias,
this is probably a bug in Downloader.java, see http://code.google.com/p/quake2-gwt-port/issues/detail?id=9
working beautifully for me on Snow Lep/4GB MacBook? Pro… who needs Flash, now?
ubuntu 10.1 lucid lynx so trying to get sound i ran all the commands in sudo when i try to run ./run-dedicated-server i get ./run-dedicated-server 8080? Unable to parse port: 8080? usage: GwtQuakeServer? port? args? Note that this will use both port? and [port+1]
help plz
Stephan,
I wrote a quick fix for Downloader.java and PCXConverter.java, I also used PakExplorer?? (http://francis.dupont.free.fr/coindev/pakexp.zip) and... it worked! I get 20 FPS.
However, the sound still does not work. Does anybody fixed the sound issue? I can find the WAV files under war\baseq2\sound. I dont see any error log in the js console.
I am using vorbis-tools 1.2.0 http://www.xiph.org/downloads/ I get all the wav files converted to mp3 and most OGG files now.
However, the installer freezes after WAVConverter converts the file over 26Ko.
Here is the list: "pyramid.wav", "amb22.wav", "lava1.wav", "v_cmd1.wav", "pilot2.wav", "quake.wav", "v_fac2.wav", "v_gun1.wav", "spark2.wav", "v_bas3.wav", "amb21.wav", "drip_amb.wav", "v_bas6.wav", "flyby1.wav", "xian1.wav", "comp_hum3.wav", "pilot1.wav", "dish1.wav", "battle3.wav", "fan1.wav", "drill2a.wav", "kmtrain.wav", "rocks1.wav", "radio3.wav", "short1.wav", "tele1.wav", "curnt2.wav", "comp_hum2.wav", "water1.wav", "flyby3.wav", "v_cmd2.wav", "pilot3.wav", "voice10.wav", "radio2.wav", "dr_long.wav", "10_0.wav", "v_bas4.wav"
The installer runs until the end if I ignore the conversion to OGG of these files.
My browser is still not playing any sound :(
Ubuntu 9.10 Karmic - Good Working (I didn't check sound)
If you couldn't see some textures like walls and floors and etc, give Chromium '--no-sandbox' option. It was the reason I couldn't see some textures.
Matthias,
could you attach your fix for the downloader to the corresponding bug report: http://code.google.com/p/quake2-gwt-port/issues/detail?id=9
Stefan
Stephan,
Yes, I will upload my changes asap.
I tried with chrome-dev-channel on windows-xp: http://build.chromium.org/buildbot/continuous/win/LATEST/
But when start up the browser with "--enable-webgl --no-sandbox", it said: "You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer".
Is there some solution for the problem? Thanks.
Are there any ways to start server on remote computer, and connect to it through network?
Hii
I have a problem that @legenddcr have this problem. I installed Chromium from "http://build.chromium.org/buildbot/continuous/linux/LATEST/" on Pardus(linux) 2009. I tested my Chromium at "https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/webkit/ManyPlanetsDeep.html" and WebGL works perfectly but Quake doesn't work..
When I try command that "./chrome --enable-webgl --no-sandbox", start up the browser with "--enable-webgl --no-sandbox", it said: "You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer". What can I do to solve it..? Thanks..
@legenddcr and @murat.asya I get the same warning message, but you can ignore it: the game will start anyway.
Sometimes, I get a black screen when I load the page. To fix this, try to reload the page or start the JS console.
Thanks @matthias.buchner.. I found my problem!
I did not do this step "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. " I did not care the step, Now I command "cp -r maven-build/server/target/gwtquake/war/gwtquake war." on my console after Quake2 starts smoothly ...
Everytime I try to build, I receive this error message:
Is there another place I could download gquake-installer-1.0-SNAPSHOT.jar ?
(OS: Mac OS X 10.6)
cant get webgl to work. tried both chrome and firefox. enabled webgl in both and still get the same error.
im on ubuntu 9.10
anybody with the same problem have any luck?
thanks in advance
im stuck at ./run-dedicated-server 8080? it says Unable tho parse port: 8080? usage:GwtQuakeServer? port? quakeargs? Note that this will use both and [port+1? then the command ends
Can anyone put down some straight instructions to get it running on basic x86 32bit Windows XP. Ive been struggling with it for the past 2 days and still fail to get anything building/running. I've tried using Cygwin to do the linux type build then the eclipse way but i'm unable to build correctly in Cygwin and get these types of errors in Eclipe: "Validating newly compiled units
If anyone has it working, you mind msging me or posting a step-by-step, itd be greatly appreciated!! =)
I get a segmentation fault on CentOS during step 3 "SIGSEGV" in OpenJDK Server VM 1.6.0-b09
All is working ok here on Ubuntu Lucid Lynx except sound..
Lucid Lynx, Chrome 5.0.375.19 dev
Followed instructions above on OSX 10.6.3. Works like a charm!
the server starts I get the quake tab in the browser but no picture...any ideas?
@ zaphodbblx Try with the --no-sandbox option when launching Chrome
WebKit? (r59204) and Chrome (5.0.375.38 beta) works for me. Client is Mac OS X 10.6.3 and server is Debian 5.0 (i386). Installed lame from source.
Did not need --no-sandbox: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-webgl
Anyone else having problem with the mouse being out-of-sync (or something like that)? Kinda hard to play.
Windows XP/Cygwin Build Instructions
Using http://code.google.com/p/quake2-gwt-port/wiki/BuildingAndRunning 1. Prerequisites: a. Install Chromium, not Chrome (tested with 5.0.394.0 (46121))
b. Install Cygwin (1.7.5-1 + packages @ 20100501) c. Install vorbis-tools in Cygwin setup.exe (tools 1.2.0-2 lib 1.2.3-1) d. Install Java SDK in Windows (Sun jdk 1.6.0_20) Files\Java\jdk<version>\jre\lib Files\Java\jdk<version>\jre\bin automatically propagated to newly opened Cygwin shells) e. Build lame in Cygwin manually (3.98.4 to /usr/local by default):2. Check Out Latest (@ 20100501) a. Follow Instructions b. Apply Attached Patches using patch:
attached list (some of these may be URL paths and OK)3. Build using shell script (not batch script)
4. Install Resources using shell script (not batch script)
5. Run Dedicated Server using shell script (not batch script)
incomplete6. Navigate to Local Address in Chromium
On Lucid Lynx and latest Chromium.
I always see this error... any more with this problem?
ref_gl version: GL 0.01 0: GLimp_SetMode? 1: determining old display mode 2: searching new display mode 3: copying w/h 4: setting mode: jake2.render.DisplayMode?@1 5: storing mode 6: newWindow notification GL_VENDOR: ATI Technologies Inc. GL_RENDERER: ATI Radeon HD 3200 Graphics GL_VERSION: OpenGL ES 2.0 Chromium GL_EXTENSIONS: java.lang.NumberFormatException?: For input string: "Ope" Unknown.lme(Unknown source:0) Unknown.Gke(Unknown source:0) Unknown.$Kd(Unknown source:0) Unknown.yOd(Unknown source:0) Unknown.vFb(Unknown source:0) Unknown.Ecb(Unknown source:0) Unknown.C_d(Unknown source:0)
Made the textures work on Windows!
And without any Cygwin -- just cmd. Skipped step 4 due to error mentioned somewhere above, and extracted with PakExporter?. Used ImageMagick? to convert all .pcx to .png (using "mogrify --format png .pcx").
The next problem were all the textures: to convert .wal to .png use Wally tool -- http://www.telefragged.com/wally/downloads.shtml
All works great, 10-20fps. About shitty mouse -- read the FAQ and use right button.
The only unsolved case are sounds..
I get this error:
Unable to parse port: 8080? usage: GwtQuakeServer? port? args? Note that this will use both port? and [port+1]
Anyone can help?
$ ./install-resources (...) Trying mirror: ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/quake2/q2-314-demo-x86.exe Donwload Failed Exception in thread "main" java.lang.RuntimeException?: Too many retries. Download failed.
I'm behind a proxy server and it doesn't connect ftp servers. I've got to download q2-314-demo-x86.exe, but I don't know how to make the installer use my local file instead of trying to download from a ftp server, which will not work.
Is there any parameter that I can do or change anything in source code to avoid trying download from the servers?
Thanks
I got Unable to parse port: 8080? usage: GwtQuakeServer? port? args? Note that this will use both port? and [port+1] I am on ubuntu 10.04 what do I do?
INFO? ------------------------------------------------------------------------ ERROR? BUILD ERROR INFO? ------------------------------------------------------------------------ INFO? Fatal error compiling
Embedded error: Error while executing the external compiler. java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? Trace org.apache.maven.lifecycle.LifecycleExecutionException?: Fatal error compiling
Caused by: org.apache.maven.plugin.MojoExecutionException?: Fatal error compiling Caused by: org.codehaus.plexus.compiler.CompilerException?: Error while executing the external compiler. Caused by: org.codehaus.plexus.util.cli.CommandLineException?: Error while executing process. Caused by: java.io.IOException: Cannot run program "javac" (in directory "/home/jeffp/quake-webgl/quake2-gwt-port/maven-build/server"): java.io.IOException: error=2, No such file or directory Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory INFO? ------------------------------------------------------------------------ INFO? Total time: 57 seconds INFO? Finished at: Fri Aug 13 00:07:41 CDT 2010 INFO? Final Memory: 27M/194M INFO? ------------------------------------------------------------------------never mind the above post, I was using the regular jdk package.. I switch to openjdk 6 and it runs fine
trying to compile in cygwin got java.io.FileNotFoundException?: maps/demo1.bsp
finalfanyastytimothy: is that an error from compilation, or attempting to run the server? If from running the server you still need to run the install-resources script
error from running server when i run install-resources i get java.io.FileNotFoundException?: C:\cygwin\home\tim\quake2-gwt-port\war\baseq2\pics\p_megahealth.png
Under Debian: id?
1 required artifact is missing.
for artifact:
from the specified remote repositories:
Why do not provide an online version ? It would be easier to use for new users.
gquake-installer-1.0-SNAPSHOT.jar is missing!!! Please update the trunk! :(
I installed on my CentOS 5.4 server (headless, ssh only) and ran into a problem with codehaus repository. It seems they moved their SNAPSHOT url. I fixed the problem by changing two pom.xml files
First, I looked at the xml file in my ~/.m2 repo and saw that the snapshot had moved. (The XML was HTML response with a notice of permanent move.)
I updated the pom.xml with the new repo but had to eventually comment out the SNAPSHOT repo:
Then, I changed the client/pom.xml to use the 1.2 GA (which by this time, 1.2 is GA):
~/quake2-gwt-port/maven-build/client/pom.xml <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <configuration> <!-- <version>1.2-SNAPSHOT</version> --> <version>1.2</version> <logLevel>INFO</logLevel> ⋮ </plugin>This allowed ./build-dedicated-server to compile without issue. I also ran ./install-resources without issue. I then opened up the firewall to allow access:
Running ./run-dedicated-server 8080 also started but when I directed my browsers (OmniWeb? 5.10.2, Google 6.0.472.62, Safari 5.0.2) to the server http://192.168.2.5:8080/GwtQuake.html , all got a solid black screen.
I'm not sure what's failing but I'll keep at it.
I might to add that I'm using my standard maven compiler. Whilst I cd ~/quake2-gwt-port/maven-build/ and compile with 'mvn clean install', I simply ran the ./install-resources from ~/quake2-gwt-port/ . I'm using maven 2.2.1 for my other projects and thought I'd simply use it here as well.
I might also add the versions I have of the requiste tools:
Update: I went through the steps again with success. I believe in my haste on Sep 21, I left out the copy step:
I couldn't get Chrome or Webkit (nightly build) to run but Firefox runs okay on my Mac.
Notice a lot of people are talking about using maven instead of ant. Recent change in preferred build tools? Anyway, I'm having an issue installing resources using 'ant run'.
Specifically, it gets to the first 'wal' texture and does this:
[java] textures/e1u1/damage1_2.wal [java] Exception in thread "main" java.lang.NullPointerException [java] at jake2.qcommon.Compatibility.newString(Compatibility.java:51) [java] at jake2.qcommon.qfiles$miptex_t.<init>(qfiles.java:367) [java] at jake2.qcommon.qfiles$miptex_t.<init>(qfiles.java:357) [java] at jake2.tools.WALConverter.LoadWAL(WALConverter.java:41) [java] at jake2.tools.WALConverter.convert(WALConverter.java:36) [java] at jake2.tools.Unpak.convertFile(Unpak.java:133) [java] at jake2.tools.Unpak.unpak(Unpak.java:237) [java] at jake2.tools.Unpak.convertDir(Unpak.java:100) [java] at jake2.tools.Unpak.main(Unpak.java:88) [java] at jake2.tools.Installer.main(Installer.java:37)
Mrrg. Wish you could edit comments! Okay, well, I mis-guessed at whatever markup you guys are using up there, but yeah, the important information is all there >.<
Same here, getting a NullPointerException? on the first wal file.
[java] players/female/brianna.pcx [java] Opened packfile /home/delan/build/quake2-gwt-port/raw/baseq2/pak0.pak (1106 files) [java] [java] pics/p_megahealth.pcx [java] models/weapons/g_machn/skin.pcx [java] models/monsters/soldier/skin_ss.pcx [java] pics/w_chaingun.pcx [java] models/items/keys/red_key/tris.md2 [java] textures/e1u1/damage1_2.wal [java] Exception in thread "main" java.lang.NullPointerException [java] at jake2.qcommon.Compatibility.newString(Compatibility.java:51) [java] at jake2.qcommon.qfiles$miptex_t.<init>(qfiles.java:367) [java] at jake2.qcommon.qfiles$miptex_t.<init>(qfiles.java:357) [java] at jake2.tools.WALConverter.LoadWAL(WALConverter.java:41) [java] at jake2.tools.WALConverter.convert(WALConverter.java:36) [java] at jake2.tools.Unpak.convertFile(Unpak.java:133) [java] at jake2.tools.Unpak.unpak(Unpak.java:237) [java] at jake2.tools.Unpak.convertDir(Unpak.java:100) [java] at jake2.tools.Unpak.main(Unpak.java:88) [java] at jake2.tools.Installer.main(Installer.java:37)The NPE at jake2.qcommon.Compatibility.newString should be fixed by the patch attached here: http://code.google.com/p/quake2-gwt-port/issues/detail?id=34 Please comment there if it helps you and vote for it.
Chromium 9.0.592.0 (66912) , ubuntu 10.04.1 amd64.
wormball@wormball-desktop:~/shit/chrome-linux$ ./chrome --enable-webgl Xlib: extension "RANDR" missing on display ":0.0". Attempting to load libmoonloaderxpi Xlib: extension "RANDR" missing on display ":0.0". libEGL warning: unable to load st_GL.so The program 'exe' received an X Window System error. This probably reflects a bug in the program. The error was 'BadLength? (poly request too large or internal Xlib length erro'.
WebKit? r73886 — no errors, black screen: http://d.pr/glGQ
This is completely awesome! I am so glad I tried it out :D I love the notifications that pop up when you don't have a particular weapon. This is the future of gaming right here.
i dont understand how to install: 3 - ant run (will install the original Quake II demo resources, build the client and server code, then run the server).
Could I suggest an installation improvement? One thing I find really annoying is that doing 'ant run' causes it to re-download the demo sources at the stupidly slow speed from iD's ftp server every time I recreate the repo. If I have a copy of the q2 demo exe in the root of the project, it should just use it.
I have an April 2010 blog post about doing this in Mandriva 2010 which worked fine for me then, but not now (January 2011). Now that I'm using FF4 I thought I'd give it another try and update the blog for the non-Ubuntu users.
http://maximumhoyt.blogspot.com/2010/04/quake2-in-browser-in-mandriva-2010.html
What is this "ant run"?
Why will ./build-dedicated-server no longer work?
've cloned the repository here up to BitBucket?.org and applied the NPE patch above along with the following minor changes.
# Allow q2-314-demo-x86.exe to be found at ~/Downloads/q2-314-demo-x86.exe or ./q2-314-demo-x86.exe # Downloader now downloads to "./q2-314-demo-x86.exe" so that it will not be constantly re-downloaded after doing clean-resources
Feel free to clone from here https://bitbucket.org/steshaw/quake2-gwt-port.
Developers here, feel free to pull my changes.
When I try to do "ant run", I have this problem:
ant run Buildfile: /home/spozzi/Desktop/hg/build.xml
BUILD FAILED /home/spozzi/Desktop/hg/build.xml:6: Unexpected element "{}html" {antlib:org.apache.tools.ant}html
Total time: 0 seconds
How can I resolve? Please feel free to reply also via email. Thank you
I believe I have everything compiled and running correctly, but when I point Chromium to:
chromium-browser --enable-webgl http://localhost:8080/GwtQuake.html
All I get is a blank screen. Here is what is running when I do "ant run":
[user@localhost quake2-gwt-port]$ ant run Buildfile: /home/user/quake2-gwt-port/build.xml libs: server: [javac] /home/user/quake2-gwt-port/build.xml:57: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds install-resources: [java] raw/baseq2 already exists; no need to download [java] war/baseq2 already exists; no need to unpak client.build: libs: server: [javac] /home/user/quake2-gwt-port/build.xml:57: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds client.run: build: run: [java] 2011-07-11 00:26:00.023:INFO::jetty-8.0.0.M2-SNAPSHOT [java] execing config.cfg [java] 2011-07-11 00:26:00.104:INFO::Started SelectChannelConnector@0.0.0.0:8080 [java] execing config.cfg [java] ServerWebSocketImpl(27910) [java] Starting Server [java] Server started [java] ServerWebSocketImpl(27901) [java] Starting Server [java] 2011-07-11 00:26:00.275:INFO::jetty-8.0.0.M2-SNAPSHOT [java] 2011-07-11 00:26:00.279:INFO::Started SelectChannelConnector@0.0.0.0:27910 [java] 2011-07-11 00:26:00.279:INFO::jetty-8.0.0.M2-SNAPSHOT [java] 2011-07-11 00:26:00.281:INFO::Started SelectChannelConnector@0.0.0.0:27901 [java] Server started [java] ==== ShutdownGame ==== [java] ==== InitGame ==== [java] ------- Server Initialization ------- [java] ====== Quake2 Initialized ====== [java] [java] nextmap: demo2I'm running on Fedora 15 and use Chromium version: 12.0.718.0 (0) Built from source for Fedora release 15 (Lovelock)
Thanks.
On Linux Ubuntu 11.04, after ant run :
Can someone post CPU utilization and a system config like CPU-Z during gameplay? I can't build it but I want to understand the resource requirements. Almost any ref point will do, might be best if the system has some sort of contemporary GPU-based HTML5 acceleration (like AMD Brazos/Zacate).
Running chromium13/ubuntu10.04. Succesful build after 'sudo ant run' (running 'ant run' made the build quit with java error: 1) but when I open browser I also get a blank black screen, no errors in terminal, says server is running but the browser the console gives multiple errors for images not found in /quake2-gwt-port/baseq2/pics - I looked in that folder and there are only 2 images. Perhaps something didn't download properly from the Quake II repos?
I'm having the same problem as @neildrth...
Chromium 12.0.742.112 (90304) Ubuntu 11.04
has the address of the source code changed? I just can't create a local copy :(
https://code.google.com/p/quake2-gwt-port/ ???
Can I use JRE, or must I use openjdk to make?
What's the difference between "ant" and "ant run"? And if I just do "Ant" what do I have to do next?
I know there hasn't been a post in a month, but if any one reading this STILL can't get it to work because of black screen troubles, the reason that is happening is because your browser DOES NOT have WebGL enabled (Or it just doesn't have it, IE, lol), i found that the easiest way was to just use firefox, it worked for me straight out of the bag. But if it still doesn't work, all you need to do is go to about:config in firefox and look for WebGLDisabled(or something similar) and set it to "False".
Hope this helps someone to get Quake II working because CoD and Battlefield can kiss it's ass!
It seems Quake gwt uses some functions WebKit? has deprecated.
In the Chrome javascript console it shows
"event.layerX and event.layerY are broken and deprecated in WebKit?. They will be removed from the engine in the near future"
I suppose this is the cause in Firefox too.
I try to compile the code on osx 10.5.8 but get the following error "class file has wrong version 50.0, should be 49.0" early in the build. Did some files change? How can i get the older version of the file (error code below)? Thanks,d!
dir:quake2-gwt-port computer$ sudo ant run Password: Buildfile: build.xml
libs:
server:
BUILD FAILED
...update: It works like a charm on osx 10.6.8 tough.... install homebrew (read the requirements e.g. install java upate 6, xcode etc) brew vorbis brew lame mecurial (python easy_install) checkout code (hg etc, wait if it seems to hang on) sudo ant run...
enjoy!
includeantruntime' was not set
Most everything seems to be working great for me EXCEPT there is no gun visible in my hands and all enemies seem to be invisible. Ideas? (I am running the server on a Linux box but accessing it from Windows)
I have compiled it on Mandriva 2010 and have a guide for rpm-based systems at http://maximumhoyt.blogspot.com/2010/04/quake2-in-browser-in-mandriva-2010.html
There were two errors during the build:
/usr/bin/build-classpath: error: Could not find jaxp_parser_impl Java extension for this JVM /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
And it runs very slowly on my system (Athlon XP-3000, 2GB RAM, nVidia GeForce? 8400GS, FF4.1).