Sign in to follow this  
cowpatz

BglComp and ILS question

Recommended Posts

I am trying to get ATC to recognise the ILS's I have put in at EGPE (Inverness Scotland). I have downloaded the BGL compiler.The help file is not clear as to how to go about opening the program with the file. How do I go about doing this and which file (and location) do I need to open with it? None of the BGL files I have seen have any name that I can relate to EGPE.This is the first time I have tried this other than a little with AFCAD.Many thanksSteve

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

How did you put the ILS into the scenery? If you are looking for the default airport then they are stored by area in the main FS Scenery Folder. The files begin with APxxxxx.bgl. However there cvan be dozens or even hundreds of airports in one file. To change airport data then AFCAD2 is probably the best way to do it.BGLComp needs an xml file which it will compile into a scenry bgl file. If you want to de-compile a scenery file then you would need New BGLanalysze or BGLXML. These programs take a compiled file and decompile it to xml. They only work for files compiled with bglcomp. Older scenery files need BGLAnalyze of SCDIS and decompile to ASM.

Share this post


Link to post
Share on other sites

The airport data has been changed with AFCAD2,Where will I find the approriate EGPE file and how do I open it with BGLXML. Once it is altered how do I put it back and where?ThanksSteve

Share this post


Link to post
Share on other sites

Hi Steve,BGLComp can not open BGL files, it can only create them from XML source files.So as Jon suggested you would have to decompile the BGL file you made with AFCAD (probably named AF2_EGPE.BGL) to get the XML sources for it. After that you can edit these sources with a text editor. The document in the BGLComp SDK explains the commands that you can use. Then the final step is to compile this XML file back into a BGL file with BGLComp (just drop the XML file on the compiler to do that, the compiler has no GUI).

Share this post


Link to post
Share on other sites

Thanks Arno,I take from what you have said that I need to open up the file AF2_EGPE.BGL (which I have found) and then do the editing in XML and then recompile with BGLComp SDK. Is this the only file that needs modifying? I have looked thru the extensive read me file and it gives the commands to use but is sketchy on the reasons. Is there a better document or a tutorial on how to go about doing this? Also if I have more than one AFCAD file for a given airport which one will FS9 use?Sorry if the questions are basic but this is challenging new stuff for me.ThanksSteve

Share this post


Link to post
Share on other sites

Didn't Jim Vile do a posting somewhere stating exactly step by step how to both add an ILS and make changes to existing ones due to runway re-numbering so that AI can recognise it. I remember reading it about the time he released his KLAS approach (at least I think I do). for the life of me I can't find it. Does anyone know where I can find it?Brad

Share this post


Link to post
Share on other sites

One of my post is herehttp://www.projectai.com/discuss/index.php?topic=45925.0which answers questions on how to write a xml approach for a new AFCAD ILS.Do Not decompile the actual AFCAD af2_ airport file and add Approach data. The AFCAD compiler will delete anything you write in xml that it does not understand including approach data.There is no tutorial on how to add a new ILS to the database so ATC will recognize it. Keep in mind that the AFCAD af2_ file only adds a ILS to the runway which is for the User Aircraft Panel so you can lock onto the Localizer and Glide Slope.If you are changing a runway number that is one set of XML instructions but if you are adding a new ILS to a airport then an entire approach procedure must be written in XML.I use current Jeppesen Charts which is also what the FS9 default database is written on. Once the approach is written and compiled to a bgl then it must be placed into the SceneryGenericscenery folder so FS9 will prioritize it correctly.One of the reasons for this is because all approach data written so ATC will recognize the new ILS runway in AFCAD is because the approach data must nest inside (under) the airport header. hope this helps

Share this post


Link to post
Share on other sites

I have tried to look at various other airports to get a look at how the approach code is entered but when I search for the airport and open it in AFCAD then save it to the add on scenery folder then open with BGLXML it doesnt show the approcah code. I manged to find the scenery folder for KLAX via AFCAD properties and it came out as AP916190 I would have thought that in order to convert this BGL file to XML would be to use BGLXML, or more specifically the XML SHELL GUI. I tried doing this but I keep getting a pop up window saying "input file: not a valid FS2004 facility data BGL". Why is this and how do I open this file to look at the XML code? Thanks for the link Scott I will take a look at it.CheersSteve

Share this post


Link to post
Share on other sites

First we have to understand that a certain portion of all airport scenery is invisable approach data that corresponds to any type instrument approach. This invisible scenery also streches 108NM in all directions of each airport.All of the airport scenery utilities and tutorials written do not understand this or even address it. many utilties are written on how FS2002 worked and not how FS2004 works.There is no approach code in any AFCAD type airport. AFCAD uses the deleteAll=approach as the default in the compiler.The AFCAD only has the ILS/GP/DME xml data which the runway owns. The approach data that you are looking for is in each APnnnnnnnn.bgl and is owned by the airport scenery which is a radius of 108NM from the reference point and extends upward as high as FS9 goes altitude wise.If you add a new ILS with AFCAD only the User Aircraft panel sees it. There is nothing to decompile if you add a new ILS but you must write a new approach for that ILS. See my post above.

Share this post


Link to post
Share on other sites

Thanks for the info, even though it is way over my head. Actually, I figured out what posting I was thinking about. It turned out to be your read-me file from the PANC explaining how to modify an AFCAD with the new runway numbers and correct Navdata and fix a corrupt file. Understanding that is much more my speed.Finally, let me be added to the long list of simmers publicly thanking you for all your contributions to this hobby/addiction. :-beerchug [p class=dcmessage] BradKELP/KBIF http://home.elp.rr.com/bmbanister/BannerSig_BMBanister.jpgAMD Athlon XP 2600, Asus A7V600, 1GB PC3200, NVidia GeForce 6800, SB Live

Share this post


Link to post
Share on other sites

Thanks Jim,The frustrating issue is that I cannot open AP916190 (for example)to view the html content. If I can see how the approach code is written for KLAX then I can get an idea of how to do it for other airfields. Let us say that I took the stock KLAX ILS 25L and wanted to change an alt restriction (let us say the missed approach alt for example). Once I learn how to open AP916190 I open the xml file (with cooktop)I assume that the approach code is there and that it has to be in a certain position within the code. I would look forthe missed approach alt (Look at BGLCoomp SDK text file for the reference)and then simply alter the value. I would then need to use BGLComp to recompile it to a BGL file. Where would this new file go? Are you saying it should go in the scenerygenericscenery folder and that this would take priority over the stock AP916190 file? Or do I just put the approach info in here between the airport headers? I did try to use BGLanalyze but I thought that was only for fs2002 and less? It also converts to a ASM? file and that is as far as I get. I did hear it mentioned in a post to change the file ext to xml but I am not sure if that is correct or even desirable. It should would be great to have a tutorial/manual on this such as Terry Yinglings one on making Stars and Sids for the PMDG 737 and 747. Thanks for your perserverance.CheersSteve

Share this post


Link to post
Share on other sites

Did you take a look at the link posted above?http://www.projectai.com/discuss/index.php?topic=45925.0This thread contains some quite nice examples of the XML code that you have to write. I think with those examples, there is no need to decompile a default airport to look at their approaches. All you have to do is to write a new XML file and create a BGL file from that.@Jim: Thanks for reminding me that AFCAD removes any code you add in the XML code, I was not aware of that (I supposed it would not read it, but still leave it there). Making the approach in a seperate file is much easier in that case.

Share this post


Link to post
Share on other sites

It should also be noted that the default AP9 files place 3d scenery objects at the locations of the ILS and other navaid transmitters, which AFCAD won't do either (or move for that matter).scott s..

Share this post


Link to post
Share on other sites

Yes I did thanks Arno but as I am a complete newbie to this I would like to decompile a few airfields to have a look at the code to get a feel for it. I would have thought that all the data would be in the one file. Are you saying that I could have a seperate file just for approaches, approach legs and transitions? If so what would the file name need to be and where would it need to go to be prioritsed correctly? Is the approach coding in the default AP9 files? If not where?One last point if you have more than one AFCAD file for a given airport which one will FS9 use?ThanksSteve

Share this post


Link to post
Share on other sites

