XCOM: Enemy Unknown

XCOM: Enemy Unknown

View Stats:
Cheats/File Editing
Could people post what files and lines to edit to change amount of money and such. Also any cheats other then the X-Com hero's? I have tried however editing DataGameCore and saved it but havent gotten it to work
< >
Showing 1-15 of 17 comments
X-the Unknown Mar 8, 2014 @ 5:33pm 
they coded it for no cheating allowed. L2P like the game was intended. :))
Damn so I cant edit anything to change amount of council funding :(
Aleera Mar 8, 2014 @ 6:34pm 
Originally posted by Robert Davidson:
Damn so I cant edit anything to change amount of council funding :(

http://www.nexusmods.com/xcom/? Closest thing you come to cheats.
Incunabulum Mar 8, 2014 @ 8:25pm 
Originally posted by Wolverine101:
they coded it for no cheating allowed. L2P like the game was intended. :))

Hey, how 'bout you screw off with that 'as intended' crap. Do you always bow down so submissively to any 'authority'?

The man wants to play the game he wants to play - not neccessarily the one the dev's made, nothing wrong with that.


OP - Nexus mods has an editor (somwhere on the site) that will open up the binaries and allow you to edit the options. It'll require some digging through files and trial and error on your part to get what you want, but once you find the money options its not hard ot edit - I've edited starting date, number of engineers, chance to lose a country at max panic, alien HP, stat gains on level-up, all sorts of things at one time or another.
Yeah I saw an ediotr on the Wiki that linked to the Nexus but it said that it was either hidden or has been deleted by the author
clearbit Mar 9, 2014 @ 12:28am 
Originally posted by Incunabulum:
Originally posted by Wolverine101:
they coded it for no cheating allowed. L2P like the game was intended. :))

Hey, how 'bout you screw off with that 'as intended' crap. Do you always bow down so submissively to any 'authority'?

The man wants to play the game he wants to play - not neccessarily the one the dev's made, nothing wrong with that.

