The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 09, 2024, 05:39:20 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)
| | |-+  gamepad problem
« previous next »
Pages: [1] 2 3 Print
Author Topic: gamepad problem  (Read 10596 times)
Gunnar Horrigmo
Guest


Email
gamepad problem
« on: August 02, 2003, 10:25:40 am »

to be brief: I can't get any response from the axes on my gamepad (a PS2-controller hooked up through a rockfire (USB) adapter).  buttons work ok.

any help is greatly appreciated.

here's the relevant section from the keys.cfg

# joystick 0 threshold 10  # 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 3
Player-1-Special: joystick 0 button 2
Menu-Select: joystick 0 button 0
Player-1-Weapon: joystick 0 button 0
Lander-Weapon: joystick 0 button 0
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 8
Lander-Escape: joystick 0 button 8
Menu-Zoom-Out: joystick 0 button 7
Logged
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: gamepad problem
« Reply #1 on: August 02, 2003, 11:17:14 am »

im using the same same thing (sort of), mines not made by rockfire though. mines made by "kiky x-series", but any ways, try this config:
#
<Joyport0-threshold0>
"Left" <Joy-A0->
"Right" <Joy-A0+>
"Up" <Joy-A1->
"Down" <Joy-A1+>
"Enter" <Joy-B3>
"Rshift" <Joy-B2>
"RCtrl" <Joy-B1>
" " <Joy-B5>
"[" <Joy-B7>"]" <Joy-B8>
#


this is what i use
for referance, ill list what does what:

triangle=no function
square=select,thrust,a button
x button=fire mainweapon,cancel selections,b button
circle=fire secondary weapon,c button
L1=no function
L2=nofuntion
R1=zoom in
R2=zoom out
start=no function
select=no function

well there you have it...
~DEFIANT
« Last Edit: August 02, 2003, 11:24:50 am by DEFIANT » Logged
Sage
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 234



View Profile WWW
Re: gamepad problem
« Reply #2 on: August 03, 2003, 12:38:30 pm »

In the line with...

Code:
# joystick 0 threshold 10  # How far to move before it counts; 0-30000

...take out the first #
« Last Edit: August 03, 2003, 12:38:49 pm by sageallen » Logged
mike allegretto
Guest


Email
Re: gamepad problem
« Reply #3 on: October 05, 2003, 02:16:44 am »

how do i use these joystick commands to configure the game?
Logged
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: gamepad problem
« Reply #4 on: October 05, 2003, 06:58:18 am »

in the keys.cfg file.

default instilation:
C:\Program Files\The Ur-Quan Masters\userdata\uqm

you can then open with note pad or word pad and edit the controls that way.

~DEFIANT
Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: gamepad problem
« Reply #5 on: October 05, 2003, 12:43:04 pm »

You may find that Notepad tries to put it all on one line; if so, use EDIT.COM instead.  Open it in EDIT.COM, save it, and the problem will go away.
Logged
Titler
Guest


Email
Re: gamepad problem
« Reply #6 on: October 21, 2003, 03:29:21 am »

Just to follow up on this; I've just downloaded and installed the game for the first time, and I had my pad ignored too. To get it working, remove the "# " from after EVERY line after the one mentioned above. If you want to force Wordpad to save exactly as is, click the cross to close the program and choose "Yes" to save changes... this is useful for other games which need the file to retain it's file tag (usually a .cfg file. Saving via File > Save in wordpad will convert to a .txt file)
Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: gamepad problem
« Reply #7 on: October 21, 2003, 03:57:50 am »

"#" means "comment".  The gamepad controls there are meant to be representative, not definitive.

But, for the record, they were based on my own setup, which is a PS2 controller hooked up to a Radio Shack PS2->USB adapter.  One thing to watch out for is that if you have the Analog mode set, it seems to read the D-Pad as a POV hat.  That probably varies by adapter, but the configuration can handle that too (the lines look like "Lander-Thrust: joystick 0 hat 0 up").
Logged
CovertOps52382
Zebranky food
*
Offline Offline

Posts: 4


HAR HAR HAR


View Profile
Re: gamepad problem
« Reply #8 on: October 24, 2003, 06:58:02 am »

I was overjoyed when I found this game... and immediately crushed when my Gravis gamepad didn't work for me.  I'm seeing posts about using a PS2 USB, controller, but I dug out my old Gravis, and have it configured as a plain old 4-button joypad to Windows 2k through the serial port (I don't even want to try configuring all the buttons and whatnot for my Nyko Air Flo, dual analog pad).  And I cannot get it to work, after altering and saving my keys.cfg file, I must've screwed up because then the game couldn't even run.  So what's the proper syntax for something as simple as a 4-button, serial-port, Gravis gamepad, anybody?
Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: gamepad problem
« Reply #9 on: October 24, 2003, 11:14:29 am »

Remove the references to buttons that aren't between 0 and 3.  If you put in an illegal keyconfig (and trying to map to nonexistent joystick axes or buttons counts) then it will refuse to run.

Once we get keyconfig within the game, that will go away; but it seemed less bad to crash on borked input configurations than to silently make everything impossible to control.
Logged
CovertOps52382
Zebranky food
*
Offline Offline

Posts: 4


HAR HAR HAR


View Profile
Re: gamepad problem
« Reply #10 on: October 24, 2003, 09:51:12 pm »

Okay, these posts aren't helping much.  I've tried all sorts of stuff, switching the joystick number between 0 and 1, making the axes hit a threshold of 1, rather than 0, nothing is working, I've even removed the # from the first informational line before the joystick threshold between 0-30000.  I guess my programming skills just suck, because no other arguments or alterations to the default keys.cfg file are working.  Hell, I've even tried setting my Nyko 13-button like a Playstation 2 controller, as mentioned earlier, no luck for me.  <sigh> Guess I'll have to wait for that key configuration to be added before I can thouroughly enjoy this game.
« Last Edit: October 24, 2003, 09:53:39 pm by CovertOps52382 » Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: gamepad problem
« Reply #11 on: October 25, 2003, 04:18:47 am »

The input system gives errors if it doesn't understand something.  Look for lines that begin "VControl: " to see what it's being confused by.
Logged
CovertOps52382
Zebranky food
*
Offline Offline

Posts: 4


HAR HAR HAR


View Profile
Re: gamepad problem
« Reply #12 on: October 27, 2003, 02:53:03 am »

Okay, I'm getting no error messages, either which pop up or in the running command line for the game.  It's like my game pad doesn't even give a signal to the game.  Maybe if I understood a bit more in the keys.cfg, I'd understand why my gamepad is being ignored.

I understand that the keys.cfg file's default imput is basically a template, the lines it has printed need to be changed to accept input.

There's a joystick number on each line with a number of 0, what does the number 0  represent?  Does that need to be changed?  Do the axes need to be changed from the number 1?  Maybe if someone could e-mail me a copy of their keys.cfg which works at SethCDetling@yahoo.com, I could copy and paste.  Thanks
Logged
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: gamepad problem
« Reply #13 on: October 27, 2003, 03:17:20 am »

Quote
 Maybe if someone could e-mail me a copy of their keys.cfg which works at SethCDetling@yahoo.com, I could copy and paste.  Thanks



its in the mail...
~DEFIANT
Logged
CovertOps52382
Zebranky food
*
Offline Offline

Posts: 4


HAR HAR HAR


View Profile
Re: gamepad problem
« Reply #14 on: October 27, 2003, 07:04:36 am »

WHOOPIDTY DEE AND TROLLY BAZOO!!!  Oh happy days of jubilation, you are are my hero!!!!
Logged
Pages: [1] 2 3 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!