Page 1 of 1

Unknown CSB files from X-Men Legends prototype

Posted: Tue Oct 26, 2021 7:02 pm
by ofthriceandmen
Hello,
I am here because an Xbox prototype of X-Men Legends 1 came out recently and inside are some .csb files that have audio files stored in them.

The final version of X-Men Legends 1, X-Men Legends 2, and Marvel Ultimate Alliance 1 all use .zsm and .zss to store their audio files. These can be gotten into quite easily with a program called ZSM Sound Editor.

However, neither of the 2 quickbms scripts for .csb files worked. Neither has anything else anyone has tried.

The prototype ones have unused audio that isn't in the game. We can tell this because of the names of some of these .csb files. I am a member of Marvel Mods and no one can get into these files, so I thought I go here for help.

Here is what another community member said of his efforts to get into these files:

"I’ve tried about every tool under the sun; those CSB files refuse to open lol. Only luck I had was dragon unpacker’s Hyper Ripper which only got 8 files and not in a playable state.

If anyone else wants to take a shot feel free; I think whatever codec it’s in is not Criwave but rather some early version of ZSS or ZSM. Idk what that codec is but it refused to open in any criwave tools.

At best, we’ll only be able to open this thing if we can find some other way of ripping sound files (Vgmstream and foobar both didn’t work mind you) or if we could crack the codec but even then we have zero documentation on these files. Best case scenario is if we could test these in the demo somehow." (By demo he means the prototype).

I couldn't get the attachment to work, so I put the whole sound folder from the prototype on drive.

https://drive.google.com/file/d/1YTVedV ... sp=sharing

Does anyone have any ideas on what to do?

Re: Unknown CSB files from X-Men Legends prototype

Posted: Tue Oct 26, 2021 9:51 pm
by DKDave
Some extra info which might help ...

After the "CSX1" header, you've got what seems like a file type. Some observations: If it's type 6, then it seems to be a single multi-channel stream (music/cutscene) - the value at offset 0x8 seems to be the number of channels (2 or 4). If it's not type 6, then it's a bunch of mono audio files (count at offset 0x8, table at 0x18 with 0x20 bytes per entry). The table contains sample rate, start offset, size and some other unknowns.

I've done some manual tests and a lot of them are standard XBOX ADPCM, particularly the mono files. However, some of the multi-channels ones seem to be different - some are XBOX ADPCM and some look like another codec.

For multi-channel files the audio data seems to start at 0x11b8. For mono files, they start at the next 0x200-byte block after the file table.

Re: Unknown CSB files from X-Men Legends prototype

Posted: Tue Oct 26, 2021 10:32 pm
by ofthriceandmen
So I've got some more info.

Here is some info about the final retail build's sound files for each console version from another Marvel Mods member when I asked about what you said:

"The sounds are all console-specific within the zsm file. Xbox uses XBADPCM, PS2 uses .vag I think, and the GameCube uses .dsp files.
There isn't a PC version of X-Men Legends 1, but the PC version of X-Men Legends 2 uses .wav files
So it does make sense for them to conclude about XBADPCM"

Here are the sounds from the retail Xbox version for comparison:
https://drive.google.com/file/d/11iq0Et ... sp=sharing

And here's the zsm sound editor we use for the retail sounds:
https://www.mediafire.com/file/tbqzfjob ... r.zip/file

Re: Unknown CSB files from X-Men Legends prototype

Posted: Wed Oct 27, 2021 8:30 pm
by ofthriceandmen
Also, the xmen_1.ctf file in the prototype sounds folder appears to be a list of all the files that are in x_common and all the files that are in that are in x_voice in the prototype.

Re: Unknown CSB files from X-Men Legends prototype

Posted: Thu Oct 28, 2021 8:13 pm
by DKDave
The prototype audio is definitely all XBox ADPCM. The attached QuickBMS script will extract the majority of the audio that can be played in Foobar with the vgmstream plugin.

The ones that don't extract perfectly, such as a_int_a are also XBox ADPCM but there's some weird interleave that I can't determine yet.
xmen.zip

Re: Unknown CSB files from X-Men Legends prototype

Posted: Thu Oct 28, 2021 8:58 pm
by ofthriceandmen
Thanks so much! We all really appreciate it! You're the greatest!