Results 1 to 1 of 1
  1. #1
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks
    64
    Thanked 525 Times in 205 Posts
    Rep Power
    8

    HeroesX Online ARCH00 Unpack Script

    Script by aluigi
    Game: HeroesX Online

    For unpack you need QuickBMS Tool.

    PHP Code:
    # FEAR / FEAR2 / HeroesX Online / ARCH00 archives (script 0.3)
    # script for QuickBMS http://quickbms.aluigi.org

    comtype deflate
    idstring 
    "LTAR"
    get VERSION long

    # it's possible to make the check on the version or using this solution
    savepos TMP
    get FULL_SIZE asize
    get DUMMY1 long
    get DUMMY2 long
    math AUTOGUESS 
    0
    if DUMMY1 uFULL_SIZE
        math AUTOGUESS 
    1
    endif
    if 
    DUMMY2 uFULL_SIZE
        math AUTOGUESS 
    1
    endif
    goto 
    TMP
    if AUTOGUESS == 0
        get NAMESSZ long
        get FOLDERS long
        get FILES long
        get DUMMY long      
    # 1
        
    get DUMMY long      # 0
        
    get DUMMY long      # 0
        
    getdstring HASH 16
    else
        
    getdstring HASH 16
        get DUMMY long      
    # 1
        
    get DUMMY long      # 0
        
    get DUMMY long      # 0
        
    get FILES long
        get FOLDERS long
        get NAMESSZ long
    endif

    savepos OFFSET
    log MEMORY_FILE OFFSET NAMESSZ

    math OFFSET 
    += NAMESSZ
    set FILESSZ long FILES
    math FILESSZ 
    *= 32
    log MEMORY_FILE2 OFFSET FILESSZ

    math OFFSET 
    += FILESSZ
    set FOLDERSSZ long FOLDERS
    math FOLDERSSZ 
    *= 16
    log MEMORY_FILE3 OFFSET FOLDERSSZ

    set FOLDER string 
    ""
    callfunction EXTRACT

    startfunction EXTRACT
        savepos CURR_OFF MEMORY_FILE3
        
    if CURR_OFF >= FOLDERSSZ
            cleanexit
        
    endif
        
    get NAME_OFF long MEMORY_FILE3
        get SUB_FOLDERS long MEMORY_FILE3
        get NEXT_FOLDERS long MEMORY_FILE3
        get NUM_FILES long MEMORY_FILE3

        
    goto NAME_OFF MEMORY_FILE
        get NAME string MEMORY_FILE

        
    # don't have the minimal idea if it's correct, it's an update of the old script
        
    if AUTOGUESS == 0
            string FOLDER 
    NAME
        
    else
            
    string FOLDER += NAME
        
    endif
        
    string FOLDER += /

        for 
    NUM_FILES
            savepos CURR_OFF MEMORY_FILE2
            
    if CURR_OFF >= FILESSZ
                cleanexit
            
    endif
            
    get NAME_OFF long MEMORY_FILE2
            get OFFSET  longlong MEMORY_FILE2
            get ZSIZE   longlong MEMORY_FILE2
            get SIZE    longlong MEMORY_FILE2
            get ZIP     long MEMORY_FILE2

            
    goto NAME_OFF MEMORY_FILE
            get NAME string MEMORY_FILE

            
    if FOLDER != "CRC/" # they are not files
                
    set FNAME string FOLDER
                string FNAME 
    += NAME
                
    if ZIP == 0
                    log FNAME OFFSET SIZE
                
    else
                    
    # compression 9
                    
    callfunction ZIP_DUMP 1 # 1 only for being faster
                
    endif
            endif
        
    next i

        
    for SUB_FOLDERS
            callfunction EXTRACT
        next i

        set FOLDER string 
    ""
        
    for NEXT_FOLDERS
            callfunction EXTRACT
        next i
    endfunction

    startfunction ZIP_DUMP
        log MEMORY_FILE4 0 0
        append
        
    for SIZE
            math TMP 
    OFFSET
            math TMP 
    += j
            
    goto TMP
            get CHUNK_ZSIZE long
            get CHUNK_SIZE long
            savepos TMP
            
    if CHUNK_ZSIZE == CHUNK_SIZE
                log MEMORY_FILE4 TMP CHUNK_SIZE
            
    else
                
    clog MEMORY_FILE4 TMP CHUNK_ZSIZE CHUNK_SIZE
            
    endif
            
    math j += 8
            math j 
    += CHUNK_ZSIZE
            math j x
    4
        next
        append
        get SIZE asize MEMORY_FILE4
        log FNAME 0 SIZE MEMORY_FILE4
    endfunction 
    HOW TO Use:

    1. Run QuickBMS
    2. Select script
    3. Select file for unpack
    4. Select dir to unpack
    5. Enjoy

Similar Threads

  1. [Info] Sanjie Online PAK Unpack Script
    By h4x0r in forum Game Files
    Replies: 5
    Last Post: 2012-02-09, 01:55 PM
  2. [Info] TZ Online EVP Unpack Script
    By h4x0r in forum Game Files
    Replies: 1
    Last Post: 2012-02-09, 05:13 AM
  3. [Info] DK Online XAC Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-08, 09:31 PM
  4. [Info] Corum Online PCK Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-07, 06:15 PM
  5. [Info] Smash Online NPK Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-04, 06:25 PM
Visitors found this page by searching for:

heroesx

arch00 unpack

quickbms script for evp heroesx heroesx onlineunpacking heroesx

Posting Permissions

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