lesson8 model loading

Hi all i am trying to load my own model in lesson 8 but is give the following error



24-Feb-2006 00:14:46 com.jme.scene.Node attachChild

INFO: Child (XML loaded scene) attached to this node (Player Node)

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

getResource looks at the class path so the models folder would need to be it

if your loading your own vehicle you are going to have to rewrite the code that accesses the individual model nodes i.e the code that makes the wheels rotate. atleast that appears to be your problem.

Hello i continue to have the same problem tried to put the model inside my package (my_incredible_test_package)in a folder called model and tried to load the model but the error is the same.my msn is alf3299@hotmail.com this is quite important is for my final year project if someone are willing to give me a hand i will be very appreciated.



i am sure this is a problem easy to resolve but i cannot fire it out



this is the biut of code i am using to load the model



private void buildPlayer() {

I assume this is your line for loading your model even though it's commented out.


cheers problem solved

lets see something i think i have to change the lesson8.class that is the directory jmetestflagrushtutlesson8 for the weel not to rotate for example no?!



thanks to everyone :slight_smile: