Joystick help with 0.5.1 on Xubuntu 12.04?

Just downloaded Vega Strike and need help? Have a question but don't know where to start? Ask here.
Post Reply
SamSpacely
Star Pilot
Star Pilot
Posts: 5
Joined: Wed Feb 26, 2014 8:33 pm

Joystick help with 0.5.1 on Xubuntu 12.04?

Post by SamSpacely »

I've been looking around for a way to get my MS SideWinder Precision 2 to work with Vega Strike on Xubuntu 12.04, and I haven't been able to so far. Where should I start? Using the material from "http://vegastrike.sourceforge.net/wiki/ ... figuration" didn't work for me. Thanks.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by klauss »

It just doesn't work at all or does it work but not well?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
SamSpacely
Star Pilot
Star Pilot
Posts: 5
Joined: Wed Feb 26, 2014 8:33 pm

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by SamSpacely »

I Tried using the ready-made configurations in vssetup, and copy and pasting the new entries from the wiki, and I have a constant throttle value in the game that the keyboard has no control over. None of the axes move anything, and the buttons do nothing. Jstest-gtk shows the controller, and vssderr.txt shows js0. I've included the vssderr and vssdout text files.
You do not have the required permissions to view the files attached to this post.
SamSpacely
Star Pilot
Star Pilot
Posts: 5
Joined: Wed Feb 26, 2014 8:33 pm

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by SamSpacely »

By the way, I installed off of the GetDeb.net repository, rather than compile from source.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by klauss »

That seems very strange. What you describe seems like an axis mapping issue, except for the buttons not working. Did you try fiddling with axis mapping?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by loki1950 »

Or post the relevant section of the config file so we can have a look at your edits they might not be valid.If your text editor has syntax highlighting set to XML to be sure.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
TBeholder
Elite Venturer
Elite Venturer
Posts: 753
Joined: Sat Apr 15, 2006 2:40 am
Location: chthonic safety

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by TBeholder »

Either way, fixed throttle means it's mapped on something wrong - absent (like a mouse's 3rd axis) or not throttle. Given that no other axis responds, it's the former.
Does this joystick with the same drivers, etc work in other games?
"Two Eyes Good, Eleven Eyes Better." -Michele Carter
SamSpacely
Star Pilot
Star Pilot
Posts: 5
Joined: Wed Feb 26, 2014 8:33 pm

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by SamSpacely »

I removed my entries from the config file, and I get the same behavior with the default mappings avaliable in vssetup.

The changes I made were:

Code: Select all

#cat Joystick no_joy joy_normal joy_throttle joy_axis joy_throttle_and_axis joy_t_a_rev joy_mswp2
#desc MS SideWinder Precision 2

<!-- for the future
		<axis name="gun_x" joystick="1" axis="0"/>
		<axis name="gun_y" joystick="1" axis="1"/>

  <!-- Joystick:Microsoft SideWinder Precision 2:BEGIN-->
      <!-- buttons:BEGIN -->
        <!-- #joy_msswp2 -->
         <bind joystick="0" player="0" button="0" modifier="none" command="FireKey" />  
         <bind joystick="0" button="1" modifier="none" command="MissileKey" />          
         <bind joystick="0" button="2" modifier="none" command="PickTargetKey" />       
         <bind joystick="0" button="3" modifier="none" command="LockTargetKey" />       
         <bind joystick="0" button="4" modifier="none" command="TargetKey" />           
         <bind joystick="0" button="5" modifier="none" command="MisSelKey" />           
         <bind joystick="0" button="6" modifier="none" command="WeapSelKey" />          
         <bind joystick="0" button="7" modifier="none" command="SheltonKey" />         
        <!-- #end -->
      <!-- buttons:END -->
                     
      <!-- axes:BEGIN -->
        <!-- #joy_msswp2 -->
         <axis name="x"        joystick="0" axis="0" inverse="false" /> 
         <axis name="y"        joystick="0" axis="1" inverse="false" /> 
         <axis name="z"        joystick="0" axis="3" inverse="true" />  
         <axis name="throttle" joystick="0" axis="2"/> 
        <!-- #end -->
      <!-- axes:END -->

   <!-- Joystick:Microsoft SideWinder Precision 2:END-->

</bindings>  
I put the #cat and #desc entries up with the existing ones, and pasted the sidewinder mapping section in between the "for future use" section and the "</bindings>" entry.

I tried messing around with the axis numbers assigned, but that did nothing. I have since installed Super Tux to see if I have joystick functionality in a game, and it works there.

This is what jstest /dev/input/js0 has to say:

Driver version is 2.1.0.
Joystick (Microsoft SideWinder Precision 2 Joystick) has 6 axes (X, Y, Rz, Throttle, Hat0X, Hat0Y)
and 8 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
f 1:off 2:off 3:off 4:off 5:off 6:off 7:off

I move the controls and get response from everything.
SamSpacely
Star Pilot
Star Pilot
Posts: 5
Joined: Wed Feb 26, 2014 8:33 pm

Fixed for me...

Post by SamSpacely »

Well, I removed the playdeb.net version, and installed the opensuse version from the homepage, and the joystick works fine in it. Something is apparently off in the playdeb version. Thanks for the help.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Post by klauss »

I thought playdeb was pointing to the OBS deb. I guess not. Thanks for letting us know :)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply