Difference between revisions of "CObject"

From SimsWiki
Jump to: navigation, search
m (Minor clean-up; added a link.)
Line 1: Line 1:
 
{{OldWikiEntry}} {{lowercase|title=cObject}}
 
{{OldWikiEntry}} {{lowercase|title=cObject}}
  
==cObject (objt) Data Block==
+
==cObject ([[OBJT]]) Data Block==
  
 
''Header (as specified in [[WDB]])''
 
''Header (as specified in [[WDB]])''
Line 39: Line 39:
  
 
if (Block Version == 0x11)
 
if (Block Version == 0x11)
   DWORD : NameType (appears to effect how the Name is treated)
+
   DWORD : NameType (appears to affect how the Name is treated)
  
 
DWORD : Count n
 
DWORD : Count n
Line 64: Line 64:
 
Back to [[FA1C39F7|Singular Lot Object]]
 
Back to [[FA1C39F7|Singular Lot Object]]
  
  [[Category:Modding]]
+
  [[Category:Modding]][[Category:Article_titles_with_lowercase_initial_letters]]

Revision as of 18:30, 18 October 2010

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.

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

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

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