Hexxagon (LWJGL Applet)

org.lwjgl.LWJGLException: Failed to initialise controllers
at org.lwjgl.input.Controllers.create(Controllers.java:61)
at org.newdawn.slick.Input.initControllers(Input.java:729)
at util.AppletGameContainer$Container.initApplet(Unknown Source)
at util.AppletGameContainer$ContainerPanel.initGL(Unknown Source)
at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:306)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:683)
at java.awt.Component.dispatchEventImpl(Component.java:4486)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.lang.NoClassDefFoundError: net/java/games/input/ControllerEnvironment
at org.lwjgl.input.Controllers.create(Controllers.java:38)
… 17 more
Wed Aug 29 20:24:35 CEST 2007 INFO:Controllers not available
Wed Aug 29 20:24:36 CEST 2007 INFO:Initialising sounds…
Wed Aug 29 20:24:36 CEST 2007 INFO:- Sound works
Wed Aug 29 20:24:36 CEST 2007 ERROR:- 64 OpenAL source available
Wed Aug 29 20:24:36 CEST 2007 INFO:- Sounds source generated

It works the second time I launched it. Fine!

ok good at least it works now :), the exception above is nothing to worry about just means that jinput isn’t available as controllers aren’t needed for this game.

Please put a try catch clause.

done!

At last, please do something to allow me to launch your game successfully. I must relaunch it at least twice to play with it.

There is an exception when I use a computer with no sound. I need to click 5 times to select a ball, it is unpleasant BUT the game starts correctly even the first time :).

its good that it start correctly first time now as have added a few fixes for that.

if the computer has no sound an exception is expected, however if you can get a copy of the exception might be useful in catching it.

As for needing to click it multiple times which OS/browser was it on? I’m guessing it was Linux, if so what was the fps.

Thanks

13 FPS under Debian Etch on a very powerful pentium D with an ATI Xpress 200 chipset (+ bad proprietary driver which doesn’t work at all with TUER). The browser was Iceweasel. I use the JRE 1.6 update 2. The exception comes from JOAL, I will give you the details tomorrow.

Tue Sep 18 12:42:40 CEST 2007 INFO:Slick Build #177
THE VIEW WIDTH is 640 480
Tue Sep 18 12:42:41 CEST 2007 INFO:Starting display 640x480
network: Cache entry not found [url: http://kappa.javaunlimited.net/hexxagon/net/java/games/input/ControllerEnvironment.class, version: null]
network: Connecting http://kappa.javaunlimited.net/hexxagon/net/java/games/input/ControllerEnvironment.class with proxy=DIRECT
network: Connecting http://kappa.javaunlimited.net/hexxagon/net/java/games/input/ControllerEnvironment.class with cookie " "
Tue Sep 18 12:42:41 CEST 2007 INFO:Controllers not available
Tue Sep 18 12:42:41 CEST 2007 INFO:Initialising sounds…
Tue Sep 18 12:42:41 CEST 2007 ERROR:Sound initialisation failure.
Tue Sep 18 12:42:41 CEST 2007 ERROR:Could not locate OpenAL library.
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:153)
at org.lwjgl.openal.AL.create(AL.java:104)
at org.lwjgl.openal.AL.create(AL.java:191)
at org.newdawn.slick.openal.SoundStore$1.run(SoundStore.java:271)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.openal.SoundStore.init(SoundStore.java:268)
at org.newdawn.slick.Sound.(Sound.java:54)
at org.GameState.init(Unknown Source)
at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:162)
at util.AppletGameContainer$Container.initApplet(Unknown Source)
at util.AppletGameContainer$ContainerPanel.initGL(Unknown Source)
at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:306)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:683)
at java.awt.Component.dispatchEventImpl(Component.java:4486)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

I still need to click 5 times to choose a cell etc…

Fine! ;D ;D I have 449 FPS at home under Mandriva Linux 2007 with an ATI 9250 Pro with a Xorg free driver. Excellent! Very good! It works perfectly! You can be proud of your game!! Here I’ve got the sound. I will test tomorrow with an ATI Xpress 200 in order to compare the performance.

Hi Kapta,

I’m still having trouble running the applet under the java 6 update 5 build 4? (the first one released on java.net) early access build. It has changes to the way applets are loaded and it uses the D3D pipeline so maybe those things are stuffing it up.

Here is all of the Java Console output I get. After I see the orange loading animation, then the LWJGL loading progress bar, and after that nothing, just a white box appears.

Thu Oct 18 22:15:57 EST 2007 INFO:Slick Build #177
THE VIEW WIDTH is 640 480
Thu Oct 18 22:16:34 EST 2007 INFO:Clear up
Thu Oct 18 22:16:36 EST 2007 INFO:Slick Build #177
THE VIEW WIDTH is 640 480
Thu Oct 18 22:17:53 EST 2007 INFO:Clear up
Thu Oct 18 22:20:03 EST 2007 INFO:Slick Build #177
THE VIEW WIDTH is 640 480

Have you tried the latest Java 6 update 5 build with your applet?

Best regards,
Keith

Java 6 update 5 build is not stable, is it? I’m not surprised it doesn’t work fine if it is really not stable now. The latest stable update of java 6 is the update 3.

yay i beat the computer on my 1st try :slight_smile:

Nice job.

Thanks for testing, just for the record, the issue that was causing the massive slow down on your card was the use of lines in opengl, not sure why but lines (especially when the width is changed) are not accelerated on some ati opengl drivers. (thanks to the ppl at #lwjgl for pointing this out).

Thanks for testing, haven’t got round to testing on java6u5, will try see if i can get time to test it on that.

As for the problem, think i might have a few ideas as to what is causing it but can’t be sure until i can reproduce it.

One thing that will be helpful if you get time to try again is once you get the white screen, could you try drag another window over the applet or drag the browser window so the applet goes off screen a bit, to see if it makes any difference?

Thanks

It is interesting as I use lines in OpenGL to draw the crosshair for my game.

The test under Debian Linux Etch with a pentium D, 2 GB RAM, ATI Radeon Xpress 200, Xorg free driver gives only 27 FPS. No one believes me here when I say that there is a huge problem with the support of OpenGL especially with this chipset. Now I hope my complaint is more credible.

another Xpress 200 here.
Your game works fine, steady 63 fps. Fullscreen doesn’t work, only white squares. Switching back to non-fullscreen sets the fps counter to 0 but it still feels like 60 fps. Browser reload killed the Browser (reproducible).
nice game :slight_smile:
(winxp)

thx for testing, sorry about the fullscreen thing its still experimental and was suppose to be disabled.