Difference between revisions of "NGBH"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
m (Added categories, etc)
Line 1: Line 1:
{{OldWikiEntry}} ====Neighborhood Data====
+
{{OldWikiEntry}}
 +
 
 +
See also: [[4E474248]]
 +
 
 +
====Neighborhood Data====
  
 
===File Overview===
 
===File Overview===
Line 93: Line 97:
 
0xA: Unknown (seems to always be the same as 0x7)
 
0xA: Unknown (seems to always be the same as 0x7)
 
0xB: Event Owner InstanceID
 
0xB: Event Owner InstanceID
(0xC: $Subject Instance) [[Category:Modding]]
+
(0xC: $Subject Instance)
 +
 
 +
[[Category:Modding]]
 +
[[Category:InternalFormats]]
 +
[[Category:FormatsByName]]

Revision as of 14:26, 13 July 2006

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/NGBH

See also: 4E474248

Contents

Neighborhood Data

File Overview

Header

DWORD : TypeID ("NGBH")
DWORD : Version (0xbe=Nightlife, 0xc2=Open for Business)
DWORD : Reserved (unused - deprecated)
DWORD : Main Menu Image Height (deprecated)
DWORD : Main Menu Image Width (deprecated)
DWORD : Textlength n
n     : TerrainType

28byte : Reserved Header Space (unused)

Global Tokens

Associations (associates large structures to the neighbourhood such as a university)
--------
NgbhSlot : universal (hood-wide) tokens

Sections

Lots (contains lot tokens such as food info and NPC info)
--------
DWORD : SlotCount n
Repeat n
	--> NgbhSlot
End Repeat

Families (Family tokens such as exports and games)
--------
DWORD : SlotCount n
Repeat n
	--> NgbhSlot
End Repeat

Sims (memories, gossip, sim info tokens and init tokens)
--------
DWORD : SlotCount n
Repeat n
	--> NgbhSlot
End Repeat


BYTE  : Custom Hood Marker
DWORD : EP Ready Marker (from Uni on. Present in 0x70 versions up)

NgbhSlot

DWORD : InstanceID (of Lot/Family/Sim)
DWORD : Version (EP2 only)
DWORD : ItemCount n (Special Simulator tokens)
Repeat n
	 --> NgbhItem
End Repeat

DWORD : ItemCount n (Standard Tokens - memories, gossip, init, food, npc, skills, etc)
Repeat n
	 --> NgbhItem
End Repeat

NgbhItem

DWORD : GUID
WORD  : Flags (bit0 = IsVisible, bit1 = IsMemory)
WORD  : Flags (EP3 only)
DWORD : Inventory Number (EP2 only)
DWORD : DataCount n
Repeat n
	 WORD : dataword
End Repeat

Data Decoding for Memory Items

Memory items have a typical count of 0x0c (if no Subject is needed for the Memory) or 0x0d DataWords. Teh Following list shows the Structure of the Data: 0x0: Token Value (ie. the level of a hidden Skill, or an OpenForBusiness Badge) 0x1: 0x07CD 0x2: 0x0006 (0x0007 if new or changed) 0x3: 0x000F 0x4: Event Owner InstanceID 0x5: $Subject GUID (low-order 16 bits) 0x6: $Subject GUID (high-order 16 bits) 0x7: Unknown 0x8: 0x000A 0x9: 0x0019 0xA: Unknown (seems to always be the same as 0x7) 0xB: Event Owner InstanceID (0xC: $Subject Instance)

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox