Jump to content

Sign in to follow this  
Optilium

Edit panel state with aircraft.cfg ?

Recommended Posts

Hi everyone, 

I fly a lot the L-1011 by CaptainSim. But, by default, aircraft is set up with engine running and every button to "arm" or "on". My question isn't "how to set up aircraft to cold and dark" but how to change buttons state in the cockpit ? 

Is there any parameters in aicraft.cfg or any other file to edit button state ? 

thanks in advance for your help 

Share this post


Link to post
Share on other sites

Load default Cessna.
Turn everything off.
Save flight.
Tick the checkbox “make this default flight”. 
Restart sim.

Now when you load an aircraft it should be cold n dark.

this works for me on most aircraft.

 


Luke Pype

Share this post


Link to post
Share on other sites

Yep I know that answer. Howewer, quite a lot of button, very specific to the l-1011 are on "arm" or "on" again (packflow, Hi press, Fuel switch,...). That's why I was asking for a way to edit via aircraft.cfg or any other program file. 

It should exist a way to edit those buttons no ? 

Share this post


Link to post
Share on other sites
Posted (edited)

What I have done is:

 1. Add the XML_Vars gauge and/or the fsx_event_logger gauge into the panel.cfg.

2. Indentify the gauge names and states while the panel is loaded. (operate the switches while observing the XML_Vars window)

3. Then modify the switch positions with your own xml "initialize" gauge which runs once at flight-load. Have fun!

 

Edited by budsurf

Share this post


Link to post
Share on other sites

Thanks very much for your reply. So I tried on the C172. Here is the result from the event_logger gauge:

 Time=315.460189; id=258; event_in=KEY_PAUSE_ON; evdata=0
 Time=326.880579; id=25; event_in=KEY_PAUSE_TOGGLE; evdata=0
 Time=327.802154; id=703; event_in=KEY_TOGGLE_BEACON_LIGHTS; evdata=0
 Time=328.141419; id=215; event_in=KEY_LANDING_LIGHTS_TOGGLE; evdata=0
 Time=328.557936; id=704; event_in=KEY_TOGGLE_TAXI_LIGHTS; evdata=0
 Time=328.939810; id=843; event_in=KEY_TOGGLE_NAV_LIGHTS; evdata=0
 Time=329.356851; id=24; event_in=KEY_STROBES_TOGGLE; evdata=0
 Time=330.024621; id=25; event_in=KEY_PAUSE_TOGGLE; evdata=0
 Time=331.622504; id=258; event_in=KEY_PAUSE_ON; evdata=0
 Time=592.841713; id=258; event_in=KEY_PAUSE_ON; evdata=0
 Time=596.824021; id=25; event_in=KEY_PAUSE_TOGGLE; evdata=0

 

Howewer, there isn't any variable for the state of the button...? 

You talked about my "own initialize gauge". What is it ? I didn't find anything about this

 

Share this post


Link to post
Share on other sites
Posted (edited)

Try the XML_VARS gauge and assume the listed items are L-variables then add them to this gauge where it says MyVariable, modify the 'enum' as nessesary (or it could also be just boolean (0 or 1): 

Code:
<Gauge Name="AA5_Logic" Version="1.0">
  <Element>
    <Select>
      <Value>
        (L:FirstLoad,bool) !
        if{
             1 (>L:MyVariable,enum)
        }
        1 (>L:FirstLoad,bool)
        }
      </Value>
    </Select>
  </Element>
</Gauge>
The little "logic" gauge above will set (L:MyVariable,enum) to be "1" whenever the aircraft is first loaded. The control variable (L:FirstLoad,bool) will make sure it is only run once.

Edited by budsurf

Share this post


Link to post
Share on other sites

Here's an example of an initialize gauge I made for the ATR in Fs9...

 

<Gauge Name="Initialize" Version="1.0">
   <Element>
    <Select>
      <Value>
        (L:FirstLoad,bool) !
        if{
             0 (>L:ATRFDBarsCpt_pos,bool)
             0 (>L:ATRFDBarsCpt,bool)
             0 (>L:ATRDome_pos,number)
             0 (>L:ATRDome,number)
             0 (>L:ATRNav_pos,bool)
             0 (>L:ATRNav,bool)
             0 (>L:ATRStrobe_pos,bool)
             0 (>L:ATRStrobe,bool)
             0 (>L:ATRBeacon_pos,bool)
             0 (>L:ATRBeacon,bool)
                 }
             1 (>L:FirstLoad,bool)
        }
      </Value>
    </Select>
  </Element>
</Gauge>

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks for being patient with me BudSurf 

 

Ok resuming, 

