Author Topic: 1.10.6 crash with MSFS  (Read 3087 times)

va_gene

  • Newbie
  • *
  • Posts: 17
1.10.6 crash with MSFS
« on: June 24, 2023, 09:15:08 PM »
VA stopped yesterday when flying in MSFS.  I usually use voice commands for keystrokes or interfaces to SpadNext.  The other thing I do is to use a more complex command to give me a pilot's checklist.  VA stopped during a checklist similar to this one:

Note: there have been MSFS 'connection' issues with other apps and this could certainly be one of them after this week's MSFS update


Code: [Select]
Marker: startchklist
--------------------------------------------------------
Say, 'display sid chart and check climb restrictions'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'timer transponder '
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'flaps to fifteen '  (and wait until it completes)
Pause 0.5 seconds
Say, 'pee tow heat on'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'departure tee cass'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'landing lights'  (and wait until it completes)
--------------------------------------------------------
Say, 'next checklist climb'


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.10.6 crash with MSFS
« Reply #1 on: June 24, 2023, 11:12:02 PM »
Is there a VoiceAttackFault.txt file in VoiceAttack's installation directory? If so, what are its contents?

Has this issue occurred more than once?

You mentioned SPAD.neXt; are you using any plugins (E.G. to interface with that third-party application)?

Are you using non-Microsoft text-to-speech voices?

va_gene

  • Newbie
  • *
  • Posts: 17
Re: 1.10.6 crash with MSFS
« Reply #2 on: June 25, 2023, 05:12:01 PM »
I've searched VA install and the whole C: drive, and do not have a voiceattackfault.txt file

I'm grateful for the help.   This is a genius app.
  • I have not had this kind of crash before, so I'd call it a first
  • I only have the default MS voices and I seldom have a recognition issue for my voice
  • I am getting a strange output from one of my 'checklist' modules, just one, where I say 'after landing checklist' and it will read out several lines from another checklist; that one is repeatable; but when I run the checklist individually just to test it, then it doesn't do that
  • Note that I captured the VA start before starting Spadnext
Code: [Select]
4:06:41.845 Plugin 'SPAD.neXt VoiceAttack Plugin' initialized.
4:06:41.841 no SPAD.neXt connection
4:06:41.841 NetworkCommsDotNet.ConnectionSetupException: Error during TCP connection establish with destination ([TCP-E-S] 0.0.0.0:0 -> 127.0.0.1:8181). Destination may not be listening or connect timed out. System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:8181    at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)    at System.Net.Sockets.Tcp...
4:06:41.825 Received RemoteEvent: SN_CONNECTION_CLOSED
4:06:41.825 Connection Closed 127.0.0.1:8181
4:06:39.756 Plugin 'MSFS Agent - v1.0' initialized.
4:06:39.746 SPAD.neXt command interface initialize (Plugin Version 4.0.0.0)
4:06:39.564 VoiceAttack privileges not elevated.  Pro Tip - If you are having trouble with key presses being recognized, try running as an administrator.
This message is informational only.  Right-click this message to stop seeing it.
4:06:39.503 Plugin support enabled.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.10.6 crash with MSFS
« Reply #3 on: June 26, 2023, 03:07:11 AM »
What do you mean by "this kind of crash"? Have you had other crashes?


You are using global variables, so if you have more than one command running that uses, for example, the "textvar" text variable, all of those running commands can alter and be affected by a change in said variable.

You'd want to look into variable scope to prevent such interactions (you could use different variable names, but that's a workaround rather than a proper fix).

va_gene

  • Newbie
  • *
  • Posts: 17
Re: 1.10.6 crash with MSFS
« Reply #4 on: June 26, 2023, 04:41:18 PM »
I had just the one VA app crash this week, the ‘checklist’ modules are never run concurrently, so I’m not expecting to have any vars stepped on.  VA has been stable, so I don’t want to suggest otherwise.  The other issue with my checklists is really minor.  Thank you!

DonCarlone

  • Newbie
  • *
  • Posts: 4
Re: 1.10.6 crash with MSFS
« Reply #5 on: December 17, 2023, 11:43:43 PM »
Hi mate, I've been working on checklists for MSFS for quite a long time and VA it's just the perfect tool for the job, in my opinion.

Reading about your experience getting live data has encouraged me to try SpadNext, it seems a great tool as well and I only hope to learn more about it and maybe we both could share some knowledge/insights :)

However; I'm in a predicament at the moment with the plugin :(

The VA demo profile works great and I get a successful connection, attached image.

