Author Topic: (1.5.10.1) Commands stopping  (Read 7031 times)

wilkie79

  • Guest
(1.5.10.1) Commands stopping
« on: July 21, 2016, 09:52:51 AM »
Commands are being stopped if executed from a different profile, rather than continuing on with the scripted command.

An example of this, is if you use two HCS Voice Packs and try request that the profile is changed. What happens is, is that if the profile changes a Stopped command, 'New profile' is executed.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: (1.5.10.1) Commands stopping
« Reply #1 on: July 22, 2016, 06:47:36 PM »
So, if a command is executing and the profile is changed to another profile, the command that was executing is stopped?

wilkie79

  • Guest
Re: (1.5.10.1) Commands stopping
« Reply #2 on: July 23, 2016, 02:41:45 AM »
So, if a command is executing and the profile is changed to another profile, the command that was executing is stopped?

Yes.

An example of this is when I execute the following sequence for a different profile.

Code: [Select]
Change to profile, 'Orion 2.0 Full House'
Play sound, '{VA_SOUNDS}\hcspack-ORION\Acknowledgements\Greetings.wav'  (and wait until it completes)
Pause 0.3 seconds
Play sound, '{VA_SOUNDS}\hcspack-ORION\Acknowledgements\Awaiting orders.wav'  (and wait until it completes)
Set Text [voiceSet] to 'orion'
Set small int (condition) [lights] value to 0
Set small int (condition) [srvLights] value to 1

Only the first line of the sequence is processed.







Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4758
  • RTFM
Re: (1.5.10.1) Commands stopping
« Reply #3 on: July 23, 2016, 09:16:23 AM »
For now you could
Code: [Select]
Play sound, '{VA_SOUNDS}\hcspack-ORION\Acknowledgements\Greetings.wav'  (and wait until it completes)
Pause 0.3 seconds
Play sound, '{VA_SOUNDS}\hcspack-ORION\Acknowledgements\Awaiting orders.wav'  (and wait until it completes)
Set Text [voiceSet] to 'orion'
Set small int (condition) [lights] value to 0
Set small int (condition) [srvLights] value to 1
Change to profile, 'Orion 2.0 Full House'

Variables are global, so they'll keep their value after switching profiles.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: (1.5.10.1) Commands stopping
« Reply #4 on: July 23, 2016, 11:48:30 AM »
Thanks Pfeil.

Yes, commands stop when profiles change, as commands call other commands that will not be available when the profile changes.  Effectively, the command that is executing does not exist any more as far as VoiceAttack is concerned.

wilkie79

  • Guest
Re: (1.5.10.1) Commands stopping
« Reply #5 on: July 23, 2016, 02:05:25 PM »
Thanks Pfeil,

I will make the adjustemts to the profiles created by HCS Voice Packs and fix some of my own custom commands to work with the latest update.

And thanks Gary for the quick response.