Was just trying to run TestNiftyToMesgh but got the following error:
INFO: loadFromFile [all/intro.xml]
java.lang.RuntimeException: Resource not found: all/intro.xml
at de.lessvoid.nifty.tools.resourceloader.ResourceLoader.getResourceAsStream(ResourceLoader.java:71)
at de.lessvoid.nifty.Nifty.loadFromFile(Nifty.java:405)
at de.lessvoid.nifty.Nifty.fromXml(Nifty.java:307)
at jme3test.niftygui.TestNiftyToMesh.simpleInitApp(TestNiftyToMesh.java:65)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:135)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:184)
at java.lang.Thread.run(Thread.java:662)
Nov 14, 2010 12:49:49 PM de.lessvoid.nifty.Nifty gotoScreen
INFO: gotoScreen [start]
Nov 14, 2010 12:49:49 PM de.lessvoid.nifty.Nifty gotoScreenInternal
INFO: gotoScreenInternal [start]
Nov 14, 2010 12:49:49 PM de.lessvoid.nifty.Nifty gotoScreenInternal
WARNING: screen [start] not found
Nov 14, 2010 12:49:49 PM com.jme3.scene.Node attachChild
INFO: Child (Box) attached to this node (Root Node)
Nov 14, 2010 12:49:49 PM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
WARNING: Uniform m_VertexColor is not declared in shader.
I imagine it’s because of the location of the xml file.
How do you run it? From a Jme3Tests project?
Yup. Just CTRL-SHIFT-F5.
Now for both test files: TestNiftyGui and TestNiftyToMesh, I get:
"C:UsersDanyjMonkeyProjectsJmeTestsnbprojectassets-impl.xml:5: C:UsersDanyjMonkeyProjectsJmeTestsassets does not exist.
BUILD FAILED (total time: 0 seconds)
"
Isn’t that supposed to be there by default?
I’m getting the same error, I cannot run the TestNiftyGui that comes with the Jmonkeyplatform
I get the error:
[java]Nov 18, 2010 10:02:44 PM de.lessvoid.nifty.Nifty loadFromFile
INFO: loadFromFile [jme3test/niftygui/hellojme.xml]
java.lang.RuntimeException: Resource not found: jme3test/niftygui/hellojme.xml
at de.lessvoid.nifty.tools.resourceloader.ResourceLoader.getResourceAsStream(ResourceLoader.java:71)
at de.lessvoid.nifty.Nifty.loadFromFile(Nifty.java:405)
at de.lessvoid.nifty.Nifty.fromXml(Nifty.java:307)
at jme3test.niftygui.TestNiftyGui.simpleInitApp(TestNiftyGui.java:35)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)
at java.lang.Thread.run(Thread.java:619)[/java]
I got it to run yesterday night.
I deleted the whole jme3tests directory both in the IDE and on the disk, (for some reason it took several tries) but it eventually worked.
Now, the tests will run. But not completely. Don’t be fooled by the glowing button on the screen. That’s only the XML you see. The screen controller isn’t loaded because its definition points to
controller=“de.lessvoid.nifty.examples.helloworld.HelloWorldStartScreen”
which, of course, doesn’t exist in the assets. That means: any function/method used in the demo won’t work. I know, it’s nothing grand as far as methods go, but the simple “quit()” won’t work.
Just a head’s up.
Yes, I removed the nifty examples from the classpath and left only the helloworld.xml in because they were taking 15MB of space
controller=”de.lessvoid.nifty.examples.helloworld.HelloWorldStartScreen”
which, of course, doesn’t exist in the assets. That means: any function/method used in the demo won’t work.
I got it to work in the way you described through the JmonkeyPlatform. All I needed to do was clean and build. Now, the problem that I am still running in to is that it isnt working all the way. Yes it loads a blinking button, but when I click on the button nothing happens.
Now, If I do this same test in eclipse with the JME3 I got from SVN, when I click on the blinking button, I go to some kind of menu with different nifty options.
What is the difference between my JMP and SVN versions? (I already copied the entire nifty directory into JMP so that I am dealing with the same code)
I believe it lies with this controller you mentioned above, but I cannot find it in my SVN version either...
Does anyone have any leads on this?
As i said i removed the library, its like that in svn as well now.
Uhm, normen? We need the examples!
Anyway, I can try to get them back, if that is needed.