Flora Subfile

From SC4 Encyclopaedia

(Difference between revisions)
Jump to: navigation, search
m (navbox)
(clarity, layout)
Line 1: Line 1:
This page pertains to the format of the '''Flora Subfile''' within the [[Savegame]] files. This file has [[Type ID]] ''A9C05C85''. It can be viewed using the [[SC4 Savegame Explorer]], but not edited. This particular subfile was decoded by {{people|RippleJet}}
This page pertains to the format of the '''Flora Subfile''' within the [[Savegame]] files. This file has [[Type ID]] ''A9C05C85''. It can be viewed using the [[SC4 Savegame Explorer]], but not edited. This particular subfile was decoded by {{people|RippleJet}}
-
<h1>Structure</h1>
+
= Flora Subfile (A9C05C85) =
 +
== Description ==
 +
This subfile contains flora in the city, in a similar way as the [[Prop Subfile]]
 +
== Structure ==
<pre>DWORD Size
<pre>DWORD Size
DWORD CRC
DWORD CRC
Line 18: Line 21:
WORD Z Tract Size? (power of 2)  (only seen 0x0002)
WORD Z Tract Size? (power of 2)  (only seen 0x0002)
DWORD Count of Properties  (I've seen 0x00000000 and 0x00000001)
DWORD Count of Properties  (I've seen 0x00000000 and 0x00000001)
-
     SGPROP    SaveGame Properties, repeated Count times  (*
+
     SGPROP    SaveGame Properties, repeated Count times  (Appendix 1)
DWORD Group ID  (from the Prop Exemplar)
DWORD Group ID  (from the Prop Exemplar)
DWORD Type ID  (from the Prop Exemplar)
DWORD Type ID  (from the Prop Exemplar)
Line 30: Line 33:
BYTE State
BYTE State
BYTE Orientation
BYTE Orientation
-
DWORD Object ID?  (this needs verification)
+
DWORD Object ID?  (this needs verification)</pre>
-
 
+
=== Appendix 1: Structure of SGPROP (SaveGame Properties) ===
-
*)
+
<pre>DWORD    Property Name Value
-
Structure of SGPROP (SaveGame Properties):
+
-
 
+
-
DWORD    Property Name Value
+
DWORD Property Name Value  (doubled for some unknown reason)
DWORD Property Name Value  (doubled for some unknown reason)
DWORD 0x00000000
DWORD 0x00000000
Line 43: Line 43:
WORD 0x0000
WORD 0x0000
DWORD Rep Count  (this one appears only if KeyType = 0x80)
DWORD Rep Count  (this one appears only if KeyType = 0x80)
-
     DATA Property Value (repeated Rep Count times, type according to Data Type)
+
     DATA Property Value (repeated Rep Count times, type according to Data Type)</pre>
-
 
+
-
**)
 
-
Apperance Flag (offset 0x0013)
 
-
    0x01 (00000001b) - Flora that appears in the game (if this is off, the flora has been deleted)
+
=== Appendix 2: Appearance Flag (offset 0x0013) ===
 +
<pre>    0x01 (00000001b) - Flora that appears in the game (if this is off, the flora has been deleted)
     0x02 (00000010b) - ? (unused)
     0x02 (00000010b) - ? (unused)
     0x04 (00000100b) - ? (always on)
     0x04 (00000100b) - ? (always on)
Line 56: Line 54:
     0x80 (10000000b) - Disabled ATC or Timed Prop (no animation)</pre>
     0x80 (10000000b) - Disabled ATC or Timed Prop (no animation)</pre>
-
<h1>Savegame Properties (SGProps)</h1>
+
== Savegame Properties (SGProps) ==
<pre>0x69DBEBE1 - Unknown
<pre>0x69DBEBE1 - Unknown
Data Type: Boolean
Data Type: Boolean

Revision as of 08:23, 30 September 2012

This page pertains to the format of the Flora Subfile within the Savegame files. This file has Type ID A9C05C85. It can be viewed using the SC4 Savegame Explorer, but not edited. This particular subfile was decoded by RippleJet

Contents

Flora Subfile (A9C05C85)

Description

This subfile contains flora in the city, in a similar way as the Prop Subfile

Structure

DWORD	Size
DWORD	CRC
DWORD	Memory
WORD	Major Version?  (only seen 0x0003)
WORD	Minor Version?  (only seen 0x0004)
WORD	Zot  (always 0x0000 for flora)
BYTE	Unknown  (only seen 0x00)
BYTE	Appearance Flag  (**
DWORD	0x74758926  (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)
WORD	Z Tract Size? (power of 2)  (only seen 0x0002)
DWORD	Count of Properties  (I've seen 0x00000000 and 0x00000001)
    SGPROP    	SaveGame Properties, repeated Count times  (Appendix 1)
DWORD	Group ID  (from the Prop Exemplar)
DWORD	Type ID  (from the Prop Exemplar)
DWORD	Instance ID  (from the Prop Exemplar)
DWORD	Instance ID  (the value given when the flora appeared)
FLOAT32	X Coordinate
FLOAT32	Y Coordinate
FLOAT32	Z Coordinate
DWORD	Date of current growth cycle
DWORD	Date of first appearance
BYTE	State
BYTE	Orientation
DWORD	Object ID?  (this needs verification)

Appendix 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)


Appendix 2: Appearance Flag (offset 0x0013)

    0x01 (00000001b) - Flora that appears in the game (if this is off, the flora has been deleted)
    0x02 (00000010b) - ? (unused)
    0x04 (00000100b) - ? (always on)
    0x08 (00001000b) - Flora (every entry in the flora subfile has 0x0D)
    0x40 (01000000b) - The flora is burnt
    0x80 (10000000b) - Disabled ATC or Timed Prop (no animation)

Savegame Properties (SGProps)

0x69DBEBE1 - Unknown
Data Type: Boolean
Rep Count: 0
Values seen: always False (never True)
This is rare, but has been found in the prop subfile, the flora subfile and the building subfile


Personal tools