The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
November 13, 2024, 12:40:07 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Start using my joystick!
« previous next »
Pages: [1] Print
Author Topic: Start using my joystick!  (Read 4525 times)
Razorback
Frungy champion
**
Offline Offline

Gender: Male
Posts: 99


We are all *happy campers*


View Profile
Start using my joystick!
« on: June 18, 2005, 04:12:00 am »

Been playing single player with a joypad just fine, but when I recently picked up a 2nd controller for pvp action, it's not so simple.  I tried cut-and-pasting the two blocks of joypad command lines in keys.cfg. Then I changed the player-1 values to player-2, and they joystick values from 0 to 1, but it won't even load the game set up like that.  Any suggestions?

EDIT:  Adding in my joystick command lines as they currently are.

# joystick 0 threshold 10000   # How far to move before it counts; 0-30000
Menu-Left: joystick 0 axis 0 negative
Player-1-Left: joystick 0 axis 0 negative
Lander-Left: joystick 0 axis 0 negative
Menu-Right: joystick 0 axis 0 positive
Player-1-Right: joystick 0 axis 0 positive
Lander-Right: joystick 0 axis 0 positive
Menu-Up: joystick 0 axis 1 negative
Player-1-Thrust: joystick 0 axis 1 negative
Lander-Thrust: joystick 0 axis 1 negative
Menu-Down: joystick 0 axis 1 positive
Menu-Cancel: joystick 0 button 0
Player-1-Special: joystick 0 button 1
Menu-Select: joystick 0 button 2
Player-1-Weapon: joystick 0 button 2
Lander-Weapon: joystick 0 button 2
Menu-Page-Up: joystick 0 button 4
Menu-Page-Down: joystick 0 button 6
Menu-Zoom-In: joystick 0 button 5
Player-1-Escape: joystick 0 button 3
Lander-Escape: joystick 0 button 3
Menu-Zoom-Out: joystick 0 button 7

#  And now the POV hat controls.
Menu-Left: joystick 0 hat 0 left
Player-1-Left: joystick 0 hat 0 left
Lander-Left: joystick 0 hat 0 left
Menu-Right: joystick 0 hat 0 right
Player-1-Right: joystick 0 hat 0 right
Lander-Right: joystick 0 hat 0 right
Menu-Up: joystick 0 hat 0 up
Player-1-Thrust: joystick 0 button 7
Lander-Thrust: joystick 0 button 7
Menu-Down: joystick 0 hat 0 down

Menu-Left: joystick 1 axis 0 negative
Player-2-Left: joystick 1 axis 0 negative
Lander-Left: joystick 1 axis 0 negative
Menu-Right: joystick 1 axis 0 positive
Player-2-Right: joystick 1 axis 0 positive
Lander-Right: joystick 1 axis 0 positive
Menu-Up: joystick 1 axis 1 negative
Player-2-Thrust: joystick 1 axis 1 negative
Lander-Thrust: joystick 1 axis 1 negative
Menu-Down: joystick 1 axis 1 positive
Menu-Cancel: joystick 1 button 0
Player-2-Special: joystick 1 button 1
Menu-Select: joystick 1 button 2
Player-2-Weapon: joystick 1 button 2
Lander-Weapon: joystick 1 button 2
Menu-Page-Up: joystick 1 button 4
Menu-Page-Down: joystick 1 button 6
Menu-Zoom-In: joystick 1 button 5
Player-2-Escape: joystick 1 button 3
Lander-Escape: joystick 1 button 3
Menu-Zoom-Out: joystick 1 button 7

#  And now the POV hat controls.
Menu-Left: joystick 1 hat 0 left
Player-2-Left: joystick 1 hat 0 left
Lander-Left: joystick 1 hat 0 left
Menu-Right: joystick 1 hat 0 right
Player-2-Right: joystick 1 hat 0 right
Lander-Right: joystick 1 hat 0 right
Menu-Up: joystick 1 hat 0 up
Player-2-Thrust: joystick 1 button 7
Lander-Thrust: joystick 1 button 7
Menu-Down: joystick 1 hat 0 down
« Last Edit: June 18, 2005, 04:19:33 am by Razorback » Logged

Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Start using my joystick!
« Reply #1 on: June 18, 2005, 06:06:30 am »

number out both POV values:

#  And now the POV hat controls.
#Menu-Left: joystick 0 hat 0 left
#Player-1-Left: joystick 0 hat 0 left
#Lander-Left: joystick 0 hat 0 left
#Menu-Right: joystick 0 hat 0 right
#Player-1-Right: joystick 0 hat 0 right
#Lander-Right: joystick 0 hat 0 right
#Menu-Up: joystick 0 hat 0 up
#Player-1-Thrust: joystick 0 button 7
#Lander-Thrust: joystick 0 button 7
#Menu-Down: joystick 0 hat 0 down

why...you dont need them. (optional)

ok it took me a minute to figure out what you did wrong cause i got the same resutls. see this line in your config:

Code:
Player-2-Escape: joystick 1 button 3


change this back to:
Code:
player-1-Escape: joystick 1 button 3


player 2 does not need this enabled and the game crashes because of it. this is why:

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Games\The Ur-Quan Masters>uqm
The Ur-Quan Masters v0.4.0 (compiled May 18 2005 16:47:39)
This software comes with ABSOLUTELY NO WARRANTY;
for details see the included 'COPYING' file.

Initializing base SDL functionality.
Using SDL version 1.2.8 (compiled with 1.2.8)
Initializing Pure-SDL graphics.
SDL driver used: directx
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
2 joysticks were found.
The names of the joysticks are:
   PSX/USB Pad
   PSX/USB Pad
VControl opened joystick: PSX/USB Pad
4 axes, 12 buttons, 1 hats.
VControl opened joystick: PSX/USB Pad
4 axes, 12 buttons, 1 hats.
VControl: Illegal command type 'Player-2-Escape' on config file line 143
1 errors encountered in key configuration file.

Repair your keys.cfg file to continue.

D:\Games\The Ur-Quan Masters>


this is my config, but you probably dont need it. you can, however, use it for reference.

Code:
joystick 0 threshold 1   # How far to move before it counts; 0-30000
Menu-Left: joystick 0 axis 0 negative
Player-1-Left: joystick 0 axis 0 negative
Lander-Left: joystick 0 axis 0 negative
Menu-Right: joystick 0 axis 0 positive
Player-1-Right: joystick 0 axis 0 positive
Lander-Right: joystick 0 axis 0 positive
Menu-Up: joystick 0 axis 1 negative
Player-1-Thrust: joystick 0 axis 1 negative
Lander-Thrust: joystick 0 axis 1 negative
Menu-Down: joystick 0 axis 1 positive
Menu-Cancel: joystick 0 button 1
Player-1-Special: joystick 0 button 1
Menu-Select: joystick 0 button 2
Player-1-Weapon: joystick 0 button 2
Lander-Weapon: joystick 0 button 2
Menu-Page-Up: joystick 0 button 4
Menu-Page-Down: joystick 0 button 5
Menu-Zoom-In: joystick 0 button 7
Player-1-Escape: joystick 0 button 0
Lander-Escape: joystick 0 button 1
Menu-Zoom-Out: joystick 0 button 6

joystick 1 threshold 1   # How far to move before it counts; 0-30000
Menu-Left: joystick 1 axis 0 negative
Player-2-Left: joystick 1 axis 0 negative
Lander-Left: joystick 1 axis 0 negative
Menu-Right: joystick 1 axis 0 positive
Player-2-Right: joystick 1 axis 0 positive
Lander-Right: joystick 1 axis 0 positive
Menu-Up: joystick 1 axis 1 negative
Player-2-Thrust: joystick 1 axis 1 negative
Lander-Thrust: joystick 1 axis 1 negative
Menu-Down: joystick 1 axis 1 positive
Menu-Cancel: joystick 1 button 1
Player-2-Special: joystick 1 button 1
Menu-Select: joystick 1 button 2
Player-2-Weapon: joystick 1 button 2
Lander-Weapon: joystick 1 button 2
Menu-Page-Up: joystick 1 button 4
Menu-Page-Down: joystick 1 button 5
Menu-Zoom-In: joystick 1 button 7
Player-1-Escape: joystick 1 button 0
Lander-Escape: joystick 1 button 1
Menu-Zoom-Out: joystick 1 button 6

