Jump to content

Keybind commands


Drakous79

Recommended Posts

Only three config files are stored in the Resource Cache (on PC, I can't say about OS X), and DefaultInput.ini is not one of them.

 

The three are:

1) DefaultGameCore.ini

2) DefaultMPGame.ini

3) DefaultLoadouts.ini

 

All others should be loading from the loose files in /XComGame/config/ with no alterations.

My XCOM EU folder:

Application Support > Steam >SteamApps > common > XCom-Enemy-Unlnown > XCOMData

Under the XCOMData, there are 3 folders

Binaries

Engine

XComGame

Under the Binaries and Engine folders, there is no Defaultxxx.ini files

 

In the XComGame folder, there are 6 folders in it

Config - where all the Defaultxxx.ini files i can find are in this folder

CookedPCConsole - UPK files

Cursors - 2 .cur files

DLC - PCConsole folder - DLC_Day60 and DLC_Packin folders

Localization - DEU/ESN/FRA...folders, I think country language related stuff.

Movies - .mov files

Link to comment
Share on other sites

  • Replies 194
  • Created
  • Last Reply

Top Posters In This Topic

Sorry I was wrong about the directory info ... was just thinking offhand about it, and messed it up. :sweat:

 

On PC the directory structure looks like:

for EU:

/XCom-Enemy-Unknown/XComGame/Config/

 

For EW:

/XCom-Enemy-Unknown/XEW/XComGame/Config/

 

The EW expansion has its own copies of the config files.

 

All of the config files are there, starting with "Default-". On PC three of those files aren't loaded (instead it uses the copies in the Resource Cache in XComEW.exe). There is a mod for PC that makes the game load the DGC.ini from the Config folder instead of using the Resource Cache version. I don't know what the situation is on OS X.

Link to comment
Share on other sites

Hi linpingchun,

 

I don't have Mac, so it's up to you to find out, how to make it work :smile:

 

First you can check, if commands are working at all.

// change
.Bindings=(Name=“F9”, Command=“exec Strategy.txt”, Alt=True)

// to
.Bindings=(Name=“F9”, Command=“GiveResource Money 1000”)

Start the game, go to the base view and press F9. You should have +1000 money after going to the research (or elsewhere) and back. If you were given thousand bucks, commands are working.

 

You can chain commands like bellow, but disadvantage is they cannot be changed, while the game is running.

.Bindings=(Name=“F9”, Command=“GiveResource Money 1000 | GiveResource Engineers 10 | GiveResource Scientists 10”)

Next it should be good to know, where to put text file with commands. I am guessing it may fit into XCOMData/Binaries folder.

sadly this does not work. do you think i need to change something first like hex edit the execution file or something?

maybe mac has different command?

Link to comment
Share on other sites

Hi Guys

 

I'm a novice to the forums with virtually ZERO coding skills but am an avid XCOM fan. Lately I have been playing XCOM on my HTPC in the living room with a wireless Logitech GamePad and loving it (It's GREAT 99% of the time when it works, but the developers have not followed through and have left a few glaring problems)!!

 

I've been trying to find a method to slow down the Geoscape Scanning and bokauk has been kind enough to suggest the "slomo" command:

 

In DefaultInput.ini under the "[Engine.PlayerInput]" section, paste:

.Bindings=(Name="U", Command="slomo 0.5")
.Bindings=(Name="I", Command="slomo 1")"

 

However, I am unable to use the KB as I am using a GamePad (in XBOX 360 mode). I would like to insert these commands for the GamePad, but do not know how to modify these instruction and where I should insert them for a GamePad. Any help would be very much appreciated!!

 

I am guessing that it would be esiest to assign these functions to R3/Right Stick Click (which currently has no function in XCOM). I'm not sure if there is a way for it to function like a toggle switch so that 1st press slows down the game by 50%; 2nd press brings it back to 100%. I am guessing that "XboxTypeS_RightShoulder" is referring to R3/Right Stick Click button in the DefaultInput.ini.

 

Thank you for your kind help in advance.

Edited by whcl
Link to comment
Share on other sites

maybe mac has different command? sadly this does not work. do you think i need to change something first like hex edit the execution file or something?

 

I don't think Mac has different commands or needs hex edit. Can you upload your XComStrategyGame.upk somewhere so I can check it?

 

Are you editing XComGame/Config/DefaultInput.ini?

 

