About
Progress
Screenshots
Downloads
Technical...
Introduction
Legacy Format
New Formats
Textures
Objects
Fonts
Tracks
Display
Contact
Links
Forums
Guest book
|
|
Stunt Mania : Technical
| |
NEW FILE FORMATS
| |
The new file formats have a form that is shared between them all. They are chunk
based. This means that the various pieces of data stored within them is broken
up into discreet pieces, and each piece is called a chunk. When written to the
file, each chunk includes not only its data, but also a standard header identifying
the chunk type & length.
The chunks have no particular order within a file, and further any file may contain
any combination of track, objects & textures.
The standard chunk header looks like this :
|
Offset
|
Length
|
Description
| |
0
|
4
|
Length of remainder of this chunk. If you were to read this length,
then seek forward in the file by that quantity of bytes, you would be at the
very start of the next chunk.
| |
4
|
2
|
Some value that identifies the type of data carried within this chunk.
|
| |
THE RULES
| |
First of all, be aware that all multibyte values are little endian. Also, files may
optionally be gzip compressed.
Although the legacy track file format is inherited from Sports 4d Driving, it may
also be stored with gzip compression for Stunt Mania. However, doing so will break
compatibility with the older program.
Some things documented here may change a little before being fully finalised. Sorry!
|
|