Difference between revisions of "ABD0DC63"

From SimsWiki
Jump to: navigation, search
(Fixed sizes of Tree and Road structures; sizes were off by 1)
 
(3 intermediate revisions by one user not shown)
Line 34: Line 34:
 
:Bridge count N
 
:Bridge count N
 
;repeat N times
 
;repeat N times
;163 bytes
+
;165 bytes
 
:See bridge listing below
 
:See bridge listing below
  
Line 43: Line 43:
 
:Decoration count N
 
:Decoration count N
 
;repeat N times
 
;repeat N times
;37 bytes
+
;38 bytes
 
:See decoration listing below
 
:See decoration listing below
  
Line 107: Line 107:
 
:Z position
 
:Z position
 
;FLOAT
 
;FLOAT
:Y position
+
:Bounding Box: Top Left Y position
 
;FLOAT
 
;FLOAT
:X position
+
:Bounding Box: Top Right X position
 
;FLOAT
 
;FLOAT
:Y position
+
:Bounding Box: Bottom Left Y position
 
;FLOAT
 
;FLOAT
:X position
+
:Bounding Box: Bottom Right X position
 
;Byte
 
;Byte
 
:Always 08
 
:Always 08
Line 148: Line 148:
 
*4b - straight
 
*4b - straight
 
*57 - T-junction
 
*57 - T-junction
*07 - cross roads junction
+
*207 - cross roads junction
 
;11 Bytes
 
;11 Bytes
 
:Unknown
 
:Unknown
Line 200: Line 200:
 
:Z position
 
:Z position
 
;FLOAT
 
;FLOAT
:Y position
+
:Bounding Box: Top Left Y position
 
;FLOAT
 
;FLOAT
:X position
+
:Bounding Box: Top Right X position
 +
;FLOAT
 +
:Bounding Box: Bottom Left Y position
 +
;FLOAT
 +
:Bounding Box: Bottom Right X position
 
;1 BYTE
 
;1 BYTE
 
:Always 08
 
:Always 08
Line 248: Line 252:
 
{{OldWikiEntryCleaned}}
 
{{OldWikiEntryCleaned}}
  
[[Category:Modding]]
+
[[Category:Sims 2 Modding]]
 
[[Category:InternalFormats]]
 
[[Category:InternalFormats]]
 
[[Category:FormatsByTGI]]
 
[[Category:FormatsByTGI]]

Latest revision as of 12:03, 17 September 2012

ABD0DC63
Short name: NHTR
Long name: Neighborhood terrain

These files (one per neighborhood/subhood package) describe the trees, roads, bridges and decorations found in neighborhoods/subhoods.

Contents

[edit] Format

DWORD
Version


WORD
Unknown
DWORD
Tree count N
repeat N times
38 bytes
See tree listing below


WORD
Unknown
DWORD
Road count N
repeat N times
124 bytes
See road listing below


WORD
Unknown
DWORD
Bridge count N
repeat N times
165 bytes
See bridge listing below


WORD
Unknown
DWORD
Decoration count N
repeat N times
38 bytes
See decoration listing below

[edit] Listings

Each listing has a different format.

[edit] Tile orientation

This block appears in both road and bridge entries.

Data regarding top left corner
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
DWORD
Unknown data describing orientation
DWORD
Unknown data describing orientation
Data regarding top right corner
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
DWORD
Unknown data describing orientation
DWORD
Unknown data describing orientation
Data regarding bottom left corner
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
DWORD
Unknown data describing orientation
DWORD
Unknown data describing orientation
Data regarding bottom right corner
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
DWORD
Unknown data describing orientation
DWORD
Unknown data describing orientation

[edit] Tree

Byte
Always 02
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
FLOAT
Bounding Box: Top Left Y position
FLOAT
Bounding Box: Top Right X position
FLOAT
Bounding Box: Bottom Left Y position
FLOAT
Bounding Box: Bottom Right X position
Byte
Always 08
DWORD
Rotation
GUID

[edit] Road

Byte
Always 02
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
FLOAT
Y position top left corner of tile
FLOAT
X position top right corner of tile
FLOAT
Y position bottom left corner of tile
FLOAT
X position bottom right corner of tile
Byte
Always 03
Tile orientation
Byte
Always 00
WORD
Texture, literally part of the texture file name:
  • 03 - end piece
  • 0f - bend
  • 4b - straight
  • 57 - T-junction
  • 207 - cross roads junction
11 Bytes
Unknown

[edit] Bridge

Byte
Always 02
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
FLOAT
Y position top left corner of tile
FLOAT
X position top right corner of tile
FLOAT
Y position bottom left corner of tile
FLOAT
X position bottom right corner of tile
1 BYTE
Always 03
Tile orientation
WORD
Unknown
WORD
Bridge piece:
  • 0ac0 - End
  • 0ac1 - Straight piece (0)
  • 0ac2 - Arch part 2
  • 0ac3 - Arch part 1
  • 0ac4 - Pylon
  • 0ac5 - Arch part 3
  • 0ad0 - Tunnel entrance
Arches go like this: 12300....00321
14 BYTES
Unknown
BYTE
Always 03
41 BYTES
Unknown

[edit] Decoration

Byte
Always 02
FLOAT
Y position
FLOAT
X position
FLOAT
Z position
FLOAT
Bounding Box: Top Left Y position
FLOAT
Bounding Box: Top Right X position
FLOAT
Bounding Box: Bottom Left Y position
FLOAT
Bounding Box: Bottom Right X position
1 BYTE
Always 08
GUID
FLOAT
Rotation

[edit] Overview of format

In other words, this is how each known type looks:

Trees:
  02  YY YY YY YY  XX XX XX XX  ZZ ZZ ZZ ZZ
      YY YY YY YY  XX XX XX XX  
      YY YY YY YY  XX XX XX XX
  08  RR RR RR RR  GG GG GG GG
Roads:
  02  YY YY YY YY  XX XX XX XX  ZZ ZZ ZZ ZZ 
      YY YY YY YY  XX XX XX XX
      YY YY YY YY  XX XX XX XX 
  03  XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
  00  TT TT ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
Bridges:
  02  YY YY YY YY  XX XX XX XX  ZZ ZZ ZZ ZZ 
      YY YY YY YY  XX XX XX XX
      YY YY YY YY  XX XX XX XX
  03  XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
      XX XX XX XX  YY YY YY YY  ZZ ZZ ZZ ZZ  OO OO OO OO  OO OO OO OO 
  00  MM MM ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
  03  ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
      ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
Decorations:
  02  YY YY YY YY  XX XX XX XX  ZZ ZZ ZZ ZZ
      YY YY YY YY  XX XX XX XX
      YY YY YY YY  XX XX XX XX
  08  GG GG GG GG  RR RR RR RR 

[edit] Notes

The co-ordinate system used for the Hoods has 0,0 in the top left hand corner of the Hood when viewed for the first time after importing.

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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox