Jake2 Webstart version (Java Quake2)

We prepared a webstart version of Jake2 on our homepage. Go ahead and try out playing Quake2 with just a mouseclick:

http://www.bytonic.de/html/jake2_webstart.html

There are three different links for the Jake2 because of problems on some hardware configurations. Try the links in that order until you find a working configuration. The webstart version runs without problems on Linux and Windows 2000/XP. The would like to get feedback from OS X users how Jake2 works on the Mac. Better would be a sponsor for a Mac so the can improve the OS X compatibility ourselves. :slight_smile:

The webstart version allows the online installation of the Quake2 demo level data or the selection of a preinstalled baseq2 directory. Jake2 should work as multiplayer client against an original Quake2 server without extensions like nocheat.

Please send feedback to our Jake2 forum at sourceforge.

http://sourceforge.net/forum/?group_id=111156

Holger

Works fine here. Well done.

Not packaged properly for Mac it seems:

java.lang.NoClassDefFoundError: net/java/games/joal/OpenALException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at nW.(Unknown Source)
at vy.f(Unknown Source)
at qm.a(Unknown Source)
at jake2.Jake2.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:848)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:808)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:682)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:397)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:552)

I tried running it on Linux, Fedora Core 2. I loaded it, it downloaded the demo, and it stopped 1k away. I gave it 30 minutes to try and get that last 1k… and nothing happened. I assume it was something wrong with the program.

[quote]I tried running it on Linux, Fedora Core 2. I loaded it, it downloaded the demo, and it stopped 1k away. I gave it 30 minutes to try and get that last 1k… and nothing happened. I assume it was something wrong with the program.
[/quote]
Can try to download and unzip the Quake2 demo separately? Choose “select baseq2 directory…” in the startup dialog.

Holger

[quote]Not packaged properly for Mac it seems:

java.lang.NoClassDefFoundError: net/java/games/joal/OpenALException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
[/quote]
I uploaded a new version with joal for OS X included. Could you try again?

Holger

[quote]I uploaded a new version with joal for OS X included. Could you try again?

Holger
[/quote]
Ok… it runs now, but all audio is complete noise on the Mac… seems like an endian issue with the samples.

Win2kPro/256MB/Matrox G400 card
I used the following link, video setting was 640x resolution.
http://www.bytonic.de/downloads/jake2_jogl11.jnlp

Runs ok and actually very smooth. Probably I have never seen so smooth “real fullsized” Java OpenGL game in my machine.

One question, what is Joglfast option. You have provided Joglfast and Jogl options in a settings dialog.

And would be really interested to read about the story of porting Quake2 to Java. What was the biggest challenges, problems, what did you learn, etc…

Thanks, that is good to know. We had a similar problem with the textures some time ago. :slight_smile:

I updated Jake2 to use native byte order sample format. Does it work now?

Holger

[quote]Win2kPro/256MB/Matrox G400 card
I used the following link, video setting was 640x resolution.
http://www.bytonic.de/downloads/jake2_jogl11.jnlp

Runs ok and actually very smooth. Probably I have never seen so smooth “real fullsized” Java OpenGL game in my machine.

One question, what is Joglfast option. You have provided Joglfast and Jogl options in a settings dialog.

And would be really interested to read about the story of porting Quake2 to Java. What was the biggest challenges, problems, what did you learn, etc…
[/quote]
In our first version there was a major performace impact compared to the original because of the JNI overhead (see http://www.bytonic.de/html/benchmarks.html). Our new OpenGL rendering code “fastjogl” uses vertex arrays to reduce the number of JNI calls. “jogl” is the 1:1 port of the original rendering code. We should use different identifications in the video menu as “jogl” and “fastjogl” suggest different jogl libraries. :slight_smile:

Holger

Audio is fixed on the Mac.

It runs well but with one major problem in the controls. The “mouse look” is horrible. It tracks far too slow, only a couple movements per second.

I have not idea whats the problem with mouse look on the Mac. :frowning: On Linux and Windows it works very smooth. We need a Mac to track this issue.

Holger

I have a problem with the loading of assets:
-the console is spammed with “can’t find pic: xxxx”
-the loading is really slow
-each time a new level is being loaded the game freeze for about 10 seconds
-missing textures of wall, weapons,monsters,menu,…
-The files are there but the game doesn’t load them all the time. Sometime a texture is loaded an other time it’s not loaded; really random.

look: http://membres.lycos.fr/nolagrulez/images/jake/jake2_bug.jpg

http://membres.lycos.fr/nolagrulez/images/jake/jake2_bug2.jpg

(I don(t have those problems if i run quake natively with the exe)
Excepted that problems it runs fine and smoothly.

my configuration:
windows 98, 256mB ram, geforce3, 1.4Ghz p4

Thanks for the test and the screen shots.
We have never tested Jake2 on Win98.
It is possible that there are problems with timing too.
(System.currentTimeMillis() has only a resolution of 60ms)
I will check this next week on the “good old” Win98.

BTW quick and dirty bugfix: change your OS :wink:

bye
Carsten

[quote]I have a problem with the loading of assets:
-the console is spammed with “can’t find pic: xxxx”
-the loading is really slow
-each time a new level is being loaded the game freeze for about 10 seconds
-missing textures of wall, weapons,monsters,menu,…
-The files are there but the game doesn’t load them all the time. Sometime a texture is loaded an other time it’s not loaded; really random.

look: http://membres.lycos.fr/nolagrulez/images/jake/jake2_bug.jpg

http://membres.lycos.fr/nolagrulez/images/jake/jake2_bug2.jpg

(I don(t have those problems if i run quake natively with the exe)
Excepted that problems it runs fine and smoothly.

my configuration:
windows 98, 256mB ram, geforce3, 1.4Ghz p4
[/quote]
We use memory mapped io for texture loading. The missing textures are caused by Win98 limitations for memory mapped files. As a quick fix you can switch the driver in the video menu from “fastjogl” to “jogl”. The old driver still uses classic file io.

But generally I suggest not to use Win98. Besides other problems it has a very bad timer resolution. In future versions you can expect other code parts moving to memory mapped io. Maybe Jake2 does not work at all on Win9x systems in the near future. Sorry, we can’t support Win9x.

Holger

David Sanders contributed a LWJGL renderer for Jake2. You can try out the webstart version here:

http://www.bytonic.de/downloads/jake2_lwjgl.jnlp

We hope that mouse motion works for Mac users with this version as LWJGL doesn’t use the AWT input handling.

Holger

[quote]David Sanders contributed a LWJGL renderer for Jake2. You can try out the webstart version here:

http://www.bytonic.de/downloads/jake2_lwjgl.jnlp

We hope that mouse motion works for Mac users with this version as LWJGL doesn’t use the AWT input handling.

Holger
[/quote]
Wow. 1280x1024 full screen, Suse 9.2, NVidia FX 5900XT, 3.2Ghz, 90-130 FPS, not a single hickup or visible slowdown during 10 minutes. Unfortunatelly no sound.

Sound should work fine. And I would expect a higher framerate on your machine. I will do some tests with a similar setup next week.

Holger

Sound should work now with the LWJGL webstart version.

Holger

[quote]Sound should work now with the LWJGL webstart version.

Holger
[/quote]
Sound is working now, a little not intuitive (it says “sound: off” in options), but working. My FPS is still ranging from cca 95 to 135, I forgot to mention that I’m using newest NVidia drivers and Mustang(JDK6.0) build 17, unfortunatelly no other javaws version can work on Suse9.2 due to some stupid bug regarding newest glibc versions (2.3.3+). What framerates are expected with my config?