• 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.

FSX bgl problem still

Messages
2,388
Country
us-washington
I have been recently told my bglcomp might be corrupted. And I can't get it on line. But then I am not told where I CAN get it.

Frankly this might have to do with something I am missing in my procedures.

Here are the facts so far:

I can place a beacon or windsock or perhaps other object with the txt file - entering lat and lon. then drag this over bglcomp and bingo I have my bgl - put it in my scenery folder I am using and there's my beacon.

Now.... I might take a bgl from a friend of mine and disassemble it into an xml (txt) using newbglanalyze. Next- there might be 3 items in it (in this case 3 objects and one mdl.). I remove one scenery object and save the file.

Next I drag this txt file I just modified and saved over bglcomp and nothing happens.

I thought it was because this txt now has a line in it that says decompiled with newbglanalyze. I took THAT out and save.... still nothing happend.

I then took this over to my little program where I did the beacon (another copy of bglcomp.) and dragged the txt over THI:S bglcomp. Nothing happened.

Just now I went to my FSX SDK and pasted the txt I got from disassembly from newbglanalyze AND pasted the txt I made for my beacon.

Results- my beacon txt compiled beautifully in my SDK... the txt from newbglanalyze did not. ...... just like elsewhere on my machine.

Either my newbglanalyze program is messed up or I am missing a step I have to do to recompile AFTER I disqassemble in newbglanalyze ( Winfried Orthman's program).

Any ideas? Bob
 
Last edited:
I use anyway if I have some sort of errors like you a herethenameofyoulike.bat

In this - rightclick for edit - there we found this lines:

"C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\bglcomp.exe" "C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\AGenT_lipqgnd02.xml"

pause

end

The first row ist the Path to your compiler - Attention for the emty space after the first row

"C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\bglcomp.exe"

the second row ist the path and the name of your xml File

"C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\AGenT_lipqgnd02.xml"

the pause will make a stop and close not the DOS Window

and you can read any error message if there is one.


Another attention: The xml and the herethenameofyoulike.bat MUST stay in the same Folder.
Doubleclick the bat file will start the Procedure.

Good luck
 
I've tried that too, George, will try it again.

Some bgl's newbgl decompiled and recompiled. Others it would decompile but would not recompile. I can understand if the bgl is of the older type.

I have the SP2a I believe..... SDK. Menu on top in FSX shows the word 'tools'. It has a drop down menu with various tools I could use. This is one of the newer SDK's. If there is something wrong with ITS bglcomp, why then can't I find another bglcomp to update it?

Why is it so secret and hard to do? Bob
 
You make a new empty Editor File.

Name it herethenameofyoulike.bat

Open this File with rightclick.

Input this:

"C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\bglcomp.exe" "L:\Compiler\bglanalyze\LIMC_exclude.xml"

pause

end

And then edit how i discribed here:

The first row ist the Path to your compiler - Attention for the emty space after the first row

"C:\Program Files (x86)\FS2004SDK\BGLCOMP_SDK\bglcomp.exe"

the second row ist the path and the name of your xml File

"L:\Compiler\bglanalyze\LIMC_exclude.xml"

the pause will make a stop and close not the DOS Window

and you can read any error message if there is one.

Now close the bat file if you have edit them with clicking on the Close button in the rightupper Corner.


Another attention: The xml and the herethenameofyoulike.bat MUST stay in the same Folder.
Doubleclick the bat file will start the Procedure.

00004.jpg



This is the DOS Window without any error. Sorry for the german language in this. :o
 
Zwischenablage01.jpg


Zwischenablage02.jpg


Zwischenablage03.jpg


Zwischenablage04.jpg


Here is the full error message from bglcomp.exe

jyarddog has send me the files.

Any ideas?
 
Hi,

It would be easier to solve if we can see the XML source.

Looking at the screenshots I see very weird values for the lat/lon (outside of the normal range). But I think there might be more.
 
Hi Arno- Bambi and I worked on this last night. She was trying to help me make a batch file that would slow down and stop the dos screen to we can look at the errors. I finally sent the file to her, and she found those errors.

I saw those odd coordinates but thought that was something I didn't know about.... maybe some special code or something.

We changed a few things and then I changed the coordinates lat and lon to something more correct. Suddenly it compiled!

So......... could it be that I may be running into some bad bgl's.... they can be disassembled into an xml but because of their errors they cannot be recompiled?

If so- then most likely my bglcomp is ok. Just tossing ideas around here. Bob
 
Hi Bob

This is indeed possible.

Some bgl you can not disasemble because they is in older format.

In this way you need another decompiler.

I have

Bgl2Xml.exe
bglana31
BglAnalyze9.exe
BglAnalyzeX.exe
bglx180.exe
and this one that You use:
NewBglAnalyze.exe
 
Bgl2Xml.exe
BglAnalyze9.exe
BglAnalyzeX.exe

These I also have but even these sometimes say the bgl is too old.

Anyway- your help was wonderful. I'll try to get the bat file working.

In this last case that xml had some odd lat and lon figures for one of the scenry objects. When we corrected those the xml did compile. Bob
 
This
bglana31
Here you must scroll down a little bit
or this
bglx180.exe
you will need .

The bgl that you can´t decompile is a SCASM Code.
I Think so.
They is very old code but good enough for FS9.
 
bglana31 I kept clicking the download button but it would just take me back to the same screen. the other one I downloaded. Should prove usefull. Thanx, Bob
 
does the same thing. I'll work with what I have right now. the 180 should help whenever Irun into older bgl's. We'll see. Bob
 
Back
Top