Member Controls

Developers > Custom objects thumbs not found in ObjectThumbnails.package
vonLeebLink to postposted: Sat Jun 09, 2007 9:24 pm

Member since:
 2007-05-11
Posts:
 19

Well, I was glad to find out that there is a way in SimPe to retrieve thumbs from ObjectThumbnails.package. This however doesn't work for custom objects. The hashing algorithm has to be different for custom objects.

For example I took one of 11dots bathtubes: IDEAK

group: 0xFFFFFFFF;

modelname: "##0x1C050000!11dotsbath1bathtub"

was hashed by SimPE to: 0x15D58D0A

whereas the game hashed it to:

Instance: 0xB84AC492

InstHigh: 0x7FED5EDB (I have no idea where it came from)

 

I think Quaxi is the only person that can help.

Any ideas?

 

vl 

quaxiLink to postposted: Sat Jun 30, 2007 12:53 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
I actually don'Ät remember if SimPE is decoding the custom Object Thumbnails?

The trick with the would be that the Group Value 0xffffffff is just a placeholder. This value is replaced by the runtime system with one that is unique for a package file. Those values are somehow tored in the groups.cache File. So instead of using 0xffffffff as the group you'd use the one stored in the groups.cache.

SimPe already has an Object to handle the groups cache, but it is very basic. Plus there is more than one number stored per package file. 
vonLeebLink to postposted: Mon Jul 02, 2007 9:09 pm

Member since:
 2007-05-11
Posts:
 19
well, not a good news actually, but at least something to work on :-).
pinheadLink to postposted: Sat Sep 22, 2007 5:36 pm
Avator for pinhead

Member since:
 2005-03-06
From:
 Brazil
Posts:
 237

I don't know if will help, but i tried to learn how the

thumbnails for custom objects are created some time ago.

The only thing found was that Instance (high) of the Object Thumbnail
is a CRC24 from package name of that custom object.

if the package name is: mesh-car001.package
the instance (high) will be crc24 of string: mesh-car001 = 0x7F8CD0CE

as for the other instance id i didn't had any luck, and i tried a lot of different things...

sorry



viewpost, 23184, 0