Difference between revisions of "AB4BA572"

From SimsWiki
Jump to: navigation, search
(update based on Mootilda's comments.)
m (Added note about associated WGRA)
Line 26: Line 26:
 
;DWORD (offsets 58-5B in HEX)
 
;DWORD (offsets 58-5B in HEX)
 
:Count N
 
:Count N
:''repeat N times'' (for the number of fence instances)
+
''repeat N times'' (for the number of fence post instances)
  
;DWORD (4 bytes)
+
:;DWORD (4 bytes)
:Floor Level: 0 = the ground, 1 = 1st level, 2 = 2nd level, etc
+
::Floor Level: 0 = the ground, 1 = 1st level, 2 = 2nd level, etc
;FLOAT (Single / 4 bytes)
+
:;FLOAT (Single / 4 bytes)
:fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
+
::fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
;FLOAT (Single / 4 bytes)
+
:;FLOAT (Single / 4 bytes)
:fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
+
::fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
;DWORD (4 bytes)
+
:;DWORD (4 bytes)
:Fence GUID
+
::Fence GUID
  
 +
Note: although the fence posts are stored in this structure, the "wall" portion of the fence is stored in the wall graph (WGRA).
  
 
===Resources===
 
===Resources===

Revision as of 16:30, 15 April 2008

AB4BA572
Short name: FPL
Long name: Fence post layer

Contents

Format

Header

Ss specified in WDB.

ZEROs (offsets 00-3F in HEX)
Unknown
DWORD (offsets 40-43 in HEX)
Block ID = AB4BA572
DWORD (offsets 44-47 in HEX)
Block version
The only known Block Version is 1.
Other versions may have different data structures.
7BITSTR (offsets 48-57 in HEX)
Block name (cFencePostLayer)(Fence Post Layer Container)

Data Section

DWORD (offsets 58-5B in HEX)
Count N

repeat N times (for the number of fence post instances)

DWORD (4 bytes)
Floor Level: 0 = the ground, 1 = 1st level, 2 = 2nd level, etc
FLOAT (Single / 4 bytes)
fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
FLOAT (Single / 4 bytes)
fence coordinate (dependent on the lot orientation U11)(counting starts from the lot origin)
DWORD (4 bytes)
Fence GUID

Note: although the fence posts are stored in this structure, the "wall" portion of the fence is stored in the wall graph (WGRA).

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/AB4BA572

http://www.modthesims2.com/showpost.php?p=1800091&postcount=466
http://www.modthesims2.com/showpost.php?p=1800747&postcount=499
http://www.modthesims2.com/showpost.php?p=1801146&postcount=513
http://www.modthesims2.com/showpost.php?p=1801196&postcount=517
http://www.modthesims2.com/showpost.php?p=1801666&postcount=532
http://www.modthesims2.com/showpost.php?p=1801675&postcount=534
http://www.modthesims2.com/showpost.php?p=1802400&postcount=562
http://www.modthesims2.com/showpost.php?p=1837288&postcount=1373

Properties

1. Deletable. If deleted, all fence posts on the lot disappear.
2. Regeneratable upon new fence made in-lot. But, the previously deleted fence post won't replace except when just intersecting with new postful fence (all but not the stone walls) even without making the new fence.
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox