Author Topic: I need the old version of jpct-ae,where can i download it?  (Read 2083 times)

Offline leochen

  • byte
  • *
  • Posts: 3
    • View Profile
I need the old version of jpct-ae,where can i download it?
« on: April 13, 2015, 11:44:59 am »
hello everyone
Q1:
I'm working on a old version of android source ,but it is not have the jpct-ae.jar, so I can't load the ser file ,error like this:
java.lang.RuntimeException: [ 1428917174539 ] - ERROR: Can't deserialize object: [ 1428917174537 ] - ERROR: Unsupported version: 2
the .ser file is upload as attach

Q2:
Why the .png texture can't load in some version of jpct-ae?,It show nothing.



If any one have that version ,pls send me a email with .jar
email:chenjingbo@zhihegame.com

Thanks~


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: I need the old version of jpct-ae,where can i download it?
« Reply #1 on: April 13, 2015, 01:48:14 pm »
I'm working on a old version of android source ,but it is not have the jpct-ae.jar, so I can't load the ser file ,error like this:
java.lang.RuntimeException: [ 1428917174539 ] - ERROR: Can't deserialize object: [ 1428917174537 ] - ERROR: Unsupported version: 2
the .ser file is upload as attach
You don't need an old version, you need a new one. The ser-format is backward-compatible. Your error message indicates that you are using a very old version that doesn't support version 2 of the ser-format. The current version is 6. Try to update your jpct-ae.jar with a current one.

Why the .png texture can't load in some version of jpct-ae?,It show nothing.
That's a very vague question. What does "can't load" mean and what does "show nothing" mean? Nothing on screen, nothing in the log...? As mentioned above, use a current version. Your version seems to be several years old.
« Last Edit: April 13, 2015, 04:27:52 pm by EgonOlsen »

Offline leochen

  • byte
  • *
  • Posts: 3
    • View Profile
Re: I need the old version of jpct-ae,where can i download it?
« Reply #2 on: April 13, 2015, 03:37:35 pm »
Thanks.
I change the version, and it can load,but in screen there is nothing to show. I trace the center of object,the "getTransformedCenter()" return very big,like this"-3916.4282,41.0414,-3625.6433".
So how to show it like this?
My test:
   Camera cam = world.getCamera();
   cam.moveCamera(Camera.CAMERA_MOVEOUT, 50);
   cam.lookAt(cube.getTransformedCenter());
            
   SimpleVector sv = new SimpleVector();
   sv.set(cube.getTransformedCenter());
   sv.y+=100;
   sv.z-=100;
   sun.setPosition(sv);

make it look at the object ,but on screen,it show nothing.
Can you teach me about this ?

PS:The attachment is my test object.

thank you very much.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: I need the old version of jpct-ae,where can i download it?
« Reply #3 on: April 13, 2015, 07:01:13 pm »
Just like in the real world...either move the camera to the object or the object to the camera. In this case, maybe the simplest solution is to move the object by the negated transformed center, so that it's located around the origin.