I’m also cross developing an Android client, but it needs more tuning.
Pretty neat! Navigating around is very smooth. Ran out of heap space after about 5 minutes though!
Cool game, worked fine - no bugs, quick download, no security dialog or blank screen which is pretty rare for an OpenGL app.
The sound is cool, so are the simple graphics. But I couldn’t kill the big red dudes and fire when I wanted.
Nice job!
Hi!
It is a nice game but I got OutOfMemory errors :s, it seems to create a lot of threads, why?
Exception in thread "Thread-20" javax.media.opengl.GLException: java.lang.OutOfMemoryError: unable to create new native thread
at com.sun.opengl.impl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:101)
at com.sun.opengl.impl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:190)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:551)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:290)
at com.sun.opengl.util.AnimatorImpl.display(AnimatorImpl.java:50)
at com.sun.opengl.util.Animator.display(Animator.java:131)
at com.sun.opengl.util.Animator$MainLoop.run(Animator.java:149)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Unknown Source)
at com.catluck.sound.Sound.play(Sound.java:88)
at com.catluck.sound.Sounds.play(Sounds.java:61)
at com.catluck.rat.engine.Mobile.die(Mobile.java:118)
at com.catluck.rat.engine.Mobile.damage(Mobile.java:171)
at com.catluck.rat.engine.Mobile.damage(Mobile.java:153)
at com.catluck.rat.engine.Weapon.beam(Weapon.java:166)
at com.catluck.rat.engine.Weapon.update(Weapon.java:130)
at com.catluck.rat.engine.Mobile.update(Mobile.java:211)
at com.catluck.rat.engine.Level.update(Level.java:100)
at com.catluck.rat.engine.Engine.updates(Engine.java:45)
at com.catluck.frame.GameGLEventListener.display(GameGLEventListener.java:34)
at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:94)
at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:620)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:156)
at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:637)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "Thread-2024" java.lang.OutOfMemoryError: Java heap space
I’m currently at work under Vista 64 bits with the JDK 1.6 32 bits update 15, Nvidia Quadro FX 1800, Intel Xeon.
Those crashes are from the sounds launching their own threads to play in (which is probably a really bad idea).
Ok let me know when it is fixed, I will give it another try. Keep it up. Maybe you could use “3D Sound System” of Paul Lamb.
I implemented Paul Lamb’s sound system, which at the very least has greatly improved the sound quality. Have the crashes gone away?
after downloading i hear the music but i get the Application Error
Unable to Launch Application
this is the outcome
<?xml version="1.0" encoding="utf-8"?> Game Preview Gabe Jones<resources>
<jar href="http://dev.catluck.com/game.jar" main="true" download="eager"/>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<property name="sun.java2d.noddraw" value="true"/>
<extension name="jogl" href="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-all-awt.jnlp" />
</resources>
<application-desc main-class="com.catluck.rat.client.Client"/>
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: com.sun.gluegen.runtime.BufferFactory.nativeOrder(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
at com.sun.nativewindow.impl.jawt.JAWT.GetDrawingSurface(JAWT.java:54)
at com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow.lockSurface(WindowsJAWTWindow.java:69)
at com.sun.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:130)
at com.sun.opengl.impl.windows.wgl.WindowsWGLDrawable.setRealized(WindowsWGLDrawable.java:70)
at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:413)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JRootPane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Frame.addNotify(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at com.catluck.frame.Game.(Game.java:78)
at com.catluck.frame.Game.start(Game.java:21)
at com.catluck.rat.client.Client.main(Client.java:48)
… 9 more
any ideas? i guess its the same problem i had with executing the online demos of JOGL (which i did compile and run locally)
but the sound keeps playing while i am still writing this line
weird, isn’t it?
Ok it works fine under Vista now. I’m going to give it a try at home under Linux Thanks.
Remove the old JARs of GlueGen on your OS. I’m sure this is the problem. It does not come from his game. Maybe clear the Java Webstart cache.
Ok it works fine under Linux too ;D
I ran into that blank window problem on the xp asus nettops at my work. I can reproduce this problem with any jogl2 demo on these machines.
Has anyone successfully run it in XP?
I also get a blank screen using Win XP, Java 6, and intel GFX card. Music sounds nice though :D. No exceptions in the console. Had some problems recently with some OGL things, but many lwjgl and slick games work just fine.
YOU HAVE PLAYED ESCAPE VELOCITY! Or at least heard the music. I LOVE that game.
Anyway, this is really cool. It felt a lot like a giant space battle. Is there a way to manually shoot or is it just the turrets? Controls in general would be nice.
Launching as an applet might fix the blank screen bug:
http://dev.catluck.com/launch.html
I haven’t played EV since the 90’s, but I may have subconsciously remembered the choice of music.
If I tell you the controls, I can’t test how intuitive they are
Applet version worked!
Seems very nice. Just had a quick look at it, but I will definitely check it out better later on.