Join also our Discord channel! Click here.

Dishonored2 (.bimage7)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
adol365
advanced
Posts: 70
Joined: Fri Nov 21, 2014 12:21 pm
Has thanked: 17 times
Been thanked: 7 times

Re: Dishonored2 (.bimage7)

Post by adol365 » Sat Nov 19, 2016 6:40 pm

swinei wrote:e: IGGY fies are made by this http://www.radgametools.com/iggy.htm
Do you have any idea for modding *.iggy?
https://www.sendspace.com/file/8trh37

User avatar
swinei
n00b
Posts: 14
Joined: Thu Nov 17, 2016 11:22 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Dishonored2 (.bimage7)

Post by swinei » Sat Nov 19, 2016 7:53 pm

adol365 wrote:
swinei wrote:e: IGGY fies are made by this http://www.radgametools.com/iggy.htm
Do you have any idea for modding *.iggy?
https://www.sendspace.com/file/8trh37
I will try to extract .iggy files once I'm done with the .bimage7 files, I don't know anything about modding tho.

User avatar
swinei
n00b
Posts: 14
Joined: Thu Nov 17, 2016 11:22 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Dishonored2 (.bimage7)

Post by swinei » Sun Nov 20, 2016 3:42 am

These are all the Compression Chars and Par1 pairs. I added pixelformat where I know it:

{02, 07}
{04, 05}
{05, 14}
{06, 07}
{10, 05}
{10, 06}
{12, 07}
{16, 05} DXT5
{17, 05}
{18, 04}
{19, 03}
{20, 06} DX10

What's the best way to get the corresponding format? Is there any way around trial and error?

GRiNDERKILLER
veteran
Posts: 87
Joined: Thu Jul 12, 2012 12:24 pm
Has thanked: 12 times
Been thanked: 29 times

Re: Dishonored2 (.bimage7)

Post by GRiNDERKILLER » Sun Nov 20, 2016 9:48 am

Possible formats used in this game. Still have no idea about compression char or how it can be converted to pixel format.

Code: Select all

RGB
RG
RED
R32_G32_B32_A32_FLOAT
R32_G32_B32_A32_UNSIGNED
R32_G32_B32_A32_SIGNED
R32_G32_B32_FLOAT
R32_G32_B32_UNSIGNED
R32_G32_B32_SIGNED
R32_G32_FLOAT
R32_G32_UNSIGNED
R32_G32_SIGNED
R32_FLOAT
R32_UNSIGNED
R32_SIGNED
R16_G16_B16_A16_FLOAT
R16_G16_B16_A16_UNSIGNED
R16_G16_B16_A16_SIGNED
R16_G16_B16_A16_UNSIGNED_NORMALIZED
R16_G16_B16_A16_SIGNED_NORMALIZED
R16_G16_FLOAT
R16_G16_UNSIGNED
R16_G16_SIGNED
R16_G16_UNSIGNED_NORMALIZED
R16_G16_SIGNED_NORMALIZED
R16_FLOAT
R16_UNSIGNED
R16_SIGNED
R16_UNSIGNED_NORMALIZED
R16_SIGNED_NORMALIZED
R8_G8_B8_A8_UNSIGNED
R8_G8_B8_A8_SIGNED
R8_G8_B8_A8_UNSIGNED_NORMALIZED
R8_G8_B8_A8_SIGNED_NORMALIZED
R8_G8_B8_A8_UNSIGNED_NORMALIZED_SRGB
B8_G8_R8_A8_UNSIGNED_NORMALIZED
B8_G8_R8_A8_UNSIGNED_NORMALIZED_SRGB
B8_G8_R8_X8_UNSIGNED_NORMALIZED
B8_G8_R8_X8_UNSIGNED_NORMALIZED_SRGB
B8_G8_R8_UNSIGNED_NORMALIZED
B8_G8_R8_UNSIGNED_NORMALIZED_SRGB
R8_G8_UNSIGNED
R8_G8_SIGNED
R8_G8_UNSIGNED_NORMALIZED
R8_G8_SIGNED_NORMALIZED
R8_UNSIGNED
R8_SIGNED
R8_UNSIGNED_NORMALIZED
R8_SIGNED_NORMALIZED
BC1_UNSIGNED_NORMALIZED
BC1_UNSIGNED_NORMALIZED_SRGB
BC2_UNSIGNED_NORMALIZED
BC2_UNSIGNED_NORMALIZED_SRGB
BC3_UNSIGNED_NORMALIZED
BC3_UNSIGNED_NORMALIZED_SRGB
BC4_UNSIGNED_NORMALIZED
BC4_SIGNED_NORMALIZED
BC5_UNSIGNED_NORMALIZED
BC5_SIGNED_NORMALIZED
BC6_F16_UNSIGNED
BC6_F16_SIGNED
BC7_UNSIGNED_NORMALIZED
BC7_UNSIGNED_NORMALIZED_SRGB
B5_G6_R5_UNSIGNED_NORMALIZED
B5_G5_R5_A1_UNSIGNED_NORMALIZED
B4_G4_R4_A4_UNSIGNED_NORMALIZED
R11_G11_B10_UNSIGNED_FLOAT
R10_G10_B10_A2_UNSIGNED
R10_G10_B10_A2_UNSIGNED_NORMALIZED
D32F
D32F_S8_X24
D24_S8
D16
ETC1_RGB_4BPP
PVRTC_RGBA_2BPP
PVRTC_RGBA_4BPP
PVRTC_RGB_2BPP
PVRTC_RGB_4BPP
And here is updated template. Now it shows MipMaps position. Won't work on CubeMap images.