I downloaded fsx_event_logger gauge.gau and XML_vars.gau, which have been inserted in the fsx gauge file. Then, I wrote 2-3 lines in the panel.cfg of the C172. 

I never edited this king of file, neither any gauges. Actually, I can't edit XML, gau, or dll ? Is there any program for that ? I tried Notepad but didn't found any plugins for...

 

I understand the initialize gauge should be specific to each aircraft. 

Could you confirm me that in...

             0 (>L:ATRFDBarsCpt_pos,bool)
             0 (>L:ATRFDBarsCpt,bool)
             0 (>L:ATRDome_pos,number)
             0 (>L:ATRDome,number)
             0 (>L:ATRNav_pos,bool)
             0 (>L:ATRNav,bool)
             0 (>L:ATRStrobe_pos,bool)
             0 (>L:ATRStrobe,bool)
             0 (>L:ATRBeacon_pos,bool)
             0 (>L:ATRBeacon,bool)

..."bool" should be replace by '1' or '0' ?  Or is the boolean variable the '0' located just before "(>L:ATRFDBarsCpt_pos,bool)"

 

 

 

 

Then to insert the gauge in the aircraft, do you add a line like this one the panel.cfg ? 

 gauge00=Cessna!Altimeter,                               346,167, 79, 79

Do you insert this line in [Window00] or in each [WindowXX] ? Other ? 

Edited by Optilium

Share this post


Link to post
Share on other sites

You can put the xml_vars gauge in the panel folder, then in the panel.cfg: make new window for xml_var gauge like so: Note window 12....

// ATR 72-500 - Panel Configuration File.  This product is copyright 2004-2005 By Flight One Software, all rights reserved.

//MAIN W  - 24/11/04   Bud Mod w/ light panels

[Window Titles]
Window00=Main Control
Window01=Main Panel (Condensed)
Window02=Main Panel Top
Window03=Center Stand
Window04=MCDU (FMC)
Window05=Overhead Panel
Window06=Gear Panel
Window07=Throttle Quadrant
Window08=EFIS Control Panel
Window09=Gear Nite Overlay
Window10=Cabin Calls
Window11=Baro Adjust
Window12=XMLVARS                         //added bud, use to I.D. LVARS!!         


Fixed Window30=Forward Right
Fixed Window31=Right
Fixed Window32=Rear Right
Fixed Window33=Rear
Fixed Window34=Rear Left
Fixed Window35=Left
Fixed Window36=Forward Left
Fixed Window37=Up
Fixed Window38=FORWARD_UP
Fixed Window39=REAR_UP
Fixed Window40=REAR_LEFT_UP
Fixed Window41=REAR_RIGHT_UP
Fixed Window42=Forward Left Up   
Fixed Window43=Left Up  
Fixed Window44=Forward Right Up    
Fixed Window45=Right Up            

[VIEWS]
VIEW_FORWARD_WINDOWS=MAIN_PANEL,20,21,22,23,24,25,26,28,27,50,52

VIEW_FORWARD_ZOOM=.850
VIEW_FORWARD_EYE=0.000, 0.000, 0.000
VIEW_FORWARD_DIR=10.000, 0.000, 0.000

VIEW_FORWARD_RIGHT_WINDOWS=30
VIEW_FORWARD_RIGHT_ZOOM=.850
VIEW_FORWARD_RIGHT_EYE=1.790, 0.000, 0.000
VIEW_FORWARD_RIGHT_DIR=0.000, 0.000, 45.000

VIEW_RIGHT_WINDOWS=31
VIEW_RIGHT_ZOOM=.850
VIEW_RIGHT_EYE=1.790, 0.000, 0.000
VIEW_RIGHT_DIR=0.000, 0.000, 90.000

VIEW_REAR_RIGHT_WINDOWS=32
VIEW_REAR_RIGHT_ZOOM=.850
VIEW_REAR_RIGHT_EYE=1.790, 0.000, 0.000
VIEW_REAR_RIGHT_DIR=0.000, 0.000, 135.000

VIEW_REAR_WINDOWS=33
VIEW_REAR_ZOOM=0.700
VIEW_REAR_EYE=0.000, 0.000, 0.000
VIEW_REAR_DIR=7.000, 0.000, 180.000

VIEW_REAR_LEFT_WINDOWS=34
VIEW_REAR_LEFT_ZOOM=0.850   //last1.00                      //.700
VIEW_REAR_LEFT_EYE=1.600, -0.500, 0.000                //-0.810, 0.000, 0.000
VIEW_REAR_LEFT_DIR=0.000, 0.000, -135.000               //-120.000

VIEW_LEFT_WINDOWS=35
VIEW_LEFT_ZOOM=.850
VIEW_LEFT_EYE=-0.8100, 0.000, 0.000
VIEW_LEFT_DIR=0.000, 0.000, -90.000

VIEW_FORWARD_LEFT_WINDOWS=36
VIEW_FORWARD_LEFT_ZOOM=.850
VIEW_FORWARD_LEFT_EYE=-0.810, 0.000, 0.000
VIEW_FORWARD_LEFT_DIR=0.000, 0.000, -45.000

VIEW_UP_WINDOWS=37
VIEW_UP_ZOOM=.850
VIEW_UP_EYE=0.000, 0.000, 4.000
VIEW_UP_DIR=0.000, 0.000, 0.000

;LANDING VIEW
VIEW_FORWARD_UP_WINDOWS=38
VIEW_FORWARD_UP_ZOOM=.700
VIEW_FORWARD_UP_EYE=0.000, 0.000, 4.000
VIEW_FORWARD_UP_DIR=13.000, 0.000, 0.000

;CABIN VIEW
VIEW_REAR_UP_WINDOWS=39
VIEW_REAR_UP_ZOOM=1.00
VIEW_REAR_UP_EYE=0.490, 0.000,4.000
VIEW_REAR_UP_DIR=0.000, 0.000, 0.000

VIEW_REAR_LEFT_UP_WINDOWS=40                                       //wing view left
VIEW_REAR_LEFT_UP_ZOOM=0.85                                         //.70
VIEW_REAR_LEFT_UP_EYE= 2.50, -1.00, -19.00                         //was -0.81, -0.23, -6.00
VIEW_REAR_LEFT_UP_DIR=-3.000, 0.000, 315.000

VIEW_REAR_RIGHT_UP_WINDOWS=41                                     //wing view right
VIEW_REAR_RIGHT_UP_ZOOM=0.85                                        //0.70
VIEW_REAR_RIGHT_UP_EYE=-1.60, -1.00, -19.00                         //1.79, 0.23, -6.00
VIEW_REAR_RIGHT_UP_DIR=-3.000, 0.000, 45.000                  //0.000, 0.000, 90.000

VIEW_FORWARD_LEFT_UP_WINDOWS=42                   //try bud
VIEW_FORWARD_LEFT_UP_DIR=-8.0, 0.0, -45.000
VIEW_FORWARD_LEFT_UP_ZOOM=.85

VIEW_LEFT_UP_WINDOWS=43
VIEW_LEFT_UP_ZOOM=.850
VIEW_LEFT_UP_DIR=-9.000, 0.000, -90.000

VIEW_FORWARD_RIGHT_UP_WINDOWS=44
VIEW_FORWARD_RIGHT_UP_ZOOM=.850
VIEW_FORWARD_RIGHT_UP_DIR=-8.000, 0.000, 45.000

VIEW_RIGHT_UP_WINDOWS=45
VIEW_RIGHT_UP_ZOOM=.850
VIEW_RIGHT_UP_DIR=-9.000, 0.000, 90.000

//--------------------------------------------------------
[Window00]                                                                //added bud
zorder=0
file=F1ATR_MAIN_bud.bmp                                      //F1ATR_MAIN_W.bmp 
size_mm=1229,768
//size_mm=1024
window_size_ratio=1.000  
position=0
visible=1
ident=MAIN_PANEL
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!FwdNite,  0,0 
gauge01=NightViews!Gear,  893,400,75,51                                                //added bud
gauge02=F1ATR-Bud!Initialize,  10,10
gauge03=F1ATR-Bud!CabinCalls,  412,696,82,61                                     //added bud
gauge04=F1ATR-Bud!Baro,  841,513,39,19                                     //added bud

