CFP
From Just Solve the File Format Problem
(Difference between revisions)
Dan Tobias (Talk | contribs) |
Dan Tobias (Talk | contribs) m |
||
Line 4: | Line 4: | ||
|subcat=Game data files | |subcat=Game data files | ||
|extensions={{ext|cfp}} | |extensions={{ext|cfp}} | ||
− | |endianness=Little- | + | |endianness=Little-Endian |
}} | }} | ||
'''CFP''' (Compressed Floating Point) is a format used in The Sims to store animations. These files are referenced in [[CMX/BCF]] files in the "skills" section, to define the animated movements a character performs. | '''CFP''' (Compressed Floating Point) is a format used in The Sims to store animations. These files are referenced in [[CMX/BCF]] files in the "skills" section, to define the animated movements a character performs. |
Latest revision as of 21:31, 16 February 2020
- CFP can also refer to Complete Fax Portable, listed in the Fax formats page.
CFP (Compressed Floating Point) is a format used in The Sims to store animations. These files are referenced in CMX/BCF files in the "skills" section, to define the animated movements a character performs.
The data consists of a series of short IEEE floating point numbers (little endian), defining offsets and rotations, encoded in a manner that is more compact than raw IEEE data.
Values unable to be encoded in any of the several methods used for this are stored as five byte sequences starting with 0xFF, which is followed by a four-byte IEEE floating point number.
Other values can compactly encode repeats of the same number or repeats with a slight delta (difference).