SteveIf you have more than 2 airports listed by the AFCAD program Fs9 uses them all. This is why it is very important that only 2 airports be listed when using AFCAD to list airports.That means there must be 1 ghosted airport and 1 bold type airport.The ghosted airport is the original airport found in the cooresponding APnnnnnnn.bgl and the bold type is the copy of the original that AFCAD makes and places in the addon scenery folder.Now once AFCAD has copied out the original you can make changes to it and save. However, there are certain portions of the original airport that AFCAD does not copy out so it requires both the ghosted and bold type listed airports to make the AFCAD airport work properly in FS9.You should never have more then 2 listed which have all the airport runways/taxiways/freq/lighting/etc.You will however see in some cases an additional bold type airport in the list but this is not a AFCAD airport. If you open it you only see a red dot which is the reference spot for the airport. Some scenery designers will add a airport header in their bgl which is not needed and the AFCAD program picks it up as a complete airport.I can answer your other questions but you need NewBglAnalyze.exe to decompile a APnnnnnn.bgl. From that point on you can only look at the decompiled bgl which is now a xml file.You cannot compile that xml back to a bgl and use it in FS9 because it is corrupt.There is no decompiler available that anyalyzes and gives us everything from the Airport scenery bgl.This is why you CANNOT decompile a APnnnnnnn.bgl, change something and then compile it back and use it.You must write your new ILS approach xml data from a current approach chart as a new file and add it to the scenerygenericscenery folder.@ArnoI fiqured when I posted it would trigger your memory bank. I have seen you post in the past with correct answers for others in those same areas so I knew you would say to yourself "I knew that"When it happens to me I just blame it on my age.

Share this post


Link to post
Share on other sites

Yes NewBglAnalyze.exe is the answer.I was hoping to make up the ILS at EGPE 05 by mucking around with parts of the VOR approach and substituting with the ILS code where necessary.I seem to come unstuck when run the cooktop xml validation. I know very little about xml code so that is not surprising really. I have attached a copy of the part I am interested in. I take it that this would be put in the scenerygenericscenery folder. Does it need the tag at the start and end?ThanksSteve

Share this post


Link to post
Share on other sites

SteveI took a look at your txt file.I assume you are wanting to change rwy06/24 to 05/23 Correct?If so, do this with your AFCAD first and save.I also noticed that you used BGLX180 to decompile. This decompiler drops some of the ALL the copied approach data goes here 2 new TERMINAL_WAYPOINTS (IAF and FAF for the ILS)and then close withYou must use the

Share this post


Link to post
Share on other sites

One thing about NewBGLAnalyze is that it can strip out all the waypoints (at least the named ones) to a file which is nice for analyzing missing waypoints for RNAV work.scott s..

Share this post


Link to post
Share on other sites

Thanks very much for the assistance. I am unable to open the APXXXXX file with either BGLX180 or NewBGLAanalyze.With BGLX180 I get the message "Input file not a valid 2004 facility data file" message and NewBGL "Error this program cannot disemble BGL files of the old type".It is strange because I managed to open the AP file before with NewBGL.What am I doing wrong here.ThanksSteve

Share this post


Link to post
Share on other sites

Make sure you are trying to decompile a AP* AT* NV* OB*.bgl type file and not one of the files listed in the same scenery folder. Only those 4 type scenery files are FS2004 xml. The other 10 type files (AB* BR* FL* HL* etc) are old style format bgl's that FS2004 uses.See the pdf document that comes with NewBglAnalyze for more information.

Share this post


Link to post
Share on other sites

Thanks Jim,No matter how I try I cannot open that AP946110.BGL file. I could before but not now. In fact I cannot open any APxxxxxx.BGL file. I just get those same messages. BGLX180 is the same. Unless I can open them then there is no way I can even think about looking at them both with Cooktop. Mega frustrating. Why could I open it with NewBGLanalyze before and not now? CheersSteve

Share this post


Link to post
Share on other sites

Copy the AP946110.bgl into both the BGLX180 folder and the BglAnalyze folder and then run each utility on the bgl.Other than that I don't no why you can't get either one to decompile a default FS9 scenery bgl.The error you are seeing is saying you are trying to decompile a FS2002 type bgl.

Share this post


Link to post
Share on other sites

I have discovered how to open these files and it might be worth remembering for other dummies like me trying to open them.If you do not use the DOS commands and use the GUI option, like myself, then you need to TYPE or cut and paste in the file location. DO not use the drop down boxes. If not sure of the exact file location then open up AFCAD2 and do a search for the airport and open it. Then select File > properties and it will give the file location. Copy the address and then paste it in the 'file name to find box'. This is what I must have done the first time when it worked but then used the drop down boxes. This needs to be done for both NewBGLAnalyze and BGLX180 otherwise you will get the errors I mentioned earlier in the post.All this after reloading FS9 twice (yawn, yawn) and the applications as well.Now I can see what mess I can make with the code!!!! :)CheersSteve

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this