Archived

This topic is now archived and is closed to further replies.

Airbus

Palm Springs KPSP no ATIS

Recommended Posts

I have Shez Ansari's excellent Palm Springs airport. Unfortuately there is no ATIS for this airport. I contacted Shez and he said the scenery was not developed in AFCAD. Did anyone ever figure out a way to get it to work properly? Thanks!Airbus

Share this post


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

I was able to fix it with the following procedure using ADE9X and BGLComp. 1) Open KPSPMAIN.bgl in ADE9X 2) In ADE9, open the COMMS list. The only one listed will be ATIS. Delete it. 3) Verify you have the "save XML when compiling" box checked in ADE9 options 4) Compile the airport 5) Delete the resulting .bgl 6) Open the resulting .xml with Notepad 7) Search for "delete", without the quotation marks. This will take you to the deleteAirport statements. 8) Change deleteAllFrequencies="TRUE" and deleteAllApproaches="TRUE" to deleteAllFrequencies="FALSE" and deleteAllApproaches="FALSE". Make sure you use caps as I have done. 9) Close the file, saving changes. 10) Copy the .xml and paste it in the folder containing bglcomp. There is a copy in the FS9 folder in your ADE9X install. 11) Drag the .xml file and drop it on bglcomp.exe. If all goes well you should get a new .bgl. 12) Place your new .bgl in the KPSP scenery folder. IMPORTANT: don't forget to disable KPSPmain.bgl by moving it out of the scenery folder or renaming it something like KPSPmain.shez 13) test, rinse and repeat regards,Joe

Share this post


Link to post
Share on other sites

If you provide a link I can look at the scenery. If you want to add ATIS it can be done probably with ADE9. AFCAD is not really safe to use for changes. I am attaching four images from FS9 default frequencies and then from current IFR plates. I suggest arrival and departure that 126.7 be used or the current values. ATIS is FS9 default 118.250. Let us see how ATIS if there is coded into Shez's scenery. Maybe I can add it.

Share this post


Link to post
Share on other sites

I downloaded KPSP 2004, the only one I could find. I attempted to look at it with ADE the KPSPmain.bgl with ADE. It was incomplete showing no ILSs but it only also had ATIS in the comms. I attempted to look at PSPmain.bgl with some tools but that file failed to decompile to XML. At another time I'll install it into the FS9 scenery. I have another tool I can use to get the afd properties from all of the layers.

Share this post


Link to post
Share on other sites

Success: I examined KPSPmain.bgl again. The ATIS had no name so I corrected that. In the utility I use it did not detect any approach navaids and surprise, that is correct! All approaches are RNAV so there are no localizers. There is a VOR - GPSB approach you can use or RNAV. The IFR plates are here: http://flightaware.c...PSP/ALL/all/pdf in one (free) bundle. The rest of the ATC comms were there as in the default so they were not excluded. Now be sure that this scenery is at higher priority (lower number at the list top) than any other afd types such as installed by some traffic applications. If you would like to use the modified bgl PM me with your e-mail address and I'll send that one file to you to replace the existing one in that scenery folder (after renaming KPSPmain.bgl to KPSP main.bgh to keep it as a backup. I tested it with the default ATC menu and it is now listed so it appears to be OK. Apologies to N60JBravo as I missed his reply but made a slightly different correction as noted. I also used ADE9.

Share this post


Link to post
Share on other sites

There's no ATIS at KPSP because it's been so damned hot there the transmitting equipment melted.

Share this post


Link to post
Share on other sites

Someone should also ask Shez if he's ever done an update for KPSP. Maybe if he has he'd be willing to release it...which would be pretty cool too. Remember, he was kind enough to remake KLGB for us...thanks Shez!Mark

Share this post


Link to post
Share on other sites
Someone should also ask Shez if he's ever done an update for KPSP. Maybe if he has he'd be willing to release it...which would be pretty cool too. Remember, he was kind enough to remake KLGB for us...thanks Shez! Mark
Glad to see some success on the ATIS issue. What updates are there for PSP which should be included? Except for the commuter ramp I do not see much requiring a major update? Shez

Share this post


Link to post
Share on other sites

Ah...Hey Shez! Good to hear from you. I thought that if you had one, (if), that you might post it. If not, then it's just nice to touch base with you. You know, say hi once in awhile :)Mark

Share this post


