Yeah, but there is a PC version too =/
Yeah, but there is a PC version too =/
First I wanted to say special thanks to fairchild for amazing job & hard work.
I've came across your tool while searching for save game editor for the PC game.
When I've tried to make one myself, I've noticed the saved game files were encrypted / compressed & then I made some google search & stumbled upon your tool here.
It seems though the tool itself runs without errors, the game cannot read a file compressed back using your tool.
Consider this "path": orig -> decompressed -> compressed -> back to orig file folder (replaced) -
When loading the game, it refusing to load file (says corrupted file).
Also noticed the generated saved-game file size is smaller than original one (original is 170KB & rebuilt is ~100KB)
I'm sure it's likely due to game recent update & some protection company made (since your last release v0.15):
Game installed with latest patch (update 4, XComGame.exe file version 1.0.0.28586)
Seeing that it's been over few months since last update of your tool, I'm assuming lack of time to "mess with it" is the cause of it.
I'm willing to gladly help if you're willing to accept my offer.
In real life I'm a professional C++ & C# coder (been doing it over 10 years), and I got some experience in reverse engineering on my spare time.
if you willing to share your insights discovered of what's the "compressed algorithm" & what checks have you found so far, I can try pick up where you left off & make it competiable with the latest pc version.
Regardless of above, I'm determined to make some nice visual slick GUI tool for editing as many parameters as I can find or identify inside the saved game,
with possible soldier weapons editor.
Promise to post it once it's ready...
Last edited by obione; 06-18-2013 at 08:09 PM. Reason: rephrased some bad english & added some note
I can't get mine to work. It says "Not a valid Win32 application






Nice work on the editor, I don't have the game but I was thinking about getting it.
Hi fairchild,
Thanks for great tool! Would you please also support iOS version which just comes out? Hopefully they keep similar save format for iOS port.
The first bytes after 1024 also looks like PC version with little endian
C1 83 2A 9E 00 00 02 00 A5 42 00 00 00 00 02 00 A5 42 00 00 00 00 02 00 78 9C ED 7D
Tried "xcom.exe -d save1 save1.d" without luck though
- Open input file: save1
- File size: 0x0000da11 (55825)
- Reading buffer from file, done.
- GameSave (PC) file detected!
- Decompress block# 0 / 5
Error: the compressed LZO input is wrong or incomplete (-6)
Any chance you can take a look? The savefile is attached. Thanks!
Added: Looks like compression changes from lzo to zlib instead
Last edited by allusing; 07-02-2013 at 07:37 PM.
Any chance that somebody could come up with something similar for the iOS version? The savegame is easily accessible in the iCloud folder.
When I however try to use the xcom.exe tool to decompress it, I get the following error:
Here is the file: XComiCloudsave0.zipC:\Documents and Settings\Shish\Desktop>xcom.exe -d XComiCloudsave0 save1.d
▄
▄ ▄▄▄▄▄▄▄ ▄ ▀▀▀▀▀ ▀▀ ▀ ▄▄▄▄▄▄▄▄ ▀▄▄▄▄ ▄
▄▄▄▄▄▄ ▀ ▄▄▄▄▄▄█▀▀▀▀▀█ ▄▄▄▄▄▄ ▀ █▀▀▀▀▀▀█ █▀▀▀▀▀▀ ▄▄▄▄ █▄▄▄▄▄▄▄▄
▄▄█▀▀ ▄▄ ▀█▀▀▀ ▄▄ ▀▀ ▀▀▀ █▀▀ ▄▄ ▀▀█▄ ▀ █▀ ███▀▐▌ █ ▀▀▀▀ ████ ▄██ ▄▄▄▄ ▀█
▀ ▀▀ ▄▄██▀▓▓▄ ▄▄██▀█▓▓▄ ███ ▄▄██▀██▓▄ █▀▀▀▀█ ███▌ █▄▄▌▐███▌▐███▌▐███▄▐███▌ ▄
▄▓▓▓▓▀ ▀▀▄██▀ ▐██▓▌▐██▌▄█▓▀ ▐░░▒▌ ▄▄█▓▄ ▐██▓█▄▄▄ ▓██▒ ▒███ █ ▄▄▄▄███▓
▐▓▒░▌ ░ ▐▓▒░▌ ▀▀░░▒▒ ░░▒ ▓▒▌ ▄░██▀▄▒██▀ ░░▒█ ▀▀░▒▓ ▓░▌▐░▒▓▌ ▄█▓█▀ ▐▓█▓▌
▓░██▀ █ ▓░██ ░▐███▌▐██▓ ░░█ ░▀▀ ▐▓░▒▌ ▄▌▐▓██▌▐▌▐██░▌▐█ █░░▓ ▐▓░░▌ ▄█░▒▓▀
▀ ▐███▌▐█▌▐███▌ ▀▀▀▀ ▀▀ ▐███▌ ▀ ▀▓██▄██ ▀▀▀▀ ██ ███░ ▐▓██▌ ▀▓██▄██▀▀ ▄▄ ▄
█ ▀▀▀▀ ██ ▀▀▀▀ █▀▀▀▀▀▀█▄ ▀▀▀▀ █▀█▄▄ ▀▀ ▄▄█▀▀▀▀█▌▐███▌▐ ▀▓▓██▄░ ▀▀ ▄▄█▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄ ▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀ !f █ ▀▀▀▀ ██▄▄ ▀▀▀▀ █▀▀▀▀
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀ p r e s e n t s . . ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀ ▀
▀ ▀▀▀▀▀ ▀ ▀
XCOM Enemy Unknown Compression Toolkit by fairchild
================================================== ===== version 0.1.6 ===
- Open input file: XComiCloudsave0
- File size: 0x00014140 (82240)
- Reading buffer from file, done.
! Unsupported file detected!
Hi thanks for a great tool, but is there any chance you could make this work on a the iOS version of the game? I could provide you with savegames if you need them.
I wrote a version to decompress/compress with zlib, but there is a 32b checksum for iOS version. Still waiting for fairchild to get online to learn how he worked around security check for PC version. Btw, decompressed save is different from PC/Xbox version, so existing editor will not work. Still hackable with HEX editor