Are you pressing just F9?

 

What happens, if you use

.Bindings=(Name="F9", Command="Exit")
Edited by Drakous79
Link to comment
Share on other sites

However, I am unable to use the KB as I am using a GamePad (in XBOX 360 mode). I would like to insert these commands for the GamePad, but do not know how to modify these instruction and where I should insert them for a GamePad. Any help would be very much appreciated!!

 

I am guessing that it would be esiest to assign these functions to R3/Right Stick Click (which currently has no function in XCOM). I'm not sure if there is a way for it to function like a toggle switch so that 1st press slows down the game by 50%; 2nd press brings it back to 100%. I am guessing that "XboxTypeS_RightShoulder" is referring to R3/Right Stick Click button in the DefaultInput.ini.

 

Thank you for your kind help in advance.

 

No idea, if XboxTypeS_RightShoulder is the right one. You can try some command with other binds under ;CONSOLE bindings.

 

I'd start by putting:

[Engine.PlayerInput]
.Bindings=(Name="XboxTypeS_RightShoulder", Command="Exit")

at the end of DefaultInput.ini. It will exit the game, if the correct button is pressed. Having it at the end is good, because it overwrites earlier binds.

 

When you find the right button, create key bind toggle:

[Engine.PlayerInput]
.Bindings=(Name="SlowMotion",Command="slomo 0.5 | SetBind XboxTypeS_RightShoulder NormalMotion")
.Bindings=(Name="NormalMotion",Command="slomo 1 | SetBind XboxTypeS_RightShoulder SlowMotion")
.Bindings=(Name="XboxTypeS_RightShoulder", Command="SlowMotion")

Tested it with Name="F12" and works as intended. Maybe you would like to use lower value than slomo 0.5.

 

The toggle uses SetBind in chain of commands.

// SetBind KeyName AliasName
SetBind F12 MyName1
Edited by Drakous79
Link to comment
Share on other sites

 

maybe mac has different command? sadly this does not work. do you think i need to change something first like hex edit the execution file or something?

 

I don't think Mac has different commands or needs hex edit. Can you upload your XComStrategyGame.upk somewhere so I can check it?

 

Are you editing XComGame/Config/DefaultInput.ini?

 

Are you pressing just F9?

 

What happens, if you use

.Bindings=(Name=“F9”, Command=“Exit”)

I tried press alt+F9 and just F9, with command with and without the Alt=true.

I have not yet try the Command="Exit" as you stated above, but I have tried .Bindings=(Name=“F9”, Command=“GiveResource Money 1000”), but it does not work.

Link to comment
Share on other sites

linpingchun, can you upload your XComStrategyGame.upk somewhere so I can check it?

 

Are you editing XComGame/Config/DefaultInput.ini?

 

Try exit command if you can please :) Also could be worth changing key to F12. Recently I had problems with F11, as it is set to switch between windowed and fullscreen.

Link to comment
Share on other sites

Greetings all ... I have always had a problem with the camera sway and zoom when targeting an enemy. I have been messing around with the camera pitch and have found some nice results i thought i would share. I play with a gamepad so i have all of these bound to the F keys.

 

Bindings=(Name="F2", Command="setoverheadcameraparameters 95 1200 -40", bPrimaryBinding=True)
Bindings=(Name="F3", Command="setoverheadcameraparameters 95 1200 -35", bPrimaryBinding=True)
Bindings=(Name="F4", Command="setoverheadcameraparameters 95 1200 -25", bPrimaryBinding=True)
Bindings=(Name="F5", Command="setoverheadcameraparameters 85 1200 -45", bPrimaryBinding=True)
Bindings=(Name="F6", Command="setoverheadcameraparameters 85 1200 -35", bPrimaryBinding=True)
Bindings=(Name="F7", Command="setoverheadcameraparameters 85 1200 -25", bPrimaryBinding=True)

 

You can change the settings and try what you like. I did 6 keys so i could try out different zooms and pitch while playing. You can literally play in glam cam with this if you want ... lol These are the settings i have been using lately. What i like most of all is that when you target an Alien it doesn't zoom down and in,it's more back and up .. so there is less back and forth on the screen.

 

Anyways ... play around with the settings and see what you can do. I have noticed that if you set the distance's to high you get weird effects .. screen inversion and some image tearing. These ranges that i have been using are good.

 

Play around with it and see what ya think :smile:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...