//--------------------------------------------------------
[Window01]
zorder=1
file=black.bmp                                //F1ATR_MAIN_W.bmp 
size_mm=1229,768
//size_mm=1024
window_size_ratio=1.000  
position=0
visible=1
ident=MAIN_PANEL
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=F1ATR!MSYS,  0,0,10,9
gauge01=F1ATR!MSND,  10,0,10,9
gauge02=F1ATR!ADCSW,  847,716,32,47                
gauge03=F1ATR!CAUT,  846,462,35,39                     
gauge04=F1ATR!GPWSGS,  725,417,24,23             
gauge05=F1ATR!ALT_CPT,  728,444,110,110            
gauge06=F1ATR!VSIL,  728,563,111,108                  
gauge07=F1ATR!TAS,  729,678,111,51                     
gauge08=F1ATR!RDRM,  727,736,24,24                    
gauge09=F1ATR!FDSW_CPT,  815,341,24,23            
gauge10=F1ATR!REG,  752,410,131,30                      
gauge11=F1ATR!APOFF,  501,341,35,19                    
gauge12=F1ATR!GUID,  537,340,35,19                     
gauge13=F1ATR!ASI_CPT,  402,449,108,112             
gauge14=F1ATR!RMI_CPT,  400,  567 ,112,112        
gauge15=F1ATR!STPUSH,  351,480,40,22                
gauge16=F1ATR!NAV1,  968,287,78,83                     
gauge17=F1ATR!CCHA,  969,369,76,41                    
gauge18=F1ATR!SASI,  986,430,58,58                                     
gauge19=F1ATR!SALT,  985,493,58,59                    
gauge20=F1ATR!PWRMGT,  986,557,58,93             
gauge21=F1ATR!FTEMP,  1009,655,29,45                
gauge22=F1ATR!OIL1,  986,706,57,57                    
gauge23=F1ATR!FQTY,  898,714,83,39                   
gauge24=F1ATR!CCAS,  896,544,87,122                
gauge25=F1ATR!ADU,  1049,286,180,136                
gauge26=F1ATR!ATPCS,  1051,425,116,28             
gauge27=F1ATR!PFDL,  519,421,200,166                
gauge28=F1ATR!NDL,  519,594,200,166                  
gauge29=F1ATR!OIL2,  1174,706,57,57                     
gauge30=F1ATR!FTEMP2,  1179,655,29,45               
gauge31=F1ATR!TRQ1,  1049,457,58,57    //was 1049              
gauge32=F1ATR!TRQ2,  1109,457,58,57    //was 1109              
gauge33=F1ATR!NP1,  1049,520,58,57                  
gauge34=F1ATR!NP2,  1109,520,58,57                    
gauge35=F1ATR!ITT1,  1049,582,58,57                   
gauge36=F1ATR!ITT2,  1109,582,58,57                   
gauge37=F1ATR!NHNL1,  1049,644,58,58                
gauge38=F1ATR!NHNL2,  1109,644,58,58                
gauge39=F1ATR!FF1, 1049,706,58,57                     
gauge40=F1ATR!FF2,  1109,706,58,57                    
gauge41=F1ATR!ICED,  898,670,84,39                   
gauge42=F1ATR!HIND,  1175,429,58,58                   
gauge43=F1ATR!CLCK_CPT,  307 ,513,89,87           
gauge44=F1ATR!BALL,  573,570,93,17                    
gauge45=F1ATR!SADI,  897,456,85,83                    
gauge46=F1ATR!GEAR1,  1175,550,43,88              
gauge47=F1ATR!GEAR2,  1175,494,63,56              
gauge48=F1ATR!COMPL,  835,378,97,12               
gauge49=F1ATR!SCOMP,  884,392,82,65               
gauge50=F1ATRCS!CS_AP,  1046,137,184,148        
gauge51=F1ATRCS!CS_LND,  344,300,450,100        
gauge52=F1ATRCS!CS_LF,  0,0,100,768
gauge53=F1ATRCS!CS_CCAS,  899,544,77,94       
gauge54=F1ATRCS!CS_CPTEFIS,  537,743,160,25   
//gauge55=F1ATRCS!CS_ENG,  887,400,80,50           
gauge56=F1ATRCS!CS_OVR,  1101,0,130,103           
gauge57=F1ATRCS!CS_CTRCON,  984,707,56,61        
//gauge58=F1ATRCS!CS_PWCCPT,  327,680,180,69     
//gauge59=F1ATRCS!CS_RF,  1173,427,57,90              
gauge59=F1ATR-Bud!MCU_SW,  1176,433,53,51               //added bud
//gauge60=F1ATRCS!CS_RF,  1008,547,14,220         
gauge60=F1ATR-Bud!Throt_SW,  1173,707,56,61
gauge61=Atrvesi!stopvesi,  344,287,20,20              
gauge62=Atrvesi!vesitimer,  416,280,20,20              
gauge63=F1ATR!CRSALT,  1212,372,45,25                                                              //added bud   
gauge64=Vspeed_Sound!dsd_xml_sound3,  0,0,20, ,./sound/Vspeed/Sound.ini              //added bud
gauge65=F1ATR-Bud!Vspeed_ATR,  3,3,3,3                                                                 //added bud
gauge66=GH_Sound!dsd_xml_sound3, 0,0,,, ./sound/Groundhandling/Sound.ini              //added bud
gauge67=dsd_xml_sound!dsd_xml_sound,  1,1,5,5, 012                            //for new check lists: bud
//gauge68=dsd_xml_sound_set!ADF2_6_set.a,  416,756,10,10                          //Boarding Doors
//gauge69=dsd_xml_sound_set!ADF2_1_set.a,  430,756,9,9                         //Next for Runway 
//gauge70=dsd_xml_sound_set!ADF2_0_set.a,  444,756,9,9                          //B4 T/O ChkList
//gauge71=dsd_xml_sound_set!ADF2_3_set.a,  458,756,9,9                          //at Flight Level
//gauge72=dsd_xml_sound_set!ADF2_4_set.a,  472,756,9,9                          //15 min out
//gauge73=dsd_xml_sound_set!ADF2_10_set.a,  486,756,11,11                          //Appr ChkList
gauge74=NightViews!PanelLights,  325,749,16,24                    //                    //added bud
//gauge75=NightViews!Gear,  893,400,75,51                               //                 //added bud
gauge76=dsd_fsx_xml_sound!Sound,  2,2,2,2,./sound/dsd_fsx_sound/dsd_fsx_xml_sound.ini         //added bud
gauge77=F1ATR-Bud!vari_volumeATR,  3,3,2,2                                       //added bud
gauge78=NightViews!Lamp,  1107,459,10,10                                   //added bud
//gauge79=F1ATR-Bud!APOride,   0, 700, 51,49                                       //added bud

