Difference between revisions of "Network Subfiles"

From SC4D Encyclopaedia
Jump to navigation Jump to search
m (small corrections)
 
(59 intermediate revisions by 3 users not shown)
Line 53: Line 53:
 
   DWORD Count of blocks to follow
 
   DWORD Count of blocks to follow
 
       DWORD    Block number
 
       DWORD    Block number
       BYTEx4  4 Unknown bytes (perhaps a float? Values don't make sense though).
+
       FLOAT32  Unknown
 
       WORD    Unknown (only seen 0x00)
 
       WORD    Unknown (only seen 0x00)
DWORD Count of blocks  (0 for a new city)
+
DWORD           Count of network intersections (such as + and T intersections) in city
   DWORD Link: Memory address
+
   DWORD       Link: Memory address
   DWORD Link: Subfile Type ID
+
   DWORD       Link: Subfile Type ID of a network subfile
   BYTE Unknown  (only seen 0x00)
+
   BYTE         Unknown  (only seen 0x00)
   DWORD Unknown (only seen 0x00000000)
+
   DWORD       Count of blocks to follow (only seen 0 or 1)
  DWORD Unknown  (Either 0, 1, 2 or 3)
+
      DWORD    Memory address
  BOOLEAN Unknown  (Either 0 or 1, false or true)
+
      DWORD    Subfile Type ID (only seen 0x4c22ae53 Mass Transit Train)
  FLOAT32 Unknown  (small value)
+
 
  FLOAT32 Unknown  (small value)
+
   # The values below seem to indicate what directions are enabled on this
   FLOAT32 Unknown  (small value)
+
   # network. That's why they are repeated 4 times for west, north, east
   DWORD Unknown  (Either 0, 1, 2 or 3)
+
   # and south.
  BOOLEAN Unknown  (Either 0 or 1, false or true)
+
      DWORD     Tentatively indicates how many of following floats are meaningful (0, 1, 2 or 3).
  FLOAT32 Unknown  (small value)
+
      BOOLEAN   Unknown (either 0 or 1)
  FLOAT32 Unknown  (small value)
+
      FLOAT32×3 Unknown (often small values such as 0.0, 1.2, 6.0, 8.0)
   FLOAT32 Unknown  (small value)
+
 
  DWORD Unknown  (Either 0, 1, 2 or 3)
 
  BOOLEAN Unknown (Either 0 or 1, false or true)
 
  FLOAT32 Unknown (small value)
 
  FLOAT32 Unknown  (small value)
 
  FLOAT32 Unknown  (small value)
 
  DWORD Unknown  (Either 0, 1, 2 or 3)
 
  BOOLEAN Unknown  (Either 0 or 1, false or true)
 
  FLOAT32 Unknown  (small value)
 
  FLOAT32 Unknown  (small value)
 
  FLOAT32 Unknown  (small value)
 
 
DWORD  Count of transit-enabled lot tiles to follow
 
DWORD  Count of transit-enabled lot tiles to follow
 
   WORD        Z tile
 
   WORD        Z tile
Line 94: Line 84:
 
FLOAT32 Unknown  (Small value. 0.00 for a new city)
 
FLOAT32 Unknown  (Small value. 0.00 for a new city)
 
BOOLEAN Unknown  (always 1, true)
 
BOOLEAN Unknown  (always 1, true)
DWORD Count of blocks to follow  (Does not appear if version = 0x0003. Always 0x00000000 if version = 0x0007)
+
DWORD Count of blocks to follow  (Does not appear if version = 0x0003)
 
   DWORD        Memory address
 
   DWORD        Memory address
 
   DWORD        Type ID of network (seen 0xc9c05c6e and 0x49c1a034).
 
   DWORD        Type ID of network (seen 0xc9c05c6e and 0x49c1a034).
   BYTES         Unknown amount of low bytes (<= 0x07). Amount is often 32, seen 36 and 28 as well.
+
   DWORD         Count of DWORDs to follow (only seen 0x00000000 though)
 +
      DWORD    Unknown (never seen, but assumed, see below)
 +
  WORD          Unknown (all kinds of values, change when saving without doing anything)
 +
  DWORD        Count of DWORDs to follow
 +
      DWORD    Unknown, might as well be 4 bytes
 +
  WORD          Unknown (all kinds of values, change when saving without doing anything)
 +
  DWORD        Count of DWORDs to follow
 +
      DWORD    Unknown, might as well be 4 bytes
 +
  WORD          Unknown (all kinds of values, change when saving without doing anything)
 +
  DWORD        Count of DWORDs to follow
 +
      DWORD    Unknown, might as well be 4 bytes
 +
  WORD          Unknown (all kinds of values, change when saving without doing anything)
 
</pre>
 
</pre>
  
Line 115: Line 116:
 
==Structure==
 
==Structure==
 
===Network Subfile 1 Body===
 
===Network Subfile 1 Body===
 +
List of texture-based network tiles consisting of records of the form:
 
<pre>
 
<pre>
 
DWORD Record Size
 
DWORD Record Size
 
DWORD CRC
 
DWORD CRC
 
DWORD Memory
 
DWORD Memory
WORD Version Major  (0x0002)
+
WORD×2 Version (always 8, 4)
WORD Version Minor  (0x0003)
+
DWORD Appearance Flags (Always 0x05000000)  (See Appendix 2.2 for more information)
WORD Zot Bytes  (Always 0x0000)
 
BYTE 0x00
 
BYTE Appearance Flag (Always 0x05)  (See Appendix 2.2 for more information)
 
 
DWORD 0xC772BF98  (always the same)
 
DWORD 0xC772BF98  (always the same)
 
BYTE Min Tract X Coordinate  (normally between 0x40 and 0x7F)
 
BYTE Min Tract X Coordinate  (normally between 0x40 and 0x7F)
Line 148: Line 147:
  
 
DWORD TextureID / PathID
 
DWORD TextureID / PathID
BYTES×5 Unknown (Small values)
+
BYTE Wealth texture (See Appendix 2.6)
 +
DWORD Base texture  (See Appendix 2.7)
 
BYTE Orientation  (See Appendix 2.3 for more information)
 
BYTE Orientation  (See Appendix 2.3 for more information)
BYTES×3 Unknown  (Small values)
+
BYTES×2 Unknown  (Small values)
BYTE Network Type  (See Appendix 2.4 for more information)
+
Byte Flag for crossings (1 = crossings of two networks, 0 = single network)
BYTE Connection, West  (See Appendix 2.5 for more information)
+
    BYTE Network Type  (See Appendix 2.4 for more information)
BYTE Connection, North  (See Appendix 2.5 for more information)
+
    BYTE Connection, West  (See Appendix 2.5 for more information)
BYTE Connection, East  (See Appendix 2.5 for more information)
+
    BYTE Connection, North  (See Appendix 2.5 for more information)
BYTE Connection, South  (See Appendix 2.5 for more information)
+
    BYTE Connection, East  (See Appendix 2.5 for more information)
BYTE    Flag for crossings (seen 0x01 for rail/road crossing, 0x06 as well)
+
    BYTE Connection, South  (See Appendix 2.5 for more information)
     BYTE    Unknown
+
DWORD Number of blocks for retaining walls
    BYTE    Unknown
+
    DWORD Retaining wall texture IID (See Appendix 2.9)
    BYTE    Unknown
+
     # Followed by three vertex blocks of the form:
    BYTE    Unknown
+
        Float32×5   (x, y, z, u, v) coordinates
    BYTE   Unknown (seen 0x02 and about 100 more bytes to follow for roads with retaining walls))
