Jump to content

Keybind commands


Drakous79

Recommended Posts

Concur with Ghost that only DefaultGame.ini changes are necessary. I moved Long War's nonfunctioning camera controls from INput to Game and they worked again:

.Bindings=(Name="F2", Command="setoverheadcameraparameters 70 1256 -90", bPrimaryBinding=True)
.Bindings=(Name="F3", Command="setoverheadcameraparameters 70 1256 -78", bPrimaryBinding=True)
.Bindings=(Name="F4", Command="setoverheadcameraparameters 70 1256 -67", bPrimaryBinding=True)
.Bindings=(Name="F5", Command="setoverheadcameraparameters 70 1256 -55", bPrimaryBinding=True)
.Bindings=(Name="F6", Command="setoverheadcameraparameters 70 1256 -44", bPrimaryBinding=True)
.Bindings=(Name="F7", Command="setoverheadcameraparameters 70 1256 -33", bPrimaryBinding=True)
.Bindings=(Name="F8", Command="setoverheadcameraparameters 70 1256 -22", bPrimaryBinding=True)
.Bindings=(Name="F9", Command="setoverheadcameraparameters 70 1256 -10", bPrimaryBinding=True)

Ghost, could you be more explicit in the change you made and its effects?

Link to comment
Share on other sites

  • Replies 194
  • Created
  • Last Reply

Top Posters In This Topic

Yes. I've added manually what was supposed to be added automatically:

; Hunker Down
.Bindings=(Name="B", Command="K_Key_Press | onrelease K_Key_Release", bPrimaryBinding=True)
It's in DefaultGame.ini, [XComGame.XComTacticalInput] section. I've added it right before Overwatch binding.

 

EW patch 2 has a bug: it doesn't save any in-game key bindings. They actually added functions for implementing hunker down hotkey (K_Key_Press, K_Key_Release) and it can be assigned in-game, but it gets discarded after you exit the game. Direct DefaultGame.ini editing seem like only workaround for now.

Edited by wghost81
Link to comment
Share on other sites

Provide an example of what exactly you are attempting with the keybind command. Then we can see if it is simply a syntax error or something more general. A copy-and-paste into "spoiler" or "code" tags would work best, rather than trying to reproduce it manually.

 

For instance, you misspelled "money" in your question above. If you did that in the bind statement, that alone would cause it to fail. And I don't believe "giveresource money" is a valid console command. (I don't see any "giveresource" command.) For money it's "GiveCash". Ref: Console_Commands_-_XCOM:EU_2012 wiki article.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

After a week of playing around and finally getting the game to load I tried to use the keybind thing to give myself rescources but for some reason I just can't get it to work. Below are the line I added in the DefaultInput file as well as the line on either side,

 

.Bindings=(Name="F4", Command="ALT_F4_QUIT", Alt=True)
.Bindings=(Name="F9", Command="exec Strategy.txt", Alt=True)
.Bindings=(Name="F12", Command="F12_Key_Press | onrelease F12_Key_Release")

 

And I also placed a file called Strategy.txt in the Binaries folder that contained the following,

 

GiveResource Money 1000
GiveResource Elerium 100
GiveResource Alloys 100
GiveResource Engineers 10
GiveResource Scientists 10
GiveItem WeaponFragment 100

 

Anyone have any idea what I'm doing wrong. I love this game but the lack of rescources kills me and was really hoping this would help.

Link to comment
Share on other sites

The file I put the .Bindings=(Name="F9", Command="exec Strategy.txt", Alt=True) line is in the XCOM\XCom Enemy Unknown\XComGame\Config folder and I put it in the [Engine.PlayerInput] section of the DefaultInput.ini file. As far as other F9 keybindings go I can see a few but they seem to be under different "headings" for lack of a better word.

Link to comment
Share on other sites

evilmunky80, are you playing Enemy Uknown or Enemy Within? It is important to work with correct files and folders.

 

XCOM Enemy Unknown

XCom-Enemy-Unknown\XComGame\Config\DefaultInput.ini

XCom-Enemy-Unknown\Binaries\Strategy.txt

 

XCOM Enemy Within

XCom-Enemy-Unknown\XEW\XComGame\Config\DefaultInput.ini

XCom-Enemy-Unknown\XEW\Binaries\Strategy.txt

 

Also make sure you're pressing ALT + F9, because you have Alt=True set.

 

You may put new lines at the end of DefaultInput.ini like this:

[Engine.PlayerInput]
.Bindings=(Name="F12",Command="exec Strategy.txt")

I use F12 and no problems. But some computers like MACs can have system or app shortcuts on F keys.

 

Also you may need to change screen few times, before you see the change.

Edited by Drakous79
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...