Link to post
Share on other sites
Ah...Hey Shez! Good to hear from you. I thought that if you had one, (if), that you might post it. If not, then it's just nice to touch base with you. You know, say hi once in awhile :) Mark
Hi Mark! smile.png I am always reading the forums so anyone have any issue just post or better yet email me. Shez

Share this post


Link to post
Share on other sites

Hi, Shez: I used ADE 9 to add the ATIS ICAO name to KPSPmain.bgl. He via PM now states that PSP is being treated like a non-towered airport with only FSS and ATIS present. He also observed that old buildings were not excluded. I would think that PSP2MAIN_Exclude.bgl and PSP2MAIN.bgl would perform any exclusion. I did not notice the default/new main terminal superimposed in spot view. I used BGL2XML to look at KPSP2main.bgl to look at the ATIS properties. The other .bgls would not decompile stating not correct correct file type. (I'm doing this for diagnostics only.) I see you used SDE but since it makes simconnect mandatory I can't read in those files since I don't have FSX installed. I sent him the order of the .bgl files since that can have an effect on the layer order when in the same folder. As for losing the tower frequency and others I should state the Pete Dowson's makerwys utility used by RC to create an airport scenery afd property database did pull off all of your assigned and default comm frequencies correctly. I'll look at the ADE XML to see if added a generic delete all comms instruction. If so I'll just reenter them in ADE. I have the default and current data. Bottom line is in his installation why aren't the old buildings excluded and mine seems OK. I'll check again. Did you add the moving traffic headlights in night view on the highways? Nice touch. Thank you.

Share this post


Link to post
Share on other sites
Hi, Shez: I used ADE 9 to add the ATIS ICAO name to KPSPmain.bgl. He via PM now states that PSP is being treated like a non-towered airport with only FSS and ATIS present. He also observed that old buildings were not excluded. I would think that PSP2MAIN_Exclude.bgl and PSP2MAIN.bgl would perform any exclusion. I did not notice the default/new main terminal superimposed in spot view. I used BGL2XML to look at KPSP2main.bgl to look at the ATIS properties. The other .bgls would not decompile stating not correct correct file type. (I'm doing this for diagnostics only.) I see you used SDE but since it makes simconnect mandatory I can't read in those files since I don't have FSX installed. I sent him the order of the .bgl files since that can have an effect on the layer order when in the same folder. As for losing the tower frequency and others I should state the Pete Dowson's makerwys utility used by RC to create an airport scenery afd property database did pull off all of your assigned and default comm frequencies correctly. I'll look at the ADE XML to see if added a generic delete all comms instruction. If so I'll just reenter them in ADE. I have the default and current data. Bottom line is in his installation why aren't the old buildings excluded and mine seems OK. I'll check again. Did you add the moving traffic headlights in night view on the highways? Nice touch. Thank you.
I used SGX for this scenery and I think it was an earlier build so it probably caused issues with the frequencies etc. ADE is a much more updated program so it should be able to resolve the issues. Shez

Share this post


Link to post
Share on other sites

ADE 1.50 stripped out all of your excludes and changed delete all frequencies to true. I also did not see any generic buildings you had placed in the file. Maybe there are preferences to set. There were no technical errors on its decompile. I am installing the FS9 SDK bgl compiler plus MSXML4. I already have MSMXL6. Since you are passing through the default.com frequencies by setting that to false there is no need to redefine the ATIS with the ICAO code name. If I get the bgl compiler to work then it is an easy matter to correct the original. As I stated the excludes in that file appear now to be the issue as well as importing the generic buildings you added and that is where ADE is failing. So in your code all I have to do is add the ATIS name or scrub the whole frequency and let it pass through. This whole business is just an exercise for me. Occasionally in support of RC I have found scenery errors where it caused problems in the RC database. One such case was the incorrect ICAO in the afd file as an example. FYI, the freeware non-FSUIPC dependent utility makerwys.exe which works with FSX and FS9 creates several data files and also a log of its actions It is very handy as a diagnostic for afd properties: http://forum.simflight.com/topic/66136-useful-additional-programs/ Thanks for your reply.

Share this post


Link to post
Share on other sites

I finally got a usable version and have sent it on to Airbus. All of the excludes and added buildings are there. I just left the changed code in for the ATIS assigning the ICAO and frequency. The default frequencies are now all there and the airport is treated as towered, that is Ground came up in the intial menu and when selected all of the options were there. I don't see any default buildings merged with the new ones. Shez; I used ScruffyDuck's BGL2XML decompiler with the GUI front end on your original KPSPmain.bgl, made that one change in the ATIS line adding the ICAO (just in case you wanted to keep it in there), and then passed it to the bgl compiler from the FS9 SDK using the front end GUI for that from ScruffyDuck. It took me a while to get the bgl compiler with all of the components working. The only code it did not like was DeleteAllApronLights as part of the airport family delete. It was a schema error. i checked the xsd schema file and it was in there so ???? Anyway I got a successful compile in spite of the error. The file was there.

Share this post


Link to post
Share on other sites

PM me your e-mail. I'll PM mine to allow me through your ISP and pc spam filters.

Share this post


Link to post
Share on other sites
I finally got a usable version and have sent it on to Airbus. All of the excludes and added buildings are there. I just left the changed code in for the ATIS assigning the ICAO and frequency. The default frequencies are now all there and the airport is treated as towered, that is Ground came up in the intial menu and when selected all of the options were there. I don't see any default buildings merged with the new ones. Shez; I used ScruffyDuck's BGL2XML decompiler with the GUI front end on your original KPSPmain.bgl, made that one change in the ATIS line adding the ICAO (just in case you wanted to keep it in there), and then passed it to the bgl compiler from the FS9 SDK using the front end GUI for that from ScruffyDuck. It took me a while to get the bgl compiler with all of the components working. The only code it did not like was DeleteAllApronLights as part of the airport family delete. It was a schema error. i checked the xsd schema file and it was in there so ???? Anyway I got a successful compile in spite of the error. The file was there.
Sounds like a success! Thanks! Could you send me the update too? Shez

Share this post


Link to post
Share on other sites

That would be an honor, sir. Please PM me your current e-mail address. We'll set up our spam filters to allow us through. The one code that was not accepted was DeleteAllApronlights but you have those set to false anyway. I did get a compile out of it and decompiled that and all was in there that you placed pus the added ATIS Ident that I added. I'll send that XML code included with the .bgl for you to test and distribute as you wish.

Sounds like a success! Thanks! Could you send me the update too? Shez

Share this post


Link to post
Share on other sites

A quick note that after I hand coded the ATIS fix and got it to compile with bglcompile ADE imported that bgl with all objects showing including those generic buildings and excludes which were left out of the original import. Usually if something is outside of the SDK you get a warning on it. Whatever, the ATIS thing caused a chain reaction. I have 150.05 and it should be noted that the tool import stock data failed when I tried to import stock comms. Just something to be aware of. Again, send me a PM for that hand coded compiled file and XML source with your contact e-mail address.

Share this post


Link to post
Share on other sites

In the interest of accuracy, I would like to address some of Ron"s statements. First off, he is correct in saying the reason there is no ATIS at Shez's KPSP is caused by the presence of an ATIS in KPSPmain.bgl that is missing a name. Repairing that statement by adding an ICAO to the name= does fix the missing ATIS problem, though there is no need for any ATIS in KPSPmain.bgl as there is one at KPSP by default. Ron stated- "ADE 1.50 stripped out all of your excludes" I imported KPSPmain.bgl in to ADE9 and saw that it did not strip them out, in fact here they are...BTW, the blue boxes are the generic buildings Shez placed that Ron said were stripped out by ADE. Ron also stated -"ADE 1.50 ... changed delete all frequencies to true." That is how ADE works. There is a workaround if you have a ProKey. Ron stated -"I have 150.05 and it should be noted that the tool import stock data failed when I tried to import stock comms." Works fine for me... You can see them listed in the screenshot, along with Shez's un-named ATIS. You will also note the little headphones for the stock data are light gray and the ATIS is dark gray. One thing about ADE that is not, to the best of my knowledge, clearly stated in the documentation is that loading the stock COMMs is informational only and that info will not get compiled unless you add each frequency to your ADE file. This is confirmed by this screenshot showing one of the features available only to ProKey users...Note the "skip compile" is set to "true" and also the "STOCK DISPLAY ITEM NOT BEING COMPILED". Simply loading the stock COMMs will not add them to the resulting .bgl and since ADE, by default, deletes all frequencies you end up with a non-towered airport. Knowing all this is why I posted the procedure above, following it will result in a working KPSP. regards,Joe

Share this post


Link to post
Share on other sites

Thanks for pointing this out. As I noted adding the ATIS name produced also a file that did import correctly into ADE and I saw all of the excludes and new objects as in your screen shots. In the original code Shez produced I saw that he intended to pass on the previous comms. ADE did not generate any error in its built in decompile so it took me a while to recognize this. It is true your way would have worked but only if you have the ProKey feature so ADE would not delete previous frequencies. Thanks for the clue on the frequency import function being informational. I did not see any action on it and I'll try again. I had questioned whether removing the ATIS directly in ADE would restore the new buildings and excludes and it did not. I just decided to use bgltoxml to decompile the original bgl which clued me in to the objects not imported into ADE, make the ATIS corection there, and compile with the bglcompiler. After seeing the new bgl worked I imported that into ADE and saw the correct objects in the view. i didn't know about the ProKey feature about setting the statements in the Delete Airport function. I'll get the key. I've got to walk before I can run :) with ADE.

Share this post


Link to post
Share on other sites

My procedure, as posted in reply #2, does work and does not require the ProKey. I intentionally did not include anything that would require the ProKey so those that do not have it could still fix KPSP. The ATIS issue has absolutely no effect on any exclusions and/or scenery objects, including the generic buildings placed by Shez. "ADE did not generate any error in its built in decompile..." why would it? ADE only generates errors if you use it to try to compile a file that has errors in it. "It is true your way would have worked but only if you have the ProKey feature so ADE would not delete previous frequencies."- My way does work without the ProKey because I compiled the .xml with BGLComp and not ADE. Again, I did this because ADE will change the deleteAllFrequencies = "FALSE" statement to deleteAllFrequencies = "TRUE" when it compiles. BGLComp will not make that change allowing the default COMMs to be used without the end-user having to add them all in, one at a time, in ADE. "I just decided to use bgltoxml to decompile the original bgl which clued me in to the objects not imported into ADE". What objects were not imported into ADE? As my screenshots show, ADE correctly handled all of Shez's excludes and generic buildings. I am using the same version of ADE as you are, I cannot believe it works differently for you than for me. The ProKey does not change the way ADE works, it only allows access to some features not available to those that don't have it. If you do get the ProKey, be careful and make sure you back up everything you do. With it, you can quickly screw up an airport if you don't know what you are doing. regards,Joe

Share this post


Link to post
Share on other sites

We just work in different ways and you are more experienced. I started out programming at the assembly language level and the C and VC. I would not have expected the average user to use bglcompile. ADE will throw an error or caution if it detects something when it decompiles in loading a file direct from .bgl if it has an item not in the schema SDK reference. I have seen that on a few occasions. Thanks for the caution on ProKey. I have just picked up a freeware XML editor that will check an XML document against the referenced schema and namespace. I used it to confirm my compiled correction then decompiled source was correct. I'll mention one more issue if you use Scruffyduck's GUI fron end to bglcompiler. It warned of a fatal error in compiling the XML file with the code I corrected. It complained abour DeleteAllApronlights as an invalid token. I repasted it in direct from the schema xsd file but it still gave me a warning. However, the file did compile. Now when I opened airport direct from bgl Shez's KMSPMAIN.bgl originally into ADE where the ATIS ICAO was not defined, no error was thrown. I just decided the enter the ICAO and save the project. On looking at the view it was the usual bland display without buildings which I though was normal. I looked at the decompiled xml of the original bgl and saw excludes and generic buildings added that did not display. ADE dropped them because of the error in not specifying the ATIS ICAO. After I corrected that and the delete statements to match Shez's specification and compiled it, I repeated the open airport from bgl and the buildings and excludes were then displayed and the lists for those were no longer empty. So I'll post on FSDeveloper about the item in ADE and also the perhaps false error in his front end to bglcompiler and see what he says. BTW, I also make original and progressive backups manually in safe folders and do not necessarily depend on a programming application to do that. So don't be concerned about me using ProKey. I have learned to play it conservatively and very safe. That's why I examine code with decompiling after using a higher level programming app. No criticism but I think we are off topic here for this particular thread and forum. And I am not criticizing your original reply. If you look at the posting times we were just a minute apart with you first. So when I looked at replies I quickly scrolled down to mine to see the reply to me missing yours. When I scroll quickly for my last entry I look for my banner. That's why I missed your initial comments. Thanks again for the pointers and cautions.

Share this post


Link to post
Share on other sites