Author Topic: MSFS Agent - User Comments  (Read 2695 times)

Fly-By-Voice

  • Newbie
  • *
  • Posts: 6
MSFS Agent - User Comments
« on: April 26, 2024, 06:40:25 AM »
MSFS Agent is the first plugin I found that offers direct ‘game state’ access to the sim.  The plugin provides an extensive list of in-game Variables that can be accessed directly supplemented by a number of pre-programmed Events that execute the requested game function without any Voice Attack action like a key press.

No testing was done on the ATC commands for COMM and NAV radios.  ATC in the current version is a bit painful.  Expectations are that the MSFS 2024 release will have a more useful upgraded approach.  Apparently, there are other 3rd party streaming services available now for ATC that I have yet to explore.

In summary:

1.   The plugin installed easily and has been very stable.  I am not sure about overhead as there are lots of Voice Attack console messages generated during use;
2.   It offers direct game (SimConnect) access across a wide variety of Variables and Events and has some bugs;
3.   As Pfeil said in a previous post, assign the correct data type to your ‘getplanestate’ command.  There are 6 data types     possible but, in testing, most were BOOL, DEC, INT and TXT.  Landing gear is INT while flaps are DEC.  Why flaps are DEC is, well, an on going Newbie mystery??
4.   It has the makings of a really powerful Voice Attack platform for MSFS; and
5.   Needs some work.

Of the 15 or so variables that were tested here about a dozen were good to go. Some others don’t have an associated
Event and don’t execute. Not sure if the code is incomplete or the MSFS airplane model programming itself has bugs.

Other Variables would not change state.  For example, some of the Lights commands don’t return a change of state.  Light is off  = TRUE; turn on the light manually and the state remains = TRUE.  Again, not sure where the disconnect resides.

Like the Lights example above, the [altitude] [off;on] command Variable does not change state.  The [AUTOPILOT] altitude command used to set the altitude does not work with any of the three Garmin G1000 airplanes tested.  The command does work, though, with Boeing 747 and 787.  No testing was done of the Airbus planes.

Other commands for Heading and Vertical Speed work flawlessly.  These 3 autopilot commands are so tedious to set by moving their respective bugs one notch at a time and counting.  MSFS Agent provides a grand revolution in this area.

It doesn’t appear that the plugin has any active support at its originating site.  The ‘source’ code is there but I have no background to determine what that means or how one could recreate the .dll with correct code and new function perhaps. 

The MSFS Agent author, James Clark (jamescl604), commented at the GitHub site; “Feel free to make a request on the Issues/Discussion tabs or, if you're inclined, feel free to contribute to the project and add things.” 

My primary interest sits with two Variables that are not in the current version, those for:

Attitude Indicator Bank Degrees
Attitude Indicator Pitch Degrees
(in Degrees or Radians)

Next step will be to understand how to make a .dll.  I'll probably create a new formula for rocket fuel while on the way and not even know it!

Thank you, James Clark (jamescl604), for the great work you and your team have done.

A Voice Attack profile is attached: MSFS Agent-More Examples-Profile.vap which has some additional command examples.

slicker55

  • Newbie
  • *
  • Posts: 17
Re: MSFS Agent - User Comments
« Reply #1 on: July 01, 2024, 04:58:28 PM »
Thank you, a very interesting read ... over the last few days I have been playing around with MSFS Agent hoping to get an idea working but to no avail.
I have custom profiles for each of my favourite aircrafts and wanted to find some way to get VA to auto-load the corresponding profile based on which aircraft is selected in MSFS
In essence, a simplified version of the excellent DCS plugin Vaicom Pro by Hollywood_315
So, I was hoping "MSAgent.PlaneState.Title" might do the trick but I haven't been able to get it to work.
Just wondered if you would be able to help in any way?

Fly-By-Voice

  • Newbie
  • *
  • Posts: 6
Re: MSFS Agent - User Comments
« Reply #2 on: July 30, 2024, 07:11:53 AM »
Hi Slicker55.  Apologies for the the late reply.  To date most of my progress has been to get the existing code integrated with the airplane profiles.  Some commands work great, others no so good.

I have minimal programming skills.  The next step appears to be v2.0 of the plugin which is somewhat beyond my horizon.  'getplanestate' uses standard SimConnect protocols and the 'PlaneState.Title' variable should be referenced in the sim SDK.  As noted previously, the data type is key as well as the exact name.

Now, accessing SimConnect and executing the data request for 'Title' is another matter all together.  You would have to add the C# source code to the plugin ensemble and recreate the .dll.  That's my understanding to date.