• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Array compiler error

Messages
243
Country
italy
I'm making some experimentations with the array to discover how this function works.
So I prepared a .def file as follow.

;
; Runway Center line - White Hi
;
<
45,664704 | 09,723824 | 779,003F | 284,86 | Rwy28
Omni_LO | 0 | 0 | 0 | White-Hi
Omni_LO | 0 | 15 | 0 | White-Hi
Omni_LO | 0 | 30 | 0 | White-Hi
Omni_LO | 0 | 45 | 0 | White-Hi
Omni_LO | 0 | 60 | 0 | White-Hi
Omni_LO | 0 | 75 | 0 | White-Hi
Omni_LO | 0 | 90 | 0 | White-Hi
Omni_LO | 0 | 105 | 0 | White-Hi
Omni_LO | 0 | 120 | 0 | White-Hi
Omni_LO | 0 | 135 | 0 | White-Hi
Omni_LO | 0 | 150 | 0 | White-Hi
Omni_LO | 0 | 165 | 0 | White-Hi
Omni_LO | 0 | 180 | 0 | White-Hi
Omni_LO | 0 | 195 | 0 | White-Hi
Omni_LO | 0 | 210 | 0 | White-Hi
Omni_LO | 0 | 225 | 0 | White-Hi
Omni_LO | 0 | 240 | 0 | White-Hi
Omni_LO | 0 | 255 | 0 | White-Hi
Omni_LO | 0 | 270 | 0 | White-Hi
Omni_LO | 0 | 285 | 0 | White-Hi
Omni_LO | 0 | 300 | 0 | White-Hi
Omni_LO | 0 | 315 | 0 | White-Hi
Omni_LO | 0 | 330 | 0 | White-Hi
Omni_LO | 0 | 345 | 0 | White-Hi
Omni_LO | 0 | 360 | 0 | White-Hi
Omni_LO | 0 | 375 | 0 | White-Hi
Omni_LO | 0 | 390 | 0 | White-Hi
Omni_LO | 0 | 405 | 0 | White-Hi
Omni_LO | 0 | 420 | 0 | White-Hi
Omni_LO | 0 | 435 | 0 | White-Hi

/>

When I use the make array function it returns an error

Parsing document: C:\Users\Administrator\Desktop\Scenery\LIME AFLT\Arrays\RwyCL.xml

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 14, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 26, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 38, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 50, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 62, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 74, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 86, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 98, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 110, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 122, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 134, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 146, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 158, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 170, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 182, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 194, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 206, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 218, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 230, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 242, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 254, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 266, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 278, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 290, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 302, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 314, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 326, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 338, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 350, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.

ERROR C2033: XML Parse Error (line, column, error)

ERROR: 362, 27, Error parsing '284,9' as double datatype.

The attribute: 'heading' has an invalid value according to its data type.


ERROR: Schema errors detected, compilation failed!

Parse complete!

Anyway the procedure generates the xml file, but I do not understand what could be the problem.

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0"
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<SceneryObject
  lat="45,664704"
  lon="9,723824"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6647386157487"
  lon="9,72363732036419"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6647732314974"
  lon="9,72345064061295"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6648078472461"
  lon="9,72326396074628"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6648424629948"
  lon="9,72307728076418"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6648770787435"
  lon="9,72289060066664"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6649116944923"
  lon="9,72270392045367"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6649463027921"
  lon="9,72251723729728"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6649809162605"
  lon="9,72233055598773"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6650155294249"
  lon="9,72214387444736"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6650501422852"
  lon="9,72195719267615"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6650847548415"
  lon="9,72177051067407"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6651193670937"
  lon="9,72158382844114"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6651539790419"
  lon="9,72139714597739"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6651885906861"
  lon="9,72121046328276"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6652232020262"
  lon="9,72102378035729"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6652578130623"
  lon="9,72083709720099"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6652924237943"
  lon="9,72065041381386"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6653270342223"
  lon="9,72046373019585"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6653616443462"
  lon="9,720277046347"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6653962541661"
  lon="9,72009036226737"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6654308636819"
  lon="9,71990367795691"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6654654728937"
  lon="9,71971699341557"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6655000818014"
  lon="9,7195303086434"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6655346904051"
  lon="9,71934362364044"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6655692987047"
  lon="9,71915693840666"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6656039067003"
  lon="9,71897025294199"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6656385143918"
  lon="9,71878356724648"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6656731217793"
  lon="9,71859688132025"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>

<SceneryObject
  lat="45,6657077288627"
  lon="9,71841019516309"
  alt="237,441"
  altitudeIsAgl="FALSE"
  pitch="0.0"
  bank="0.0"
  heading="284,9"
  imageComplexity="NORMAL">
  <LibraryObject name="e2e4a2fd421bde9d2df45984cdfb87fa" scale="1.0" />
</SceneryObject>
</FSData>

I also tried to write the decimals using "dot" instead of "comma" but it does not seem to have any effect.
Thanks
 
OK, I partially solved the problem discovering that it is connected with the fact that my Windows 7 64bit (Italian version), uses comma (,) as a decimal separator. Infact some values inside the .xml file uses comma (,) as separator and this creates the problem. I temporary inverted the decimal separator (comma) with the gorup number separator (dot) and now the array creation worked correctly.
Is there something that could be possible to do to solve this situation apart from doing the Windows system separator inversion?

I use AFLT v. 1.1.0.3

Thanks
 
When I use the make array function it returns an error
As noted in a post above, I am away from my development system for the next little while and unable to provide investigative support. From the nature of the error, I suspect the "," decimal separator is cauing difficulty. But there's nothing I can do about it at the moment other than suggest you convert the "," to "." in the .xml file.

Don
 
Back
Top