Are you sure we are talking about the same game?
Mine Final Fantasy IV for Steam has ALL the files unpacked to bare formats
There's nothing to unpack and repack
![](https://s19.postimg.org/ap59dpydv/Bez_tytu_u.jpg)
Sound/.*AKB files are normal OGG, just play at 0x204
*.NCGR - are normal .PNG files
EFFECT.dat, STAGEMNG_f00.dat and event2d_pack.dat are indeed casual containers, but everything else has .lz extension. I bet it's LZS
EDIT:
Okay, .DAT reversed:
Main:Offset | Size | Description |
0 | char[4] | MAGIC- "SSAM" |
4 | uint | Entries count |
8 + (EntryID*40) | 40 bytes | Entry |
8 + (EntriesCount*40) | Varies | FILE_data |
Entry:Offset | Size | Description |
0 | uint | File Pointer + (EntryCount*40+8) |
4 | uint | File size |
8 | char[32] | File name |
About LZ:
-Not LZSS algorithm [Tested/ creates rubbish]
-Not LZMA algorithm [Tested/ unknown compression error]
-Not Zlib [Tested/ unknown compression error]
For sure some LZ compression, LZ77?
Okay, I unpacked it succesfully using LZ77 algorithm grabbed from here:
https://gist.github.com/Prof9/872e67a08e17081ca00e