www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: great_apple_day on July 25, 2012, 07:49:58 pm

Title: Loading MD2 - ArrayIndexOutOfBoundsException
Post by: great_apple_day on July 25, 2012, 07:49:58 pm
Hey guys,

I'm loading an MD2 file without any sort of animation
but I got "ArrayIndexOutOfBoundsException" while
jPCT is trying to convert the MD2 format to jPCT format.
What could be the problem?

I'm able to open the file in any modeling software easily and
I have tested jPCT with another MD2 and it worked like a charm.
What could be the problem with this particular file?

The MD2 is attached

Thanks in advance.


[attachment deleted by admin]
Title: Re: Loading MD2 - ArrayIndexOutOfBoundsException
Post by: EgonOlsen on July 26, 2012, 07:17:30 am
Could you please post the complete stack trace?
Title: Re: Loading MD2 - ArrayIndexOutOfBoundsException
Post by: great_apple_day on July 26, 2012, 09:34:21 am
Here it is sir. Hope it helps.

Best regards,

[attachment deleted by admin]
Title: Re: Loading MD2 - ArrayIndexOutOfBoundsException
Post by: great_apple_day on July 27, 2012, 12:47:35 am
Dear EgonOlsen,

Never mind. I think there is a problem with the MD2 file.
I just converted my model to another format and then back
to MD2 again and now it is working flawlessly.

Sorry to bother

Best regards,
Title: Re: Loading MD2 - ArrayIndexOutOfBoundsException
Post by: EgonOlsen on July 27, 2012, 08:09:52 am
Seems like it. I never saw a MD2-loading go wrong...