May 24, 201313 yr Hi! I want to show a small gauge file for the C337 which adjusts some default settings to my preferred value (see comments in the code, this part is inspired by a similar script Bert Pieke wrote for a different Carenado plane) and sets the fuel selector switches to the values that are stored in the saved flight. Without this, the fuel selector switches would always point to the red area (cut off), even if a different setting is active. The section "set spoilers only once" is only needed if you use the C337 Flooding fix posted in this forum. You have to remove it if you do not use the fix. Step 1: Create FSX/Gauges/MyGauges/MyC337.xml: <Gauge Name="MyC337" Version="1.0"> <!-- my settings for Carenado C337 --> <Element><Select><Value> (L:ControlInit,bool) 1 != if{ 1 (>L:WINDOWSTINTBOOL,bool) <!-- hide VC windows --> 1 (>L:WINDOWSTINTBOOL2,bool) <!-- hide instrument reflections --> 1 (>L:COSASBOOL,bool) <!-- enable static elements --> 1 (>L:YokePilot,bool) <!-- hide pilot yoke --> <!-- set VC front fuel tank selector --> (A:FUEL TANK SELECTOR 1,enum) d 0 != if{ d 1 != if{ p -1 } } (>L:KNOB_FUEL_SELECTOR_F,number) <!-- set VC rear fuel tank selector --> (A:FUEL TANK SELECTOR 2,enum) d 0 != if{ d 1 != if{ p -1 } } (>L:KNOB_FUEL_SELECTOR_R,number) 1 (>L:ControlInit,bool) } <!-- set spoilers only once when gear is moving, requires change of (>K:SPOILERS_SET) to (>L:SPOILERS_SET) in sky337*.MDL files --> (L:SPOILERS_SET) s0 0 > (A:SPOILERS HANDLE POSITION,position) 0 > != if{ l0 (>K:SPOILERS_SET) } </Value></Select></Element> </Gauge> Due to the ControlInit bool the fuel selectore knobs do not follow changes to fuel selection done via other ways, e.g. joystick buttons mapped via FSUIPC. Move it out of the if{} section if this is needed. Step 2: Adjust FSX/SimObjects/Airplanes/Carenado Skymaster 337/panel/panel.cfg [Vcockpit01] ... gauge06=MyGauges!MyC337, 0,0,1,1 Step 3 (optional): Correct aircraft manufacturer In FSX/SimObjects/Airplanes/Carenado Skymaster 337/aircraft.cfg I changed every line ui_manufacturer="Carenado"to ui_manufacturer="Cessna"to show the correct aircraft manufacturer when selecting a plane in FSX. Regards, Thomas
August 28, 201312 yr Thanks Thomas, I applied 1-2 and its perfect. Grz. Paul Regards, Paul - near EHRD
November 19, 20169 yr Author Here is my current version of MyC337.xml: <Gauge Name="MyC337" Version="1.0"> <!-- my settings for Carenado C337 --> <Element><Select><Value> (L:ControlInit,bool) 1 != if{ 1 (>L:ControlInit,bool) <!-- only once --> 1 (>L:WINDOWSTINTBOOL,bool) <!-- hide VC windows --> 0 (>L:WINDOWSTINTBOOL2,bool) <!-- show instrument reflections --> 1 (>L:COSASBOOL,bool) <!-- enable static elements --> 1 (>L:YokePilot,bool) <!-- hide pilot yoke --> <!-- set VC front fuel tank selector --> (A:FUEL TANK SELECTOR 1,enum) d 0 != if{ d 1 != if{ p -1 } } (>L:KNOB_FUEL_SELECTOR_F,number) <!-- set VC rear fuel tank selector --> (A:FUEL TANK SELECTOR 2,enum) d 0 != if{ d 1 != if{ p -1 } } (>L:KNOB_FUEL_SELECTOR_R,number) (A:AVIONICS MASTER SWITCH,bool) if{ 1 (>L:STATEVIEW, bool) <!-- turn on GNS --> (A:SELECTED DME,number) (>L:DMEPOS,number) <!-- DME N1/N2 --> } } <!-- set spoilers only once when gear is moving, requires change of (>K:SPOILERS_SET) to (>L:SPOILERS_SET) in sky337*.MDL files --> (L:SPOILERS_SET) s0 0 > (A:SPOILERS HANDLE POSITION,position) 0 > != if{ l0 (>K:SPOILERS_SET) } <!-- Keep HDG and NAV settings --> (A:Autopilot Master,bool) if{ (A:Autopilot Altitude Lock,bool) if{ (A:Autopilot Nav1 Lock,bool) (>L:NAV337,bool) (A:Autopilot Heading Lock,bool) (>L:HDG337,bool) 1 (>L:ALT337,bool) } els{ (L:ALT337,bool) if{ (L:NAV337,bool) if{ (>K:AP_NAV1_HOLD_ON) } (L:HDG337,bool) if{ (>K:AP_HDG_HOLD_ON) } 0 (>L:ALT337,bool) } } } </Value></Select></Element> </Gauge> Changes are: - I have enabled instrument reflections again. This yields a better visibility when instrument lights are enabled. - Turn on the GNS and select DME N1/N2 if the avionics switch is on. This makes loading saved flights in non cold-and-dark state much easier. - Keep AP HDG and NAV settings when disabling Autopilot Altitude Lock
Archived
This topic is now archived and is closed to further replies.