Author Topic: Plugin Sample Code got "NOT VALID" error  (Read 4724 times)

JuliaYanky

  • Guest
Plugin Sample Code got "NOT VALID" error
« on: March 02, 2019, 02:51:59 AM »
After complied the sample Code of plugin from VoiceAttack itself, it's not able to INVOKE in VA.

My VA version is 1.7.3 from STEAM.
plugin built with VS2017. all default settings from the plugin codes.

The plugin can be initial successful:
5:31:16 PM - Plugin 'My VoiceAttack Plugin - v1.5.9+' initialized.

But once i try to run command to it, it return error as below:
5:31:22 PM - UNABLE TO INVOKE PLUGIN, 'My VoiceAttack Plugin - v1.5.9+'. PLUGIN NOT VALID FOR THIS VERSION OF VOICEATTACK.


Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: Plugin Sample Code got "NOT VALID" error
« Reply #1 on: March 02, 2019, 08:19:07 AM »
Hi, there.

What version of the .net framework are you using when compiling the plugin?  Make sure that it's v4.5 and see if that makes a difference.

Hope that helps!

JuliaYanky

  • Guest
Re: Plugin Sample Code got "NOT VALID" error
« Reply #2 on: March 02, 2019, 08:52:36 AM »
I found the reason!!

The Sample code from STEAM version is V3. The package from website is V4.


Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: Plugin Sample Code got "NOT VALID" error
« Reply #3 on: March 02, 2019, 08:57:03 AM »
Whoa... Ok.  I'll need to check that out. 

What's strange though- VoiceAttack should be able to work with v3 plugins.  Still, I'll check it out.  I've actually been considering dropping versions earlier than 4 completely - this may lead into that ;)

Thanks for the update!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: Plugin Sample Code got "NOT VALID" error
« Reply #4 on: March 02, 2019, 01:11:53 PM »
Yup - you are absolutely right.  I'm going to make sure that's corrected going forward.

Also, I noticed the readme file in the standalone version still says there is two projects when there is only one now.

Thanks again for letting me know!