This is a file i cant load in on game start.Seems nice to me but… ???
this is what i get
GRAVE: Uncaught exception thrown in Thread[jME3 Main,5,main]
com.jme3.asset.AssetNotFoundException: Models/PedanaCasa/PedanaCasa.j3o
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:370)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:416)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:420)
at NoblesOrigins.BuildingBuilders.CastleBuilder.buildCastle(CastleBuilder.java:71)
at mygame.Main$1.onAction(Main.java:183)
at com.jme3.input.InputManager.invokeActions(InputManager.java:169)
at com.jme3.input.InputManager.onMouseButtonEventQueued(InputManager.java:446)
at com.jme3.input.InputManager.processQueue(InputManager.java:864)
at com.jme3.input.InputManager.update(InputManager.java:914)
at com.jme3.app.LegacyApplication.update(LegacyApplication.java:725)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:227)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:197)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
at java.lang.Thread.run(Thread.java:748)
This is the code
if(castle.getLordPhesantsHouses()>0){
for (int i = 0; i < castle.getLordPhesantsHouses(); i++) {
Node nodeHouse=((Node) manger.loadModel(" Models/casa/casa.j3o"));
Node nodeHousePedana=((Node) manger.loadModel(" Models/PedanaCasa/PedanaCasa.j3o"));
nodeHouse.setName("House");
nodeHousePedana.setName("PedanaCasa");
nodeHouse.attachChild(nodeHousePedana);
edifici.attachChild(nodeHouse);
nodeHouse.setLocalTranslation(castle.getCastleBuildingGPS().add(new Vector3f(-2, 2.1f, 61)) );
}
}
This pice go before the other and works fine
Node pedana =(Node) manager.loadModel("Models/Pedana2/Pedana2.j3o");
pedana.setName("pedana");
edifici.attachChild(pedana);
pedana.setLocalScale(140);
pedana.setLocalTranslation(castle.getCastleBuildingGPS().add(new Vector3f(0, -28.9f, 0)));
I really really can get whats wrong it should do but
Did i forgot some thing? did i wrote the sting for model loader wrong? i dont know
HMMM was some thing on compiling any way solwed