Playboy CAM 2: Difference between revisions
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>< | <tt> | ||
<br> | |||
<h3>File header. Common to all .cam files</h3> | |||
char {8} - Header <font color="purple">(CYLBPC )</font> <br> | char {8} - Header <font color="purple">(CYLBPC )</font> <br> | ||
uint16 {2} - Cam File Type | uint16 {2} - Cam File Type <br> | ||
uint16 {2} - Version | uint16 {2} - Version <br> | ||
uint32 {4} - Number Of Segment Types <br> | uint32 {4} - Number Of Segment Types <br> | ||
<br> | |||
<p><font color="blue" >Known file types:</font><br> | |||
<li>1 animsndd.cam, pregame[ ,f,g,i,s,u].cam, textdat[a,f,g,i,p,s,u].cam files</li> | |||
<li>2 everything not listed in other types</li> | |||
<li>3 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} - Segment Type Extension/Description <br> | : uint32 {4} - Segment Type Extension/Description <br> | ||
| Line 36: | Line 46: | ||
: byte {X} - File Data <br> | : byte {X} - File Data <br> | ||
: byte {0-2047} - null Padding to a multiple of 2048 bytes <br> | : byte {0-2047} - null Padding to a multiple of 2048 bytes <br> | ||
</ | |||
<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 Type : Archive
- Endian Order : Little Endian
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:
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
- uint32 {4} - Filename? File ID?
- // for each file of this type
- char {X} - Filename
- 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