Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Shin Megami Tensei Nocturne compression

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Shin Megami Tensei Nocturne compression

Post by TGE »

I attached a sample file.
You do not have the required permissions to view the files attached to this post.
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 56 times

Re: Does anyone know the type of compression used?

Post by GMMan »

Doesn't seem compressed. Inside your .7z it's compressed about 1.5:1. It looks most like a mesh. What game is it from?
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Re: Does anyone know the type of compression used?

Post by TGE »

GMMan wrote:Doesn't seem compressed. Inside your .7z it's compressed about 1.5:1. It looks most like a mesh. What game is it from?
Shin Megami Tensei Nocturne.
It is compressed apparently, since there's a leftover txt file containing this:

Code: Select all

%comp
f201_001.TBN
f201_001.f2
f201_001.f1
But as you said, it's not very well compressed since you can see repeating structures in the file. Maybe it's partially compressed?
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Does anyone know the type of compression used?

Post by chrrox »

can you post a bunch of small samples need more to see the file structure.
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Re: Does anyone know the type of compression used?

Post by TGE »

chrrox wrote:can you post a bunch of small samples need more to see the file structure.
Here ya go, all of the files kinda follow the same structure it seems (not the f1 and f2 files, they're for stage models), except that the LB files seem compressed.
http://puu.sh/cIfFd.7z
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Does anyone know the type of compression used?

Post by chrrox »

well quickbms does not find anything that i can see in its currently supported formats.
but the structure is pretty strait forward

01 01 - always this version?
XX XX file id
YY YY YY YY - zip size including header
qq qq qq qq - file extension
zz zz zz zz - uncompressed size

then the data follows.
the data gets aligned after that and then it repeats till you read this
FF 00 00 00
10 00 00 00
45 4E 44 30 END0
00 00 00 00
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Shin Megami Tensei Nocturne compression

Post by chrrox »

if there are only a few models you want you can dump them easily from saved states.

http://ps23dformat.wikispaces.com/Shin+ ... i+Nocturne
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Re: Shin Megami Tensei Nocturne compression

Post by TGE »

chrrox wrote:if there are only a few models you want you can dump them easily from saved states.

http://ps23dformat.wikispaces.com/Shin+ ... i+Nocturne
That ripper doesn't dump even 1 complete mesh. Been working on writing one in MaxScript myself but some of these mesh types seem non-standard.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Shin Megami Tensei Nocturne compression

Post by chrrox »

If you post the memory dump and what it is a scene of i can help the format look standard for ps2.
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Re: Shin Megami Tensei Nocturne compression

Post by TGE »

chrrox wrote:If you post the memory dump and what it is a scene of i can help the format look standard for ps2.
Most files aren't compressed actually, only the LB files are.
I'll post some things for you to look at, not everything was documented by me so it might be confusing to read.
For example Flag 7 meshes seem to use some special way of handling the face index.
http://puu.sh/cJB7e.7z
You do not have the required permissions to view the files attached to this post.
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 36 times
Contact:

Re: Shin Megami Tensei Nocturne compression

Post by TGE »

Apparently the original japanese release of the game doesn't have some files compressed.
I figure that these 2 files are identical except one is compressed + extra header and the other isn't.
http://puu.sh/d6YND.7z
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Shin Megami Tensei Nocturne compression

Post by chrrox »

well you should be able to get any decompressed file you want with memory dumps.
http://www21.big.or.jp/~dram/cheatcode/ps2_smt3.html
Just use gameshark to get the debug console and then use the model viewer.
I tried quickbms and it did not return any results decompression these files.

I found this tool that claims to be an archive extractor.
You do not have the required permissions to view the files attached to this post.
Post Reply