Playboy CAM 2: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
(It appears that what has been called a version number by many is probably a file format identifier. The Minor version is probably a version counter.)
(Added known file types)
Line 7: Line 7:
=== Format Specifications ===  
=== Format Specifications ===  


<tt><b>
<tt>
<br>
<h3>File header. Common to all .cam files</h3>
char {8}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(CYLBPC  )</font> <br>  
char {8}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(CYLBPC  )</font> <br>  
uint16 {2}&nbsp;&nbsp; - Cam File Type <font color="purple">(2)</font> <br>  
uint16 {2}&nbsp;&nbsp; - Cam File Type <br>  
uint16 {2}&nbsp;&nbsp; - Version <font color="purple">(1)</font> <br>  
uint16 {2}&nbsp;&nbsp; - Version <br>  
uint32 {4}&nbsp;&nbsp; - Number Of Segment Types <br>  
uint32 {4}&nbsp;&nbsp; - Number Of Segment Types <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' First Segment Offset <font color="darkgreen">[+12]</font>? '' </font> <br>  
<br>
<p><font color="blue" >Known file types:</font><br>
<li>1&nbsp;&nbsp;animsndd.cam, pregame[ ,f,g,i,s,u].cam, textdat[a,f,g,i,p,s,u].cam files</li>
<li>2&nbsp;&nbsp;everything not listed in other types</li>
<li>3&nbsp;&nbsp;soundesc.cam</li></p>
<br>
<br>
<h4>File Type 1 Format</h4>
Currently unfinished<br>
<h4>File Type 2 Format</h4>
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 Extension/Description <br>  
Line 36: Line 46:
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <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>  
: byte {0-2047}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - null Padding to a multiple of 2048 bytes <br>  
</b></tt>
 
<h4>File Type 3 Format</h4>
Currently unfinished<br>
</tt>


=== MultiEx BMS ===  
=== MultiEx BMS ===  

Revision as of 16:22, 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

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 Extension/Description
    uint32 {4}   - Offset to the directory for this file type


    // for each type

    uint32 {4}   - Number Of Files
    uint32 {4}   - null


    // for each file of this type
    uint32 {4}   - Filename? File ID?
    uint32 {4}   - File Offset
    uint32 {4}   - File Size
    uint32 {4}   - Filename Length


    // for each file of this type
    char {X}     - Filename


    byte {0-2047}      - null Padding to a multiple of 2048 bytes

    // for each file

    byte {X}     - File Data
    byte {0-2047}      - null Padding to a multiple of 2048 bytes

    File Type 3 Format

    Currently unfinished

    MultiEx BMS

    Not written yet


    Supported Programs