Difference between revisions of "4B58975B"

From SimsWiki
Jump to: navigation, search
(Cleanup and clarification.)
Line 13: Line 13:
  
 
===Header===
 
===Header===
Ss specified in [[WDB]].
+
As specified in [[WDB]].
  
; ZEROs (offsets 00-3F in HEX)
+
; ZEROs (offsets 00-3F HEX)
 
: Unknown
 
: Unknown
  
; DWORD (offsets 40-43 in HEX)
+
; DWORD (offsets 40-43 HEX)
: Block ID = 4B58975B
+
: Block ID
 +
: Value = 0x4B58975B
  
; DWORD (offsets 44-47 in HEX)
+
; DWORD (offsets 44-47 HEX)
: Block version?
+
: Block Version
 
: The only known Block Version is 7.
 
: The only known Block Version is 7.
: Other versions may have different data structures.
 
  
 
===Data Section===
 
===Data Section===
  
; DWORD
+
; DWORD (offsets 48-4B HEX)
: Count W
+
: Lot Width
: Value of the Lot Width, W
+
:: Known stable range: 10 =< W =< 64
+
:: Known applied range: 10 =< W =< 60
+
: Offset
+
::: HEX: 48 - 4B  
+
::: DEC: 72 - 75
+
  
; DWORD
+
; DWORD (offsets 4C-4F HEX)
: Count H
+
: Lot Height
: Value of the Lot Height, H
+
:: Known stable range: 10 =< H =< 64
+
:: Known applied range: 10 =< H =< 60
+
: Offset
+
::: HEX: 4C - 4F
+
::: DEC: 76 - 79
+
  
; 1 byte
+
;[[7BITSTR]] (starting at offset 50 HEX)
: 7BITSTR length definer?
+
: Default terrain texture name
: Value of constant
+
: One of:
:: lushy
+
:: lottexture-test-01
::: HEX: 12
+
:: lottexture-canvas-desert
::: DEC: 18
+
:: desert
+
::: HEX: 18
+
::: DEC: 24
+
: Offset
+
:: HEX: 50
+
:: DEC: 80
+
 
+
; 7BITSTR (offsets 51-?? in HEX)
+
: Value of the Lot Terrain Texture name
+
:: lushy
+
::: lottexture-test-01
+
:: desert
+
::: lottexture-canvas-desert
+
: Offset, dependent on the texture name length regardless static or temporarily processed textures
+
:: lushy
+
::: HEX: 51 - 62
+
::: DEC: 81 - 98
+
:: desert
+
::: HEX: 51 - 68
+
::: DEC: 81 - 104
+
  
 
; DWORD
 
; DWORD
 
: Count X
 
: Count X
:Value of constant
+
: Number of additional terrain paints on the lot.
:: 4
+
: Default for a new lot is 4
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 63 - 66
+
::: DEC: 99 - 102
+
:: desert
+
::: HEX: 69 - 6C
+
::: DEC: 105 - 108
+
 
+
; 1 byte
+
: 7BITSTR length definer?
+
: Value of constant; regardless of if "lushy" or "desert"
+
:: HEX: 0D
+
:: DEC: 13
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 67
+
::: DEC: 103
+
:: desert
+
::: HEX: 6D
+
::: DEC: 109
+
 
+
;7BITSTR
+
: The value of a Lot Texture name; regardless of if "lushy" or "desert"
+
:: terrain-cliff
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 68 - 74
+
::: DEC: 104 - 116
+
:: desert
+
::: HEX: 6E - 7A
+
::: DEC: 110 - 122
+
 
+
; 1 byte
+
: 7BITSTR length definer?
+
: Value of constant; regardless of if "lushy" or "desert"
+
:: HEX: 16
+
:: DEC: 22
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 75
+
::: DEC: 117
+
:: desert
+
::: HEX: 7B
+
::: DEC: 123
+
 
+
;7BITSTR
+
: The value of a Lot Texture name; regardless of if "lushy" or "desert"
+
:: terrain-seabed-shallow
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 76 - 8B
+
::: DEC: 118 - 139
+
:: desert
+
::: HEX: 7C - 91
+
::: DEC: 124 - 145
+
 
