I need the old version of jpct-ae,where can i download it?

Started by leochen, April 13, 2015, 11:44:59 AM

Previous topic - Next topic

leochen

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~


EgonOlsen

Quote from: leochen on April 13, 2015, 11:44:59 AM
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.

Quote from: leochen on April 13, 2015, 11:44:59 AM
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.

leochen

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.

EgonOlsen

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.