You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've stumbled upon your project after looking for some info about Hexplore.
I'm currently trying to reverse engineer the file formats of the game. I've made some progress on the SB0 files which holds the graphics, but I'm stuck because most of them are compressed with an unknown algorithm (RLE? Huffman? LZ77/LZSS? Variant?).
Here's my pattern script for use with the hex editor ImHex, for analysis of the SB0 files:
#pragma author Marc-Alexandre Espiaut
#pragma description Hexplore SB0 image format
structSB0Header {
charmagic[4];
u32unk1; // Always 0x100 (256) number of colors ?u32number_of_images;
u32number_of_weirdtable;
padding[8];
u32offset_table; // Always 0x3C; the header have a fixed size.u32offset_weirdtable;
u32offset_graphics;
// There's NO variation from offset_graphics for the next valuesu32offset_graphics_1;
u32offset_graphics_2;
padding[8];
u32offset_graphics_3;
u32offset_graphics_4;
};
// I still don't know what is the true meaning of any of these bits.// Names shouldn't be taken seriously.bitfieldImageType {
used : 1;
padding : 5;
compressed1 : 1;
compressed2 : 1;
padding : 8;
};
structSB0Table {
ImageTypetype;
u16width;
u16height;
padding[2];
u32offset;
};
// I don't understand what this structure is all about.// Not all SB0 files have it.structWeirdTable {
u32unk1; // Does nothing??????u32unk2; // index?u16unk3; // Does nothing??????u16unk4; // Does nothing??????u32unk5; // Padding?u32unk6; // Padding?
};
SB0Headersb0_header @0x00;
SB0Tablesb0_table[sb0_header.number_of_images] @sb0_header.offset_table;
WeirdTablesb0_wt[sb0_header.number_of_weirdtable] @sb0_header.offset_weirdtable;
The color palette is the file clut/gameclut.rgb.
If you have any information about that, hit me up!
Best regards.
The text was updated successfully, but these errors were encountered:
I have reverse engineered the file format for SB0 and VB1 files back in 2010, and also did some major progress on the files for the maps as well (including a map viewer). I have some code, but it is really old (like really old), and quality of that code isn't amazing.
The WeirdTable is metadata associated with the images. I think the game can load the same image multiple times but with different meta data or something like that.
Hello,
I've stumbled upon your project after looking for some info about Hexplore.
I'm currently trying to reverse engineer the file formats of the game. I've made some progress on the SB0 files which holds the graphics, but I'm stuck because most of them are compressed with an unknown algorithm (RLE? Huffman? LZ77/LZSS? Variant?).
Here's my pattern script for use with the hex editor ImHex, for analysis of the SB0 files:
The color palette is the file
clut/gameclut.rgb
.If you have any information about that, hit me up!
Best regards.
The text was updated successfully, but these errors were encountered: