Difference between revisions of "CObject"

From SimsWiki
Jump to: navigation, search
m (Minor clean-up; added a link.)
 
Line 64: Line 64:
 
Back to [[FA1C39F7|Singular Lot Object]]
 
Back to [[FA1C39F7|Singular Lot Object]]
  
  [[Category:Modding]][[Category:Article_titles_with_lowercase_initial_letters]]
+
  [[Category:Sims 2 Modding]][[Category:Article_titles_with_lowercase_initial_letters]]

Latest revision as of 20:08, 17 September 2012

This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/CObject
The title of this article should be cObject. The initial letter is capitalized due to technical restrictions.

[edit] cObject (OBJT) Data Block

Header (as specified in WDB)

DWORD   : Block ID
DWORD   : Block Version
7BITSTR : Block name

Data Section

7BITSTR : Name

DWORD : Count a
Repeat a
  --> Entry
End Repeat

DWORD : Count b
Repeat b
  7BITSTR : Name
  --> Item
End Repeat

if (Block Version >= 0x10)
  DWORD : Count n
  Repeat n
	7BITSTR : LongName
	7BITSTR : ShortName
	DWORD   : unknown
  End Repeat

[edit] Entry

7BITSTR : Name

if (Block Version == 0x11)
  DWORD : NameType (appears to affect how the Name is treated)

DWORD : Count n
Repeat n
  7BITSTR : LongName
  7BITSTR : ShortName
End Repeat

--> Item

[edit] Item

FLOAT : unknown
FLOAT : unknown
FLOAT : unknown
FLOAT : unknown
FLOAT : unknown
FLOAT : unknown
FLOAT : unknown


Back to Singular Lot Object

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox