Jump to content
Sign in to follow this  
Bert Pieke

F1VC.xml - 3D Cockpit Knobs and Keys - tips and tricks

Recommended Posts

1 hour ago, RXP said:

This is an interesting discussion and I'll try to wrap things up:

Jean-Luc,

In beta testing for Flysimware I never got the GNS units, just the GTNs, so have not been able to test the GNS units and would like to know if what we have determined here also applies to the GNS DTO buttons?

Al

Edited by ark

Share this post


Link to post
Share on other sites

@ark this applies to any button including the GNS. However there are far more buttons to do in the GNS than in the GTN... :ohmy:


Jean-Luc | reality-xp.com
This message from Reality XP is protected by a disclaimer: reality-xp.com/aboutrealityxp/email.html

Let your voice be heard and help us make a difference for you: Vote !
Open up communications with Reality-XP (Microsoft Flight Simulator Forums)

Share this post


Link to post
Share on other sites
On 2/8/2020 at 10:46 AM, lownslo said:

I just tried f1vc version 2.05 in the A2A Cherokee and it works perfectly!  I especially appreciate the knobs now INC and DEC in the correct directions, and defaulting the "map F1 model to RXP GTN unit" value to 8080 (I believe a majority of folks will configure their cockpit to that value rather then 8800).

As always thanks for the tweaks, Bert.  You're just makin' good stuff better for us!

Greg

Greg, Happy you like it!

BTW, if you are picky about knob directions, you can swap Button2 and Button3 in the f1vc.xml file, to make the Volume knob turn in the correct direction as well.. :happy:


Bert

Share this post


Link to post
Share on other sites
40 minutes ago, RXP said:

@ark this applies to any button including the GNS. However there are far more buttons to do in the GNS than in the GTN... :ohmy:

@arkIt seems to me that this problem is not present in the RXP GNS530..

Here is the B60 Duke code, as an example:

 

Interior Model:

(M:Event) 'LeftSingle' scmp 0 == if{1 (>L:mdlDTOButton,bool) }

GPS Buttons xml gauge:

  (L:mdlDTOButton,bool) if{
   0 (>K:GPS_DIRECTTO_BUTTON)
   0 (>L:mdlDTOButton,bool) }

 

Baytower RV7A:

(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:530_DTO,Bool) 1 (>L:530_DTO_anim,Bool) (L:BTS_sndFXgns,Bool) if{ 1 (>L:XMLSND1,enum) } }

(M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:530_DTO,Bool) 0 (>L:530_DTO_anim,Bool) }

(L:530_DTO,Bool) if{
   0 (>K:GPS_DIRECTTO_BUTTON)
   0 (>L:530_DTO,Bool) }

 

Edited by Bert Pieke

Bert

Share this post


Link to post
Share on other sites
1 hour ago, Bert Pieke said:

It seems to me that this problem is not present in the RXP GNS530..

Well that's good news if that is generally the case.

It is not clear to me what the purpose -- what the reason might be -- for using the M:Event LeftDrag option on a button like DTO. Is it just to cover the case where a user's mouse cursor might 'accidentally' move out of the active click spot (maybe due to turbulence) before the mouse button is released, or are there other considerations?

Al

Edited by ark

Share this post


Link to post
Share on other sites
11 hours ago, Bert Pieke said:

Sloppy coding..? :unsure:

Could be. 

Bert,

Where does a user get the f1vc.xml file, and who developed it? It has been a while and I can't seem to recall where I got it. Is it automatically provided by the RXP GTN F1 to RXP conversion app that is accessed from the P3D drop down Add-ons menu?

Al

Edited by ark

Share this post


Link to post
Share on other sites
10 minutes ago, ark said:

Could be. 

Bert,

Where does a user get the f1vc.xml file, and who developed it? It has been a while and I can't seem to recall where I got it. Is it automatically provided by the RXP GTN F1 to RXP conversion app that is accessed from the P3D drop down Add-ons menu?

Al

https://www.dropbox.com/s/lf2s8haxgtruidx/F1VC.zip?dl=0

  • Like 1

Bert

Share this post


Link to post
Share on other sites
21 hours ago, RXP said:

This is an interesting discussion and I'll try to wrap things up:

1) most aircraft using a GTN are basically handling 4 events for the buttons:

    LeftSingle, LeftRelease, LeftDrag, Leave

2) @Bert Pieke initially got success in just disabling the LeftDrag code.

3) @ark further got success in disabling both LeftDrag and LeftRelease code.

4) @RXP believe only LeftDrag is sufficient in the end:

 

Conclusions:

1) 'Leave' is necessary if you swap 3D to 2D while holding down the mouse button, because when only using 'LeftRelease', FltSim won't give a chance and the button will stay stuck (in the GTN internals).

2) 'LeftRelease' seems not be necessary: @ark tests show releasing the mouse button fires a 'Leave' event. I'm still wondering about this one whether it is a side effect of the model <MouseFlags> (independently of the code) or a P3D4 specific function (vs FSX). To be on the safe side I'd keep the 'LeftRelease'

