AGN (FSX): Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
(New page: {{:Ambox-Content-WIP}} {{Infobox-Applicable-FSVersion | FSXI = false | FSXA = true | FSX = true | FS2004 = false | FS2002 = false | FS2000 = unknown | FS98 = unknown }} This document des...)
 
Line 30: Line 30:
=== GBDD ===
=== GBDD ===


Unknown
Contains information about autogen generic buildings


   int unknown0 (normally 10)
   int size
   int unknown1 (normally 10)
  int percentage of 1 and 2 floor buildings (normally 10)
   int unknown2 (normally 10)
   int percentage of 3 to 5 floor buildings (normally 10)
   int unknown3 (normally 10)
   int percentage of 6 to 8 floor buildings (normally 10)
   int percentage of 9 to 12 floor buildings(normally 10)


=== PREG ===
=== PREG ===

Revision as of 14:21, 14 January 2009

This document describes the FSX format for autogen (AGN) files. This description is not yet complete, so feel free to add more information if you have any.

Sections

The AGN file uses the RIFF format, this means that the file consists of different sections. Each section starts with a four character label, followed by the size of the content in bytes (this size is thus without the length of the header itself).

The main RIFF section itself has one additional parameter, this is a four character string that indicates the type of RIFF AGN file. For an FSX AGN file the value should always be AGNX.

The following subsection show more details about the content of these different sections.

VERS

Contains versions information about the AGN file.

 int version (normally 4)
 int unknown

GBDD

Contains information about autogen generic buildings

 int size
 int percentage of 1 and 2 floor buildings (normally 10)
 int percentage of 3 to 5 floor buildings (normally 10)
 int percentage of 6 to 8 floor buildings (normally 10)
 int percentage of 9 to 12 floor buildings(normally 10)

PREG

For vegatation information

PRDE

For vegatation polygon. Contains:

 GUID vegatation type

For each polygon:

 int number of vertices

For each vertex:

 single x
 single y

The x and y coordinates are given as offset in the LOD13 square (range 0 till 1).