[Advanced] Minecraft Save Extractor

Rocky5 Apr 13, 2013

  1. xGoggles

    xGoggles Member
    0/47

    Joined:
    May 9, 2012
    Messages:
    822
    Likes Received:
    132
    Trophy Points:
    45
    Gender:
    Male
    Location:
    Tipton, West Midlands
    Console:
    Xbox
    The new update looks nice
     
  2. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    Next update will add support for,

    1. 30 Player maps, there should be no more needed. (you would need to have had 30+ different players all with maps in your world)
    2. Logging support. (disabled by default)

    What I found out by going through the Region files.

    Structure is the same as 1.3 Minecraft PC

    Chunk location/time table located in the first 0x00002000, in all region files. It either has padding at the beginning or end.
    Chunks start at 0x00002000 & carry on till the end of the file, there in 4096 (0x00001000) clusters.

    First value on all region chunks is 8000 second value is the length of the chunk data minus padding, third value 0001 is the compression type, the rest of the data until the first 0000 is compressed data, -1 byte.

    Importing PC world chunks (MCR format) into the region file still doesn't display any data (blocks)

    MCEdit is loading the chunks but not displaying the tables for items/blocks (from what I can gather) so this maybe why or its cant get offsets for tables, god knows.

    where are the fancy super dooper hackers that work this stuff out :|

    OK MCEdit (MCR version) can repair the region files, but it fails because there is an unknown compression used.
     
  3. MrFlex25

    MrFlex25 Sneaky Taco
    0/47

    Joined:
    Jan 30, 2013
    Messages:
    449
    Likes Received:
    75
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Far Far Land In Space
    Console:
    Xbox
    Mate, One Word! SUPERDAMAMAZING! I honestly been waiting for this idea to come alive! One billion thank you's!! ;)
     
  4. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    Bad news, the region files are compressed with Xmemcompress & MS LZX so the XDK is need to decompress the region files :-@

    Well xcompress.dll maybe usable?
     
  5. nyu206

    nyu206 Newbie
    0/47

    Joined:
    Oct 27, 2012
    Messages:
    49
    Likes Received:
    34
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
  6. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    QuickBMS can decompress the region files, but it outputs them to separate files :-( & i don't know how to make MCEdit use them, tried combining them but no joy.
     
  7. nyu206

    nyu206 Newbie
    0/47

    Joined:
    Oct 27, 2012
    Messages:
    49
    Likes Received:
    34
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    any news on decrompression? or still stuck..?
     
  8. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    Im looking at other ways of redoing the hole extractor, Python or VB maybe, that way I can move away from Swiss File Knife & Batch files & do an importer easier than using the curt method/idea.

    Also trying to work out how I would do a map importer, I have ideas, but still on the drawing board.

    So nothing yet sorry, I can decompress the region files into each chunk, but nothing can read them in this way.
     
  9. Hac

    Hac Rookie
    20/47

    Joined:
    Feb 12, 2012
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    20
    Gender:
    Male
    Console:
    Xbox
    looking good mate :)
     
  10. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    BMS script done by aluigi (guy who makes QuickBMS) to decompress Xmemcompression.
    Code:
    endian big
    get FILESIZE asize
    for OFFSET = 0x2000 < FILESIZE
        goto OFFSET
        get ZSIZE long
        if ZSIZE & 0x80000000
            comtype xmemdecompress
            math ZSIZE &= 0x7fffffff
            get SIZE long
        else
            comtype unzip_dynamic
            get DUMMY byte
            math SIZE = ZSIZE
        endif
        savepos OFFSET
        clog "" OFFSET ZSIZE SIZE
        math OFFSET += ZSIZE
        math OFFSET x= 0x1000
    next
    
    Right now the above is useless, as there is nothing I can do with uncompressed files. But they could be recompressed to Zlib so the PC can read them, but I couldn't find a way of doing this.

    So as of right now I have hit a brickwall & its upto the VB, C++ & C# peeps to make an all singing all dancing tool to export, decompress, convert/compress to Zlib (will allow editing in MCEdit) then decompress Zlib, compress to Xmemcompress (MS LZX), then recreate a working Index, with all new sizes & position offsets.

    I made an importer that used large region files & predefined offsets, but the Xbox just froze, though it could have been something else, there were nulled region files inside the save, so that could have caused the crash & I also didn't include a player file, but there individual to each profile, so I cant just make a generic one.


    V1.1 Update:
    1. Drag & Drop interface now, drag you savegame.dat onto the batch.
    2. Better error handling.
    3. Updated some of the code & tided up the batch.
    4. Supports a total of 30 player maps, (shouldnt need any more as you would need 30+ different players on one world)
    5. Probably more, forgot :-(
     
  11. nyu206

    nyu206 Newbie
    0/47

    Joined:
    Oct 27, 2012
    Messages:
    49
    Likes Received:
    34
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    nice work so far,
    ive been looking at recompressing the lzx files into zlib, there a decompreser using python :/, but would need to look into it a bit more but seems hopeful
     
  12. nnn

    nnn XPG Fanatic (I'm very awesome!)
    0/47

    Joined:
    Jun 11, 2012
    Messages:
    1,480
    Likes Received:
    179
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    Do you think this will eventually allow us to put texture packs and mods on it after you exract the region and other files? Nice work, btw.
     
  13. K Ron Spliffs

    K Ron Spliffs Mr. GreenThumb
    45/47

    Joined:
    Apr 18, 2010
    Messages:
    605
    Likes Received:
    191
    Trophy Points:
    45
    Gender:
    Male
    Console:
    Xbox
    Don't think so mate, as the texture files are in the game's files not the save's.
     
  14. nnn

    nnn XPG Fanatic (I'm very awesome!)
    0/47

    Joined:
    Jun 11, 2012
    Messages:
    1,480
    Likes Received:
    179
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    Darn, atleast we still may be able to use MCEdit.
     
  15. klusterfk

    klusterfk Newbie
    0/47

    Joined:
    Jun 25, 2012
    Messages:
    60
    Likes Received:
    24
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    anymore progress on this yet rocky? been working with some of the files myself lately..no luck on my end yet, sadly.
     
  16. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    None, I can't do much else bar what has been done. I may try reimporting files again, but won't be anytime soon, sorry.
     
  17. aaronbone

    aaronbone Newbie
    0/47

    Joined:
    Apr 9, 2012
    Messages:
    67
    Likes Received:
    6
    Trophy Points:
    0
    Console:
    Xbox
  18. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    They can't release the tool, because more than likely they used the XDK & that can't be released.

    If they used QuickBMS then they could release the tool :)

    But at least it's a start, I know I would never get credit for anything that came of this but at least I know I may have given them a boot up the arse in the right direction :)
     
  19. Ro

    Rocky5 Newbie
    0/47

    Joined:
    May 14, 2012
    Messages:
    45
    Likes Received:
    29
    Trophy Points:
    0
    Console:
    Xbox
    OK, I have created a new extractor (uses QuickBMS) that will let you import files back into the save file, but there is only 1 problem, files must be slightly smaller or equal to the original (file you edited).

    Will put it up later tomorrow.

    I have my own decompressor for the encrypted save, but no importer yet, so fairchilds tool will need to be used. :-(

    what the tool/script will do is decrypt your save > extract the files, in seconds :)
     
  20. aaronbone

    aaronbone Newbie
    0/47

    Joined:
    Apr 9, 2012
    Messages:
    67
    Likes Received:
    6
    Trophy Points:
    0
    Console:
    Xbox
    I'm glad to see someone working on this that will put out the tool. IDK the youtube guys issues with not knowing if he should release or not. Pc version has mcedit, why not Xbox builders. I already use schematics but I have to build block by block layer by layer. this would just save so much time.
     

Share This Page

Close