• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning

Default GPS

EDIT: Never mind Bill, I swapped out some code for airspace from the default, and now it's back....odd, wonder why that happened? Must have been a small mis-typed code....also added the 'shadowed' terrain. ;)

XML scripted "code" is completely intollerant of any missing spaces or characters. Some times all that happens is that a single "statement" will be skipped, but most often the "gauge" will simply disappear entirely (never get drawn on screen).

That's precisely why I always build and edit XML scripts "Live," that is I have FS running and the "gauge loaded" while working the script on a second monitor. After every new line and/or edit, I Save the file, then use Ctrl-Shift-R keys to "Reload Aircraft" so I can test out the functionality being created or edited.

For scripts such as the GPS, which has thousands of lines (my custom GNS530 is currently 5,568 lines!), finding a tiny boo-boo can take many, many hours otherwise! :greenf:
 
This turned out to be a terrific modification, worth the effort of doing it.
Thanks everibody for the HU :wavey:

In order to do my part, I deemed useful to recap here the whole operation (including the rebuilding of the CAB file), step by step.

1) back-up your fs9gps.CAB file in the main gauges folder and copy it in another (empty) folder
2) open here this copy with a cab extractor (WinRar, WinZip, 7Zip, etc);
3) delete the copied CAB file amid the extracted files
4) find the GPS_500.xml (and the GPS_295.XML), double click on it and edit it with notepad
5) look for:
.........
< /Element >
< !-- Nav Group -- >
< !-- Map view -- >
< Element Name="MapView Pages" >
and towards the end of this section add/modify the following:
............
< LayerVehicles > 1 < / LayerVehicles ></LAYERVEHICLES>
< TerrainShadow > True < / TerrainShadow ></TERRAINSHADOW>
< /CustomDraw >
(without any of the spaces) and then save notepad
6) close the XML file (it will now "absorb" the modification from notepad)
7) repeat the same operations for the GPS_295. XML

8) go now to the Window Start button /Run: type "iexpress.exe". It will open a Windows (XP, Vista) program that will re-create the cab file
9) following the simple instructions, acquire all the extracted files of the above new folder into this program.
10) run the program, naming the CAB file to be created as "fs9gps". It will be found within the
"Documents and Setting" / "user" files
11) move this modified fs9gps.CAB to the Gauges folder od FSX.

YOU'RE ALL SET!
 
Thanks sblzei. I'll give it a shot and let you know tomorrow if I got it working. this is cool!

David
 
I DID IT!!!!!! I now have AI traffice on the G500 Gps!! I added the following to sblzei edit and now I get AI trafffice.......


< TerrainShadow > True < / TerrainShadow ></TERRAINSHADOW>
<DETAILLAYERVEHICLES><DETAILLAYERVEHICLES><DetailLayerVehicles>True</< font>DetailLayerVehicles>
<TextDetailLayerVehicles>True</< font>TextDetailLayerVehicles>
<ObjectDetailLayerVehicles>0x05</< font>ObjectDetailLayerVehicles>
<ColorLayerVehicles>(@g:setup_ColorTerrain) 1 == if{ 0x006666 } els{ 0x44ffff }</< font>ColorLayerVehicles>
< /CustomDraw >

This is cool!

I've yet to try to get it back to a "cab" file but it works just as a folder named "fs9gps"

David
 
Please note that in David's post the closing tags are "mangled..." They should have "< /" (without the blank space!) at their beginning...

Were the forum software working properly, wrapping
Code:
 tags around the code or XML script using the # button on the toolbar should completely [U]suppress[/U] the HTML (re)formatting, so we could post "clean code and/or XML script."
 
Please note that in David's post the closing tags are "mangled..." They should have "< /" (without the blank space!) at their beginning...

N4gix,
I'm not sure about the syntax of the last line before "CustomDraw <CUSTOM Draw>"

< ColorLayerVehicles >(@g:setup_ColorTerrain) 1 == if{ 0x006666 } els{ 0x44ffff }</< font>ColorLayerVehicles >

I'm not able to understand exactly where your comment applies in this line, and what blanks are legitimate (I had to introduce some more here, for the known forum reason).
Is it that only the blanks at the beginning should go, or every blank in the line must be avoided?
Is there a "<" missing?


Would you please explain it to me? :ernae:

Thank you,
Ezio
 
If someone can gets it all working with AI and all back to a cab file they should post the fs9gps.cab for free download here at SOH (if it is leagal to do so).

David
 
Look for a freeware program called 'CabExplorer', I think it's much easier to use than 'Cab Maker'.
 
Have an off this topic question to a SOH official. How does this thread or any 5 star thread win the 5 stars rating award?

thanks

David
 
N4gix,
I'm not sure about the syntax of the last line before "CustomDraw <CUSTOM Draw>"

< ColorLayerVehicles >(@g:setup_ColorTerrain) 1 == if{ 0x006666 } els{ 0x44ffff }</< font>ColorLayerVehicles >
Is there a "<" missing?

This: }</ < / </< font>ColorLayerVehicles >
 
Look for a freeware program called 'CabExplorer', I think it's much easier to use than 'Cab Maker'.

There is no need for a new program. The cab maker is already in Windows (XP & Vista for sure, don't know about W7). Just go to the Start button, click the "Run" icon and type "iexpress.exe" in the small side window. Check the "Create New Self Extraction Directive File" button and then the "Create Compressed File only" in the next step.
Click "Add" and browse to import at once all the file that you want to go into the Cab.
Click "Next", assign a name to the new cab file and click "next" again without checking any of the two options.
The CAB file wil be located under Documents and Setting/user

I did it and it worked perfectly.

BTW, I cannot get the TCAS addition working, despite an accurate syntax check.
I guess I will stay wit the enhanced map only

Ezio
 
Yes, I'm aware, I just find CaExplorer much easier to use than all the others, including the built-in program, as I really don't like having to go to the 'start' button and type all that stuff in, and good luck trying to find that iexpress.exe file so you can make a short-cut.

Thus, a nice icon for this on/in my task bar makes things much simpler....and the program is just so much more intuitive, plus I can tell it where to put the cab file....like my desktop. Again, easier to me for moving files around.
 
Got another good one for AI traffic. In a video I saw real traffic displayed on a real MFD. Is it possible to add AI traffice to the default B737_800.cab mfd.xml? I tried it but could not get it to work. I used the same programming as in the GPS. Any help there by any one?

Thanks

David
 
Got another good one for AI traffic. In a video I saw real traffic displayed on a real MFD. Is it possible to add AI traffice to the default B737_800.cab mfd.xml? I tried it but could not get it to work. I used the same programming as in the GPS. Any help there by any one?

Thanks

David

The mfd.xml gauge is scripted with the "new FSX schema," so the format of the addon script will need to be modified to use the new schema.

I won't bother to "translate it" and post it HERE because this stupid forum software utterly FUBARS the XML Script, making the effort completely useless!

If and when I find some time, I'll update my forum at flightsim.com to post the translated XML script... :ernae:
 
Back
Top