Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: A smart person required....

  1. #1

    Default A smart person required....

    Hi all
    I live in Ireland.
    I wish to place the DERAG waypoint on my FS9.DERAG is normally used for runway 24 operations.
    Yesterday I downloaded the Microsoft BGL compiler and tried four machines,two laptops,two desktops and virtual XP.
    Also,I used the XML reporting software which showed every line to be in error!
    The format I used was gotten from Mutleys Hangar and I checked the format again with the compilers documents.A waste of an evening.

    <Waypoint
    lat="52.862944"
    lon="-8.580389"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="EI"
    waypointIdent="DERAG">
    <!-- Add route information here -->
    </Waypoint>

    It appears though that I am not the only person experiencing a problem with this.
    Anybody out there with ideas?
    thanks
    Tim Quinn


    8 decimal places or 6,same result.

  2. #2

    Default

    Don't know much about waypoints, but I do know a bit about xml … you're missing the 'header' and 'tail' viz:-

    <?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">
    <Waypoint
    lat="52.862944"
    lon="-8.580389"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="EI"
    waypointIdent="DERAG">
    <!-- Add route information here -->
    </Waypoint>
    </FSData>

    This compiles perfectly, though what it does I've no real idea

  3. #3

    Default

    Hi Chris
    Thanks for making the effort,it is appreciated.
    In the compiler folder are two sample sceneries.My PC does actually generate the BGL for those.
    Also,there is an oil rig scenery in the document and that too I can convert to a BGL file but the waypoint is not working for me.I've gone as far as I can with syntax errors and am at a full stop!
    Could you send the the DERAG.bgl please?
    Tim

  4. #4

    Default

    Quote Originally Posted by stinnes View Post
    Hi Chris
    Thanks for making the effort,it is appreciated.
    In the compiler folder are two sample sceneries.My PC does actually generate the BGL for those.
    Also,there is an oil rig scenery in the document and that too I can convert to a BGL file but the waypoint is not working for me.I've gone as far as I can with syntax errors and am at a full stop!
    Could you send the the DERAG.bgl please?
    Tim
    Not sure how I'd send a file without an e-mail address so I've put a copy of the bgl here https://1drv.ms/u/s!AkzZuPOaEswYghFC...NFHF1?e=xeWMuY


    For BGLCOMP to work, there needs to be two files in the folder, bglcomp.exe and bglcomp.xsd plus the xml source code, as I included previously.

    Other requirements are detailed in the SDK :-

    "Compiler usage
    Since the BGL compiler is based on XML, you must make sure that MSXML 4 is installed on any machines that will run BGLComp. You can find MSXML4 on the Microsoft web site: http://www.microsoft.com.

    The BGL compiler is invoked with the command:

    bglcomp.exe <filename>.

    To make batch file processing easier, the compiler will accept wildcards to process multiple files per invocation. Invoking the compiler without any parameters will print version and usage information for the compiler. Along with the compiler is the file:

    BGLComp.xsd

    This file must be located in the same directory as BGLComp.exe for the compiler to function properly."
    Last edited by chris_eve; 01-06-2022 at 05:52 AM. Reason: added link

  5. #5

    Default

    Hi Chris
    I did it last evening and there was a lot of sleep lost too.Issue was simply down to syntax,am not qualified in this are but I suspect that one needs to be a little bit more careful when editing the file with Notepad.
    many thanks again
    Tim

  6. #6

    Default

    Quote Originally Posted by stinnes View Post
    Hi Chris
    I did it last evening and there was a lot of sleep lost too.Issue was simply down to syntax,am not qualified in this are but I suspect that one needs to be a little bit more careful when editing the file with Notepad.
    many thanks again
    Tim
    Glad you got it working. Syntax is indeed critical for BGLCOMP
    Can't think why you were having so much trouble. That code snippet I posted works perfectly if copied and pasted into Notepad!
    Never mind, it works now

  7. #7

    Default

    Struggling with SDK BGL Comp myself.
    I've been trying to get this to compile for ages to no avail:

    <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
    <?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">
    <Waypoint
    lat="53.091240"
    lon="-2.225852"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="HOMES">
    <!-- Add route information here -->
    </Waypoint>
    </FSData>

    <?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">
    <Waypoint
    lat="53.114790"
    lon="-2.212972"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="MOWCO">
    <!-- Add route information here -->
    </Waypoint>
    </FSData>

    <?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">
    <Waypoint
    lat="53.14333"
    lon="-2.19917"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="LISTO">
    <!-- Add route information here -->
    </Waypoint>
    </FSData>

    Any chance you could have a look and tell me where it's wrong please chris?

  8. #8

    Default

    Quote Originally Posted by Miggers View Post
    Struggling with SDK BGL Comp myself.
    I've been trying to get this to compile for ages to no avail:
    Any chance you could have a look and tell me where it's wrong please chris?

    The data itself is good, your problem(s) seem to be in your headers.

    Delete everything above your <Waypoint> line and paste in the following :-

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

    Copy and paste EXACTLY into a text file in Notepad or similar. The compiler is VERY syntax sensitive!

    I'm assuming you're not trying to compile these waypoints as all one file. Whilst the concept is perfectly valid and sensible, you've included xml headers and trailers for each waypoint, whereas there should only be one pair per file.

    If you still get problems, please include the error messages you get.

    This code fragment is nothing "special", it's just EXACTLY as provided in the BGLComp SDK from Microsoft and supplied on the FS9 CDs.
    I'm not an xml "guru" or anything like it, but over the years I have come to grips with the basics for the purposes of programming FS9 features.

  9. #9

    Default

    And you could compile all three waypoints into a single file, if you eliminated the lines in the middle of the file:

    <?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">
    <Waypoint
    lat="53.091240"
    lon="-2.225852"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="HOMES">
    </Waypoint>

    <Waypoint
    lat="53.114790"
    lon="-2.212972"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="MOWCO">
    </Waypoint>

    <Waypoint
    lat="53.14333"
    lon="-2.19917"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="LISTO">
    </Waypoint>
    </FSData>
    Tom Gibson

    CalClassic Propliner Page: http://www.calclassic.com

  10. #10

    Default

    Quote Originally Posted by tgibson_new View Post
    And you could compile all three waypoints into a single file, if you eliminated the lines in the middle of the file:

    <?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">
    <Waypoint
    lat="53.091240"
    lon="-2.225852"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="HOMES">
    </Waypoint>

    <Waypoint
    lat="53.114790"
    lon="-2.212972"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="MOWCO">
    </Waypoint>

    <Waypoint
    lat="53.14333"
    lon="-2.19917"
    waypointType="NAMED"
    magvar="2.8"
    waypointRegion="UK"
    waypointIdent="LISTO">
    </Waypoint>
    </FSData>
    Exactly like that … that compiles perfectly
    Whether it gives the features required will depend on the validity and/or accuracy of the data
    Last edited by chris_eve; 01-14-2022 at 12:00 PM.

Page 1 of 3 123 LastLast

Similar Threads

  1. Any country whose soldiers are smart enough...
    By fruitfly in forum The Outer Marker
    Replies: 11
    Last Post: 11-07-2005, 02:21 PM
  2. ok, here's one for all you smart guys/gals out there
    By wehnert in forum The Outer Marker
    Replies: 17
    Last Post: 04-09-2003, 08:43 PM
  3. Smart Pilot! (Good Joke)
    By crichardson in forum The Outer Marker
    Replies: 3
    Last Post: 05-14-2002, 01:23 AM
  4. Really Clever person required
    By Alpha in forum FS2002
    Replies: 6
    Last Post: 04-11-2002, 08:16 PM
  5. Replies: 8
    Last Post: 01-20-2002, 06:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •