FS 2004 SDK Question
Results 1 to 14 of 14

Thread: FS 2004 SDK Question

  1. #1

    FS 2004 SDK Question

    Could someone help...when I try to open BGLComp, all I get is a command screen flash on/off on my destop...any ideas are appreciated...

  2. #2
    You do not run bglComp.exe on the Pc directly.

    You use it to compile a xml file into a bgl file.

    There are two ways to do it, by command line or by drag and drop the xml file on to the bglComp.exe program.

    If there are no errors in your xml code bglComp.exe will generate a bgl file. If there are errors in your code you will not see those error messages if you do the drag and drop method. To see the error message you have to run it by the command line.

    When I get time tonight I will post a sample xml file for you to test with.
    ASUS TUF F17 Gaming Laptop
    17.3" 144Hz Full HD IPS-Type
    CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
    Ram CORSAIR Vengeance 32.0 GB DDR4 3200
    NVIDIA GeForce RTX 3060 Laptop GPU 6GB

  3. #3
    Oh...

  4. #4
    OK

    This little xml example will place a default library object before runway 27L at KPBI

    The object is a SUV and it is suspended 5 meters above the ground.

    Click image for larger version. 

Name:	fs9 2015-06-03 18-39-33-61.jpg 
Views:	0 
Size:	73.0 KB 
ID:	23685

    To create the bgl file simply drag and drop the xml file (once extracted from the zip file) onto bglComp.exe.

    Place the newly created bgl into "addon scenery\scenery" folder.

    If you have questions about the xml code please ask. this is a pretty simple file and if you read FS2004BGLCompSDK.doc you should be able to figure out how to create whole new xml files.
    Attached Files Attached Files
    ASUS TUF F17 Gaming Laptop
    17.3" 144Hz Full HD IPS-Type
    CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
    Ram CORSAIR Vengeance 32.0 GB DDR4 3200
    NVIDIA GeForce RTX 3060 Laptop GPU 6GB

  5. #5
    Thank you Dangerousdave26, but I am trying to decompile a .bgl...is there a way to do this?

  6. #6
    You need bgl2xml to do that.

    http://www.scruffyduck.org/bgl2xml/4584282773

    There might be others as well
    ASUS TUF F17 Gaming Laptop
    17.3" 144Hz Full HD IPS-Type
    CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
    Ram CORSAIR Vengeance 32.0 GB DDR4 3200
    NVIDIA GeForce RTX 3060 Laptop GPU 6GB

  7. #7
    Thermaltake H570 TG Tower
    X670 Aorus Elite AX motherboard
    AMD Ryzen 9 7900X 12-Core Processor
    NVIDIA GeForce RTX 3070
    NZXT Kraken X cooler
    32GB DDR5 RAM
    750 Watt PS
    Windows 11 Home

  8. #8
    SOH-CM-2024 Mick's Avatar
    Join Date
    Jun 2005
    Location
    Easthampton, Mass., U.S.A.
    Age
    76
    Posts
    3,418
    Quote Originally Posted by Dangerousdave26 View Post
    You need bgl2xml to do that.

    http://www.scruffyduck.org/bgl2xml/4584282773

    There might be others as well
    I've used bgl2xml for years with great results.

    Back when I first started fiddling with bgl files, initially to relocate his carriers and battlewagons, the late, great Pail Clawson warned me to always open the resulting xml files in Notepad for editing. He said that opening them in Wordpad (the default program for xml files) will scramble the syntax. I've always followed that advice, so I can't confirm that the warning was necessary, but Notepad provides a simple text file to edit, so I've stuck with that method.

  9. #9
    Thanks all; as I delve into the world of scenery mods (a place where many of you have been for years), your advice is most helpful...and I have learned that most .bgl files cannot be decompiled - at least that's what the various de-compilers are telling me

  10. #10
    It depends on the original source of the bgl. If it was compiled from XML with the MS SDK, then the decompilers should work. Otherwise, you're probably better off begging the original author for the source.

    Edit: AF2 bgl's from AFCAD will definitely decompile back to XML, and you'd be shocked just how much code goes into even a small airport.
    Thermaltake H570 TG Tower
    X670 Aorus Elite AX motherboard
    AMD Ryzen 9 7900X 12-Core Processor
    NVIDIA GeForce RTX 3070
    NZXT Kraken X cooler
    32GB DDR5 RAM
    750 Watt PS
    Windows 11 Home

  11. #11
    SOH-CM-2024 Mick's Avatar
    Join Date
    Jun 2005
    Location
    Easthampton, Mass., U.S.A.
    Age
    76
    Posts
    3,418
    Quote Originally Posted by phrog_phixer View Post
    l...and I have learned that most .bgl files cannot be decompiled - at least that's what the various de-compilers are telling me
    Yeah, they tell me that sometimes, and I think they're telling the truth. What Tom said seems to confirm that. But you can dig into many bgls, and you can move scenery objects from place to place, which is what I mostly do with it. There have been times when I really wanted to get into a blg and my software couldn't open it. Very annoying!

  12. #12
    A better program for editing text files is notepad++

    https://notepad-plus-plus.org/

    One of the chief reasons is the color coding it will do for different programming languages.

    It makes it easier to find mistakes in coding.

    Click image for larger version. 

Name:	Capture101.jpg 
Views:	0 
Size:	66.5 KB 
ID:	23722
    ASUS TUF F17 Gaming Laptop
    17.3" 144Hz Full HD IPS-Type
    CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
    Ram CORSAIR Vengeance 32.0 GB DDR4 3200
    NVIDIA GeForce RTX 3060 Laptop GPU 6GB

  13. #13
    My advise for developing scenery is to understand Library Objects and the proper use of them.

    It is something that even the most knowledgeable of scenery designers get wrong.

    after that start small working with the BGLComp document.
    ASUS TUF F17 Gaming Laptop
    17.3" 144Hz Full HD IPS-Type
    CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
    Ram CORSAIR Vengeance 32.0 GB DDR4 3200
    NVIDIA GeForce RTX 3060 Laptop GPU 6GB

  14. #14
    I've been using NP++ for years! I also use it for editing cfg files in FS, and I enabled color coding by adding them to the group that includes inf files, which is basically what FS cfg's really are.
    Thermaltake H570 TG Tower
    X670 Aorus Elite AX motherboard
    AMD Ryzen 9 7900X 12-Core Processor
    NVIDIA GeForce RTX 3070
    NZXT Kraken X cooler
    32GB DDR5 RAM
    750 Watt PS
    Windows 11 Home

Members who have read this thread: 0

Bookmarks

Posting Permissions

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