Panel Gauge

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

Panel Gauge

Postby DoyleChris » Mon Dec 20, 2004 10:19 pm

I have a xml gauge that can open the number 1 exit this is the code.

Code: Select all
<Gauge Name="Exits" Version="1.0">
   <Element>
      <Select>
         <Value>(G:Var1,bool)</Value>
         <Case Value="0">
            <Image Name="Exits_off.bmp" ImageSizes="54,28,54,29"/>
         </Case>
         <Case Value="1">
            <Image Name="Exits_on.bmp" ImageSizes="54,28,54,28"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Help ID="HELPID_CONCORDE_ENGINE_MANAGE_GO"/>
      <Cursor Type="Hand"/>
      <Click>(G:Var1) ! (>G:Var1) 0 (>K:TOGGLE_AIRCRAFT_EXIT)</Click>
   </Mouse>
</Gauge>


Im trying to make one for the next exits 2,3,4,5 for a my planes.
DoyleChris
Ground hog
Ground hog
 
Posts: 3
Joined: Wed Feb 11, 2004 3:20 pm

Re: Panel Gauge

Postby garymbuska » Tue Dec 21, 2004 9:51 am

XML gauges are tricky but can be done.
I use a payware program called FS Panel Studio. This program is a upscale version of cfgedit. The biggest differance between the two is FS Panel Studio will allow you to both edit and make XML gauges where cfgedit will not. I use this program whenever I find the need to edit XML gauges. FS Panel Studio can be found at
http://www.fspanelstudio.com/
It is not that expensive and for me well worth it. 8)
Gary M Buska
SYSTEM Specs ASUS P8Z68 V/GEN 3 mother board: INTELL I7 2600k 3.48 ghz Quad core CPU with Sandy bridge: 12 Gigs of 1800hz ram:
GTX 950 OVER CLOCKED: 2 Gigs Ram Windows 10 Home 64 bit Operating system. 750W Dedicated modular power supply. Two Internal 1TB hard drives 1 External 1TB 3.2 USB hard drive. SAITEK Cessna flight Yoke with throttles.
CH Rudder Peddles 27 inch Wide screen Monitor
User avatar
garymbuska
Major
Major
 
Posts: 4415
Joined: Tue Dec 30, 2003 11:10 am
Location: Jacksonville, Florida

Re: Panel Gauge

Postby Hagar » Tue Dec 21, 2004 3:15 pm

XML gauges are tricky but can be done.
I use a payware program called FS Panel Studio. This program is a upscale version of cfgedit. The biggest differance between the two is FS Panel Studio will allow you to both edit and make XML gauges where cfgedit will not. I use this program whenever I find the need to edit XML gauges. FS Panel Studio can be found at
http://www.fspanelstudio.com/
It is not that expensive and for me well worth it. 8)

I've never tried it myself but as it's possible to open & read XML gauge files in Notepad I always assumed you could edit them in the same way as a CFG file. I don't see why you would need a utility to do it.

I don't know the answer to your question Chris. The first place I would look is the FS9 Panels & Gauges SDK but I suppose you've already done that.
Image

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group
My Google Photos albums
My Flickr albums
User avatar
Hagar
Colonel
Colonel
 
Posts: 30862
Joined: Wed Jun 19, 2002 7:15 am
Location: Costa Geriatrica

Re: Panel Gauge

Postby andyjohnston.net » Tue Dec 21, 2004 3:39 pm

Yes, you can open them in Notepad.  Right click on an XML file, and edit will be second on the menu (at least in Win XP Pro.)

First, you have to remember that there are only two doors in Flight Simulator.  You can't assign more than that.

Next, like H said, read the sdk:

KEY_TOGGLE_AIRCRAFT_EXIT       - TOGGLE_AIRCRAFT_EXIT - Toggles primary door open/close.  Follow by  KEY_SELECT_2, etc for subsequent doors.
User avatar
andyjohnston.net
2nd Lieutenant
2nd Lieutenant
 
Posts: 59
Joined: Sun Aug 08, 2004 6:38 pm

Re: Panel Gauge

Postby garymbuska » Wed Dec 22, 2004 7:37 pm

Hagar
As always you are correct you can use notepad or any other same type of program to edit XML files. The reason I use the FS Panel Studio program is to allow me to make the actual gauge it self . It allows you to check out your gauges to make sure they work correctly and shows you what they look like with out opening FS9.
The problem I have using note pad is not knowing what the finshed gauge will look like and if there are any coding errors in it .
It can be easy to get lost in all of the loops some xml gauges use unless you are experienced at this language.
It is easy to for get  a step and then when you go to run fs9 you get a nasty message or it might even crash.
This way I dont make a mistake as easy but even this way is not fool proof. you can for get to assighn a value or assign a wrong value and it will not catch that. 8)
Gary M Buska
SYSTEM Specs ASUS P8Z68 V/GEN 3 mother board: INTELL I7 2600k 3.48 ghz Quad core CPU with Sandy bridge: 12 Gigs of 1800hz ram:
GTX 950 OVER CLOCKED: 2 Gigs Ram Windows 10 Home 64 bit Operating system. 750W Dedicated modular power supply. Two Internal 1TB hard drives 1 External 1TB 3.2 USB hard drive. SAITEK Cessna flight Yoke with throttles.
CH Rudder Peddles 27 inch Wide screen Monitor
User avatar
garymbuska
Major
Major
 
Posts: 4415
Joined: Tue Dec 30, 2003 11:10 am
Location: Jacksonville, Florida

Re: Panel Gauge

Postby Hagar » Wed Dec 22, 2004 7:45 pm

Hi Gary. I appreciate what you're saying & this is fine if you're designing a new gauge. It seemed to me that a simple edit is what Chris wanted to do. He already has the gauge & I assume he already knows how to open XML files as he posted it in text format in his original question.
Image

Founder & Sole Member - Grumpy's Over the Hill Club for Veteran Virtual Aviators
Member of the Fox Four Group
My Google Photos albums
My Flickr albums
User avatar
Hagar
Colonel
Colonel
 
Posts: 30862
Joined: Wed Jun 19, 2002 7:15 am
Location: Costa Geriatrica

Re: Panel Gauge

Postby DoyleChris » Tue Dec 28, 2004 11:29 am

I have looked at the fS9 panel sdks and noticed the key select 2 but how do i enter it into the code that i entered origanialy, also im guessing you can assign up to ten exits for a aircraft if it has them, since there are keys from 0-9. also with the payware stuff if you can tell me or sho me that the program can do it then ill get it but on 2 different time i have went and bought a program and it didnt do hat i wanted it to do. thanks for the replys guys.
DoyleChris
Ground hog
Ground hog
 
Posts: 3
Joined: Wed Feb 11, 2004 3:20 pm


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 282 guests