NiftyGui seems broken

Hey guys.



Wanted to use nifty gui to start my in game gui.



However when i checkout the jME3 source there is a compile error on InputSystemJme.java in the niftygui package.



Also when I try to run the test for nifty gui it falls over stating:




java.lang.NullPointerException
   at de.lessvoid.nifty.input.mouse.MouseInputEventQueue.process(MouseInputEventQueue.java:36)
   at de.lessvoid.nifty.Nifty.render(Nifty.java:155)
   at com.jme3.niftygui.NiftyJmeDisplay.postQueue(NiftyJmeDisplay.java:99)
   at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:486)
   at com.jme3.renderer.RenderManager.render(RenderManager.java:507)
   at com.jme3.app.SimpleApplication.update(SimpleApplication.java:171)
   at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:112)
   at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:162)
   at java.lang.Thread.run(Unknown Source)



and that line where it fails is the nifty.render(false) line in the test.

Please somebody fix this so I can see how to use nifty gui in jme3.

Must admit im not overly impressed with the state of this community.



No replies on forums, IRC is dead,is this project dead???

renegadeandy said:

Must admit im not overly impressed with the state of this community.

No replies on forums, IRC is dead,,,,is this project dead!?!?


Not at all. Admittedly, the IRC is very quiet, but the forums makes up for that. Due to the nature of jME3 being in development, certain features exist without much documentation. This means that only a few of the developers fully understand them. Any time they spend on the forums is time they can't be coding.

I'll take a look at the code, and see if there's an obvious bug, but I don't know much about NiftyGUI.

I should add that I'm not part of the jME team in any way, just giving you my take on the subject.

Have you tried the nightly build?

at least you'll have no compile error



http://www.jmonkeyengine.com/nightly/

Well im actually just tryna run it from the test package inside the actual source. So ive updated to the latest version of the jme3 source to get access to the test but its still broken - so I cannot understand how it would work in the nightly build??


Create a new Main.java



package mygame;

import jme3test.niftygui.TestNiftyGui;

public class Main  {

      public static void main(String[] args) {
        TestNiftyGui app = new TestNiftyGui();

        app.start();
      }
}



in each night build you've got the compiled bin, source code and the test cases

are you using JMonkeyPlatform? Eclipse or netbeans?
I recomand JMP as it's really easy to setup environnement and start new projects


Eclipse - does jmonkeyplatform support standard java projects as well, and svn support?

Ok i got that working.



So I am tryna get to grips with nifty gui - it looks really really good.



In that demo - i click the helloworld button, which is defined in the hellojme.xml file - then it opens the proper example.



I want the code for that proper example - i believe it must be called from the controller of the button in that hellojme example :



de.lessvoid.nifty.examples.helloworld.HelloWorldStartScreen



However I cannot find the source for that controller anywhere!



Helps!

renegadeandy said:

Ok i got that working.

So I am tryna get to grips with nifty gui - it looks really really good.

In that demo - i click the helloworld button, which is defined in the hellojme.xml file - then it opens the proper example.

I want the code for that proper example - i believe it must be called from the controller of the button in that hellojme example :

de.lessvoid.nifty.examples.helloworld.HelloWorldStartScreen

However I cannot find the source for that controller anywhere!

Helps!


I imagine the source for that would be in Nifty GUIs SVN which is here: https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/

I couldn't find it after a quick 2min look though...

Sweet cheers buddy - its under https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-examples/