Difference between revisions of "CPF"

From SimsWiki
Jump to: navigation, search
m (Cpf moved to CPF: capitalize name)
(Cleaned up)
Line 1: Line 1:
{{OldWikiEntry}} ==Compressed Properties Format==
 
  
4 Type ID for CPF(CBE7505E)
 
2 version
 
4 number of items
 
  
repeat for each item
+
==Format==
4 data type
+
;DWORD
4 length of field name
+
:Type ID for CPF(CBE7505E)
n fieldname
+
;WORD
x data(varies by data type)
+
:Version
uint(#eb61e4f7) = 4 bytes
+
;DWORD
string(0b8bea18) = length of data(4 bytes) + data
+
:Number of items
real32(abc78708) = 4 bytes
+
;''for each item''
boolean?(CBA908E1) = 1 byte,
+
;DWORD
int(0C264712) = 4 bytes
+
:Data type:
end repeat
+
:*0xEB61E4F7 (int) = 4 bytes
 +
:*0x0B8BEA18 (string) = length of data (DWORD) + 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
  
 +
{{OldWikiEntryCleaned}}
  
 
+
[[Category:Modding]]
[[Category:Modding]]
+
[[Category:InternalFormats]]

Revision as of 19:06, 2 August 2006


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 (DWORD) + 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

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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox