Author Topic: Is there a way to change key bindings?  (Read 1545 times)

Offline Wacky Willy

  • Newbie Mark II
  • *
  • Posts: 24
Is there a way to change key bindings?
« on: September 22, 2009, 12:41:13 pm »
I'd like to change the pause button from "P" to "Space" to better accomodate my TBS-friendly playstyle.  Is there an ini file I can alter?

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: Is there a way to change key bindings?
« Reply #1 on: September 22, 2009, 02:19:19 pm »
That actually reminds me; can we get the Pause button pausing too? (Bet you didn't know keyboards had those!)
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline dumpsterKEEPER

  • Sr. Member Mark II
  • ****
  • Posts: 361
Re: Is there a way to change key bindings?
« Reply #2 on: September 22, 2009, 02:39:16 pm »
I'd like to change the pause button from "P" to "Space" to better accomodate my TBS-friendly playstyle.  Is there an ini file I can alter?

There is not currently a way to change the game's key bindings. This has come up as a question before, and here is the current stance on that feature: http://arcengames.com/forums/index.php/topic,1121.msg7181.html#msg7181

The short summary: it's only of benefit to a subset of the player base and is a very low priority due to other time constraints. I'm not aware of any files that can be modified to alter them.

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: Is there a way to change key bindings?
« Reply #3 on: September 22, 2009, 02:43:05 pm »
One can use Autohotkey to remap keys if the app doesn't support it, use something like this:

#IfWinActive AI War
Space::
Send p
return
#IfWinActive

Save to an autohotkey script file (.ahk) and run it on startup (through a link in the Startup folder) and it will make the space bar pause the game when in AI war without affecting anything else.
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Is there a way to change key bindings?
« Reply #4 on: September 23, 2009, 09:04:42 am »
Correct on the key bindings stuff.

As for the Pause button on the keyboard, there is a low-level windows interrupt that makes it only function 50% of the time in the game.  So, since it was frustrating to hit the button and half the time have it do nothing, I changed it to P (this was during alpha/beta).  A number of games don't use the Pause button on the keyboard, and I bet this is why...
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: Is there a way to change key bindings?
« Reply #5 on: September 23, 2009, 04:30:38 pm »
Well every time i used it i think it worked for me using a similar autohotkey script...
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Is there a way to change key bindings?
« Reply #6 on: September 23, 2009, 04:32:53 pm »
Well every time i used it i think it worked for me using a similar autohotkey script...

I'm not surprised.  It might have to do with some sort of strange override in Windows Forms, which is a bit higher-level than what you are doing.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!