[3DS] .xs file formats from Layton games

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
smiler
Posts: 15
Joined: Sat Aug 05, 2017 6:01 am

[3DS] .xs file formats from Layton games

Post by smiler »

Could I get some help with ungarbling .xs file formats? It would be greatly appreciated. I've attached some sample .xs files.
PLvsAA.7z

MM.7z

AL.7z
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [3DS] .xs file formats from Layton games

Post by aluigi »

I have seen that there was something on gbatemp too but without updates:
https://gbatemp.net/threads/release-kur ... st-7436365

The data seem weird like if they are compressed but no Nintendo compression was used apparently.
smiler
Posts: 15
Joined: Sat Aug 05, 2017 6:01 am

Re: [3DS] .xs file formats from Layton games

Post by smiler »

aluigi wrote:I have seen that there was something on gbatemp too but without updates:
https://gbatemp.net/threads/release-kur ... st-7436365

The data seem weird like if they are compressed but no Nintendo compression was used apparently.

Ah, so does this mean it'll stay a mystery for a while?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [3DS] .xs file formats from Layton games

Post by aluigi »

Definitely yes.
But if you will have news, feel free to keep us update.
smiler
Posts: 15
Joined: Sat Aug 05, 2017 6:01 am

Re: [3DS] .xs file formats from Layton games

Post by smiler »

aluigi wrote:Definitely yes.
But if you will have news, feel free to keep us update.

Oh, the 1.0.8 version of Kuriimu can open .xs files, but I'd still like it in a readable format (i.e. one you can open in notepad just fine). But it might be enough.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [3DS] .xs file formats from Layton games

Post by aluigi »

That's an interesting news. I'm not sure if the algrogithms used there (Level5) are unknown because the method seems very similar to Nintendo lz77wii, here there is a 32bit field in which 3 bits are used for specifying the compression type (some available) and the remaining 29 for the uncompressed size.
smiler
Posts: 15
Joined: Sat Aug 05, 2017 6:01 am

Re: [3DS] .xs file formats from Layton games

Post by smiler »

Interesting, though Level-5 has exceedingly annoying compressed formats for almost everything under the sun. There's still a few formats here and there that are a complete unknown, such as .xc (XPCK) and .xq (XQ32) and other smaller stuff, and the former which I have successfully outputted a number of files, but not sure what to do with them, since they seem to be 3D model data.