360haven works best with JavaScript enabled
[Release] XCOM Enemy Unknown Compression Toolkit - Page 12
Loading
Register
Page 12 of 14 FirstFirst ... 27891011121314 LastLast
Results 89 to 96 of 110
  1. #89
    Inactive Member
    Minion is offline
    Join Date : Sep 2011
    Posts : 16
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    great job, works fine


  2. #90
    Member
    Malachi E Zo is offline
    Join Date : Jun 2012
    Location : USA
    Posts : 67
    Array
    Aliens Champion

    Re: XCOM Enemy Unknown Compression Toolkit

    Much appreciated, thank you very much. I still remember Hex Editing the originals };þ[)

  3. #91
    Junior Member
    carpi is offline
    Join Date : Jul 2013
    Posts : 6
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    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 :)
    Attached Thumbnails Attached Thumbnails header.jpg   data.jpg  
    Attached Files Attached Files

  4. #92
    obione

    Re: XCOM Enemy Unknown Compression Toolkit

    Thank you for info & hex insight of saved game...
    Much appreciated :)

  5. #93
    obione

    Re: XCOM Enemy Unknown Compression Toolkit

    I can confirm your xcom-fix.exe tool works perfectly on PC running latest patch installed ... *kudos*

    One addition to your hex info, after the 3rd string (0x39 size in your screenshot example) needs to add additional "12" (decimal), possibly some extra spacing.

  6. #94
    Junior Member
    carpi is offline
    Join Date : Jul 2013
    Posts : 6
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    Quote Originally Posted by obione View Post
    I can confirm your xcom-fix.exe tool works perfectly on PC running latest patch installed ... *kudos*

    One addition to your hex info, after the 3rd string (0x39 size in your screenshot example) needs to add additional "12" (decimal), possibly some extra spacing.
    Yeah, you right just forgot to mention but its I my example :)

  7. #95
    Member
    musawarrior is offline
    Join Date : Sep 2013
    Posts : 43
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    nice work, thanks!

  8. #96
    Junior Member
    Darth Duane is offline
    Join Date : Sep 2011
    Posts : 18
    Array

    Re: XCOM Enemy Unknown Compression Toolkit

    I know it's a long shot that this is still being supported but I just finally got around to trying the slingshot DLC and this seems to be incompatible with it. When i try and load a save after decompressing\compressing even if i make no changes i get

    "CANNOT LOAD SAVE GAME
    Missing Downloadable Content
    Sb;/ shot Content Pack"

    Any help would be appreciated.

 

 

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.

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