Dishonored2 (.index)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Dishonored2 (.index)

Post by michalss »

swinei wrote:
michalss wrote:no still working on it it is just example for 1 char. BTW still missing lots of texts!!!! There is lot of texts in decl but not all, still missing some npc texts, simple not all text in index1 file only.. Fonts will be sorted soon but can you please find all texts ?


The missing texts might be in shared_2_3.sharedsrc

I used this to get most of the files extracted

Code: Select all

# Dishonored 2
# script for QuickBMS http://quickbms.aluigi.org

endian big
get EXT extension
if EXT == "index" || EXT == "resources" || EXT == "sharedrsc"

    open FDDE "index"
    open FDDE "resources" 1
    open FDSE "shared_2_3.sharedrsc" 2
    get DUMMY byte  # 0x05 for index and 0x04 for resources
    idstring "SER"
    get SIZE long
    getdstring ZERO 0x18
    get FILES long
    for i = 0 < FILES
        get IDX long
        endian little
        for x = 0 < 3
            get NAMESZ long
            getdstring NAME NAMESZ
        next x
        endian big
        get OFFSET longlong
        get SIZE long
        get ZSIZE long
        get ZERO long
        get FLAGS long
        get ZERO short
        if FLAGS > 0
            if ZSIZE == SIZE
                log NAME OFFSET SIZE 2
            endif
        else
            if ZSIZE == SIZE
                log NAME OFFSET SIZE 1
            else
                clog NAME OFFSET ZSIZE SIZE 1
            endif
        endif
    next i

else

    comtype zlib_noerror
    get SIZE asize
    get NAME basename
    string NAME + "_unpack."
    string NAME + EXT
    clog NAME 0 SIZE SIZE

endif


This does not work on compressed files in shared_2_3.sharedsrc, I got an error when I tried

Code: Select all

clog NAME OFFSET ZSIZE SIZE 2



Im gonna try it today, i have complete tools to repack indexes but not shared file yet..
Outsider12
Posts: 2
Joined: Sat Oct 08, 2016 10:08 pm

..

Post by Outsider12 »

..
Last edited by Outsider12 on Tue Sep 14, 2021 5:24 pm, edited 2 times in total.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Dishonored2 (.index)

Post by sigroon365 »

Someone ask me for repacking script but I can't release it.
This is because the official Korean translation patch was already released.
https://directg.net/customer/notice_view.html?idx=749
The only one who buy Dishonored2 on this site can get the translation patch.

The company announce that redistribution or modification of the official patch is not allowed.
As a result, I can't write how to mod it. But it is not too hard to make repacking script.
So one who want to make translation patch, learn how to write quickbms script and try it.