+
        BYTE×4      (r, g, b, a) color
BYTES×3 Unknown  (Small values)
 
 
FLOAT32 Xmin
 
FLOAT32 Xmin
 
FLOAT32 Xmax
 
FLOAT32 Xmax
Line 169: Line 168:
 
FLOAT32 Zmin
 
FLOAT32 Zmin
 
FLOAT32 Zmax
 
FLOAT32 Zmax
BYTE Unknown  (1 or 2)
+
DWORD Construction states (See Appendix 2.8)
BYTE Unknown  (Always 160)
+
DWORD Alternate path ID (derived from AutoPathBase or TE-Lot), otherwise 0
BYTE Unknown  (Always 0)
+
DWORD×3 Unknown  (All 0)
BYTE Unknown  (Often 22)
+
DWORD Demolishing costs
DWORD×4 Unknown  (All 0)
 
DWORD Unknown  (Always 2)
 
 
DWORD Unknown  (0x00000000)
 
DWORD Unknown  (0x00000000)
 
</pre>
 
</pre>
Line 190: Line 187:
 
</pre>
 
</pre>
  
===Appendix 2.2 - Apperance Flag (offset 0x0013)===
+
====SaveGame Properties====
 +
Properties known to appear on network tiles are listed below (See also the [[Prop Subfile#Savegame_Properties_.28SGProps.29|Prop Subfile]]).
 
<pre>
 
<pre>
     0x01 (00000001b) - Network that appears in the game (if this is off, the network has been deleted)
+
0x4835C6A6 (Boolean) = Unknown (1?)
    0x02 (00000010b) - ? (unused)
+
0x4835C6A7 (UInt32×2) = TE-Lot network flags:
     0x04 (00000100b) - ? (always on)
+
     DWORD - Unknown (0?)
    0x08 (00001000b) - ? (unused)
+
    DWORD - Flags (0xSSEENNWW) (0x00000000 if custom path is used)
     0x40 (01000000b) - The network is burnt
+
0x4835C6A9 (UInt32) = TE-Lot custom path IID
     0x80 (10000000b) - ? (unused)
+
0x4835C6AA (Byte) = Bitmask for Onewayroad directions:
 +
     0b00000001 - Edge West: direction West to East
 +
    0b00000010 - Edge West: direction East to West
 +
    0b00000100 - Edge North: direction North to South
 +
    0b00001000 - Edge North: direction South to North
 +
    0b00010000 - Edge East: direction West to East
 +
    0b00100000 - Edge East: direction East to West
 +
    0b01000000 - Edge South: direction North to South
 +
    0b10000000 - Edge South: direction South to North
 +
0x4835C6AB (UInt32) = Unknown (some flags related to puzzle pieces?)
 +
0xAA24AE57 (UInt32) = Unknown (0?)
 +
</pre>
 +
 
 +
===Appendix 2.2 - Appearance Flags===
 +
<pre>
 +
     0x01000000 - Render the network shadow
 +
     0x04000000 - Render the network
 
</pre>
 
</pre>
  
Line 214: Line 228:
 
===Appendix 2.4 - Network Type===
 
===Appendix 2.4 - Network Type===
 
<pre>
 
<pre>
     0x00 = ?
+
     0x00 = Road
     0x01 = ?
+
     0x01 = Rail
     0x02 = ?
+
     0x02 = Elevated Highway
     0x03 = ?
+
     0x03 = Street
     0x04 = ?
+
     0x04 = Pipe
     0x05 = ?
+
     0x05 = Powerline
     0x06 = ?
+
     0x06 = Avenue
     0x07 = ?
+
     0x07 = Subway
 +
    0x08 = Lightrail
 +
    0x09 = Monorail
 +
    0x0a = Onewayroad
 +
    0x0b = Dirtroad
 +
    0x0c = Ground Highway
 
</pre>
 
</pre>
  
 
===Appendix 2.5 - Connections===
 
===Appendix 2.5 - Connections===
<pre>??</pre>
+
The [[Network Flags]] are denoted in octal representation in RUL files:
 +
<pre>
 +
0x00 = 0o00 (no connection)
 +
0x01 = 0o01 (diagonal left)
 +
0x02 = 0o02 (orthogonal)
 +
0x03 = 0o03 (diagonal right)
 +
0x04 = 0o04 (median)
 +
0x09 = 0o11 (blend left)
 +
0x0b = 0o13 (blend right)
 +
0x11 = 0o21 (diagonal switch left)
 +
0x13 = 0o23 (diagonal switch right)
 +
...
 +
0x32 = 0o62 (wye)
 +
...
 +
</pre>
 +
 
 +
===Appendix 2.6 - Wealth Textures===
 +
<pre>
 +
0 = default texture
 +
1 = grass/low density $
 +
2 = grass/low density $$
 +
3 = grass/low density $$$
 +
4 = medium/high density $
 +
5 = medium/high density $$
 +
6 = medium/high density $$$
 +
7 = I-ag/landfill
 +
</pre>
 +
 
 +
===Appendix 2.7 - Base textures===
 +
<pre>
 +
0x00000000 = None
 +
0x08100000 = Pavement $
 +
0x08200000 = Pavement $$
 +
0x08300000 = Pavement $$$
 +
0x08400000 = Dirt
 +
</pre>
 +
 
 +
===Appendix 2.8 - Construction states===
 +
This bitset encodes which networks are present on the tile, whether the tile has been fully constructed, as well as several other flags. Some dual-networks like HRW built by the over-click method can only be seen here.
 +
<pre>
 +
0x00000001 = Road (bit 0)
 +
0x00000002 = Rail (bit 1)
 +
0x00000004 = Highway (bit 2)
 +
...  (see Appendix 2.4)
 +
0x00000800 = Dirtroad (bit 11)
 +
0x00001000 = Ground Highway (bit 12)
 +
---
 +
0x00002000 = matching path file exists (for TE tiles: set if fully connected to network)
 +
0x00004000 = network not fully constructed yet (always set for TE tiles?)
 +
0x00008000 = rendering state (set if tile has been displayed since last rotation of the map)
 +
---
 +
0x00040000 = bridge (...tentatively)
 +
0x00080000 = alpha off (for tunnel portal)
 +
0x00100000 = blue auto-place preview effect (set for all static puzzle pieces)
 +
0x00200000 = TE tile
 +
0x00400000 = anchored tile (static puzzle piece/tunnel portal)
 +
0x00800000 = tunnel portal
 +
0x01000000 = terrain triangles transposed
 +
0x02000000 = render western triangle of base and overlay, hole if 0
 +
            (set for texure-based tiles and for model-based tiles with wealth textures, not set for TE tiles)
 +
0x04000000 = render eastern triangle of base and overlay, hole if 0
 +
            (set for texure-based tiles and for model-based tiles with wealth textures, not set for TE tiles)
 +
0x08000000 = render terrain
 +
            (set for model-based network tiles and TE tiles, not set for purely texture-based tiles)
 +
0x10000000 = network fully constructed (for TE tiles: set if fully connected to network)
 +
0x20000000 = is lit
 +
0x40000000 = alpha off (for retaining wall/pillar)
 +
</pre>
 +
 
 +
===Appendix 2.9 - Retaining wall textures===
 +
<pre>
 +
0x00BB0000 - retaining wall
 +
0x00BB0200 - railing
 +
0x08080000 - pillar
 +
0x0912220E - concrete
 +
</pre>
  
 
=Network Subfile 2 (CA16374F)=
 
=Network Subfile 2 (CA16374F)=
 +
This subfile contains network tiles related to the subway network and is similar to the [[Pipe Occupant Subfile]].
 
==Network Subfile 2 Structure==
 
==Network Subfile 2 Structure==
 +
List of records of the form:
 
===Network Subfile 2 Body===
 
===Network Subfile 2 Body===
 
<pre>
 
<pre>
Line 234: Line 330:
 
DWORD CRC
 
DWORD CRC
 
DWORD Memory
 
DWORD Memory
WORD Version Major  (0x0002)
+
WORD×4 Version (always 2, 3, 8, 4)
WORD Version Minor  (0x0003)
+
DWORD Appearance Flags (Always 0x05000000)  (See Appendix 2.2 for more information)
WORD Version ?  (0x0008)
 
WORD Version ?  (0x0004)
 
WORD Zot Bytes  (Always 0x0000)
 
BYTE 0x00
 
BYTE Appearance Flag (Always 0x05)  (See Appendix 3.2 for more information)
 
 
DWORD 0xC772BF98  (always the same)
 
DWORD 0xC772BF98  (always the same)
 
BYTE Min Tract X Coordinate  (normally between 0x40 and 0x7F)
 
BYTE Min Tract X Coordinate  (normally between 0x40 and 0x7F)
Line 249: Line 340:
 
WORD Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
 
WORD Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
 
DWORD Count of Properties  (I've only seen 0x00000000)
 
DWORD Count of Properties  (I've only seen 0x00000000)
     SGPROP    SaveGame Properties, repeated Count times  (See Appendix 3.1 for more information)
+
     SGPROP    SaveGame Properties, repeated Count times  (See Appendix 2.1 for more information)
 
DWORD Group ID  (always 0x00000000)
 
DWORD Group ID  (always 0x00000000)
 
DWORD Type ID  (always 0x00000000)
 
DWORD Type ID  (always 0x00000000)
Line 292: Line 383:
 
DWORD TextureID / PathID
 
DWORD TextureID / PathID
 
BYTES×5 Unknown  (Small values)
 
BYTES×5 Unknown  (Small values)
BYTE Orientation  (See Appendix 3.3 for more information)
+
BYTE Orientation  (See Appendix 2.3 for more information)
 
BYTES×3 Unknown  (Small values)
 
BYTES×3 Unknown  (Small values)
BYTE Network Type  (See Appendix 3.4 for more information)
+
BYTE Network Type  (See Appendix 2.4 for more information)
BYTE Connection, West  (See Appendix 3.5 for more information)
+
BYTE Connection, West  (See Appendix 2.5 for more information)
BYTE Connection, North  (See Appendix 3.5 for more information)
+
BYTE Connection, North  (See Appendix 2.5 for more information)
BYTE Connection, East  (See Appendix 3.5 for more information)
+
BYTE Connection, East  (See Appendix 2.5 for more information)
BYTE Connection, South  (See Appendix 3.5 for more information)
+
BYTE Connection, South  (See Appendix 2.5 for more information)
 
BYTES×4 Unknown  (Small values)
 
BYTES×4 Unknown  (Small values)
 
FLOAT32 Xmin
 
FLOAT32 Xmin
Line 311: Line 402:
 
BYTE Unknown  (Seen 16-21)
 
BYTE Unknown  (Seen 16-21)
 
DWORD×4 Unknown  (All 0)
 
DWORD×4 Unknown  (All 0)
DWORD Unknown  (Always 50)
+
DWORD Demolishing costs
 
DWORD Unknown  (0x00000000)
 
DWORD Unknown  (0x00000000)
 
WORD Unknown  (0x0000)
 
WORD Unknown  (0x0000)
Line 365: Line 456:
 
</pre>
 
</pre>
  
===Appendix 3.1 - Structure of SGPROP (SaveGame Properties)===
+
=Prebuilt Network Subfile (0x49c1a034)=
 +
 
 +
The prebuilt network subfile contains all model-based network tiles with a prefabricated model, such as elevated highways and monorail.
 +
 
 +
==Structure==
 +
List of records of the form:
 
<pre>
 
<pre>
DWORD  Property Name Value
+
DWORD   Size
DWORD Property Name Value (doubled for some unknown reason)
+
DWORD    CRC
DWORD 0x00000000
+
DWORD    Memory
BYTE Data Type, 01=UInt8, 02=UInt16, 03=UInt32, 07=SInt32, 08=SInt64, 09=Float32, 0B=Boolean
+
WORD×3   Version (always 4, 8, 4)
BYTE KeyType, 0x00 = 0 reps, 0x80 = more than 0 reps
+
DWORD   Appearance flags (0x05000000) (See Appendix 2.2 for more information)
WORD 0x0000
+
DWORD   Unknown (always 0xc772bf98)
DWORD Rep Count (this one appears only if KeyType = 0x80)
+
BYTE Min Tract X Coordinate  (normally between 0x40 and 0x7F)
    DATA Property Value (repeated Rep Count times, type according to Data Type)
+
BYTE Min Tract Z Coordinate  (normally between 0x40 and 0x7F)
 +
BYTE Max Tract X Coordinate  (normally between 0x40 and 0x7F)
 +
BYTE Max Tract Z Coordinate  (normally between 0x40 and 0x7F)
 +
WORD X Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
 +
WORD Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
 +
DWORD Count of Properties
 +
    SGPROP    SaveGame Properties, repeated Count times
 +
DWORD Group ID of Network Model Exemplar (see Appendix 4.1)
 +
DWORD Type ID of Network Model Exemplar (0x6534284a)
 +
DWORD Instance ID of Network Model Exemplar
 +
BYTE Matrix flag (1 = no matrix, 5 = matrix is present)
 +
    FLOAT32×9  Transformation matrix
 +
FLOAT32 X Coordinate
 +
FLOAT32 Y Coordinate
 +
FLOAT32 Z Coordinate
 +
 
 +
    # Next follows 4 times a data structure that contains information for
 +
    # drawing a texture.
 +
    3 x FLOAT32  (x, y, z) coordinates of the vertex
 +
    2 x FLOAT32  (u, v) coordinates for texture mapping
 +
    4 x BYTE    (r, g, b, a) values indicating a color (always #dedbddff).
 +
 
 +
DWORD TextureID / PathID
 +
BYTE Wealth texture  (See Appendix 2.6)
 +
DWORD Base texture  (See Appendix 2.7)
 +
BYTE   Orientation
 +
BYTES×2 Unknown  (Small values)
 +
Byte Flag for crossings (1 for crossings of two networks, 0 for single network)
 +
    BYTE Network Type  (See Appendix 2.4 for more information)
 +
    BYTE Connection, West  (See Appendix 2.5 for more information)
 +
    BYTE Connection, North  (See Appendix 2.5 for more information)
 +
    BYTE Connection, East  (See Appendix 2.5 for more information)
 +
    BYTE Connection, South  (See Appendix 2.5 for more information)
 +
DWORD Number of blocks for retaining walls (always 0 for model-based network tiles)
 +
    DWORD Retaining wall texture IID (See Appendix 2.9)
 +
    # Followed by three vertex blocks of the form:
 +
        Float32×5    (x, y, z, u, v) coordinates
 +
        BYTE×4      (r, g, b, a) color
 +
FLOAT32 Xmin
 +
FLOAT32 Xmax
 +
FLOAT32 Ymin
 +
FLOAT32 Ymax
 +
FLOAT32 Zmin
 +
FLOAT32 Zmax
 +
DWORD Construction states (See Appendix 2.8)
 +
DWORD Path ID derived from AutoPathBase, otherwise 0
 +
DWORD×3 Unknown (apparently always 0x00000000)
 +
DWORD Demolishing costs
 +
DWORD Unknown (always 0)
 +
FLOAT32×3 Unknown (usually 0 or very small -- seem to be related to matrix)
 +
BYTE×5 Unknown (apparently always 0x00)
 +
DWORD pillar ID (if non-zero, it is followed by a block):
 +
    FLOAT32 pillar rotation
 +
    FLOAT32 pillar offset X
 +
    FLOAT32 pillar offset Y
 +
    FLOAT32 pillar offset Z
 
</pre>
 
</pre>
  
===Appendix 3.2 - Apperance Flag (offset 0x0017)===
+
==Appendix 4.1 - Network Model Exemplars==
<pre>
+
For a list of Group IDs, see [[Model Exemplar]].
    0x01 (00000001b) - Network that appears in the game (if this is off, the network has been deleted)
 
    0x02 (00000010b) - ? (unused)
 
    0x04 (00000100b) - ? (always on)
 
    0x08 (00001000b) - ? (unused)
 
    0x40 (01000000b) - The network is burnt
 
    0x80 (10000000b) - ? (unused)
 
</pre>
 
  
===Appendix 3.3 - Orientation===
+
=Network Tunnel Subfile (0x8a4bd52b)=
<pre>
 
    0x00 = North
 
    0x01 = East
 
    0x02 = South
 
    0x03 = West
 
    0x80 = North, mirrored
 
    0x81 = East, mirrored
 
    0x82 = south, mirrored
 
    0x83 = West, mirrored
 
</pre>
 
  
===Appendix 3.4 - Network Type===
+
==Structure==
 +
List of records of the form:
 
<pre>
 
<pre>
    0x00 = ?
+
DWORD    Size
     0x01 = ?
+
DWORD    CRC
    0x02 = ?
+
DWORD    Memory
    0x03 = ?
+
WORD×4  Version (always 2, 4, 8, 4)
    0x04 = ?
+
DWORD    Appearance flags (0x05000000)  (See Appendix 2.2 for more information)
    0x05 = ?
+
DWORD    Unknown (always 0xc772bf98)
    0x06 = ?
+
...
    0x07 = ?
+
...     # Same as Prebuilt Network Subfile structure
 +
...
 +
DWORD Demolishing costs
 +
BYTE×25 Unknown (apparently always 0x00)
 +
BYTE Unknown (always 0x01)
 +
DWORD Opposing tunnel portal memory address
 +
DWORD Opposing tunnel portal subfile TID (0x8a4bd52b)
 
</pre>
 
</pre>
 
===Appendix 3.5 - Connections===
 
<pre>??</pre>
 
 
  
 
{{Navbox/SUBFILE}}
 
{{Navbox/SUBFILE}}
 
[[Category:Savegame/Subfiles]]
 
[[Category:Savegame/Subfiles]]

Latest revision as of 23:09, 8 September 2024

This page pertains to the format of the Network Subfiles within the Savegame files. These files have Type IDs 6A0F82B2 (Network Index), C9C05C6E (Network Subfile 1) and CA16374F (Network Subfile 2). They can be viewed using the SC4 Savegame Explorer, but not edited. These subfiles were decoded by RippleJet and completed by smf_16.

Network Index Subfile (6A0F82B2)

Description

This index file contains a list of all network tiles, with links to the two network files where the records can be found.

Network Index Subfile Structure

Network Index Subfile Body

DWORD	Subfile Size in bytes
DWORD	CRC
DWORD	Memory address
WORD	Major Version  (0x0007 for built cities, but 0x0003 for Maxis' own, unbuilt cities)
DWORD	City Tile Count  (4096, 16384 or 65536 depending on city size)
DWORD	Count of Network Tiles  (0 for a new city)
   DWORD	Tile Number  (See Appendix 1.1 for more information)
   DWORD	Link: Memory address
   DWORD	Link: Subfile Type ID
   DWORD	Count of blocks  (either 0 or 10)
      DWORD	Block Number (first one is 0, last one is 9)
      DWORD	Count  (anything between 0-16. Number of byte blocks)
         BYTE×8   	Unknown block of bytes. Small numbers < 10
   DWORD        Count of pointers to follow
      DWORD     Memory address of automata
      DWORD     Type ID of automata. Seen 0x896e75af (cSC4Pedestrian), 0x4a416254 (cSC4TrainCard),
                0x896e714a (cSC4Vehicle), 0xaa9f4a3d (cSC4Bus) and 0x4a5b69ed (cSC4TrailerVehicle).
                Other automata might exist as well, refer to all Type ids in Savegames.
   BYTE	Unknown  (always 0x00)
   DWORD	Unknown  (Seen 0 and 2)
   DWORD	Unknown  (Only seen 2)
   DWORD	Unknown  (Seen 0 and 4)
   FLOAT32	Unknown  (Small values, e.g. 0.0, 2.0, 5.0, 6.0, 8.0)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   FLOAT32	Unknown  (Small values, e.g. 0.0, 2.0, 5.0, 6.0, 8.0)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   FLOAT32	Unknown  (Small values, e.g. 0.0, 2.0, 5.0, 6.0, 8.0)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   FLOAT32	Unknown  (Small values, e.g. 0.0, 2.0, 5.0, 6.0, 8.0)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (0 or 1)
   WORD	Unknown  (always 0)
   DWORD	Count of blocks to follow
       DWORD    Block number
       FLOAT32  Unknown
       WORD     Unknown (only seen 0x00)
DWORD           Count of network intersections (such as + and T intersections) in city
   DWORD        Link: Memory address
   DWORD        Link: Subfile Type ID of a network subfile
   BYTE         Unknown  (only seen 0x00)
   DWORD        Count of blocks to follow  (only seen 0 or 1)
      DWORD     Memory address
      DWORD     Subfile Type ID (only seen 0x4c22ae53 Mass Transit Train)

   # The values below seem to indicate what directions are enabled on this
   # network. That's why they are repeated 4 times for west, north, east
   # and south.
      DWORD     Tentatively indicates how many of following floats are meaningful (0, 1, 2 or 3).
      BOOLEAN   Unknown (either 0 or 1)
      FLOAT32×3 Unknown (often small values such as 0.0, 1.2, 6.0, 8.0)

DWORD   Count of transit-enabled lot tiles to follow
   WORD         Z tile
   WORD         X tile
   DWORD        Unknown (always 0x00000001)
   DWORD        Memory address of network tile
   DWORD        Type ID of network (0xc9c05c6e)
DWORD	Unknown  (only seen 0x00000000)
DWORD	Unknown  (only seen 0x00000000)
DWORD	Tile X  (63, 127 or 255 for a new city, smaller for built up cities, probably max coordinate that ever has had a network)
DWORD	Tile Z  (63, 127 or 255 for a new city, smaller for built up cities, probably max coordinate that ever has had a network)
FLOAT32	Unknown  (Small value. 0.00 for a new city)
BOOLEAN	Unknown  (always 1, true)
FLOAT32	Unknown  (Small value. 0.00 for a new city)
BOOLEAN	Unknown  (always 1, true)
DWORD	Count of blocks to follow  (Does not appear if version = 0x0003)
   DWORD         Memory address
   DWORD         Type ID of network (seen 0xc9c05c6e and 0x49c1a034).
   DWORD         Count of DWORDs to follow (only seen 0x00000000 though)
       DWORD     Unknown (never seen, but assumed, see below)
   WORD          Unknown (all kinds of values, change when saving without doing anything)
   DWORD         Count of DWORDs to follow
       DWORD     Unknown, might as well be 4 bytes
   WORD          Unknown (all kinds of values, change when saving without doing anything)
   DWORD         Count of DWORDs to follow
       DWORD     Unknown, might as well be 4 bytes
   WORD          Unknown (all kinds of values, change when saving without doing anything)
   DWORD         Count of DWORDs to follow
       DWORD     Unknown, might as well be 4 bytes
   WORD          Unknown (all kinds of values, change when saving without doing anything)

Appendix 1.1

Tile numbering starts in the NW corner, which is tile number 0x00000000.

  • Tile number 0x00000001 is to the east of that tile.
  • In a small city, the first tile in the second row is 0x00000040.
  • In a medium city, the first tile in the second row is 0x00000080.
  • In a large city, the first tile in the second row is 0x00000100.
  • In a small city, the last tile in the last row is 0x00000FFF.
  • In a medium city, the last tile in the last row is 0x00003FFF.
  • In a large city, the last tile in the last row is 0x0000FFFF.


Network Subfile 1 (C9C05C6E)

Structure

Network Subfile 1 Body

List of texture-based network tiles consisting of records of the form:

DWORD	Record Size
DWORD	CRC
DWORD	Memory
WORD×2	Version (always 8, 4)
DWORD	Appearance Flags  (Always 0x05000000)  (See Appendix 2.2 for more information)
DWORD	0xC772BF98  (always the same)
BYTE	Min Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	Min Tract Z Coordinate  (normally between 0x40 and 0x7F)
BYTE	Max Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	Max Tract Z Coordinate  (normally between 0x40 and 0x7F)
WORD	X Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
WORD	Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
DWORD	Count of Properties
    SGPROP    	SaveGame Properties, repeated Count times  (See Appendix 2.1 for more information)
DWORD	Group ID  (always 0x00000000)
DWORD	Type ID  (always 0x00000000)
DWORD	Instance ID  (always 0x00000000)
BYTE	Unknown Flag (0 or 1)
FLOAT32	X Coordinate
FLOAT32	Y Coordinate
FLOAT32	Z Coordinate

    # Next follows 4 times a data structure that contains information for
    # drawing a texture.
    3 x FLOAT32  (x, y, z) coordinates of the vertex
    2 x FLOAT32  (u, v) coordinates for texture mapping
    4 x BYTE     (r, g, b, a) values indicating a color (always #dedbddff).

DWORD	TextureID / PathID
BYTE	Wealth texture  (See Appendix 2.6)
DWORD	Base texture  (See Appendix 2.7)
BYTE	Orientation  (See Appendix 2.3 for more information)
BYTES×2	Unknown  (Small values)
Byte	Flag for crossings (1 = crossings of two networks, 0 = single network)
    BYTE	Network Type  (See Appendix 2.4 for more information)
    BYTE	Connection, West  (See Appendix 2.5 for more information)
    BYTE	Connection, North  (See Appendix 2.5 for more information)
    BYTE	Connection, East  (See Appendix 2.5 for more information)
    BYTE	Connection, South  (See Appendix 2.5 for more information)
DWORD	Number of blocks for retaining walls
    DWORD	Retaining wall texture IID (See Appendix 2.9)
    # Followed by three vertex blocks of the form:
        Float32×5    (x, y, z, u, v) coordinates
        BYTE×4       (r, g, b, a) color
FLOAT32	Xmin
FLOAT32	Xmax
FLOAT32	Ymin
FLOAT32	Ymax
FLOAT32	Zmin
FLOAT32	Zmax
DWORD	Construction states (See Appendix 2.8)
DWORD	Alternate path ID (derived from AutoPathBase or TE-Lot), otherwise 0
DWORD×3	Unknown  (All 0)
DWORD	Demolishing costs
DWORD	Unknown  (0x00000000)

Appendix 2.1 - Structure of SGPROP (SaveGame Properties)

DWORD   Property Name Value
DWORD	Property Name Value  (doubled for some unknown reason)
DWORD	0x00000000
BYTE	Data Type, 01=UInt8, 02=UInt16, 03=UInt32, 07=SInt32, 08=SInt64, 09=Float32, 0B=Boolean
BYTE	KeyType, 0x00 = 0 reps, 0x80 = more than 0 reps
WORD	0x0000
DWORD	Rep Count  (this one appears only if KeyType = 0x80)
    DATA	Property Value (repeated Rep Count times, type according to Data Type)

SaveGame Properties

Properties known to appear on network tiles are listed below (See also the Prop Subfile).

0x4835C6A6 (Boolean) = Unknown (1?)
0x4835C6A7 (UInt32×2) = TE-Lot network flags:
    DWORD - Unknown (0?)
    DWORD - Flags (0xSSEENNWW) (0x00000000 if custom path is used)
0x4835C6A9 (UInt32) = TE-Lot custom path IID
0x4835C6AA (Byte) = Bitmask for Onewayroad directions:
    0b00000001 - Edge West: direction West to East
    0b00000010 - Edge West: direction East to West
    0b00000100 - Edge North: direction North to South
    0b00001000 - Edge North: direction South to North
    0b00010000 - Edge East: direction West to East
    0b00100000 - Edge East: direction East to West
    0b01000000 - Edge South: direction North to South
    0b10000000 - Edge South: direction South to North
0x4835C6AB (UInt32) = Unknown (some flags related to puzzle pieces?)
0xAA24AE57 (UInt32) = Unknown (0?)

Appendix 2.2 - Appearance Flags

    0x01000000 - Render the network shadow
    0x04000000 - Render the network

Appendix 2.3 - Orientation

    0x00 = North
    0x01 = East
    0x02 = South
    0x03 = West
    0x80 = North, mirrored
    0x81 = East, mirrored
    0x82 = South, mirrored
    0x83 = West, mirrored

Appendix 2.4 - Network Type

    0x00 = Road
    0x01 = Rail
    0x02 = Elevated Highway
    0x03 = Street
    0x04 = Pipe
    0x05 = Powerline
    0x06 = Avenue
    0x07 = Subway
    0x08 = Lightrail
    0x09 = Monorail
    0x0a = Onewayroad
    0x0b = Dirtroad
    0x0c = Ground Highway

Appendix 2.5 - Connections

The Network Flags are denoted in octal representation in RUL files:

0x00 = 0o00 (no connection)
0x01 = 0o01 (diagonal left)
0x02 = 0o02 (orthogonal)
0x03 = 0o03 (diagonal right)
0x04 = 0o04 (median)
0x09 = 0o11 (blend left)
0x0b = 0o13 (blend right)
0x11 = 0o21 (diagonal switch left)
0x13 = 0o23 (diagonal switch right)
...
0x32 = 0o62 (wye)
...

Appendix 2.6 - Wealth Textures

0 = default texture
1 = grass/low density $
2 = grass/low density $$
3 = grass/low density $$$
4 = medium/high density $
5 = medium/high density $$
6 = medium/high density $$$
7 = I-ag/landfill

Appendix 2.7 - Base textures

0x00000000 = None
0x08100000 = Pavement $
0x08200000 = Pavement $$
0x08300000 = Pavement $$$
0x08400000 = Dirt

Appendix 2.8 - Construction states

This bitset encodes which networks are present on the tile, whether the tile has been fully constructed, as well as several other flags. Some dual-networks like HRW built by the over-click method can only be seen here.

0x00000001 = Road (bit 0)
0x00000002 = Rail (bit 1)
0x00000004 = Highway (bit 2)
...  (see Appendix 2.4)
0x00000800 = Dirtroad (bit 11)
0x00001000 = Ground Highway (bit 12)
---
0x00002000 = matching path file exists (for TE tiles: set if fully connected to network)
0x00004000 = network not fully constructed yet (always set for TE tiles?)
0x00008000 = rendering state (set if tile has been displayed since last rotation of the map)
---
0x00040000 = bridge (...tentatively)
0x00080000 = alpha off (for tunnel portal)
0x00100000 = blue auto-place preview effect (set for all static puzzle pieces)
0x00200000 = TE tile
0x00400000 = anchored tile (static puzzle piece/tunnel portal)
0x00800000 = tunnel portal
0x01000000 = terrain triangles transposed
0x02000000 = render western triangle of base and overlay, hole if 0
             (set for texure-based tiles and for model-based tiles with wealth textures, not set for TE tiles)
0x04000000 = render eastern triangle of base and overlay, hole if 0
             (set for texure-based tiles and for model-based tiles with wealth textures, not set for TE tiles)
0x08000000 = render terrain
             (set for model-based network tiles and TE tiles, not set for purely texture-based tiles)
0x10000000 = network fully constructed (for TE tiles: set if fully connected to network)
0x20000000 = is lit
0x40000000 = alpha off (for retaining wall/pillar)

Appendix 2.9 - Retaining wall textures

0x00BB0000 - retaining wall
0x00BB0200 - railing
0x08080000 - pillar
0x0912220E - concrete

Network Subfile 2 (CA16374F)

This subfile contains network tiles related to the subway network and is similar to the Pipe Occupant Subfile.

Network Subfile 2 Structure

List of records of the form:

Network Subfile 2 Body

DWORD	Record Size
DWORD	CRC
DWORD	Memory
WORD×4	Version (always 2, 3, 8, 4)
DWORD	Appearance Flags  (Always 0x05000000)  (See Appendix 2.2 for more information)
DWORD	0xC772BF98  (always the same)
BYTE	Min Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	Min Tract Z Coordinate  (normally between 0x40 and 0x7F)
BYTE	Max Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	Max Tract Z Coordinate  (normally between 0x40 and 0x7F)
WORD	X Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
WORD	Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
DWORD	Count of Properties  (I've only seen 0x00000000)
    SGPROP    	SaveGame Properties, repeated Count times  (See Appendix 2.1 for more information)
DWORD	Group ID  (always 0x00000000)
DWORD	Type ID  (always 0x00000000)
DWORD	Instance ID  (always 0x00000000)
BYTE	Unknown  (Always 0x05)
FLOAT32	Unknown  (Normally 0, -1 or 1)
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 0, -1 or 1)
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 1)
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 0, -1 or 1)
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 0, -1 or 1)
FLOAT32	Xmax
FLOAT32	Ymax
FLOAT32	Zmax
FLOAT32	Xmin
FLOAT32	Ymin
FLOAT32	Zmin
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 0)
DWORD	Unknown  (Always 0xFF000000)
FLOAT32	X Coordinate
FLOAT32	Y Coordinate
FLOAT32	Z Coordinate
FLOAT32	Unknown  (Normally 0)
FLOAT32	Unknown  (Normally 1)
DWORD	Unknown  (Always 0xFF000000)
FLOAT32	X Coordinate
FLOAT32	Y Coordinate
FLOAT32	Z Coordinate
FLOAT32	Unknown  (Normally 1)
FLOAT32	Unknown  (Normally 1)
DWORD	Unknown  (Always 0xFF000000)
FLOAT32	X Coordinate
FLOAT32	Y Coordinate
FLOAT32	Z Coordinate
FLOAT32	Unknown  (Normally 1)
FLOAT32	Unknown  (Normally 0)
DWORD	Unknown  (Always 0xFF000000)
DWORD	TextureID / PathID
BYTES×5	Unknown  (Small values)
BYTE	Orientation  (See Appendix 2.3 for more information)
BYTES×3	Unknown  (Small values)
BYTE	Network Type  (See Appendix 2.4 for more information)
BYTE	Connection, West  (See Appendix 2.5 for more information)
BYTE	Connection, North  (See Appendix 2.5 for more information)
BYTE	Connection, East  (See Appendix 2.5 for more information)
BYTE	Connection, South  (See Appendix 2.5 for more information)
BYTES×4	Unknown  (Small values)
FLOAT32	Xmin
FLOAT32	Xmax
FLOAT32	Ymin
FLOAT32	Ymax
FLOAT32	Zmin
FLOAT32	Zmax
BYTE	Unknown  (Always 128)
BYTE	Unknown  (Always 32)
BYTE	Unknown  (Always 0)
BYTE	Unknown  (Seen 16-21)
DWORD×4	Unknown  (All 0)
DWORD	Demolishing costs
DWORD	Unknown  (0x00000000)
WORD	Unknown  (0x0000)
FLOAT32	Unknown  (Normally 1)
DWORD	Number of extra blocks  (0, 1, 2 or 3)

# Below follow 5 arrays defining the sides of the hole. If an array is empty, there is
# no texture to be rendered at that side (typically for straight sections). Order is
# west, north, east, south, bottom.
DWORD	Count  (Either 0 or 4)
   3 x FLOAT32  (x, y, z) coordinates of the vertex
   2 x FLOAT32  (u, v) coordinates for texture mapping (normally 0, 0.75 or 1)
   4 x BYTE     (r, g, b, a) values indicating a color (either #ffffffff or #ffffff80).
DWORD	Count  (Either 0 or 4)
   3 x FLOAT32  (x, y, z) coordinates of the vertex
   2 x FLOAT32  (u, v) coordinates for texture mapping (normally 0, 0.75 or 1)
   4 x BYTE     (r, g, b, a) values indicating a color (either #ffffffff or #ffffff80).
DWORD	Count  (Either 0 or 4)
   3 x FLOAT32  (x, y, z) coordinates of the vertex
   2 x FLOAT32  (u, v) coordinates for texture mapping (normally 0, 0.75 or 1)
   4 x BYTE     (r, g, b, a) values indicating a color (either #ffffffff or #ffffff80).
DWORD	Count  (Either 0 or 4)
   3 x FLOAT32  (x, y, z) coordinates of the vertex
   2 x FLOAT32  (u, v) coordinates for texture mapping (normally 0, 0.75 or 1)
   4 x BYTE     (r, g, b, a) values indicating a color (either #ffffffff or #ffffff80).
DWORD	Count  (Either 0 or 4)
   3 x FLOAT32  (x, y, z) coordinates of the vertex
   2 x FLOAT32  (u, v) coordinates for texture mapping (normally 0, 0.75 or 1)
   4 x BYTE     (r, g, b, a) values indicating a color (either #ffffffff or #ffffff80).

DWORD	Unknown  (Always 0x00000000)

# Next follow 16 floats, representing the values of the transformation matrix for the model
#  | a b c d |
#  | d e f g |
#  | h i j k |
#  | l m n o |
# d, g and k are the translation components and are set to the position *in the city*.
16 x FLOAT32

DWORD	X Tile
DWORD	Z Tile
BOOLEAN	Unknown  (Always 0)
BOOLEAN	Unknown  (Either 0 or 1, false or true)
BOOLEAN	Unknown  (Either 0 or 1, false or true)
FLOAT32	Y Coordinate
FLOAT32	Y Coordinate
FLOAT32	Y Coordinate
FLOAT32	Y Coordinate
FLOAT32	Y Coordinate
DWORD	0xCA16374F  (Subfile ID)
DWORD	0x00000000  (always the same)

Prebuilt Network Subfile (0x49c1a034)

The prebuilt network subfile contains all model-based network tiles with a prefabricated model, such as elevated highways and monorail.

Structure

List of records of the form:

DWORD    Size
DWORD    CRC
DWORD    Memory
WORD×3   Version (always 4, 8, 4)
DWORD    Appearance flags (0x05000000)  (See Appendix 2.2 for more information)
DWORD    Unknown (always 0xc772bf98)
BYTE	 Min Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	 Min Tract Z Coordinate  (normally between 0x40 and 0x7F)
BYTE	 Max Tract X Coordinate  (normally between 0x40 and 0x7F)
BYTE	 Max Tract Z Coordinate  (normally between 0x40 and 0x7F)
WORD	 X Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
WORD	 Z Tract Size (power of 2)  (only seen 0x0002 ... 2² = 4 tiles)
DWORD	 Count of Properties
    SGPROP    	SaveGame Properties, repeated Count times
DWORD	 Group ID of Network Model Exemplar (see Appendix 4.1)
DWORD	 Type ID of Network Model Exemplar (0x6534284a)
DWORD	 Instance ID of Network Model Exemplar
BYTE	 Matrix flag (1 = no matrix, 5 = matrix is present)
    FLOAT32×9   Transformation matrix
FLOAT32	 X Coordinate
FLOAT32	 Y Coordinate
FLOAT32	 Z Coordinate

    # Next follows 4 times a data structure that contains information for
    # drawing a texture.
    3 x FLOAT32  (x, y, z) coordinates of the vertex
    2 x FLOAT32  (u, v) coordinates for texture mapping
    4 x BYTE     (r, g, b, a) values indicating a color (always #dedbddff).

DWORD	TextureID / PathID
BYTE	Wealth texture  (See Appendix 2.6)
DWORD	Base texture  (See Appendix 2.7)
BYTE    Orientation
BYTES×2	Unknown  (Small values)
Byte	Flag for crossings (1 for crossings of two networks, 0 for single network)
    BYTE	Network Type  (See Appendix 2.4 for more information)
    BYTE	Connection, West  (See Appendix 2.5 for more information)
    BYTE	Connection, North  (See Appendix 2.5 for more information)
    BYTE	Connection, East  (See Appendix 2.5 for more information)
    BYTE	Connection, South  (See Appendix 2.5 for more information)
DWORD	Number of blocks for retaining walls (always 0 for model-based network tiles)
    DWORD	Retaining wall texture IID (See Appendix 2.9)
    # Followed by three vertex blocks of the form:
        Float32×5    (x, y, z, u, v) coordinates
        BYTE×4       (r, g, b, a) color
FLOAT32	Xmin
FLOAT32	Xmax
FLOAT32	Ymin
FLOAT32	Ymax
FLOAT32	Zmin
FLOAT32	Zmax
DWORD	Construction states (See Appendix 2.8)
DWORD	Path ID derived from AutoPathBase, otherwise 0
DWORD×3	Unknown (apparently always 0x00000000)
DWORD	Demolishing costs
DWORD	Unknown (always 0)
FLOAT32×3  Unknown (usually 0 or very small -- seem to be related to matrix)
BYTE×5	Unknown (apparently always 0x00)
DWORD	pillar ID (if non-zero, it is followed by a block):
    FLOAT32	pillar rotation
    FLOAT32	pillar offset X
    FLOAT32	pillar offset Y
    FLOAT32	pillar offset Z

Appendix 4.1 - Network Model Exemplars

For a list of Group IDs, see Model Exemplar.

Network Tunnel Subfile (0x8a4bd52b)

Structure

List of records of the form:

DWORD    Size
DWORD    CRC
DWORD    Memory
WORD×4   Version (always 2, 4, 8, 4)
DWORD    Appearance flags (0x05000000)  (See Appendix 2.2 for more information)
DWORD    Unknown (always 0xc772bf98)
...
...     # Same as Prebuilt Network Subfile structure
...
DWORD	Demolishing costs
BYTE×25	Unknown (apparently always 0x00)
BYTE	Unknown (always 0x01)
DWORD	Opposing tunnel portal memory address
DWORD	Opposing tunnel portal subfile TID (0x8a4bd52b)