Difference between revisions of "CPF"
From SimsWiki
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Format== | |
+ | ;DWORD | ||
+ | :Type ID for CPF(CBE7505E) | ||
+ | ;WORD | ||
+ | :Version | ||
+ | ;DWORD | ||
+ | :Number of items | ||
+ | ;''for each item'' | ||
+ | ;DWORD | ||
+ | :Data type: | ||
+ | :*0xEB61E4F7 (int) = 4 bytes | ||
+ | :*0x0B8BEA18 (string) = length of data (4 bytes) + data | ||
+ | :*0xABC78708 (float) = 4 bytes | ||
+ | :*0xCBA908E1 (boolean) = 1 byte | ||
+ | :*0x0C264712 (int) = 4 bytes | ||
+ | ;DWORD | ||
+ | :Length N | ||
+ | ;N bytes | ||
+ | :Field name | ||
+ | ;Bytes (see data type above) | ||
+ | :Data | ||
− | + | For an example R routine for reading CPF, see [[CPF/Source Code]]. | |
− | + | ||
− | + | ||
− | + | {{OldWikiEntryCleaned}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | [[Category:Sims 2 Modding]] | |
− | + | [[Category:InternalFormats]] | |
− | + |
Latest revision as of 14:48, 17 September 2012
[edit] Format
- DWORD
- Type ID for CPF(CBE7505E)
- WORD
- Version
- DWORD
- Number of items
- for each item
- DWORD
- Data type:
- 0xEB61E4F7 (int) = 4 bytes
- 0x0B8BEA18 (string) = length of data (4 bytes) + data
- 0xABC78708 (float) = 4 bytes
- 0xCBA908E1 (boolean) = 1 byte
- 0x0C264712 (int) = 4 bytes
- DWORD
- Length N
- N bytes
- Field name
- Bytes (see data type above)
- Data
For an example R routine for reading CPF, see CPF/Source Code.
This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/CPF