DefaultCheats.ini - XCOM:EU 2012
(Taken from Nexus Modding forum thread DefaultCheats.INI-just curious.)
XcomGame\Config has an ini file called DefaultCheats.ini.
DefaultCheats.ini contains plenty of Command Sets - console commands grouped to named sets, managed by 'XComGame.upk.XComCheatManager. (See wiki article Console_Commands_-_XCOM:EU_2012.)
Command Sets functionality is similar to the exec Filename.txt command, but they cannot be changed on the fly like commands in text files.
Programs and Tools
DefaultCheats.ini syntax is obvious. I've added two sets at the end of the file.
Name=PrettyScreenshot Command=UIToggleVisibility Command=ToggleUnitFlags Command=UIToggleTether Command=UIToggleDisc Command=ToggleFOW
Name=NeedSomeResources Command=GiveCash 999 Command=GiveItem Elerium115 999 Command=GiveItem AlienAlloys 999 Command=GiveItem WeaponFragment 999 Command=GiveItem Meld 999
Next I've added bindings at the end of DefaultInput.ini, where Command="RunCommandSet <NameFromDefaultCheats.ini>".
[XComGame.XComTacticalInput] .Bindings=(Name="F12", Command="RunCommandSet PrettyScreenshot") [Engine.PlayerInput] .Bindings=(Name="F12", Command="RunCommandSet NeedSomeResources")
The same functionality can be achieved by putting commands into a text file placed in the Binaries folder and binding it in DefaultInput.ini:
Command=UIToggleVisibility Command=ToggleUnitFlags Command=UIToggleTether Command=UIToggleDisc Command=ToggleFOW
.Bindings=(Name="F12", Command="exec PrettyScreenshot.txt")
Somebody can try calling Command Sets from the code, if it's possible.
Referred to by this article:
That refer to this article:
- None as yet.