Carnivores CAR

From XentaxWiki
Revision as of 14:53, 11 December 2005 by WATTO (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CAR


Format Specifications

char {24}    - Archive Name
char {8}     - Version ("msc: " + ###)
uint32 {4}   - Number Of Animations
uint32 {4}   - Number Of Sounds
uint32 {4}   - Number Of Points
uint32 {4}   - Number Of Triangles
uint32 {4}   - Texture Length

// for each triangle

uint32 {4}   - Point 1
uint32 {4}   - Point 2
uint32 {4}   - Point 3
uint32 {4}   - Point 1 X
uint32 {4}   - Point 2 X
uint32 {4}   - Point 3 X
uint32 {4}   - Point 1 Y
uint32 {4}   - Point 2 Y
uint32 {4}   - Point 3 Y
uint32 {4}   - Flags
uint32 {4}   - Unknown
uint32 {4}   - Parent Triangle Index
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown


// for each point

uint32 {4}   - X Coordinate
uint32 {4}   - Y Coordinate
uint32 {4}   - Z Coordinate
uint32 {4}   - Attached Bone Index


byte {X}     - Texture Data

// for each animation{

byte {32}    - Animation Name
uint32 {4}   - Divisor
uint32 {4}   - Number Of Frames


// for each frame{
// for each point{
uint16 {2}   - X Coordinate
uint16 {2}   - Y Coordinate
uint16 {2}   - Z Coordinate
}


}


}


// for each sound

char {32}    - Sound Name
uint32 {4}   - Sound Length
byte {X}     - Sound Data


// for each animation

uint32 {4}   - Sound ID


MultiEx BMS Script

GoTo 32 0 ;
Get numAnim Long 0 ;
Get numSound Long 0 ;
Get numPoint Long 0 ;
Get numTri Long 0 ;
Get picSize Long 0 ;
For nT = 1 To numTri ;
SavePos FOT 0 ;
Set FST Long 64 ;
Log "" FOT FST 0 0 ;
Math FOT += FST ;
GoTo FOT 0 ;
Next nT ;
For nP = 1 To numPoint ;
SavePos FOP 0 ;
Set FSP Long 16 ;
Log "" FOP FSP 0 0 ;
Math FOP += FSP ;
GoTo FOP 0 ;
Next nP ;
SavePos FO 0 ;
Log "" FO picSize 0 0 ;
Math FO += picSize ;
GoTo FO 0 ;
For nA = 1 To numAnim ;
SavePos FOA 0 ;
SavePos JPA 0 ;
Get FNA String 0 ;
Math JPA += 36 ;
GoTo JPA 0 ;
Get JPA2 Long 0 ;
Math JPA2 *= numPoint ;
Math JPA2 *= 6 ;
Set FSA Long 40 ;
Math FSA += JPA2 ;
Log FN FOA FSA 0 0 ;
Math FOA += FSA ;
GoTo FOA 0 ;
Next nA ;
For nS = 1 To numSound ;
SavePos FOS 0 ;
SavePos JPS 0 ;
Get FNS String 0 ;
Math JPS += 32 ;
GoTo JPS 0 ;
Get JPS2 Long 0 ;
Set FSS Long 36 ;
Math FSS += JPS2 ;
Log FN FOS FSS 0 0 ;
Math FOS += FSS ;
GoTo FOS 0 ;
Next nS ;

Compatible Programs


Other Games

These games also use this file format

  • Carnivores *.car
  • Carnivores 2 *.car
  • Carnivores: Ice Age *.car