Author Topic: [1.5.8.21] Most of the Joystick Tokens are dead  (Read 7730 times)

BlackJack

  • Jr. Member
  • **
  • Posts: 68
[1.5.8.21] Most of the Joystick Tokens are dead
« on: May 30, 2016, 12:39:49 PM »
My Joystick supports not all of the existing Joystick tokens. Only the Button Tokens still working.
All the other ones are resulting in -1:

STATE_JOYSTICKBUTTONS: 1  (9 would be correct)
STATE_JOYSTICK1BUTTON:1: 1
STATE_JOYSTICK1BUTTON:9: 0
STATE_JOYSTICK1POVENABLED: 1
STATE_JOYSTICK1POV1TYPE: 8
STATE_JOYSTICK1POV1: UPLEFT
STATE_JOYSTICK1POV1_NUMERIC: -1
STATE_JOYSTICK1X: -1
STATE_JOYSTICK1Y: -1
STATE_JOYSTICK1ROTATIONZ: -1
STATE_JOYSTICK1SLIDER1: -1
« Last Edit: May 31, 2016, 10:43:22 AM by BlackJack »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #1 on: May 30, 2016, 10:34:55 PM »
Can you do me a favor and try deactivating and removing your stick and putting it back?  Try your tokens again.  I have a suspicion that Windows may have changed ID's. 

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #2 on: May 30, 2016, 11:04:40 PM »
Just a quick note about, '{STATE_JOYSTICKBUTTONS}' (from the doc) :

{STATE_JOYSTICKBUTTONS} - this token tests to see if VoiceAttack's joystick buttons  are enabled.  If joystick buttons are enabled, the replaced value will be "1".  Otherwise, the replaced value will be "0".

BlackJack

  • Jr. Member
  • **
  • Posts: 68
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #3 on: May 31, 2016, 09:14:56 AM »
Just a quick note about, '{STATE_JOYSTICKBUTTONS}' (from the doc) :

{STATE_JOYSTICKBUTTONS} - this token tests to see if VoiceAttack's joystick buttons  are enabled.  If joystick buttons are enabled, the replaced value will be "1".  Otherwise, the replaced value will be "0".

You're right, of course. The {STATE_JOYSTICKBUTTONS} works as expected.
But the Ones for the axis are still offline. I removed the Stick in the VA settings, plugged it out and in again, but nothing changes.
I may downgrade VA, in hope to find a version, where all tokens are working.
« Last Edit: June 01, 2016, 10:36:19 AM by BlackJack »

BlackJack

  • Jr. Member
  • **
  • Posts: 68
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #4 on: May 31, 2016, 10:38:09 AM »
Hmm.. I've moved in steps from [1.5.8.21] over [1.5.8.20] to [1.5.8.18] - all the same. [1.5.8.16] was the right one. After seeing the Tokens working again, they does also in the other betas, even in [.21].  :o Strange!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #5 on: May 31, 2016, 04:01:58 PM »
Ok... so I went back and tried this out and, yes, the tokens are not working.  Looks like I started including the release version of VAJS.dll with the beta version of VA (which explains why only the buttons are working right... that's all that's in the release).  If you've gotten it to work, it means the version of VAJS.dll that you have is the right one for the beta.  I will update the installer and make sure that it points to the right files.

Sorry about that!

BlackJack

  • Jr. Member
  • **
  • Posts: 68
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #6 on: June 01, 2016, 11:11:37 AM »
Hi Gary.

Thanks for your effort. Always good to know, there is a plausible explanation for such a special issue.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #7 on: June 01, 2016, 06:14:07 PM »
New beta is out there that has the updated VAJS.dll.  Hope it stays that way lol

BlackJack

  • Jr. Member
  • **
  • Posts: 68
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #8 on: June 02, 2016, 09:16:52 AM »
that's how I like it ;D

STATE_JOYSTICK1POVENABLED: 1
STATE_JOYSTICK1POV1TYPE: 8
STATE_JOYSTICK1POV1: LEFT
STATE_JOYSTICK1POV1_NUMERIC: 270
STATE_JOYSTICK1X: -4,68909742885481
STATE_JOYSTICK1Y: -0,196841382467384
STATE_JOYSTICK1ROTATIONZ: 0,00152590218966964
STATE_JOYSTICK1SLIDER1: 55,4695963988708

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [1.5.8.21] Most of the Joystick Tokens are dead
« Reply #9 on: June 02, 2016, 10:29:23 AM »
Cool.  I went into panic mode thinking that something got updated somewhere that I didn't know about and that it would be yet another thing I would have to constantly keep track of.  Nope... all my fault.  Glad we are back on track.