Code: Select all

//--------------------------------------
//--- 010 Editor v6.0.3 Binary Template
//
// File:
// Author:
// Revision:
// Purpose:
//--------------------------------------
LittleEndian();

local uint i;

struct BIMAGE {

        uint64 Id;
        uint Zero;
        uint CompressionChar; //probably
        uint Par1;
        uint LayerNum;
        uint MainWidth;
        uint MainHeigth;

struct SubHeader {

        uint Width;
        uint Heigth;
        uint Layer;
        uint MipmapsNum;
        uint Par3;
        uint Par4;
        uint Par5;
        short Zero;

for(i=0;i<MipmapsNum;i++) {

struct Mipmap {

        uint64 MipmapNum;
        uint MipWidth;
        uint MipHeigth;
        uint MipSize;
        ubyte data[MipSize];
            } record;
        }
    } record;
} record;

User avatar
swinei
n00b
Posts: 14
Joined: Thu Nov 17, 2016 11:22 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Dishonored2 (.bimage7)

Post by swinei » Sun Nov 20, 2016 3:07 pm

GRiNDERKILLER wrote:Possible formats used in this game. Still have no idea about compression char or how it can be converted to pixel format.


And here is updated template. Now it shows MipMaps position. Won't work on CubeMap images.
To match the formats with the compression char I would get samples for each possibility and write all possible headers. Is the data from here all that I need to consider? Or is there some other values I need to change depending on the file (except width, height and MipSize)?

I copied part of your template for the .mip files:

Code: Select all

//--------------------------------------
//--- 010 Editor v6.0.3 Binary Template
//
// File:
// Author:
// Revision:
// Purpose:
//--------------------------------------
LittleEndian();

struct Mipmap {

    uint64 MipmapNum;
    uint MipWidth;
    uint MipHeigth;
    uint MipSize;
    ubyte data[MipSize];

} record;

herbert3000
veteran
Posts: 134
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 18 times
Been thanked: 143 times
Contact:

Re: Dishonored2 (.bimage7)

Post by herbert3000 » Mon Nov 21, 2016 7:08 pm

adol365 wrote:Do you have any idea for modding *.iggy?
Is there any documentation available about the vector fonts that are stored in the *.iggy files?

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 138 times

Re: Dishonored2 (.bimage7)

Post by michalss » Mon Nov 21, 2016 8:18 pm

herbert3000 wrote:
adol365 wrote:Do you have any idea for modding *.iggy?
Is there any documentation available about the vector fonts that are stored in the *.iggy files?
Dont think so..
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

adol365
advanced
Posts: 70
Joined: Fri Nov 21, 2014 12:21 pm
Has thanked: 17 times
Been thanked: 7 times