//gauge79=fsx_event_logger!event_logger,  500,10,120,73                           //for testing for race conditions, bud

//draw_order00=gauge78, gauge39 
//draw_order01=gauge78, gauge40 

//---------------------------------------------------------
[Window02]
zorder=3                                
file=MainPanelTop.bmp                            
Background_color=0,0,0 
size_mm=1680,1050                                                                                
window_size_ratio=1.000 
position=0                     
visible=1
ident=11000
window_pos= 0.000, 0.000
window_size= 1.000, 1.000

gauge00=NightViews!FwdTop,  0,0 
gauge01=F1ATR-Bud!510_Bud,  1500,0,180,100

//--------------------------------------------------------
[Window03]
zorder=6
file=F1ATR_CTR_CNSL.bmp 
file_1024=F1ATR_CTR_CNSL.bmp 
size_mm=572,559
window_size_ratio=1.000  
position=8
visible=0
ident=20

gauge00=F1ATR!ADF1,  23,13,92,97
gauge01=F1ATR!ADF2,  459,13,92,97
gauge02=F1ATR!ASP1,  10,119,214,115
gauge03=F1ATR!ASP2,  350,119,214,115
gauge04=F1ATR!TRIMC,  223,117,127,218
gauge05=F1ATR!DOOR,  285,459,207,65
gauge06=F1ATR!FDATA,  10,235,213,102
gauge07=F1ATR!COM1,  119,13,92,97
gauge08=F1ATR!COM2,  364,13,92,97
gauge09=F1ATR!XPNDR,  240,13,92,97
gauge10=F1ATR!RCDR,  350,235,214
gauge11=F1ATR!TCAS,  284,336,212
gauge12=F1ATR!LT,  73,336,212
//gauge13=F1ATRCS!CS_CTRCON,  550,0,22,22
gauge14=F1ATRCS!CS_CTRCON, 0,534,572,25
gauge15=rcb_Groundhandling4!PushbackDisplay,   156,464,46,34
gauge16=rcb_Groundhandling4!PushbackStates,  0,0

//--------------------------------------------------------
[Window04]
zorder=4
Background_color=0,0,0 
size_mm=275,342                     //was 475,590 bud
window_size_ratio=1.000  
position=8              //was 0 bud
visible=0
ident=21

gauge00=F1ATR!MCDU,  0,0,275,342                                        //0,0,475,590
gauge01=F1ATRCS!CS_MCDU,  40,50,195,145                                         //was 0,0,35,35
//gauge02=F1ATRCS!CS_MCDU,  440,0,35,35

//--------------------------------------------------------
[Window05]
zorder=12                         //5
file=F1ATR_OVERHEAD.bmp 
size_mm=1024
window_size_ratio=1.000  
position=0
visible=0
ident=22

gauge00=F1ATR!FIRE1,  16,11,251
gauge01=F1ATR!FUEL,  11,121,253
gauge02=F1ATR!CALLS,  11,564,253
gauge03=F1ATR!CVR,  267,13,245
gauge04=F1ATR!ELECM,  265,105,246
gauge05=F1ATR!ENGST,  264,476,246
gauge06=F1ATR!ELT,  512,13,246
gauge07=F1ATR!ELECW,  514,90,245
gauge08=F1ATR!AICE,  510,460,250
gauge09=F1ATR!FIRE2,  758,8,251
gauge10=F1ATR!COMPT,  759,119,252
gauge11=F1ATR!BLEED,  759,204,253
gauge12=F1ATR-Bud!510_Bud-x,  985,0,39,206
gauge13=F1ATR-Bud!ATR_B4_Start,  293,37,46,46


