Playboy CAM 2: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
Currently unfinished<br>
Currently unfinished<br>
<font color="blue"> ''' // for each type ''' </font> <br>  
<font color="blue"> ''' // for each type ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Segment Type Extension/Description <br>  
: uint32 {4}&nbsp;&nbsp; - Segment Type ID<br>  
: uint32 {4}&nbsp;&nbsp; - Offset to the directory for this file type <br>  
: uint32 {4}&nbsp;&nbsp; - Byte number of the segment descriptor record<br>  
<br>
<br>
<font color="blue"> ''' // for each type ''' </font> <br>  
<font color="blue"> ''' // segement descriptor record, one for each segment type ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
: uint32 {4}&nbsp;&nbsp; - Number of records <br>  
: uint32 {4}&nbsp;&nbsp; - null <br>  
: uint32 {4}&nbsp;&nbsp; - unknown (0x0000) <br>  
<br>
<br>
: <font color="blue"> ''' // for each file of this type ''' </font> <br>  
: <font color="blue"> ''' // data records descriptors for each segment ''' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Filename? File ID? '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - data record name, ie. p012, p013, p014 etc. <br>  
:: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
:: uint32 {4}&nbsp;&nbsp; - Byte number of the start of data <br>  
:: uint32 {4}&nbsp;&nbsp; - File Size <br>  
:: uint32 {4}&nbsp;&nbsp; - data length <br>  
:: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
:: uint32 {4}&nbsp;&nbsp; - unknown (0x0000) <br>  
<br>
<br>
: <font color="blue"> ''' // for each file of this type ''' </font> <br>
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
<br>
byte {0-2047}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - null Padding to a multiple of 2048 bytes <br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
: byte {0-2047}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - null Padding to a multiple of 2048 bytes <br>


<h4>File Type 3 Format</h4>
<h4>File Type 3 Format</h4>

Revision as of 19:07, 5 October 2006

CAM (VERSION 2)


Format Specifications


File header. Common to all .cam files

char {8}     - Header (CYLBPC )
uint16 {2}   - Cam File Type
uint16 {2}   - Version
uint32 {4}   - Number Of Segment Types
uint32 {4}   - Offset to segment data calculated from the first byte after the segement type id area

Known file types:

  • 1  animsndd.cam, pregame[ ,f,g,i,s,u].cam, textdat[a,f,g,i,p,s,u].cam files
  • 2  everything not listed in other types
  • 3  soundesc.cam

  • File Type 1 Format

    Currently unfinished

    File Type 2 Format

    Currently unfinished
    // for each type

    uint32 {4}   - Segment Type ID
    uint32 {4}   - Byte number of the segment descriptor record


    // segement descriptor record, one for each segment type

    uint32 {4}   - Number of records
    uint32 {4}   - unknown (0x0000)


    // data records descriptors for each segment
    uint32 {4}   - data record name, ie. p012, p013, p014 etc.
    uint32 {4}   - Byte number of the start of data
    uint32 {4}   - data length
    uint32 {4}   - unknown (0x0000)


    File Type 3 Format

    Currently unfinished

    MultiEx BMS

    Not written yet


    Supported Programs