Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap) [raw image data to make readable]

Textures, recreate headers, conversions, algorithms and parsing of image files
Sour And Juicy
Posts: 7
Joined: Mon Jan 25, 2021 11:32 pm

Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap) [raw image data to make readable]

Post by Sour And Juicy »

I'm trying to extract the game images from these files, which can't be opened as an archive and I'm not sure what format to try unpacking it with quickbms (I tried following the unknown file tutorial, but my computer can't get past a certain point and I'm not exactly sure what to do with those files).

As a side note, are there any other players for .flc files? Regular Quicktime can open them (and export frames one by one) but can't convert them into any other media format, which is highly inconvenient. The game stores its animated files in these formats, but the static images I assume are in those .dat files mentioned above.

Thanks.

Edit: I realized I could just use a file hoster to house these files. Here's the link (same as above, after another edit).
Sour And Juicy
Posts: 7
Joined: Mon Jan 25, 2021 11:32 pm

Re: Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap)

Post by Sour And Juicy »

BUMP. Anyone? I really want some of those graphics, and editing them out from screenshots is painful (thanks to the bubble textures preventing a clean extraction).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap)

Post by aluigi »

The format is very simple but I think this is a job for the Graphics section.

The BKK is an xml containing all the information about each raw image:
<IMAGE name="winscreen_medal02" dataOffset="14315728" dataSize="447440" bpp="32" width="238" height="470" pitch="952" originalWidth="238" originalHeight="470" xOffset="0" yOffset="0" paletteNumber="-1" redMask="16711680" greenMask="65280" blueMask="255" />

Followed by information about the palette.

DAT contains the raw data of the images referenced by dataoffset and datasize.
Sour And Juicy
Posts: 7
Joined: Mon Jan 25, 2021 11:32 pm

Re: Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap)

Post by Sour And Juicy »

Oh, neat. I can find the beginnings and ends of data blocks in HxD through poking around in those DATs, using the offsets in the BBK files. Unfortunately that's about the extent of my technical skill, and I don't know how to use that data :(

Should I repost this topic to the Graphics section? Thanks.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap)

Post by aluigi »

Just moved the topic ;)

Please guys, let's take a look at that raw data since I suppose it's an easy task to accomplish.
Sour And Juicy
Posts: 7
Joined: Mon Jan 25, 2021 11:32 pm

Re: Cosmic Bugs/Water Bugs .dat and .bbk files (PopCap) [raw image data to make readable]

Post by Sour And Juicy »

Please. Anyone able to lend a hand? I simply don't know where to even begin with these. Google only brings up things about Photoshop RAW editing, which I'm not sure is describing what I'm trying to get at anyway.

I've attached what I think is the Water Bugs main menu image in its raw state, as a test image I'm trying to decipher. the image should be 800x600, according to the offset (bbk) document.

Edit: Added the correct filesize. I appear to have missed a zero last time for filesize.

Image