360haven works best with JavaScript enabled
[Release] XCOM Enemy Unknown Compression Toolkit - Page 13
Loading
Register
Page 13 of 14 FirstFirst ... 3891011121314 LastLast
Results 97 to 104 of 110
  1. #97
    Haven Donator
    Jobawa is offline
    Join Date : Jul 2011
    Location : U.S.
    Posts : 72
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    I haven't fired this up again, but I realized a bit ago (got Enemy Within yesterday) that if the compression bit didn't work, then it wouldn't matter if the hex positions were mostly the same. It seems likely that Enemy Within will be similar save-wise, but probably has to account for the extra data of the gene/mech additions as well.


  2. #98
    Haven Donator

    69bigplayer69 is offline
    Join Date : Feb 2011
    Location : COLD LAKE A.B
    Age : 31
    Posts : 782
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    move to proper page
    Downloads : 150 || Uploads : 0 || Rep Power : 4432 || Posts : 782 || Thanks : 765 || Thanked 229 Times in 89 Posts


    A Lover Not A Fighter

  3. #99
    Dschonny

    Re: XCOM Enemy Unknown Compression Toolkit

    Quote Originally Posted by carpi View Post
    For those who still have a problem with gamesave for PC or iOS version, let me explain few details. Data save is just serialized sets of classes (nothing more to add as people are doing great with finding & replaces patterns). In PC and iOS version (don’t have PS3 save) save game is compress with different algorithm. PC is using LZO1X_1 when iOS compresses data by zlib. Both saves are protected by CRC checksum. However, PC version has additional one CRC. One calculated from compressed data and 2nd generated from header.

    Code:
     save file = header[1024] + compressed_data[]
    The compress_data is organized into blocks. The block starts with block header (18 bytes) and then results of compression of 131072 bytes of “original” save data.

    Code:
     save_file = header[1024] + [ [block_header] [compress block]] *  X blocks
    Fairchild did nice work and code compression toolkit for it. It works fine for Xbox (what I can see) but it generate ‘corrupted file’ for PC version. So what the problem?

    1. He did wrong assumption that CRC checksum has constant offset and after game update it puts checksum in wrong place
    2. He implemented only one check.

    To fix it, you need to guys calculate CRC from whole compress data which is from offset 1024 to EOF() and put it just after game language code. In example, it’s at 0xEA. To calculate correct position it’s required to go though save header variable. Sum of first 3 in red (it’s just sizeof string), the 4th one is for DLC if you don’t have it will be 0 anything else it’s string size. And finally add 8 to results for sum and you are in correct place for 1st CRC.

    2nd CRC has static offset so it’s not needed to do similar operation as for 1st one. The offset is 0x3FC. 4 bytes earlier, at 0x3F8 is size of block from beginning of save which will be used for generate checksum.

    And that’s it more or less. I prepared fixer for pc and ios saves which will correct CRCs. Also I patched Fairchild’s xcom which now doesn’t break header but still requires CRC correction :) Now, you should be able to change saves.

    Note: Don't worry about different save size from Fairchild tool. He used different compression level and dictionary size but game will handle it :)
    Hey Guys - just trying to edit a XCom-EW-Save-File for PC. First tried Fairchilds tool, but the recompressed savegame didn't even show up in the load-Game-Section. Then found your fixed tool, now the savegame is shown in the loadgame-screen, but it's not loadable (corrupted). Tried to follow your checksum explanation, but I'm just not getting it. Could you (or somebody who knows how to do it) please explain that again in a few more details?
    Which value has to be edited at what adress, and how do I calculate adress and value exactly?
    Also tried your python-script (/w python f win 3.33) but it's giving me syntax-errors all the time - and I'm not firm to python to sort them out
    Thanks in advance!

  4. #100
    Member
    musawarrior is offline
    Join Date : Sep 2013
    Posts : 43
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    thanks!!! awesome update

  5. #101
    Elandril

    Re: XCOM Enemy Unknown Compression Toolkit

    Quote Originally Posted by Dschonny View Post
    Hey Guys - just trying to edit a XCom-EW-Save-File for PC. First tried Fairchilds tool, but the recompressed savegame didn't even show up in the load-Game-Section. Then found your fixed tool, now the savegame is shown in the loadgame-screen, but it's not loadable (corrupted). Tried to follow your checksum explanation, but I'm just not getting it. Could you (or somebody who knows how to do it) please explain that again in a few more details?
    Which value has to be edited at what adress, and how do I calculate adress and value exactly?
    Also tried your python-script (/w python f win 3.33) but it's giving me syntax-errors all the time - and I'm not firm to python to sort them out
    Thanks in advance!
    You need to install Python 2.7 for this script to work, since it uses syntax that has been deprecated in Python 3.3!

    Here are the steps to edit a savegame (in this example "save6"):
    1. Use xcom-fix to decompress the savegame.
      xcom-fix -d save6 save6.decompressed
    2. Edit the decompressed savegame ("save6.decompressed").
    3. Use xcom-fix to compress the savegame. Here it is important that you use the SAME savegame name as the original (since it has to take some parts from this to complete the savegame). Don't worry about the original savegame, since the program creates the new savegame with the extension ".rebuilt" and doesn't change the original.
      xcom-fix -c save6.decompressed save6
    4. Use check_crc.py to fix the CRC checksums.
      "<path-to-python-directory>\python.exe" check_crc.py save6.rebuilt
    5. Backup original savegame and rename the "save6.rebuilt" to "save6".
    6. Play XCOM Enemy Unknown and enjoy! :-)

  6. #102
    JakeShifter

    Re: XCOM Enemy Unknown Compression Toolkit

    I'm trying to open a save from XCOM - Enemy Within, i assume they use the same save system since EW is basically EU with extra goodies galore. I've tried using both Modio and USB Xtaf, and both give me a "save4" file when i'm done with them, but i follow all the steps and the toolkit still warns me it detects an Xbox 360 container. Are there any special instructions for Enemy Within, for getting it out of the container, what? i've been working for hours and have exhausted most of my options.

  7. #103
    Junior Member
    Drebrock is offline
    Join Date : Jul 2013
    Location : Detroit,MI
    Posts : 11
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    I just bought the game so I am trying something new thanks for making a tool kit.

  8. #104
    One Hit Wonder
    hansw is offline
    Join Date : Oct 2014
    Location : 360haven
    Posts : 1
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    Hi guys, I tried using the xcom-fix on an EW (PC Version) save and it crashed, let a friend try it on his PC and it also crashed. Can someone help me there? Win 7 64 Bit, appcrash.

 

 

Similar Threads

  1. [Release] XCom Enemy Unknown Editor
    By Cobby in forum Xbox 360 Modding Programs
    Replies: 43
    Last Post: 06-17-2016, 03:09 AM
  2. [REQUEST] Xcom: Enemy Unknown
    By Pk89 in forum Trainer Request
    Replies: 5
    Last Post: 10-12-2012, 03:55 AM
  3. XCOM: Enemy Unknown
    By Ravanofdarkness in forum Xbox 360 Modding Discussion
    Replies: 2
    Last Post: 10-08-2012, 01:48 PM

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

★★★★★¯\_(ツ)_/¯