//--------------------------------------------------------
[Window06]
zorder=3
file=F1ATR_GEAR_W.bmp 
file_1024=F1ATR_GEAR_W.bmp 
size_mm=250,343
window_size_ratio=1.000  
position=8
visible=0
ident=23

gauge00=NightViews!GearNite,  0,0  

//--------------------------------------------------------
[Window07]
zorder=7
Background_color=1,1,1 
size_mm=303,342                  //was 435,491 bud
window_size_ratio=1.000  
position=8
visible=0
ident=24

gauge00=F1ATR!THRT,  0,0,303,342                           //0,0,435,490
gauge01=F1ATR-Bud!Throt_SW-x,  273,220,30,122         //added bud

//--------------------------------------------------------

[Window08]
zorder=11
Background_color=1,1,1 
size_mm=257,179                                //was 386,269 bud
window_size_ratio=1.000  
position=8
visible=0
ident=50
render_3d_window=0
//window_size=0.377, 0.350
//window_pos=0.623, 0.650

gauge00=F1ATR!EFISL,  0,0,257,179                   //0,0,386,269
gauge01=F1ATRCS!CS_CPTEFIS,  128,144,60,35

//------------------------------------------------------
[Window09]                                                                  //added bud
zorder=5
file=black.bmp 
size_mm=250,343
window_size_ratio=1.000  
position=8
visible=0
ident=110

gauge00=F1ATR!FLIND,  92,130,88,57
gauge01=F1ATR!FTEMP2,  49,231,29,45
gauge02=F1ATR!OIL2,  44,280,57,57
gauge03=F1ATR!MEMO,  109,267,40,58
gauge04=F1ATR!PRSI,  185,53,54,125
gauge05=F1ATR!HIND,  44,5,58,58
gauge06=F1ATR!APRS,  157,194,84,83
gauge07=F1ATR!CPRS,  150,284,90,44
gauge08=F1ATR!TRMI,  88,190,63,72
gauge09=F1ATR!GEAR1,  44,124,43,88
gauge10=F1ATR!GEAR2,  44,68,63,56
gauge11=F1ATR!GEAR3,  106,-4,72
gauge12=F1ATR!GEAR4,  178,-2,60

//----------------------------------------------------------
[Window10]
zorder=9                                   
//render_3d_window=1          
file=plaq.bmp 
size_mm=73,36                        //72,31                                  
window_size_ratio=1.000 
position=0                     
visible=0
ident=4014
window_pos= 0.000, 0.000
//window_size= 0.100, 0.100

gauge00=dsd_xml_sound_set!ADF2_6_set.a,  5,4,11,11                          //Boarding Doors
gauge01=dsd_xml_sound_set!ADF2_1_set.a,  21,4,11,11                         //Next for Runway 
gauge02=F1ATR-Bud!ATR_B4_Takeoff,  37,4,11,11                                  //B4 T/O ChkList          
gauge03=dsd_xml_sound_set!ADF2_3_set.a,  5,20,11,11                         //at Flight Level   
gauge04=dsd_xml_sound_set!ADF2_4_set.a,  21,20,11,11                        //15 min out    
gauge05=dsd_xml_sound_set!ADF2_10_set.a,  37,20,11,11                       //Appr ChkList
gauge06=F1ATR-Bud!CabinCallsX,  56,4,11,27

//----------------------------------------------------------
[Window11]
zorder=9 
file=baro.bmp  
size_mm=39,19  
visible=0
position=1 
ident=4015
window_pos= 0.684, 0.670 

gauge00=F1ATR-Bud!Baro_Adjust,  0,3,79,61  
gauge01=F1ATR-Bud!BaroX,  0,0                             

//---------------------------------------------------------------------------

[Window12]                                   //added bud, use to I.D. LVARS!!
Background_color=2,2,2 
size_mm=354,364
window_size_ratio=1.000  
position=0
visible=1
ident=10035
window_size= 0.273, 0.352
window_pos= 0.000, 0.050  //was 0.200, 0.050
zorder=13

gauge00=xml_vars!xml_vars,  2,2,350

//=============================================================

[Fixed Window30]
file=F1ATR_FORWARD_RIGHT.bmp 
size_mm=1680,1050                                             //1024
position=0             //7
visible=0
ident=30
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!FwdRight,  0,0      

//--------------------------------------------------------
[Fixed Window31]
file=F1ATR_RIGHT.bmp 
size_mm=1680,1050                                             //1024
position=0                     //7
visible=0
ident=31
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Right,  0,0  

