NetBeans Model error

5 replies [Last post]
Offline
Joined: 01/27/2012

I'm using NetBeans and I was following the tutorials, when I got to the animation and models section.

Up till then I'd had minimal problems that were easily solvable. Then I extracted the models.zip into the models folder, and they are still there. But whenever I try to run the application I get an 'asset not found' error here is the error text:

com.jme3.asset.AssetNotFoundException: models/Boss/Idle/bossidle00.obj
 at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:236)
 at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:373)
 at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:383)
 at env3d.GameObjectAdapter.update(GameObjectAdapter.java:159)
 at env3d.Env.update(Env.java:836)
 at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:144)
 at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:185)
 at env3d.Env.advanceOneFrame(Env.java:751)
 at env3d.Env.advanceOneFrame(Env.java:741)
 at Game.play(Game.java:31)
 at Game.main(Game.java:42)
Exception in thread "main" java.lang.NullPointerException
 at com.jme3.scene.Node.attachChild(Node.java:238)
 at env3d.GameObjectAdapter.update(GameObjectAdapter.java:205)
 at env3d.Env.update(Env.java:836)
 at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:144)
 at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:185)
 at env3d.Env.advanceOneFrame(Env.java:751)
 at env3d.Env.advanceOneFrame(Env.java:741)
 at Game.play(Game.java:31)
 at Game.main(Game.java:42)
Java Result: 1

I don't know what the difference between stable and development versions are, but I don't see an env3D tab in NetBeans so I'd guess I have the stable one.

Offline
Joined: 12/13/2010
There are two things that

There are two things that I can think of:

 

1) The Boss directory is somehow misplaced (it has to be right inside the models directory, right where the Tux and Fox directories are.

 

2) The spelling is incorrect (the entire file path is case sensitive).

 

Maybe I can also see your Game class?

 

P.S.  If you are using NetBeans, you are on the development version, which means you get all the latest and greatest features :)  I am preparing for an update to the NetBeans plugin as we speak, which will bring many new features, including the Scene Creator.

Offline
Joined: 01/27/2012
Netbean and Development Version

Ok, well in the tutorial it says I need to find a Env3D tab int the menu, and click 'extract new models" if I'm in the development version. there is no such button or tab that I see. I looked throughout the menu bar and there is nothing about Env3D outside of the project type and the plugin list. I checked and the directory is correctly spelled and case matching.

Offline
Joined: 12/13/2010
Ah right, that is only

Ah right, that is only available in BlueJ right now.  Sorry for the confusion.  It will be avaialble for NetBeans soon.

Offline
Joined: 01/27/2012
Kinda Useless then...?

Isn't it kinda useless then? Well I can't wait till the update comes out, I'm making a commercial game.

Offline
Joined: 12/13/2010
I have updated the netbeans

I have updated the netbeans plugin to include the scene creator and the animated models.  You can update the plugin within netbeans using the update center. 

 

If you already have a project, you'll also need to update the env3d library from the project directory.

 

Good luck and let us know if you run into any problems.