I read the documentation further but, for the life of me, can't figure out how to send a single successful command to SpadNext - SIMCONNECT;LANDING_LIGHTS_TOGGLE, and getting the action completed, msfs is running/aircraft powered-up and sitting at the parking bay, attached image.

It would be greatly appreciate if you could please either point me out the right direction for some additional reading about the command syntax or a snippet on how to connect and complete one simple task, like the one I've been trying, please. (Very dark at the tarmac now LOL)

Thank you.



VA stopped yesterday when flying in MSFS.  I usually use voice commands for keystrokes or interfaces to SpadNext.  The other thing I do is to use a more complex command to give me a pilot's checklist.  VA stopped during a checklist similar to this one:

Note: there have been MSFS 'connection' issues with other apps and this could certainly be one of them after this week's MSFS update


Code: [Select]
Marker: startchklist
--------------------------------------------------------
Say, 'display sid chart and check climb restrictions'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'timer transponder '
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'flaps to fifteen '  (and wait until it completes)
Pause 0.5 seconds
Say, 'pee tow heat on'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'departure tee cass'
--------------------------------------------------------
Wait for spoken response: 'abort checklist; next; go to top'
Begin Text Compare : [textvar] Equals 'abort checklist'
    Say, 'aborting checklist'
    Exit Command
End Condition
Begin Text Compare : [textvar] Equals 'go to top'
    Jump to Marker: startchklist
End Condition
--------------------------------------------------------
Say, 'landing lights'  (and wait until it completes)
--------------------------------------------------------
Say, 'next checklist climb'


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.10.6 crash with MSFS
« Reply #6 on: December 18, 2023, 12:22:52 AM »
The syntax you're referring to would largely be specific to the plugin you're using.

From the screenshots, however, it does appear you're using the wrong fields.

Have a look here and perhaps here (the latter has duplicate information, but some of it isn't mentioned in the former).

DonCarlone

  • Newbie
  • *
  • Posts: 4
Re: 1.10.6 crash with MSFS
« Reply #7 on: December 18, 2023, 12:47:25 AM »
Hi Pfeil, thanks for the time for pointing that out.

Unfortunately, I tried the more specific one for my needs, EmulateEvent and the exactly syntax as explained on the links you provided, no joy.

I also asked some questions about it on SpadNext Discord channel and one experienced user said that I don't need to use Emulate Event as it had been required prior to V4, this also mentioned on the VA Help PDF file, if memory doesn't fail me, page 183.

Unfortunately again, the user does not use VA as we do and unable to elaborate in more depth about it :(



The syntax you're referring to would largely be specific to the plugin you're using.

From the screenshots, however, it does appear you're using the wrong fields.

Have a look here and perhaps here (the latter has duplicate information, but some of it isn't mentioned in the former).

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.10.6 crash with MSFS
« Reply #8 on: December 18, 2023, 01:07:11 AM »
From what documentation they appear to provide, they're using features of the old plugin interface, not V4.

The main difference is that V4 allows plugins to read values directly, rather than needing them to be passed through the "Execute an External Plugin Function" action explicitly, and as such only uses the "Plugin Context" field.
This plugin, on the other hand, uses the "Plugin Context" field, and the "Variables" fields below it.


The "Plugin Context" field is used to specify an instruction, which from what I can tell may be "SetValue", for what you're trying to do.

A VoiceAttack variable must also be set; in their documentation the only type they use for "SetValue" is a Decimal variable.
That variable should be named identically to the ingame/SPAD.neXt value you're trying to set or get, E.G.
Code: [Select]
SIMCONNECT!LANDING_LIGHTS_TOGGLE(I noticed you used a semicolon, however that's not mentioned anywhere in their documentation)

The value of that decimal variable might be 0 for off, 1 for on.
Ideally you'd check the value (E.G. using GetValue) while cycling through the different states ingame manually (E.G. using the in-cockpit controls, or an ingame keyboard shortcut)


The correct instructions, variable names, and values, are, as mentioned, specific to the third-party SPAD.neXt plugin/application and/or the flight simulator application you're using.

It would be the task of SPAD.neXt support to assist you with their product

DonCarlone

  • Newbie
  • *
  • Posts: 4
Re: 1.10.6 crash with MSFS
« Reply #9 on: December 18, 2023, 01:23:00 PM »
Thanks for your observations Pfeil, appreciate it.

Point taken :) It's never crossed my mind that the issue is related to VA and I shall lodge a support ticket with SN.

Interestingly enough, the SN plugin interface is returning results as 'executed' using both methods, V4 and before it, but no action triggered/completed within the flight sim.

Just for clarity, the issue is only with the SN EmulateEvent or Event syntax along with variables/button release needed to be passed through. The Get function is working just fine.

Take care mate.