Page 1 of 1

Converting gauge files to xml gauge files

PostPosted: Tue Apr 01, 2008 12:39 pm
by Recency
Hello All:
Does anyone know how to convert the gauges ( the .gau format) to xml format?

Re: Converting gauge files to xml gauge files

PostPosted: Thu Apr 03, 2008 12:10 pm
by Fr. Bill
Without getting into the political/ethical debate, I'll simply state the plain, ugly truth...

It simply is not possible to "convert" a compiled C gauge project to XML. Period. End of discussion.

The most that could be done would be to use something like GAU2BMP or FS Panel Studio to extract the bitmaps used.

Then you could recycle the original bitmaps, but you'd still have to write the entire XML code from scratch.

Re: Converting gauge files to xml gauge files

PostPosted: Sun Apr 27, 2008 11:47 pm
by brettt777
Okay I tried Gau2bmp and it worked...kind of. I can look at all of the gau files except for one (which of course is the one I really need to look at). With this one I get an error: "runtime error '9': Subscript out of range". What does this mean and what can I do about it?

Re: Converting gauge files to xml gauge files

PostPosted: Mon Apr 28, 2008 12:29 pm
by Fr. Bill
Honestly? Not much. You might try using another freeware program though called exescope:

http://www.softpedia.com/get/Programmin ... cope.shtml

Re: Converting gauge files to xml gauge files

PostPosted: Thu May 15, 2008 1:26 am
by Recency
Hello Fr Bill:
First, I would like to thank you for answering my first question.
Second, I am not sure what the actual name of this gauge is, but anyway, there is a gauge on the 380 airbus panel that displays the top and bottom view of the plane.     I would like to know if it is possible to make some type view gauge, similar to the gauge that you would find on a 380 airbus panel.   I have searched the sdk, however I could not locate any Simulation Variables for views other than some type of eyepoint variables.   If it is possible, can you give some hints of the type of variables that I would use to make this gauge?
Thankyou
Recency

Re: Converting gauge files to xml gauge files

PostPosted: Thu May 15, 2008 1:51 pm
by Fr. Bill
If you look at the Spirit of St. Louis from FS2004, you'll see that it has a "periscope" view. This is the technique you would need to persue.

There was a long discussion of this at avsim.com several years ago. If you search using "periscope" you'll find the thread, along with a discussion of using it to create the camera views on an Airbus glass display.

Re: Converting gauge files to xml gauge files

PostPosted: Thu May 15, 2008 2:54 pm
by pete
You may also want to take a look at Ken Smith's very good XML Gauge tutorial (4MB download)
(express link)

Small quote

The tutorial explains in detail what's in an aircraft's panel configuration file (PANEL.CFG), how to edit that file and other Flight Simulator configuration files. It explains the difference between GAU and XML gauges, how to extract,edit,and create your own XML gauges, how to use Windows "Notepad" to add, change, and reposition gauges on an instrument panel, and how to use Windows "Paint" to change the look, color, and size of instrument panels. The tutorial lessons are linked to hands on, step-by-step exercises. Screen captures illustrate examples in the lessons and exercises. Requires Internet Explorer 5.0 or higher, or other equivalent XML-enhanced web browser. For beginner through advanced intermediate users. Ken Smith. 4.6MB Filename: PDToot.zip

Re: Converting gauge files to xml gauge files

PostPosted: Fri May 16, 2008 6:29 pm
by Recency
Fr. Bill:
At the moment, it seems that the fs9view expression should be able to create the forward views that I want.

Re: Converting gauge files to xml gauge files

PostPosted: Wed May 28, 2008 1:03 pm
by Recency
Hello All: :(
I am having some difficulties in getting my first xml gauge to work.  The bmp's display on the plane after I cab the codes and place it. However the gauge does not work.  Can someone tell me what changes that I need to make?
Here is the code for the switch that does switch on and off but does not turn the other gauge on.



 
 
 

 
 
   
     

(L:ThreeEightyPeriscopeSwitch, bool) ! (>L:ThreeEightyPeriscopeSwitch, bool)

   
 




Here is the code for the primary gauge:





 
 
   
           (G:Var1) 0 >
           (G:Var1) 0.00 *
   

 


 
 
   
     (A:Circuit general panel on, bool)
     
        (L:ThreeEightyPeriscopeSwitch, bool)
           
       
 
 

 


Also, how would I code the primary gauge so it will activate with the switch.
Any relevant Help Welcome
ty Recency