Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Dishonored2 (.index)

Featured Replies

  • Author
  • Localization

sigroon365, posted Tue Nov 22, 2016 1:14 pm (18955)


michalss wrote:
fonts are not only problem, i wrote tools last night and there is maximum size of archive allowed, if you add all necessary file on the end of the archive, game wont start, so i made a few tests and try to add only a few files and that is work, so there is somewhere set maximum of archive size... :( Means only possible way would be to try make a patch system or try to repack whole archive to make sure it fits into maximum size...

Fonts - found out that diff lang containing diff font sets, english is the worst as you can think...


Don't worry about repacking. I can make it.
  • Replies 63
  • Views 13
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

michalss, posted Tue Nov 22, 2016 3:06 pm (18958)


sigroon365 wrote:
michalss wrote:
fonts are not only problem, i wrote tools last night and there is maximum size of archive allowed, if you add all necessary file on the end of the archive, game wont start, so i made a few tests and try to add only a few files and that is work, so there is somewhere set maximum of archive size... :( Means only possible way would be to try make a patch system or try to repack whole archive to make sure it fits into maximum size...

Fonts - found out that diff lang containing diff font sets, english is the worst as you can think...


Don't worry about repacking. I can make it.


As i wrote im not worried just saying you cannot add all 611 files on end of the archive. but need to use different index file i guess..
  • Author
  • Localization

michalss, posted Wed Nov 23, 2016 9:18 am (18989)


we made some progress :D

Image

Image

Image
  • Author
  • Localization

michalss, posted Sun Nov 27, 2016 9:44 pm (19131)


Here you go, first test..... :)

Image
  • Author
  • Localization

sigroon365, posted Tue Nov 29, 2016 2:00 am (19147)


michalss wrote:
Here you go, first test..... :)

It was not finished, right?
  • Author
  • Localization

michalss, posted Tue Nov 29, 2016 11:07 am (19152)


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 ?
  • Author
  • Localization

swinei, posted Tue Nov 29, 2016 12:39 pm (19153)


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:
# 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:
clog NAME OFFSET ZSIZE SIZE 2
  • Author
  • Localization

RenderMan88, posted Tue Nov 29, 2016 9:43 pm (19172)


I tried using the script above(swinei) but it did not work, I'm looking to extract the audio data from the .resources archives or sharedrsc file, is anyone able to help ?, when I try using the script above I get the following:

Image
  • Author
  • Localization

RenderMan88, posted Tue Nov 29, 2016 10:41 pm (19174)


Ok so I managed to extract a lot of data from game1.resources, under "generated\decls\soundevent\" there are a lot of .decl files are seem to point to another file, does anyone know how to get to this files ?, i'm assuming the files it's pointing to is the audio data file:

Image
  • Author
  • Localization

swinei, posted Wed Nov 30, 2016 12:24 am (19178)


I think sounds are in the Dishonored2\base\pck folder, you could try this on it.
  • Author
  • Localization

RenderMan88, posted Wed Nov 30, 2016 2:29 am (19180)


Thanks swinei, I did try that just now but it didn't work, I get the error below, I didn't realize the sound files we're in the PCK files, will try and look for more ways to unpack them.

Image
  • Author
  • Localization

michalss, posted Wed Nov 30, 2016 8:49 am (19186)


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:
# 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:
clog NAME OFFSET ZSIZE SIZE 2



Im gonna try it today, i have complete tools to repack indexes but not shared file yet..
  • Author
  • Localization

Outsider12, posted Fri Dec 02, 2016 8:23 pm (19236)


..
  • Author
  • Localization

sigroon365, posted Wed Mar 22, 2017 2:21 am (21695)


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.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.