//--------------------------------------------------------
[Fixed Window32]
file=F1ATR_REAR_RIGHT.bmp 
size_mm=1680,1050                        //1024
position=0            //7
visible=0
ident=32
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Right_b,  0,0      

//--------------------------------------------------------
[Fixed Window33]
file=F1ATR_REAR.bmp 
size_mm=1024
position=0            //7
visible=0
ident=33
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Rear,  0,0   

//--------------------------------------------------------
[Fixed Window34]
file=F1ATR_REAR_LEFT.bmp 
size_mm=1024
position=0              //7
visible=0
ident=34
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Left_r,  0,0      

//--------------------------------------------------------
[Fixed Window35]
file=F1ATR_LEFT.bmp 
size_mm=1024
position=0                //7
visible=0
ident=35
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Left,  0,0         

//--------------------------------------------------------
[Fixed Window36]
file=F1ATR_FORWARD_LEFT.bmp 
size_mm=1024
position=0               //7
visible=0
ident=36
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Fwd_l,  0,0       

//--------------------------------------------------------
[Fixed Window37]
file=F1ATR_UP.bmp 
size_mm=1024
position=7
visible=0
ident=37
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=F1ATRCS!CS_LND,  0,0,1024,768
gauge01=F1ATR!FDSW_CPT,  877,683,39
gauge02=F1ATR!APOFF,  454,724,46
gauge03=F1ATR!GUID,  508,723,46

//--------------------------------------------------------
[Fixed Window38]
file=F1ATR_MAIN_WL.bmp 
size_mm=1024
position=7
visible=0
ident=38
render_3d_window=1
nomenu=0
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=F1ATR!STPUSH,  144,570,40,22
gauge01=F1ATR!ASI_CPT,  195,539,108,112
gauge02=F1ATR!RMI_CPT,  193,657,112,112
gauge03=F1ATR!PFDL2,  312,511,200,166
gauge04=F1ATR!NDL2,  312,684,200,166
gauge05=F1ATR!GPWSGS,  518,507,24,23
gauge06=F1ATR!FDSW_CPT,  608,431,24,23
gauge07=F1ATR!REG,  545,500,131,30
gauge08=F1ATR!APOFF,  294,431,35,19
gauge09=F1ATR!GUID,  330,430,35,19
gauge10=F1ATR!ALT_CPT,  521,534,110,110
gauge11=F1ATR!VSIL2,  521,653,111,108
gauge12=F1ATR!CAUT,  639,552,35,39
gauge13=F1ATR!NAV1,  761,377,78,83
gauge14=F1ATR!CCHA,  762,  459 ,76,41
gauge15=F1ATR!ADUL2,  842,376,180,136
gauge16=F1ATR!SASI,  779,520,58,58
gauge17=F1ATR!SALT,  778,583,58,59
gauge18=F1ATR!PWRMGT,  779,647,58,93
gauge19=F1ATR!CCAS,  689,634,87,122
gauge20=F1ATR!ATPCS,  844,515,116,28
gauge21=F1ATR!FTEMP,  802,745,29,45
gauge22=F1ATR!TRQ1,  842,547,58,57
gauge23=F1ATR!TRQ2,  905,547,58,57
gauge24=F1ATR!NP1,  842,610,58,57
gauge25=F1ATR!NP2,  905,610,58,57
gauge26=F1ATR!ITT1,  842,672,58,57
gauge27=F1ATR!ITT2,  905,672,58,57
gauge28=F1ATR!NHNL1,  842,734,58,58
gauge29=F1ATR!NHNL2,  905,734,58,58
gauge30=F1ATR!FTEMP,  972,745,29,45
gauge31=F1ATR!HIND,  967,519,59,58
gauge32=F1ATR!CLCK_CPT,  100,603,89,87
gauge33=F1ATR!BALL,  366,660,93,17
gauge34=F1ATR!SADI,  690,546,85,83
gauge35=F1ATR!GEAR1,  968,640,43,88
gauge36=F1ATR!GEAR2,  968,584,63,56
gauge37=F1ATR!COMPL,  628,468,97,12
gauge38=F1ATR!SCOMP,  677,482,82,65
gauge39=F1ATRCS!CS_AP,  782,264,242,111
gauge40=F1ATRCS!CS_MAIN,  137,390,450,100
gauge41=F1ATRCS!CS_LF,  0,0,100,768
gauge42=F1ATRCS!CS_CCAS,  700,650,70,70
gauge43=F1ATRCS!CS_CPTEFIS,  330,672,160,20
gauge44=F1ATRCS!CS_OVR,  819,0,204,139
gauge45=F1ATRCS!CS_CTRCON,  690,760,334,8
gauge46=F1ATRCS!CS_UP,  108,0,700,84

