Author Topic: Loading MD2 - ArrayIndexOutOfBoundsException  (Read 2114 times)

Offline great_apple_day

  • byte
  • *
  • Posts: 10
    • View Profile
Loading MD2 - ArrayIndexOutOfBoundsException
« 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]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: Loading MD2 - ArrayIndexOutOfBoundsException
« Reply #1 on: July 26, 2012, 07:17:30 am »
Could you please post the complete stack trace?

Offline great_apple_day

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Loading MD2 - ArrayIndexOutOfBoundsException
« Reply #2 on: July 26, 2012, 09:34:21 am »
Here it is sir. Hope it helps.

Best regards,

[attachment deleted by admin]

Offline great_apple_day

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Loading MD2 - ArrayIndexOutOfBoundsException
« Reply #3 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,

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: Loading MD2 - ArrayIndexOutOfBoundsException
« Reply #4 on: July 27, 2012, 08:09:52 am »
Seems like it. I never saw a MD2-loading go wrong...