Difference between revisions of "WBD-WBN"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Cleanup-rewrite}}
 
 
{{File-stub}}
 
{{File-stub}}
 +
==WBD/WBN Description==
 
'''WBD''' is a '''"Windows Bounds Dictionary"''' file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\maps\xxx_folder\xxx.img"  
 
'''WBD''' is a '''"Windows Bounds Dictionary"''' file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\maps\xxx_folder\xxx.img"  
  
Line 10: Line 10:
 
Here is some basic information that has been gathered so far. (From decompressed ext_door.wbd)
 
Here is some basic information that has been gathered so far. (From decompressed ext_door.wbd)
  
  DWORD - 4b  - VTable
+
  '''WBD''' Header
  DWORD - 4b  - offset to blockMap
+
  -------------------------------------------------------------------
  DWORD  - 4b - Unknown
+
  Offset Size Type Data Description
  DWORD  - 4b - Unknown
+
  -------------------------------------------------------------------
  DWORD  - 4b  - offset to Array (contains all hashes of the models)
+
0x00 4b LONG VTable
  WORD  - 2b - count (number of hashes)
+
  0x04 4b  Offset Offset to blockMap
  WORD  - 2b  - size (number of hashes)
+
  0x08 4b LONG Unknown
  DWORD  - 4b  - PointerCollection
+
  0x0C 4b LONG Unknown
  WORD  - 4b  - count (in ext_door.wbd same as number of door models)
+
  0x10 8b  SimpleCollection<Hashes> Collection that contains all hashes of the models
  WORD  - 4b  - size (in ext_door.wbd same as number of door models)
+
  0x18 8b PointerCollection<Unknown>
 +
 
 +
--------------------------------------------------------------------
 +
  SimpleCollection (BlockSize 0x08)  
 +
  Contains data of the given type
 +
  --------------------------------------------------------------------
 +
  0x00 4b Offset Offset to the Data
 +
  0x04 2b Count  Data count
 +
  0x06 2b Size
  
 
== See also ==
 
== See also ==

Revision as of 10:51, 8 August 2009

WBD/WBN Description

WBD is a "Windows Bounds Dictionary" file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\maps\xxx_folder\xxx.img"

WBN is a "Windows Bounds Nodes" file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\maps\xxx_folder\xxx.img"

these files are the method used within GTA-IV for collision files, early indications show that map model colision files are mapped in game "World coordinates"

File Format

Here is some basic information that has been gathered so far. (From decompressed ext_door.wbd)

WBD Header
-------------------------------------------------------------------
Offset	Size	Type	Data			Description
-------------------------------------------------------------------
0x00	4b	LONG	VTable
0x04	4b  	Offset	Offset to blockMap
0x08	4b  	LONG	Unknown
0x0C	4b  	LONG	Unknown
0x10	8b  	SimpleCollection<Hashes>	Collection that contains all hashes of the models
0x18	8b	PointerCollection<Unknown>
--------------------------------------------------------------------
SimpleCollection (BlockSize 0x08) 
Contains data of the given type
--------------------------------------------------------------------
0x00	4b	Offset	Offset to the Data
0x04	2b	Count   Data count
0x06	2b	Size

See also