//--------------------------------------------------------
[Fixed Window39]
file=F1ATR_CABIN.bmp 
size_mm=1024
position=7
visible=0
ident=39
render_3d_window=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=F1ATRCS!CS_MAIN,  351,0,321,768
gauge01=F1ATRCS!CS_PAXL,  0,0,341,768
gauge02=F1ATRCS!CS_PAXR,  682,0,341,768

//-----------------------------------------------------------
[Fixed Window40]
file=window_L.bmp                          //F1ATR_WINDOW.bmp
size_mm=1024
position=0
Visible=0
ident=40
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Pass_Lt,  0,0                        //added bud

//--------------------------------------------------------
[Fixed Window41]
file=window_R.bmp                     //F1ATR_WINDOW_R.bmp
size_mm=1024
position=0
Visible=0
ident=41
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Pass_Rt,  0,0                        //added bud

//-----------------------------------------------------------
[Fixed Window42]
file=F1ATR_FORWARD_LEFT.bmp 
size_mm=1024
position=0               //7
visible=0
ident=42
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Fwd_l,  0,0   

//--------------------------------------------------------
[Fixed Window43]
file=F1ATR_LEFT.bmp 
size_mm=1024
position=0                //7
visible=0
ident=43
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Left,  0,0   

//------------------------------------------------  
[Fixed Window44]
file=F1ATR_FORWARD_RIGHT.bmp 
size_mm=1680,1050                                      //1024
position=0             //7
visible=0
ident=44
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!FwdRight,  0,0 

//-----------------------------------------------
[Fixed Window45]
file=F1ATR_RIGHT.bmp 
size_mm=1680,1050                        //1024
position=0                     //7
visible=0
ident=45
render_3d_window=1
nomenu=1
window_size=1.000, 1.000
window_pos=0.000, 0.000

gauge00=NightViews!Right,  0,0  
          
//------------------------------------------------

Day=255,255,255
Night=75,25,0       //100,50,0                      //last 75,25,25                               //was 125,75,75
Luminous=190,140,90                   //110,100,95           //190,140,90

[Default View]
X=0
Y=0
SIZE_X=8192                       //8191
SIZE_Y=6140                   //2740
 

 

Share this post


Link to post
Share on other sites

Then, after observing the switch states in the xml_var window, in game, and identifying the Lvars.....

I understand the initialize gauge should be specific to each aircraft. 

Could you confirm me that in...

             0 (>L:ATRFDBarsCpt_pos,bool)
             0 (>L:ATRFDBarsCpt,bool)
             0 (>L:ATRDome_pos,number)
             0 (>L:ATRDome,number)
             0 (>L:ATRNav_pos,bool)
             0 (>L:ATRNav,bool)
             0 (>L:ATRStrobe_pos,bool)
             0 (>L:ATRStrobe,bool)
             0 (>L:ATRBeacon_pos,bool)
             0 (>L:ATRBeacon,bool)

..."bool" should be replace by '1' or '0' ?  Or is the boolean variable the '0' located just before "(>L:ATRFDBarsCpt_pos,bool)"   The 0 in front of, for example,

  0 (>L:ATRFDBarsCpt_pos,bool)  is what you change depending on the switch state you desire (0 or 1)...

Note though some switches could have more than 2 positions then use this type code:

 3 (>L:ATRFDBarsCpt_pos,enum)

Where the "3" is the desired switch state.

Happy to help...

You make the initialize gauge with notepad, you can copy paste mine and change the lvars, and you can put it in the panel folder. Then add to the panel.cfg like:

gauge xx=initialize, 0.0

 

Share this post


Link to post
Share on other sites

OK good luck.  If you use my initialize gauge above using notepad, just name it ------

Initialize.xml

Note: Panels with cabbed gauges are great 'cause you can modify the included xml

gauges as much as you want.

For example a gauge like "cs.b757.cab"  is a cabinet. You can use 7zip (free) to extract the xml gauges to a temporary folder.  If you modify one of the xml gauges, in the temp folder, make a new folder called cs.b757 in the main gauges folder and add to it your modded gauge.  Lets say you modded the cp_s010 gauge.  Put the modded cp_s010.xml into your new folder "cs.b757" along with any modded .bmp (pictures) associated with that gauge.

Then when the computer calls that gauge from the panel.cfg ----- for example:

gauge11=cs.b757!CP_S010,  1575,808,52,52  

The computer will use your modded gauge from your  gauges / cs_b757 folder instead of 

the gauge from the cs.b757.cab  ( cabinet ).

Whew,  hope I didn't confuse ya too bad.    

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    17%
    $4,475.00 of $25,000.00 Donate Now
×
×
  • Create New...