LEGO Island Xtreme Stunts .BMB files

Textures, recreate headers, conversions, algorithms and parsing of image files
Brickome
Posts: 4
Joined: Tue Feb 01, 2022 8:58 pm

LEGO Island Xtreme Stunts .BMB files

Post by Brickome »

Hi, I was wondering if anyone knows anything about the .BMB texture files for LEGO Island Xtreme Stunts?

They seem to contain multiple TGA files according to text files in the same directory.

I've attached a few of them (decompressed with this script: http://aluigi.altervista.org/bms/island ... stunts.bms) for reference, along with the corresponding text file.
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by LinkOFF »

Code: Select all

//------------------------------------------------
//--- 010 Editor v10.0 Binary Template
// Name: LEGO Island Xtreme Stunts .BMB files
// Author: LinkOFF
// File Mask: *.BMB
//------------------------------------------------
int Entries;

typedef struct{
    char IndexSign[4];
    int NameTableSize;
    short Id;
    char Name[];
    short skip;
}NamesTable;

typedef struct{
    char InfoSign[4];
    int Value1; //bpp?
    short Value2; //width?
    short Value3; //height?
    short Value4;
    short Value5;
    short Value6; //same as Value2
    short Value7; //same as Value3
    int Value8; // mipmap count?
    int Value9;
    int Value10;
    int Value11; //always 0
    int Value12; //always 0
    char ImageSign[4];
    int DataSize;
    byte Data[DataSize];
    char EndSign[4];
    int Zero;
}ImageData;

NamesTable Names[Entries] <optimize=false>;
ImageData Image[Entries] <optimize=false>;
Last edited by LinkOFF on Wed Feb 02, 2022 5:48 pm, edited 1 time in total.
Brickome
Posts: 4
Joined: Tue Feb 01, 2022 8:58 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by Brickome »

Oh wow, thanks for looking!

I tried the script with 010 Editor with the files I shared, but all I'm getting is this error:
Executing template 'Template1.bt' on 'D:\Documents\Z14WPO\LIXS BMB files\CHAR000.BMB'...
*ERROR Line 44(7): Unexpected end of file.
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by LinkOFF »

Brickome wrote:Oh wow, thanks for looking!

I tried the script with 010 Editor with the files I shared, but all I'm getting is this error:
Executing template 'Template1.bt' on 'D:\Documents\Z14WPO\LIXS BMB files\CHAR000.BMB'...
*ERROR Line 44(7): Unexpected end of file.

I update the script. Try it now. It's works for me (like as last one btw).
Brickome
Posts: 4
Joined: Tue Feb 01, 2022 8:58 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by Brickome »

Now it works, thanks for the help! It's really appreciated.

I guess I never need to figure out the extracted image format now as it's not the same as the source .TGA format, lol.
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by LinkOFF »

This is 32bpp image format. You can use Raw texture cooker to view it.
Brickome
Posts: 4
Joined: Tue Feb 01, 2022 8:58 pm

Re: LEGO Island Xtreme Stunts .BMB files

Post by Brickome »

Ah, yeah that's helpful for viewing them.

Thanks!