Author Topic: LGP-like extraction?  (Read 3801 times)

rmco2003

  • Guest
LGP-like extraction?
« on: 2005-07-11 16:13:29 »
I've come to face with a format labelled "SDAT" which contains sound files. I think it's stored in either an archive style format or a database style format as when viewing the file in a hex editor the labels of all of the sounds which are stored as BGM files are present before the sound data. I was wondering how I would go about figuring out how to extract sounds from this file? How was it done for LGP files/etc?

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
LGP-like extraction?
« Reply #1 on: 2005-07-11 18:05:34 »
What file(s) exactly are talking about? Where to find them? Which game?

As for the LGP question: It was simply done by looking at a few lgp files in a hex editor by searching for a pattern in the files. It's tricky and takes some time, but it's not that hard after all.

 - Alhexx

rmco2003

  • Guest
LGP-like extraction?
« Reply #2 on: 2005-07-11 19:13:40 »
Well I'm working with a freind on translating a nintendo ds game, and we've decompiled the dumped game, but the sound files are stored in an archive format called SDAT which is apparently commonly used in DS games, so I was wondering about how to go about decoding an unknown file type. If you want I can post the 1 megabyte file for you to look at, but I can't see anything there. All I've noticed is that the file names for the files that are stored in the archive are stored in a list seperated by the ASCII value for _ and that there seems to be data marking the beginning and end of sections of the file.

mirex

  • *
  • Posts: 1645
    • View Profile
    • http://mirex.mypage.sk
LGP-like extraction?
« Reply #3 on: 2005-07-12 08:31:30 »
Does DS stand for Dungeon Siege ?

Archive for each game is different, it depends on the company which creates the game. Usually there is a 'library' first - list of files with file offsets and file sizes. File names are sometimes stored as ASCIZ strings (that means they do not have fixed length, instead of that they are ended by zero bytes) ... sometimes 'library' is in a different file than the data are. But you are on a good way to find it, hex-editor is mighty tool :)

If you want to see some examples you can take a look here http://mirex.mypage.sk/FILES/archives.txt where i have descriptions of some game archives ...

Cyberman

  • *
  • Posts: 1572
    • View Profile
LGP-like extraction?
« Reply #4 on: 2005-07-12 14:37:52 »
Quote from: mirex
Does DS stand for Dungeon Siege ?

Nintendo Dual Screen I think.

Cyb

rmco2003

  • Guest
LGP-like extraction?
« Reply #5 on: 2005-07-13 22:29:36 »
Yes it is, here's the file anyway. I've had no luck decoding it.. Maybe you can give it a shot?
http://files.filefront.com/sound_data;3943509;/fileinfo.html

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
LGP-like extraction?
« Reply #6 on: 2005-07-13 23:17:44 »
Oh hell, that filefront service is really ad-spamming... I had to block about 20 cookies before being able to view the site. And I even can't download the file.
Maybe you could upload it onto mirex's trashbin

And do mirex a favor and ZIP or RAR the file before uploading it. :P

 - Alhexx

rmco2003

  • Guest
LGP-like extraction?
« Reply #7 on: 2005-07-14 06:20:08 »
Ok it's done, here's the link.
http://bin.mypage.sk/FILES/sound_data.zip