3) 'Leave' however is also preventing holding the button down when the VC click spot moves underneath enough to go beyond the mouse cursor location (in turbulences for example). This is a limitation but not much a problem in practice (just a theoretical problem).

I spoke with Mark at Flysimware last night regarding what we had learned about the (M:Event) coding for the GTN buttons. He has now modified the interior model files for his Lear35 and Falcon50 in which you can directly install the RXP GTN into the VC panel. Mark asked that I pass the below on to you:

Hi Jean_Luc
 1. The mouse event 'Leave' is not necessary because for 3D animation LeftDrag in the <MouseFlags> section prevents the mouse  from 'slipping off' the button and the button getting reversed or stuck down when off. As you have determined LeftDrag should not be used as a (M:Event) in this case, but make sure it is entered in <MouseFlags> .
2. For the main (M:Event) you only need LeftSingle for pressing and LeftRelease for releasing.  Trying to also use LeftDrag or Leave as the same (M:Event) causes a conflict with LeftSingle and LeftRelease and thus the need for double clicking, etc.  I have now modified the code in my interior model files as shown below.
Regards,
Mark

 <MouseRect>
      <Cursor>Hand</Cursor>
      <TooltipText>Home / Map (Press and Hold)</TooltipText>
      <MouseFlags>LeftSingle+LeftRelease+LeftDrag</MouseFlags>
      <CallbackCode>
        (M:Event) 'LeftSingle'  scmp 0 == if{ 2 (&gt;K:GPS_MENU_BUTTON) 100 (&gt;L:RXP_GTN_HME_BUTN_1, number) }
        (M:Event) 'LeftRelease' scmp 0 == if{ 4 (&gt;K:GPS_MENU_BUTTON)   0 (&gt;L:RXP_GTN_HME_BUTN_1, number) }
      </CallbackCode>
 </MouseRect>

Share this post


Link to post
Share on other sites
21 minutes ago, RXP said:

@ark 

The original archive came with a readme file which I'm copying here:

Thanks Bert and Jean-Luc for the info.

Al

Edited by ark

Share this post


Link to post
Share on other sites
4 hours ago, RXP said:

3D panel using 751 and 651: 8 8 0 0

In the above example, how was the left most 8 (for the 652) and left most 0 (for the 752) determined since the 652 and 752 don't exist for this aircraft? The 8800 code seems to indicate both the 651 and 652 are being assigned to unit2, and both the 751 and 752 are being assigned to unit1. I would expect the 652 and 752 positions to be 'don't cares' since these units don't exist in the 3D model.  Therefore would 0880 also work in this case?

Clearly I don't understand something.

Thanks,

Al

Edited by ark

Share this post


Link to post
Share on other sites

This is something which depends on the aircraft.

  • The other GTN has 4 different sets of commands: 2 types x 2 units.
  • The RXP GTN has 2 different sets of commands: 2 units.
  • Some aircraft vendors implement (hard-code) their dual GTN using 751+651 (both unit1)
  • Some others implement their dual GTN using 751 + 652 (different units)
  • The purpose of the 'esoteric' 8800 or 8080 code is to define which sets of other GTN commands gets mapped to which RXP unit#.

There are only 2 combinations in the end no matter what in practice, but you are free to map anything to anything else and check whether this fits the set of commands the aircraft vendor has decided to hard-code the model with.


Jean-Luc | reality-xp.com
This message from Reality XP is protected by a disclaimer: reality-xp.com/aboutrealityxp/email.html

Let your voice be heard and help us make a difference for you: Vote !
Open up communications with Reality-XP (Microsoft Flight Simulator Forums)

Share this post


Link to post
Share on other sites
On 2/9/2020 at 1:09 PM, RXP said:

4) repeat this for all occurrences of 0x0001FA02 (for the HOME button)

5) repeat steps 1) to 4) with the value 0x0001FA04 (for the DTO button)

Carenado C337 Skymaster:

I could not find 0x0001FA02 or 0x0001FA04 in the sky337_interior.mdl files, but searching further I found the following:

(M:Event) 'Le������ftDrag'  scmp 0 == if{ 0x0001FA1E (>������L:F1GTNMOUSE, bool)

so I changed it to

(M:Event) 'Le������ftDra_'  scmp 0 == if{ 0x0001FA1E (>������L:F1GTNMOUSE, bool)

After changing this one occurrence the bezel Home and Direct-To buttons work with single-click in VC and hold Home for map works. This is after first installing the F1VC.XML

Thank you all for the info. I now have an RXP GTN 750 in almost all of my fleet. Still haven't got hold Home for map to work in my MilViz C310R but I'll keep at it.

Gerry

  • Like 1

| i5 7400@3GHz | 8GB RAM | NVIDIA GeForce GTX 1060 3GB | 1TB HDD | Saitek X52 Pro |

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.
×
×
  • Create New...