XCOM Enemy Unknown Compression Toolkit

fairchild Oct 10, 2012

  1. fa

    fairchild Contributor
    0/47

    Joined:
    Jan 18, 2011
    Messages:
    20
    Likes Received:
    19
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Spain / Sweden
    Console:
    Xbox
    Yet again a compression toolkit, this time for XCOM Enemy Unknown...

    To use this toolkit you must first extract the savegame from within the xbox 360 container (CON), then use this toolkit on the extracted file. If you try to use this on the CON file itself it will give you a warning.

    This is not a click 'n play tool, you need to use it from the Command Prompt or any other methods that handles this tool.

    Code:
    
    																  ▄
    	   ▄ ▄▄▄▄▄▄▄  ▄					   █▀▀▀▀ ▀▀  ▀	  ▄▄▄▄▄▄▄▄ ▀▄▄▄▄ ▄
    	   ▄▄▄▄▄▄ ▀ ▄▄▄▄▄▄█▀▀▀▀▀█ ▄▄▄▄▄▄	  ▀ █▀▀▀▀▀▀█ █▀▀▀▀▀▀ ▄▄▄▄ █▄▄▄▄▄▄▄▄
       ▄▄█▀▀ ▄▄ ▀█▀▀▀ ▄▄ ▀▀ ▀▀▀ █▀▀ ▄▄ ▀▀█▄  ▀ █▀ ███▀̦ █ ▀▀▀▀ ████ ▄██ ▄▄▄▄ ▀█
    ▀ ▀▀ ▄▄██▀█▓▄ ▄▄██▀█▓▓▄ ███ ▄▄██▀██▓▄ █▀▀▀▀█ ███¦ █▄▄¦Ì███¦Ì███¦Ì███▄Ì███¦ ▄
      ▄▓▓██▀  ▀▀▄██▀  Ì██▓¦Ì██¦▄██▀ Ì██▓¦ ▄▄█▓▄ Ì████▄▄▄  ▓███ ████ █ ▄▄▄▄███▓
      Ì▓██¦ ░ Ì▓██¦ ▀▀████ ███ ▓█¦ ▄███▀▄███▀   ▓███ ▀██▓▓ ██¦Ì███¦ ▄███▀ Ì██▓¦
       ▓███▀ █ ▓███ ░Ì███¦Ì██▓ ███ ░▀▀ Ì▓██¦ ▄¦Ì▓██¦Ì¦Ì██▓¦Ì█ ████ Ì▓██¦ ▄██▓▓▀
    ▀ Ì███¦Ì█¦Ì███¦ ▀▀▀▀ ▀▀  Ì███¦ ▀  ▀▓██▄██ ▀▀▀▀ ██ ███▓  Ì▓██¦ ▀▓██▄██▀▀ ▄▄ ▄
      █ ▀▀▀▀ ██ ▀▀▀▀ █▀▀▀▀▀▀█▄ ▀▀▀▀ █▀█▄▄ ▀▀ ▄▄█▀▀▀▀█¦Ì███¦Ì ▀▓▓██▄░  ▀▀ ▄▄█▀▀
      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄ ▀   ▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀   !f █ ▀▀▀▀ ██▄▄ ▀▀▀▀ █▀▀▀▀
    	▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀   p r e s e n t s . .	  ▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀ █▀ ▀
    											   ▀ ▀▀▀▀▀  ▀		▀
    
    			   XCOM Enemy Unknown Compression Toolkit by fairchild
      ======================================================= version 0.1.5 ===
    
      Usage: xcom.exe [options] <input> <output>
    
      Options:
    			    -d	  - Decompress.
    			    -c	  - Compress.
    
    
    Release notes:
    
      Yet again a compression toolkit, this time for XCOM Enemy Unknown...
    
      To use this toolkit you must first extract the savegame from within the
      xbox 360 container (CON), then use this toolkit on the extracted file.
      If you try to use this on the CON file itself it will give you a warning.
    
      This is not a click 'n play tool, you need to use it from the Command Prompt
      or any other methods that handles this tool.
     
      Update:
       * v0.1.5 - Added support for PC savegames.
    
    
      WARNING!
     
      Always backup your saves, this tool may corrupt remove your savegames.
     
    
    
      Decompress
      ==========
    
      Now to decompress a savegame you run the application by entering the following:
    
      * <PTEF> = the path to the extracted files, ex: c:\test
    
      <PTEF>\xcom.exe -d <PTEF>\<my savegame filename> <PTEF>\save.decompressed
    
      Example: c:\test\xcom.exe -d c:\test\save1 c:\test\save1.decompressed
    
      The toolkit will process the savegame and decompress it's compressed data block
      to the file names "save1.decompressed".
    
      Open "save1.decompressed" in your favorite hex editor :-)
    
    
      Compress
      ========
    
      To compress and inject the uncompressed blocks back into your savegame use the
      following command:
    
      NOTE: !! make a copy of your orginal savegame !!
    
      * <PTEF> = the path to the extracted files, ex: c:\test
    
      <PTEF>\xcom.exe -c <PTEF>\save1.decompressed <PTEF>\save1
    
      Example: c:\test\xcom.exe -c c:\test\save1.decompressed c:\test\save1
    
      This will take the decompressed block, named "save1.decompressed" and
      compress them, rebuild the package to a file named "save1.rebuilt".
    
      The file to inject back into your CON file is the file ending with ".rebuilt" !
    
    
      NOTE:
    
    	 Always make backup of your savegames!!
    
      Have fun :-)
    
     

    Attached Files:

    • Like Like x 8
  2. gold972

    gold972 团队XPG影响 Effect XPG Developer TeamXPG
    205/282

    Joined:
    Dec 6, 2010
    Messages:
    6,830
    Likes Received:
    14,396
    Trophy Points:
    205
    Gender:
    Male
    Location:
    France Kernal XDK
    Console:
    Xbox
  3. XPGCaboose

    XPGCaboose XPG Lifer TeamXPG
    0/47

    Joined:
    Aug 26, 2009
    Messages:
    6,016
    Likes Received:
    707
    Trophy Points:
    0
    Gender:
    Male
    Location:
    California, USA
    Console:
    Xbox
    great share. will help those that want to mod their own saves.
     
    • Like Like x 1
  4. bi

    big brother iv Newbie
    0/47

    Joined:
    Jan 23, 2011
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    0
    Console:
    Xbox
    A nice tut about how to find specific values would be nice please.
     
  5. Snortlegrunter

    Snortlegrunter Newbie
    0/47

    Joined:
    Oct 8, 2012
    Messages:
    29
    Likes Received:
    5
    Trophy Points:
    0
    Gender:
    Male
    Location:
    UK Midlands
    Console:
    Xbox
    What does this compression tool enable you to do?
    I'd love to mod this game so i could have more alloys.
    I have used hex edit in the past on games like assassins creed to edit money, but i dont seem to find any matching values when i try it with xcom.
    Any advice would be appreciated.
     
  6. sa

    saurusmonster Newbie
    0/47

    Joined:
    Oct 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Playstation 3
    Fairchild, do you mind looking at the attached file?

    It is a saved game file from the PC version, the file header structure of an XBOX save and this PC save seem very similar except for the first few bytes. The PC save will not decompress in your xcom enemy unknown compression toolkit v0.1.0b :(

    I know this is an xbox forum, but there are desperate PC gamers out there too! any chance you could amend your tool to handle PC saves too or inform me what to change to convert this into an XBOX save?
     

    Attached Files:

  7. fa

    fairchild Contributor
    0/47

    Joined:
    Jan 18, 2011
    Messages:
    20
    Likes Received:
    19
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Spain / Sweden
    Console:
    Xbox
    Hi, updated my application with PC savegame support, do note that this is untested as i don't have the PC version of the game so make backups :)
     
  8. sa

    saurusmonster Newbie
    0/47

    Joined:
    Oct 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Playstation 3
    FAIRCHILD, have my babies - it works!

    Edit: it decompresses fine but the recompressed file has a much smaller file size, thanks for trying!
     
  9. madasahat

    madasahat Official XPG Spastic
    155/188

    Joined:
    Jul 21, 2009
    Messages:
    6,089
    Likes Received:
    558
    Trophy Points:
    155
    Gender:
    Male
    Location:
    LUFC
    Console:
    Computer
    Nice to see you posting here Fairchild you do some good work work that alot of people use
     
  10. Showdown

    Showdown Newbie
    0/47

    Joined:
    Oct 4, 2012
    Messages:
    32
    Likes Received:
    3
    Trophy Points:
    0
    Gender:
    Male
    Location:
    UK
    Console:
    Xbox
    I am sure I am doing somthing wrong.. Extracting the save either by "360Rev " or "Horizon" it always comes up in CMD prompt "error the compressed LZO input is wrong or incomplete (-4)" also windows error and advises that Xcom.exe has stopped working..

    Any ideas??

    Just want to edit alloy's, weapon fragments, Elerium etc :(

    Any help would be nice... thanks in advance :)
     
  11. Kr

    KraigDee7 Newbie
    0/47

    Joined:
    Nov 28, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    I try to decompress the extracted file but I keep getting the big red "XBOX360 Container detected." warning. What am I doing wrong here?
     
  12. FN

    FNG1337Midge Newbie
    0/47

    Joined:
    Jan 4, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    im having this problem as well, can anybody help?
     
  13. da

    davew Newbie
    0/47

    Joined:
    Jan 15, 2013
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Other
    Hi Fairchild,

    I can only find your code on two websites, but I think I need to 1.6 version to re-compress PC code. Unfortunately due to a bug I can't seem to register on the other site! Could you please upload the 1.6 version here (or let me know where I can download it please?)

    Thanks
     
    • Like Like x 1
  14. Di

    DillingerRadio Newbie
    0/47

    Joined:
    Oct 13, 2012
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    If you're getting the container error it's because you're attempting to do the whole save..

    Go back into horizon, double click your save, go to the "Contents" tab and extract the save1 located therein. That is the file that you want to decompress/recompress using Fairchild's toolkit.

    Thanks Fairchild.
     
    • Like Like x 1
  15. Di

    DillingerRadio Newbie
    0/47

    Joined:
    Oct 13, 2012
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    As far as recompression goes, I'm getting some errors.. Namely, it compresses it back to about 70kb whereas the original was 104kb.. Every attempt to inject comes up with an error for invalid STFS file and forced injections just corrupt the file

    Trying to just decompress and recompress the file without actually modifying it bring the same results.

    Any ideas?\

    ------------
    Never mind, I'm being foolish- didn't choose replace in horizon and was trying to inject it instead. Great work Fairchild!
     
  16. Te

    TerraRazor Newbie
    0/47

    Joined:
    Jan 31, 2011
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Xbox
    Downloaded and extracted but everytime I try and open the tool it opens for less than a second and then closes. Any ideas?
     
  17. po

    poppie Newbie
    0/47

    Joined:
    May 31, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    Fairchild, I was trying to mod my castleminer z file with hex workshop but I think I need a decryption program to help and I saw information on yours all over the web but couldn't find an adequate download link. Please help me out or send me a good link.
    Thanks
     
  18. Du

    Durryn Newbie
    0/47

    Joined:
    Mar 28, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    I am not getting a decompressed file. It runs and nothing happens
     
  19. dr

    drmandarin Newbie
    0/47

    Joined:
    May 28, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Playstation 3
    Thanks for this fairchild - any chance of posting source code?
     
  20. Po

    PowerSwitch Newbie
    0/47

    Joined:
    Aug 10, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    never mind i figured that out.
     

Share This Page

Close