# And now the POV hat controls.
# Menu-Left: joystick 0 hat 0 left
# Player-1-Left: joystick 0 hat 0 left
# Lander-Left: joystick 0 hat 0 left
# Menu-Right: joystick 0 hat 0 right
# Player-1-Right: joystick 0 hat 0 right
# Lander-Right: joystick 0 hat 0 right
# Menu-Up: joystick 0 hat 0 up
# Player-1-Thrust: joystick 0 hat 0 up
# Lander-Thrust: joystick 0 hat 0 up
# Menu-Down: joystick 0 hat 0 down


let me know how it goes. Smiley
« Last Edit: June 18, 2005, 10:47:03 am by DEFIANT » Logged
Razorback
Frungy champion
**
Offline Offline

Gender: Male
Posts: 99


We are all *happy campers*


View Profile
Re: Start using my joystick!
« Reply #2 on: June 18, 2005, 03:39:23 pm »

Quote

ok it took me a minute to figure out what you did wrong cause i got the same resutls. see this line in your config:

Code:
Player-2-Escape: joystick 1 button 3


change this back to:
Code:
player-1-Escape: joystick 1 button 3


player 2 does not need this enabled and the game crashes because of it. this is why:

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Games\The Ur-Quan Masters>uqm
The Ur-Quan Masters v0.4.0 (compiled May 18 2005 16:47:39)
This software comes with ABSOLUTELY NO WARRANTY;
for details see the included 'COPYING' file.

Initializing base SDL functionality.
Using SDL version 1.2.8 (compiled with 1.2.8)
Initializing Pure-SDL graphics.
SDL driver used: directx
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
2 joysticks were found.
The names of the joysticks are:
   PSX/USB Pad
   PSX/USB Pad
VControl opened joystick: PSX/USB Pad
4 axes, 12 buttons, 1 hats.
VControl opened joystick: PSX/USB Pad
4 axes, 12 buttons, 1 hats.
VControl: Illegal command type 'Player-2-Escape' on config file line 143
1 errors encountered in key configuration file.

Repair your keys.cfg file to continue.

D:\Games\The Ur-Quan Masters>


Used the K.I.S.S. method, started out by only numbering out the extra line for the escape button on player 2.  Did the trick, both gamepads now work just fine!

Logged

fossil
Core Team
Frungy champion
*****
Offline Offline

Gender: Male
Posts: 94



View Profile
Re: Start using my joystick!
« Reply #3 on: June 18, 2005, 08:53:26 pm »

Also, you do not need any of the Menu-XXX and Lander-XXX controls in your 2nd joypad section. You should remove them, unless you want to be able to play single player with the 2nd controller, or want your buddy to fight you for the menu controls Smiley
Logged
hool
Zebranky food
*
Offline Offline

Posts: 3


I love YaBB 1G - SP1!


View Profile
Re: Start using my joystick!
« Reply #4 on: July 06, 2005, 07:37:35 pm »

hi

if anyone could give me their KEY.CFG file for a PS2 analog pad to PC via USB, i would greatly appreciate it.  i can't get this to work no matter what i've tried Sad

very frustrated Sad
« Last Edit: July 06, 2005, 07:38:15 pm by hool » Logged
Razorback
Frungy champion
**
Offline Offline

Gender: Male
Posts: 99


We are all *happy campers*


View Profile
Re: Start using my joystick!
« Reply #5 on: November 05, 2006, 01:29:24 am »

*bump*
Logged

Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Start using my joystick!
« Reply #6 on: November 07, 2006, 05:54:23 am »

EDIT: NEVERMIND, I see whats going on. Grin
« Last Edit: November 07, 2006, 05:56:31 am by DEFIANT » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!