• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Tailhook Handle

Messages
1,084
Country
us-northcarolina
I have been working on this for hours, it looked so simple. I created the artwork today for the tailhook down and up bmps from the actual aircraft manual (C2 Greyhound) and they are beautiful IMHO but I can only get the up to appear. The Key code activates the tailhook on the aircraft but when I click the gauge, the bmp does not change. Where am I going wrong? I tried A, L, G:Var1 everything in my little knowledge of XML. Even looked at other gauges but that didn't help any.

Code:
<Gauge Name="tailhook" Version="1.0">
   <Element> 
      <Select>
         <Value>(L:tailhook, Bool)</Value>
         <Case Value="0">
            <Image Name="tailhook_up.bmp" />
         </Case>
         <Case Value="1">
            <Image Name="tailhook_down" />
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Tooltip ID="">tailhook up/down</Tooltip>
      <Cursor Type="Hand"/>
      <Click>(>K:TOGGLE_TAIL_HOOK_HANDLE)</Click>
   </Mouse>
</Gauge>
 
Try this...
Code:
<Value>(A:TAILHOOK POSITION,PERCENT) 10 &gt;</Value>

Also ".bmp" is missing from the case value 1's bitmap call which could be the problem if it is known that (L:tailhook, Bool) reports are valid.
 
Adding the bmp which somehow got dropped in code editing didn't make any difference, but your <value> statement did the trick. Thank you so much for the help. It works great now. I have the wingfold and landing gear gauges to do and I will do them the same way so that they will work properly as well.
 
Just a note:
Is this really for FSX(-SP2) or for FSX-Accelleration ?

If it's for FSX-Accel:
You better use var (A:TAILHOOK HANDLE,bool) (New in FSX-Accell); because that instantaneously follows the position of the handle.

If for FSX(-SP2):
The animation of the tailhook usually take a few seconds; meaning that (A:TAILHOOK POSITION,percent) will go in the same time from 0 to 100 % (in the air), v.v
So if you have the threshold at 10% and lower the tailhook, the bitmap changes quickly from Up to Down.
However, if you raise the tailhook, it takes a few seconds for the bitmap to go to the Up position.
To have the UP-Down and Down-Up delay behave the same, set the threshold at 50.

Rob
 
I am actually using Acceleration but the code change from Spokes2112 works perfectly. Thought I had this licked but I can't get the bitmaps to switch on the wingfold just like the tailhook wasn't doing before the change. I probably don't have the right wording in the A:...can either of you two guys help please? Here is the code I wrote tonight. BTW the toggle folds wings no problem.

Code:
<Gauge Name="wingfold" Version="1.0">
   <Element> 
      <Select>
         <Value>(A:WING FOLD POSITION,PERCENT) 10 &gt;</Value> (Tried (A:WING FOLD,bool) but that didn't work either.
         <Case Value="0">
            <Image Name="small.bmp" />
         </Case>
         <Case Value="1">
            <Image Name="large.bmp" />
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Tooltip ID="">wings fold/unfold</Tooltip>
      <Cursor Type="Hand"/>
      <Click>(>K:TOGGLE_WING_FOLD)</Click>
   </Mouse>
</Gauge>

So I'm not back here tomorrow night looking for landing gear, can you give me the code for landing gear and I promise I will go back to CARQUALS for awhile again. LOL Thank You Both.
 
Here are the vars and events you want:

Code:
<Value>(A:TAILHOOK HANDLE,bool)</Value>
<Click>(>K:TOGGLE_TAIL_HOOK_HANDLE)</Click>
 
<Value>(A:FOLDING WING HANDLE POSITION,bool)</Value>
<Click>(>K:TOGGLE_WING_FOLD)</Click>
 
<Value>(A:GEAR HANDLE POSITION,bool)</Value>
<Click>(>K:GEAR_TOGGLE)</Click>

Again, as a sidenote:
To display a bitmap for an on/off switch, you should test for the Handle variable; not the percentage "extended".
Because the Handle vars given the position of the Handle and are instantaneous; whereas the "extended" percentage usually is not, because they increase/decrease with the defined extention time of that function.

And in FSX-Accel, handle vars for Tailhook and WIngfold were added.

Rob
 
Last edited:
Rob, again thank you. The Folding Wing... works perfectly. I have to go out but will do the landing gear bmps and I am sure the handle will work too. I had a list of HelpIDs, Toggle Events and Tooltiips but not any of these variables which I now have bookmarked and will printout when I get some more ink (LOL) this week so that I have it as I recreate this authentic panel for the C2A/E2Cs. I also have been working with FS9 Variables which is the only list I HAD and this is really a great help even thoughFS9 Toggle Events were working. Really a great help again thanks. Hope you have a super day.

Richard
 
Back
Top