Jump to content

MSFS 2020 Transponder ON does not switch Mode C in vPilot


Recommended Posts

This is true for most aircraft in FSX and P3D as well. The aircraft must support the Squawkbox FSUIPC offsets in order for it to work. I doubt any of the default MSFS aircraft do so. (If that's even still possible with FSUIPC 7.)

You'll need to use the button on the vPilot window or the dot command to set mode C.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to post
Share on other sites
  • 2 weeks later...

Hello !

After reading the vPilot documentation and doing some research, I am unable to find the dot command to set mode C  you are talking about.
And while on this topic, is there a command to Ident ?
These two commands would help a lot, as I'm using SPAD.neXt to interface with SimConnect and I'm not quite sure if there is a way to communicate with the Squawkbox client data area using SPAD.neXt only... (as I would like to avoid having to use FSUIPC)

Thanks in advance for your help ! And congrats for the work on all this software, it's awesome !

Guillaume Hartenstein

 

Link to post
Share on other sites
  • Board of Governors

The very large Mode C and IDENT buttons on the top of the vPilot window next to the connect and flight plan buttons🙂

  • Like 1
Matt Bartels
VP: Marketing & Communication
## vpmkt (at) vatsim.net
Facebook Twitter Instagram
VATSIM Logo

Unless otherwise stated, opinions are my own and not representative of the official opinion of the VATSIM Board of Governors

 

 

 

Link to post
Share on other sites

Hi Guillaume,

My apologies, there is not a dot command for setting transponder mode or ident. I was thinking of some other software that I wrote. (Non-VATSIM software.) The only way to do it with vPilot is through the buttons on the UI, or the menu items in the Add-Ons menu in the sim. (Which I haven't checked if they actually work in MSFS.)

Are you able to use dot commands from spad.next? If so, I can add dot commands for squawk mode and ident.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to post
Share on other sites

I see, that's what I suspected.

What I can do in SPAD.neXt is simulate a series of key press targeted at the vPilot window that will eventually write the dot command and press enter... Which is tedious (and one might say, pretty ugly) work... But it is the only quick workaround I have found so far...

However, there is an option to run external programs from SPAD.neXt events, so I might just write a quick C++ bit of code that changes the Squawkbox client data. I'm just worried about my rusty programming skills... 😅 But it would be a much more elegant solution. So I guess I'm off to find some ressources on how to use SimConnect in C++  !

In any case, I believe dot commands to set/unset mode C and to ident would be a nice thing to have, if it is not too much trouble to implement in a future version.

Thank you very much for your quick response !

Link to post
Share on other sites

Okay, let me know if you need help with the SimConnect app. If by any chance you are a .NET developer, there is a way to make simple plugins for vPilot that can control the transponder among other things. Let me know if you want to explore that option.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to post
Share on other sites

Ok I'm probably gonna give up trying to figure it out on my own...

I tried C++, and as I suspected my programming skills are too rusty for that... So I decided to install VisualStudio and give it a try with C#, and I believe I would be able to write the code itself (I'm decent at Java, so C# doesn't look too exotic).

However, I'm am completely ignorant on how to setup .NET projects, and it's driving me crazy...
I located the "Microsoft.FlightSimulator.SimConnect.dll" file and referenced it in VisualStudio (that seems to be working since the code compiles), but every time I try to launch a simple Open/Close connection programm, it just yells at me :

System.BadImageFormatException : 'Could not load file or assembly 'Microsoft.FlightSimulator.SimConnect, Version=11.0.62651.3, Culture=neutral, PublicKeyToken=baf445ffb3a06b5c'.
An attempt was made to load a program with an incorrect format..

Which, to me, seems like a simple matter of configuration that I have to tweak somewhere, but again, I'm compeltely new to the .NET environment... 


If you have any time to spare to help a newbie in distress, I'd appreciate it a lot !
Otherwise I'm just gonna give up and continue pressing the "mode C" and "ident" manually in vPilot, like any sane person would do instead of driving himself crazy  🤣

Link to post
Share on other sites

Hi Marcel,

My problem isn't really a problem to be honest, it's just a bit of a whim on my part... 😄 I'd just like to be able to change the transponder mode and ident in vPilot by pressing a button on my saitek panels, which is currently a bit tedious to do with FS2020...

I know about the automatic Mode C on take off feature, but I'd like to press the button myself (again, a bit of a whim, but I think getting the realism to a maximum is what VATSIM is all about !)

But you are absolutely right in saying this is not a real problem and is really not a priority. I just like to understand how things work behind the scenes in the sim and I like the idea of developing plug-ins !

Link to post
Share on other sites

I tried that and it didn't work. In fact, I get a warning from the Build saying my building architecture (x86) does not match the architecture of the SimConnect DLL...

Anyway, I'll just give up. I'm just trying to bite off more than I can chew here... I am simply not skilled enough in .NET to figure this one out.

If someday you implement the dot commands in vPilot, I'll use them in SPAD.neXt as mentionned before. In the meantime I'll just press the buttons ! 🙂

Thank you very much for your help though ! And keep up the awesome work !

Link to post
Share on other sites

It looks like Microsoft Flight Simulator (2020) has a new simulation variable, TRANSPONDER STATE:1, which represents an enum of various transponder modes.  While it should be feasible to implement as a plugin, would it be possible to add built-in functionality to vPilot to read this new variable (as an alternative to the FSUIPC offsets) @Ross Carlson?  The enum values are as follows:

0 = Off
1 = Standby
2 = Test
3 = On
4 = Altitude
5 = Ground

Documentation can be found in the SDK (Documentation/03-Content_Configuration/Variable_Lists/Simulation_Variables.html) and usage can be seen in the model behavior template for the transponder (%localappdata%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages\Official\OneStore\fs-base-aircraft-common\ModelBehaviorDefs\Asobo\Transponder\Transponder.xml).

Thanks!

Edited by Alya Simmons
Link to post
Share on other sites

At some point in the future, when MSFS has stabilized a bit and most of the bugs are worked out, I will be fully exploring the SDK and seeing what things make sense to add to vPilot. This will be one of them. I will also be "teaching" vPilot how to scan your hard drive and detect which aircraft models are installed, for the purposes of model matching. (Right now vPilot has a hardcoded set of models that it uses, based on the aircraft that are available in the standard version of MSFS.)

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to post
Share on other sites
  • 1 month later...

I'm still waiting this to work too, because when using IVAO Altitude (their "vPilot"), the in-sim XPDR STBY/ALT has been working just fine since the launch of their FS2020 client. Really weird that working XPRD still missing on VATSIM vPilot FS2020, even though VATSIM is the official partner of MSFS now. While flying on VATSIM client Mode C on now all the time, I forget to control the REAL transponder button in the cockpit...

Edited by Teemu Pienimaki 828685
Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...