Difference between revisions of "4B58975B"

From SimsWiki
Jump to: navigation, search
(Functions)
(Lots which are too close to the water will get the beach terrain.)
 
(3 intermediate revisions by 2 users not shown)
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
+
: Usually one of:
:: lushy
+
:: lottexture-test-01 (This is the standard lush terrain)
::: HEX: 12
+
:: lottexture-canvas-desert
::: DEC: 18
+
:: lottexture-canvas-dirt
:: desert
+
:: lottexture-concrete-01
::: HEX: 18
+
:: terrain-beach
::: 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
+
;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: 67
+
:::: terrain-seabed-deep
::: DEC: 103
+
:::: terrain-beach
:: desert
+
::: These 4 default values are followed by the any additional terrain textures used on the lot.
::: 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
+
: 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: A0
+
::: DEC: 160
+
:: desert
+
::: HEX: A6
+
::: DEC: 166
+
 
+
;7BITSTR
+
: 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
+
  
 +
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.
  
 
===Resources===
 
===Resources===
Line 198: Line 78:
 
* To contain the terrain paint names added following the default ones.  More terrain paint infos can be found [[6B943B43]].
 
* To contain the terrain paint names added following the default ones.  More terrain paint infos can be found [[6B943B43]].
  
[[Category:Modding]]
+
[[Category:Sims 2 Modding]]
 
[[Category:InternalFormats]]
 
[[Category:InternalFormats]]
 
[[Category:FormatsByTGI]]
 
[[Category:FormatsByTGI]]

Latest revision as of 21:20, 16 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

[edit] Format

[edit] 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.

[edit] 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
Usually one of:
lottexture-test-01 (This is the standard lush terrain)
lottexture-canvas-desert
lottexture-canvas-dirt
lottexture-concrete-01
terrain-beach
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.

[edit] 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

[edit] Properties

[edit] 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