Author Topic: VoiceAttacks does not recognize tokens until I edited the profile on startup  (Read 1524 times)

fluxor

  • Newbie
  • *
  • Posts: 6
Hi community!

When I created my first VA profiles, I hardcoded all "When I say" commands.
Everything works fine.

Then I decided to use variables and tokens to reuse phrases in multiple commands.
I think for a while everything still works fine.

After a Time (I don't know what I've changed) VA doesn't work properly at start up.
I start VA, declare my variables to use the tokens, I speak a command with a token and VA does not recognize.

After I edit any command that has at least one of this tokens/variables and apply the changes of the profile, VA works.

I can describe it with pictures but I don't want to spam around (6 pic's).
So let me know when this is needed!

Can anyone help me with this issue?

Greethings fluxor

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Tokens in command names is an experimental and advanced feature; Command phrases are only generated when a profile is (re)loaded.

You are setting the variables used in command names *after* the command phrases have been generated already, so those changes will not be applied to the command phrases until the profile is reloaded (E.G. using the "Reset the Active Profile" action).
Editing the profile and saving those modifications will by necessity also re-generate all command phrases, which is why commands are recognized as expected afterwards.

fluxor

  • Newbie
  • *
  • Posts: 6
Thank you for explaining!

I created a "start up" command which sets the variables AND triggers "Reset the Active Profile" action.
Now everything works fine!

Thank you very much!!!