Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

scasm and bglcomp VOR generation

Featured Replies

Hi,

 

I'm in need of help.

 

I'm trying to place VOR and NDBs around Sweden (old ones not existing today) but can't seem to do it. I tried scasm first and that generates a bgl file but when I the VOR doesn't show up in FS9. Then I tried bglcomp and a xml file that I pretty much ripped of the default scenery file containing VORs using a decompiler. That one doesn't even compile to a bgl file though.

 

Here is the test in the file for scasm:

 

Nav(3 4 58:28:51 15:41:03 114.00 75nm 0 TUA)

 

 

And here is the xml content:

 

 

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<FSData

version=”9.0”

xmlns:xsi='http://www.w3.org/20...Schema-instance'

xsi:noNamespaceSchemaLocation="bglcomp.xsd" >

<!-- Facility and scenery data goes here -->

<Vor

dme="TRUE"

dmeOnly="FALSE"

lat="58.4810"

lon="15.6842"

alt="60.96M"

type="HIGH"

frequency="114.000"

range="361237.0M"

magvar="3.5"

region="ES"

ident="TUA"

name="TUNA"

dme="TRUE">

</Vor>

<Ndb

lat="58.6095"

lon="16.1032"

alt="74.98M"

type="H"

frequency="0412.00"

range="138937.0M"

magvar="-1.89999389648438"

region="ES"

ident="LM"

name="BRAVALLA">

</Ndb>

</FSData>

 

 

 

 

Anyone that can spot what I am doing wrong?

There are several apparent errors in the XML including what seem to be invalid quotes around the 9.0 and a duplicated property dme=true.

 

This code seems to compile fine:

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Created by Scenery Design Engine (SDE) on 18/04/2012 -->

<FSData

version="9.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<!-- Facility and scenery data goes here -->

<Vor

dme="TRUE"

dmeOnly="FALSE"

lat="58.4810"

lon="15.6842"

alt="60.96M"

type="HIGH"

frequency="114.000"

range="361237.0M"

magvar="3.5"

region="ES"

ident="TUA"

name="TUNA"/>

<Ndb

lat="58.6095"

lon="16.1032"

alt="74.98M"

type="H"

frequency="0412.00"

range="138937.0M"

magvar="-1.89999389648438"

region="ES"

ident="LM"

name="BRAVALLA">

</Ndb>

</FSData>

 

If you are not using a helper when compiling so that you can see the errors then you might want to get one. CompilerHelper is available from www.fsdeveloper.com or my tool Xml2Bgl.

 

The attachment shows the output related to the first error.

Jon

-------

Microsoft Flight Sim MVP

Airport Design Editor FSDeveloper.com

  • Author

Hi Jon!

 

Thanks for your tips, I tried compilehelper with the above code and got the following response:

 

 

 

Parsing document: tuna.xml

 

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

 

ERROR: 6, 47, The attribute '{http://www.w3.org/20...Schema-instance}noNamespaceSchemaLocation''>http://www.w3.org/20...Schema-instance}noNamespaceSchemaLocation' on this element is not defined in the DTD/Schema.

 

ERROR C2309: is NOT a valid token!

ERROR C2028: Invalid attribute! ()

ERROR C2472: Invalid attribute!

 

ERROR:

ERROR: http://www.w3.org/20...Schema-instance

ERROR C2032: XML Parse Error! Element tree follows:

 

ERROR: <FSData

ERROR: version = 9.0

ERROR: >

ERROR:

 

ERROR: Schema errors detected, compilation failed!

 

Parse complete!

 

 

By the way, is there a way to use Airport Design Editor to place VOR without having to create an airport?

looks like a typo. Use exactly this:

<?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">

</FSData>

 

and put your VOR or whatever else nested inside

 

scott s.

.

There are several apparent errors in the XML including what seem to be invalid quotes around the 9.0 and a duplicated property dme=true.

 

This code seems to compile fine:

 

 

It might if it had been surrounded by "Code" tags.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.