Title: Controls question Post by: Q_of_BanditZ on March 30, 2003, 11:41:52 pm Just curious...
Can I modify the controls to incorporate the use of a moue and/or a joystick/gamepad of my choice plugged in via USB or other way? Thanks! Title: Re: Controls question Post by: Joseph Tek Fox on April 07, 2003, 09:58:45 am Supposedly, if you edit the file in "userdata/uqm" directory called "keys.cfg," you can change your key configuration. However, the only place these new keys seem to take effect is at the very start of the game(The title screen that says "The Ur-Quan Masters".). I say this because I can get out of that screen by pressing "Alt"(which I'd assigned to be my Button 3), or any of the buttons on my Gravis GamePad Pro USB. In the actual game, it doesn't seem to do anything. . .
Title: Re: Controls question Post by: AnonomouSpathi on April 07, 2003, 02:53:42 pm In .2, I was incapable of doing anything
In the latest CVS build, I managed to do so. Edit the 'starcon.key' in the data files, shifting all keys down 1 key. Then rename the file 'ignored.key', or it doesn't seem to do anything. Title: Re: Controls question Post by: Q of BanditZ on April 07, 2003, 07:31:53 pm Oh well, I won't complain, considering everything that's been done.
I just find that trying to play this game with a keyboard is...a chore. So, I think I'll just wait a little longer and when this issue is touched up some more...then I'll dig in! ;D Title: Re: Controls question Post by: meep-eep on April 07, 2003, 07:43:07 pm Quote In .2, I was incapable of doing anything In the latest CVS build, I managed to do so. Edit the 'starcon.key' in the data files, shifting all keys down 1 key. Then rename the file 'ignored.key', or it doesn't seem to do anything. *laugh*. Ok, let me explain: I changed the code for 0.2 so that the game looks in the userdata keys.cfg first, and if it does not find that file, it copies starcon.key from the content dir. But the starcon.ndx file, which contains some sort of index of files to load when a certain 'package' is loaded also tried to load starcon.key from the content dir as a key config file, thereby overriding the key config already loaded. The starcon.ndx format is far from trivial, and since a new resource system is underway, I decided to as a temporary work-around edit starcon.ndx and just replace the string 'starcon.key' by the name of some file which does not exists, 'ignored.key', thereby preventing the already loaded key config from being overridden. And now someone is renaming his config file to ignored.key! :) If you're using the current cvs, you shouldn't ever modify content/starcon.key. This file is the global, default key config. What you want to change is the user-specific key config, which is in the userdata directory. Depending on your operating system, and whether you've enabled multiple users support, this file can be in in various locations. Just 'find file' for 'keys.cfg'. There will be one for each user. Note that in some future version there will be a key config program or a key config menu item somewhere. Title: Re: Controls question Post by: Q of BanditZ on April 07, 2003, 07:44:49 pm <takes notes>
Thanks! :D Title: Re: Controls question Post by: meep-eep on April 07, 2003, 07:46:21 pm Addition: if you're not using the CVS version, you'll need to replace starcon.ndx for this to work correctly.
It can be found at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/sc2/sc2/content/starcon.ndx Title: Re: Controls question Post by: AnonomouSpathi on April 08, 2003, 05:13:09 am Quote *laugh*. Ok, let me explain: I changed the code for 0.2 so that the game looks in the userdata keys.cfg first, and if it does not find that file, it copies starcon.key from the content dir. But the starcon.ndx file, which contains some sort of index of files to load when a certain 'package' is loaded also tried to load starcon.key from the content dir as a key config file, thereby overriding the key config already loaded. The starcon.ndx format is far from trivial, and since a new resource system is underway, I decided to as a temporary work-around edit starcon.ndx and just replace the string 'starcon.key' by the name of some file which does not exists, 'ignored.key', thereby preventing the already loaded key config from being overridden. And now someone is renaming his config file to ignored.key! :) If you're using the current cvs, you shouldn't ever modify content/starcon.key. This file is the global, default key config. What you want to change is the user-specific key config, which is in the userdata directory. Depending on your operating system, and whether you've enabled multiple users support, this file can be in in various locations. Just 'find file' for 'keys.cfg'. There will be one for each user. Note that in some future version there will be a key config program or a key config menu item somewhere. Well, I did try keys.cfg, but it didn't seem to really do anything, and least not on the win98 I was trying it with. Eventually stumbled across the mention of ignored.key, and that seemed to work, and since everything else seemed to work great, I was quite satisfied :) |