Difference between revisions of "4E474248"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
{{OldWikiEntry}} ====Neighborhood Data / Memories====
+
{{Resource tgi
 +
|short = NGBH
 +
|long = Neighborhood/Memory
 +
}}
  
===File Overview===
+
This resource contains neighborhood data (memories).
<pre>
+
0x14: Header
+
0x04: Textlength n
+
n  : Zonenname
+
  
Repeat 5 Times
+
=Format=
    --> NgbhSlotBase
+
End Repeat
+
  
0x04: SlotCount n
+
==Header==
Repeat n
+
;14 bytes
--> NgbhSlot
+
:Header
End Repeat
+
;DWORD
 +
:Length Z
 +
;Z bytes
 +
:Zone name
  
0x04: SlotCount n
+
;''repeat 5 times''
Repeat n
+
:;see [[{{FULLPAGENAME}}#Slot Base|Slot Base]]
--> NgbhSlot
+
End Repeat
+
  
0x04: SlotCount n      ''contains Memories
+
;DWORD
Repeat n
+
:Slot count A
--> NgbhSlot
+
;''repeat A times''
End Repeat
+
:;see [[{{FULLPAGENAME}}#Slot|Slot]]
  
</pre>
+
;DWORD
 +
:Slot count B
 +
;''repeat B times''
 +
:;see [[{{FULLPAGENAME}}#Slot|Slot]]
  
===NgbhSlot===
+
;DWORD
<pre>
+
:Slot count C (contains memories)
0x04: SlotID
+
;''repeat C times''
 +
:;see [[{{FULLPAGENAME}}#Slot|Slot]]
  
--> NgbhSlotBase
+
===Slot===
</pre>
+
;DWORD
 +
:Slot ID
  
 +
:see [[{{FULLPAGENAME}}#Slot Base|Slot Base]]
  
===NgbhSlotBase===
+
===Slot Base===
<pre>
+
;DWORD
0x04 : ItemCount n
+
:Item count M
Repeat n
+
;''repeat M times''
--> NgbhItem
+
::see [[{{FULLPAGENAME}}#Item|Item]]
End Repeat
+
  
0x04 : ItemCount n
+
;DWORD
Repeat n
+
:Item count N
--> NgbhItem
+
;''repeat N times''
End Repeat
+
::see [[{{FULLPAGENAME}}#Item|Item]]
</pre>
+
  
===NgbhItem===
+
===Item===
<pre>
+
;DWORD
0x04: GUID
+
:[[GUID]]
0x02: --> Flags
+
;WORD
0x04: DataCount n
+
:Flags
Repeat n
+
;DWORD
0x02: dataword
+
:Data count D
End Repeat
+
;''repeat D times''
</pre>
+
:;WORD
 +
::Data word
  
===Flag Values===
+
==Flag Values==
 
Bit 0: Visible
 
Bit 0: Visible
 
Bit 1: Action Item
 
Bit 1: Action Item
  
===Data Decoding for Memory Items===
+
==Decoding==
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: 0x0000
+
===Memory Items===
0x1: 0x07CD
+
Memory items have a typical count of 0x0C (if no Subject is needed for the Memory) or 0x0D DataWords. The Following list shows the Structure of the Data:
0x2: 0x0006 (0x0007 if new or changed)
+
*0x0: 0x0000
0x3: 0x000F
+
*0x1: 0x07CD
0x4: Event Owner Instance
+
*0x2: 0x0006 (0x0007 if new or changed)
0x5: $Subject GUID 1
+
*0x3: 0x000F
0x6: $Subject GUID 2
+
*0x4: Event Owner Instance
0x7: Unknown
+
*0x5: $Subject GUID 1
0x8: 0x000A
+
*0x6: $Subject GUID 2
0x9: 0x0019
+
*0x7: Unknown
0xA: Unknown (seems to be allways the same as 0x7)
+
*0x8: 0x000A
0xB: Event Owner Instance
+
*0x9: 0x0019
(0xC: $Subject Instance) [[Category:Modding]]
+
*0xA: Unknown (seems to be allways the same as 0x7)
 +
*0xB: Event Owner Instance
 +
*0xC: $Subject Instance
 +
 
 +
{{OldWikiEntryCleaned}}
 +
 
 +
[[Category:Sims 2 Modding]]
 +
[[Category:InternalFormats]]
 +
[[Category:FormatsByTGI]]

Latest revision as of 18:44, 17 September 2012

4E474248
Short name: NGBH
Long name: Neighborhood/Memory

This resource contains neighborhood data (memories).

Contents

[edit] Format

[edit] Header

14 bytes
Header
DWORD
Length Z
Z bytes
Zone name
repeat 5 times
see Slot Base
DWORD
Slot count A
repeat A times
see Slot
DWORD
Slot count B
repeat B times
see Slot
DWORD
Slot count C (contains memories)
repeat C times
see Slot

[edit] Slot

DWORD
Slot ID
see Slot Base

[edit] Slot Base

DWORD
Item count M
repeat M times
see Item
DWORD
Item count N
repeat N times
see Item

[edit] Item

DWORD
GUID
WORD
Flags
DWORD
Data count D
repeat D times
WORD
Data word

[edit] Flag Values

Bit 0: Visible Bit 1: Action Item

[edit] Decoding

[edit] Memory Items

Memory items have a typical count of 0x0C (if no Subject is needed for the Memory) or 0x0D DataWords. The Following list shows the Structure of the Data:

  • 0x0: 0x0000
  • 0x1: 0x07CD
  • 0x2: 0x0006 (0x0007 if new or changed)
  • 0x3: 0x000F
  • 0x4: Event Owner Instance
  • 0x5: $Subject GUID 1
  • 0x6: $Subject GUID 2
  • 0x7: Unknown
  • 0x8: 0x000A
  • 0x9: 0x0019
  • 0xA: Unknown (seems to be allways the same as 0x7)
  • 0xB: Event Owner Instance
  • 0xC: $Subject Instance

This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/4E474248

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox