• 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 Part Code Malfunction... sigh....

Messages
10,163
Country
us-arizona
Hey all,

Can anyone spot the error in this?

These are modified stock codes for moving the two settings for COM1. I changed the tooltip for reading only COM1, taking out the Standby. The radio I am doing is a COM1 without standby.


So... this doesnt work, nor does the actual original stock knob animations work. The NAV1 works fine, but this does not.

I have reanimated till my ears felt like they would fall off. I have done every trick I know. I have checked my 'aircraft.cfg' file and it has things properly set as well (no standby, etc).

I matched up the NAV1 top end code blocks and the Type/Sim and TypeParam2's all match.

Anyone spot the reason here why its not working?




Bill



Code:
  <PartInfo>
    <Name>f24_knob_com_KHz0</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:COM ACTIVE FREQUENCY, KHz) 100 / 10 % 36 * dnor</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>hand</Cursor>
      <TooltipText>Communications Radio (Com 1, Active - %((A:COM1 ACTIVE FREQUENCY, MHz))%!07.3f! MHz)</TooltipText>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
            <EventIdInc>COM_RADIO_FRACT_INC</EventIdInc>
            <EventIdDec>COM_RADIO_FRACT_DEC</EventIdDec>
          </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>

  <PartInfo>
    <Name>f24_knob_com_MHz0</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:COM ACTIVE FREQUENCY, MHz) 118 - flr dnor</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>hand</Cursor>
      <TooltipText>Communications Radio (Com 1, Active - %((A:COM1 ACTIVE FREQUENCY, MHz))%!07.3f! MHz)</TooltipText>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>     
      <CallbackJumpDragging>
        <XMovement>
          <Delta>7</Delta>
          <EventIdInc>COM_RADIO_WHOLE_INC</EventIdInc>
          <EventIdDec>COM_RADIO_WHOLE_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>
 
Last edited:
Try to capitalize "Hand"...?



P.S:
I never got <CallbackJumpDragging> to work...
 
Those two bits of advice also didnt work.

Good eye on catching 'Hand/hand' by the way.

Bill, good catch also on yours, as NAV had theirs written a diff way.


Here is the NAV1 Knob code. Works perfect! Same with the mouse drag.



Code:
  <PartInfo>
    <Name>knob_nav_KHz</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV1 ACTIVE FREQUENCY, KHz) 100 / 10 % 36 * dnor</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_NAV1_FREQ</TooltipID>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
          <EventIdInc>NAV1_RADIO_FRACT_INC</EventIdInc>
          <EventIdDec>NAV1_RADIO_FRACT_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>
  
  <PartInfo>
    <Name>knob_nav_MHz</Name>
    <AnimLength>360</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV1 ACTIVE FREQUENCY, MHz) 10 % 10 * dnor</Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipID>TOOLTIPTEXT_NAV1_FREQ</TooltipID>
      <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
      <CallbackJumpDragging>
        <XMovement>
          <Delta>5</Delta>
          <EventIdInc>NAV1_RADIO_WHOLE_INC</EventIdInc>
          <EventIdDec>NAV1_RADIO_WHOLE_DEC</EventIdDec>
        </XMovement>
      </CallbackJumpDragging>
    </MouseRect>
  </PartInfo>
 
Tom, bless your heart, man. The name wouldnt make the difference. The animation code would, but not the name tag for the code block itself.


I have tried a few other routes, nothing else worked.


It cant be in the config file, as the numbers scroll on the 2D readout.


Many thanks though guys for your input and help. Much appreciated.
 
Maybe you need to enter a index for the variable to read?

(A:COM ACTIVE FREQUENCY:1, KHz)
 
Last edited:
Back
Top