I agree. The man bought the game and wants to have fun with it. Nothing wrong with that (well, as long as it's not for multiplayer anyway).

Originally posted by Aleera:
http://www.nexusmods.com/xcom/? Closest thing you come to cheats.

Thanks for the info.

Even if you don't want to cheat, the mod still looks useful. Included are some time saving hacks, such as:
- Skip Startup Movies
- Remove Overwatch and Hunker-Down Delay
- Skip Revealed Aliens Cutscenes
- Display Soldiers' XP During Tactical Missions
- Display Soldiers' XP and Mobility in the Barracks
- Configurable Ability Hot-Keys
Theres a mod that makes it so that a country never leaves the council but it needs EW aparently but do you guys think it works with EU?
clearbit Mar 9, 2014 @ 6:47am 
Originally posted by Robert Davidson:
Theres a mod that makes it so that a country never leaves the council but it needs EW aparently but do you guys think it works with EU?

Have you checked the release notes?
clearbit Mar 9, 2014 @ 4:04pm 
Originally posted by Robert Davidson:
http://www.nexusmods.com/xcom/mods/437/?
I think you can't, without some tinkering.

According to an author's post here[www.nexusmods.com], you have to use certain mod[www.nexusmods.com] for it to work with EU.
Originally posted by UESC Robert Davidson VC DDS DC:
Could people post what files and lines to edit to change amount of money and such. Also any cheats other then the X-Com hero's? I have tried however editing DataGameCore and saved it but havent gotten it to work


If you edit those files, and then go offline, you can play with cheats as before. The reason it was disabled was for the achievements to be completed legit. Offline play removes achievements and uses the local save files.

I currently play with my crazy mods, I love building the perk trees to be super soldiers. After you beat the game and played legit, there is no reason not to fool around.
I agree, have you tried offline mode for steam, you can play using the local save files and it will enable the mods in those folders
red255 Oct 27, 2019 @ 6:07pm 
why did you bump a 2014 thread?

if you want to cheat money or whatever you edit the key bindings to make it give you those resources whenever you press F12. or whatever.
trekkie0 Dec 30, 2020 @ 12:00pm 
You can modify your save file by using this editor tool on Github: https://github.com/tracktwo/xcomsave. The tool works for both Enemy Unknown and Enemy Within.

How to use (on Windows):
1. [Optional] In steam, disable cloud syncing of saves (since you are modifying the save file there's a chance Steam will undo your changes at first).
2. Download the release from the Github link and unzip it.
3. [Optional] Copy xcom2json.exe and json2xcom.exe to your save file directory (i.e. C:\Users\UserName\Documents\My Games\XCOM - Enemy Within\XComGame\SaveData). This step just makes it easier to run the commands without having to type in that long path.
4. Go to your save directory and run the following command in command prompt or PowerShell: `xcom2json.exe save###`, where ### is the number of the save you want to play with. The save file CANNOT be a tactical save, the tool only works with saves that occur in your base. It's also a good idea to make a backup. For example, if you are tweaking save9, make a copy of save9 and call it save9.old (or save9 - Copy or whatever).
5. Using Notepad++ or your favorite editor of choice, open up the json file that the above command created, then you can tweak your save. Money is found in the value property of this structure: { "name": "m_iCash", "kind": "IntProperty", "value": 999999999 }. Other resources are found in this big long array named "m_arrItems" and it looks like this: [ 0, 0, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ].

Somewhere, in that long array, should be every resource you need (such as Meld, alloys, weapon fragments, etc). Good luck figuring out which one is which. What I would do is go in game, collect a few resources, record the numbers of that resource, and then find that number in the array. If you want to tweak other things, like your soldier's statistics, you'll have to dig through the file to find out where that is yourself.
6. When you are done making the tweaks you want to make, run `json2xcom -o save10 save10.json` (for example, replacing those numbers as appropriate and making sure that you have a backup of whatever you put immediately after -o). Run the game and load the save (I always tweak the most recent save file so it is easy to find), and confirm that your changes are good. Then save the game (for option 7 below). If something went wrong, well, that sucks. Don't ask me for help. :steammocking:
7. [Optional] Re-enable Steam cloud saves after you have created a new save. (not sure if you need to create a new save or not, but having the game make a new one with a later timestamp means Steam won't overwrite it on accident).
Sekkei Oct 1, 2021 @ 5:51pm 
Originally posted by trekkie0:
You can modify your save file by using this editor tool on Github: https://github.com/tracktwo/xcomsave. The tool works for both Enemy Unknown and Enemy Within.

How to use (on Windows):
1. [Optional] In steam, disable cloud syncing of saves (since you are modifying the save file there's a chance Steam will undo your changes at first).
2. Download the release from the Github link and unzip it.
3. [Optional] Copy xcom2json.exe and json2xcom.exe to your save file directory (i.e. C:\Users\UserName\Documents\My Games\XCOM - Enemy Within\XComGame\SaveData). This step just makes it easier to run the commands without having to type in that long path.
4. Go to your save directory and run the following command in command prompt or PowerShell: `xcom2json.exe save###`, where ### is the number of the save you want to play with. The save file CANNOT be a tactical save, the tool only works with saves that occur in your base. It's also a good idea to make a backup. For example, if you are tweaking save9, make a copy of save9 and call it save9.old (or save9 - Copy or whatever).
5. Using Notepad++ or your favorite editor of choice, open up the json file that the above command created, then you can tweak your save. Money is found in the value property of this structure: { "name": "m_iCash", "kind": "IntProperty", "value": 999999999 }. Other resources are found in this big long array named "m_arrItems" and it looks like this: [ 0, 0, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ].

Somewhere, in that long array, should be every resource you need (such as Meld, alloys, weapon fragments, etc). Good luck figuring out which one is which. What I would do is go in game, collect a few resources, record the numbers of that resource, and then find that number in the array. If you want to tweak other things, like your soldier's statistics, you'll have to dig through the file to find out where that is yourself.
6. When you are done making the tweaks you want to make, run `json2xcom -o save10 save10.json` (for example, replacing those numbers as appropriate and making sure that you have a backup of whatever you put immediately after -o). Run the game and load the save (I always tweak the most recent save file so it is easy to find), and confirm that your changes are good. Then save the game (for option 7 below). If something went wrong, well, that sucks. Don't ask me for help. :steammocking:
7. [Optional] Re-enable Steam cloud saves after you have created a new save. (not sure if you need to create a new save or not, but having the game make a new one with a later timestamp means Steam won't overwrite it on accident).


Jesus. I miss the days people made editors that were simple.
< >
Showing 1-15 of 17 comments
Per page: 1530 50