Forum: Poser - OFFICIAL


Subject: .NET RSR library

Syrus_BD opened this issue on Nov 17, 2012 · 12 posts


lmckenzie posted Wed, 21 November 2012 at 5:25 AM

This is my stock .pct header. My hex editor XVI32 allows pasting text as a 'hex string'so I could copy & paste this text (should be one long line) to a new file and save it as binary to incorporate in .pct files. If you want a binary version, let me know - maybe your editor doesn't like spaces between bytes. 

Following the 512 null bytes is the file size (in this case 17 64 Or 5,988). It seems not to be significant - (Apple says not to use it to get the file size). It appears to be the size as shown in Windows properties minus 512. Using the same value for all files hasn't caused problens yet so it doesn't appear to be necessary to calculate it for each different file. I've even used 00 00 and it still works.

fileformat.info says that the bytes after the opcode (0C 00) can be FF EF or FF EE. That seems to be a typo or I misread it. All of the .rsr files I have use FF FE.

The 8 bytes following 0A are the extra I mentioned above. In some .rsr files the 00 5B 00 5B (i.e. 91 x 91) dimensions were values like 600 x 600 for some reason so I read past them (and tacked the proper bytes onto the stock header).

All of this is largely pure guesswork & speculation. 99.9% of the stuff I do is blessedly ASCII :-)


00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17 64 00 00 00 00 00 5B 00 5B 00 11 02 FF 0C 00 FF FE 00 00 00 48 00 00 00 48 00 00 00 00 00 00 00 5B 00 5B 00 00 00 00 00 01 00 0A 00 00 00 00 00 5B 00 5B  

 

"Democracy is a pathetic belief in the collective wisdom of individual ignorance." - H. L. Mencken