Re: Dishonored2 (.bimage7)

Post by adol365 » Tue Nov 22, 2016 3:08 am

herbert3000 wrote:Is there any documentation available about the vector fonts that are stored in the *.iggy files?
That's the problem. :( The only information that we have is this.
http://www.radgametools.com/iggyhist.htm
Dishonoerd2 use 1.49 version.

Code: Select all

Font offset
...

Font A data
Font B data
...
Font E data
Font A tag
Font B tag
...
Font E tag
Action acript

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 138 times

Re: Dishonored2 (.bimage7)

Post by michalss » Tue Nov 22, 2016 10:49 am

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... :)
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 138 times

Re: Dishonored2 (.bimage7)

Post by michalss » Wed Nov 23, 2016 10:31 am

we made some progress :D

Image

Image

Image
You do not have the required permissions to view the files attached to this post.
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

herbert3000
veteran
Posts: 134
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 18 times
Been thanked: 143 times
Contact:

Re: Dishonored2 (.bimage7)

Post by herbert3000 » Wed Nov 23, 2016 1:54 pm

I used the block 0x1F30 - 0x15EE17 from lib_loc_english_font.iggy and got this:
iggy.png
(the letter on the right is from the russian font)

Code: Select all

00 00 20 3D 
00 40 33 BF 
00 00 82 3E 
00 00 80 3B 
30 00 00 00 
00 00 00 00 
0E 00 00 00 	 numPoints
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 0D 00 
02 00 0D 00

for (numPoints) {
00 00 C5 3D 	x    (red crosses on screenshot)
00 80 33 BF 	y
00 00 BF 3E 	ctrl x (is 0 if straight line)    (blue crosses on screenshot)
00 40 E1 BE	ctrl y (is 0 if straight line)
03 		type (1 = moveTo, 2 = straight, 3 = curved)
00 
00 00 
01 00 
00 00 
}
You do not have the required permissions to view the files attached to this post.

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 138 times

Re: Dishonored2 (.bimage7)

Post by michalss » Wed Nov 23, 2016 4:42 pm

herbert3000 wrote:I used the block 0x1F30 - 0x15EE17 from lib_loc_english_font.iggy and got this:
(the letter on the right is from the russian font)

Code: Select all

00 00 20 3D 
00 40 33 BF 
00 00 82 3E 
00 00 80 3B 
30 00 00 00 
00 00 00 00 
0E 00 00 00 	 numPoints
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
01 00 0D 00 
02 00 0D 00

for (numPoints) {
00 00 C5 3D 	x    (red crosses on screenshot)
00 80 33 BF 	y
00 00 BF 3E 	ctrl x (is 0 if straight line)    (blue crosses on screenshot)
00 40 E1 BE	ctrl y (is 0 if straight line)
03 		type (1 = moveTo, 2 = straight, 3 = curved)
00 
00 00 
01 00 
00 00 
}
also very nice :) edit possible? or not yet ?
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

herbert3000
veteran
Posts: 134
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 18 times
Been thanked: 143 times
Contact:

Re: Dishonored2 (.bimage7)

Post by herbert3000 » Wed Nov 23, 2016 11:31 pm

michalss wrote:also very nice :) edit possible? or not yet ?
not yet ;) I'm still skipping too many parts of the file.
At the moment I'm primarily focused on reading the iggy files.
FontViewer.zip
You do not have the required permissions to view the files attached to this post.

michalss
Moderator
Posts: 949
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 138 times

Re: Dishonored2 (.bimage7)

Post by michalss » Thu Nov 24, 2016 11:35 am

herbert3000 wrote:
michalss wrote:also very nice :) edit possible? or not yet ?
not yet ;) I'm still skipping too many parts of the file.
At the moment I'm primarily focused on reading the iggy files.
FontViewer.zip
Nice mate can you also please send me source to PM ?
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

herbert3000
veteran
Posts: 134
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 18 times
Been thanked: 143 times
Contact:

Re: Dishonored2 (.bimage7)

Post by herbert3000 » Fri Nov 25, 2016 6:03 am

Here's the source code of the Font Viewer:
IggyTools_src.zip
You do not have the required permissions to view the files attached to this post.

Post Reply