+
; 1 byte
+
: 7BITSTR length definer?
+
: Value of constant; regardless of if "lushy" or "desert"
+
:: HEX: 13
+
:: DEC: 19
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 8C
+
::: DEC: 140
+
:: desert
+
::: HEX: 92
+
::: DEC: 146
+
 
+
;7BITSTR
+
: The value of a Lot Texture name; regardless of if "lushy" or "desert"
+
:: terrain-seabed-deep
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: 8D - 9F
+
::: DEC: 141 - 159
+
:: desert
+
::: HEX: 93 - A5
+
::: DEC: 147 - 165
+
  
; 1 byte
+
;repeat X times
: 7BITSTR length definer?
+
:
: Value of constant; regardless of if "lushy" or "desert"
+
:;[[7BITSTR]]
:: HEX: 0D
+
:: Terrain texture name
:: DEC: 13
+
::: First 4 values on any lot are:
: Offset, dependent on the previous value length(s)
+
:::: terrain-cliff
:: lushy
+
:::: terrain-seabed-shallow
::: HEX: A0
+
:::: terrain-seabed-deep
::: DEC: 160
+
:::: terrain-beach
:: desert
+
::: These 4 default values are followed by the any additional terrain textures used on the lot.
::: HEX: A6
+
::: DEC: 166
+
  
;7BITSTR
+
Note:
: The value of a Lot Texture name; regardless of if "lushy" or "desert"
+
:: terrain-beach
+
: Offset, dependent on the previous value length(s)
+
:: lushy
+
::: HEX: A1 - AD
+
::: DEC: 161 - 173
+
:: desert
+
::: HEX: A7 - B3
+
::: DEC: 167 - 179
+
  
 +
1) Lot Terrain Geometry [[LOTG]] records from instance 0x5CBC to 0x5CED contain the strengths of the terrain paints listed in the LTTX record, in order.
  
 +
2) Lot Terrain Geometry [[LOTG]] records with instances above 0x5CEE on may be the cause of a problem with blue terrain on lots when custom terrain paints are not available.
  
 
===Resources===
 
===Resources===

Revision as of 21:29, 13 May 2013

4B58975B
Short name: LTTX
Long name: Lot Texture
  • - previously named as TMAP
  • - presently named as LTTX
  • - Hex Code: 4B58975B
  • - Description: Lot Texture

Contents

Format

Header

As specified in WDB.

ZEROs (offsets 00-3F HEX)
Unknown
DWORD (offsets 40-43 HEX)
Block ID
Value = 0x4B58975B
DWORD (offsets 44-47 HEX)
Block Version
The only known Block Version is 7.

Data Section

DWORD (offsets 48-4B HEX)
Lot Width
DWORD (offsets 4C-4F HEX)
Lot Height
7BITSTR (starting at offset 50 HEX)
Default terrain texture name
One of:
lottexture-test-01
lottexture-canvas-desert
DWORD
Count X
Number of additional terrain paints on the lot.
Default for a new lot is 4
repeat X times
7BITSTR
Terrain texture name
First 4 values on any lot are:
terrain-cliff
terrain-seabed-shallow
terrain-seabed-deep
terrain-beach
These 4 default values are followed by the any additional terrain textures used on the lot.

Note:

1) Lot Terrain Geometry LOTG records from instance 0x5CBC to 0x5CED contain the strengths of the terrain paints listed in the LTTX record, in order.

2) Lot Terrain Geometry LOTG records with instances above 0x5CEE on may be the cause of a problem with blue terrain on lots when custom terrain paints are not available.

Resources

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

http://www.modthesims2.com/showpost.php?p=1900590&postcount=1475
http://www.modthesims2.com/showpost.php?p=1791493&postcount=295
http://www.modthesims2.com/showpost.php?p=1901160&postcount=1478

Properties

Functions

  • To decide which lot texture(s) to draw and/or blend for the lot terrain graphical presentation.
  • To contain the terrain paint names added following the default ones. More terrain paint infos can be found 6B943B43.
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox