Page 1 of 2

Unpacking models from a game?

Posted: Sun Jul 01, 2012 8:38 pm
by Cyndaquil
Ok, so I hope I put this in the right place. Hi! I'm new here, I just wanted to ask a question.
I want to unpack models from a certain game. The game? Tim Burton's The Nightmare Before Christmas: Oogie's Revenge.
However, I think I'll need a lot of help before I can write the program to dump them with.
My question? How do I write this program? How do I define where the models are? Where are the models in the first place?

I just want some of these questions answered.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 9:10 pm
by finale00
That depends whether the data is packed into an archive or not.
If they're not packed, then it's a matter of going through the folders and looking for them.

Now if everything is stored in an exe that gets a little complicated.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 9:35 pm
by Cyndaquil
finale00 wrote:That depends whether the data is packed into an archive or not.
If they're not packed, then it's a matter of going through the folders and looking for them.

Now if everything is stored in an exe that gets a little complicated.
Ok, so I'm pretty sure they are in an .IMG file on the disk. (PS2)
May I ask what now?

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 9:39 pm
by finale00
Open it in a hex editor and hope that you can see something that makes sense. Like filenames. And then hope that the data is not compressed or encrypted.

If you can't make any sense of it then you'd have to do some real work.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 9:52 pm
by Cyndaquil
I think I found them. The weren't in the .IMG file, they were in a .STM file. They seem to be called NAMEHERE.lz
May I ask what to do now?

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:13 pm
by Gh0stBlade
finale00 wrote:Open it in a hex editor and hope that you can see something that makes sense. Like filenames. And then hope that the data is not compressed or encrypted.

If you can't make any sense of it then you'd have to do some real work.
This is what you need to do next.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:14 pm
by Cyndaquil
C00L12345 wrote:
finale00 wrote:Open it in a hex editor and hope that you can see something that makes sense. Like filenames. And then hope that the data is not compressed or encrypted.

If you can't make any sense of it then you'd have to do some real work.
This is what you need to do next.
I don't get what you mean...

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:15 pm
by Gh0stBlade
Cyndaquil wrote:
C00L12345 wrote:
finale00 wrote:Open it in a hex editor and hope that you can see something that makes sense. Like filenames. And then hope that the data is not compressed or encrypted.

If you can't make any sense of it then you'd have to do some real work.
This is what you need to do next.
I don't get what you mean...
Upload the file and PM me the link i will have a quick look, do not post it on here as you may get in trouble for it.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:22 pm
by Cyndaquil
C00L12345 wrote:
Cyndaquil wrote:
C00L12345 wrote:
If you can't make any sense of it then you'd have to do some real work.
This is what you need to do next.
I don't get what you mean...
Upload the file and PM me the link i will have a quick look, do not post it on here as you may get in trouble for it.[/quote]
All right... I already looked through the file with HxD, but here you go.
I can't really do it, Mediafire says it's too large, so any other sites?

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:27 pm
by Gh0stBlade
There is no point uploading the full file, just screenshot the header in hex editor and the end of the file it may help.

Re: Unpacking models from a game?

Posted: Sun Jul 01, 2012 10:32 pm
by Cyndaquil
Ok, this isn't all of it. But it's a good snippet.
Image

Re: Unpacking models from a game?

Posted: Mon Jul 02, 2012 12:23 am
by finale00
That's the file table, so you need to figure out the archive structure, write a script to unpack it (like a bms script).

lz might mean the files are compressed using some lz compression variation (or they might just be a random extension)

The data will probably start at the end of the file table, and then you can probably determined whether it's compressed/encrypted or not.

Re: Unpacking models from a game?

Posted: Mon Jul 02, 2012 1:06 am
by Cyndaquil
Is this it?
Image

Re: Unpacking models from a game?

Posted: Mon Jul 02, 2012 1:16 am
by Gh0stBlade
Cyndaquil wrote:Is this it?
Image
Can you cut the first 25MB and upload?

Re: Unpacking models from a game?

Posted: Mon Jul 02, 2012 1:26 am
by Cyndaquil
C00L12345 wrote:
Cyndaquil wrote:Is this it?
Image
Can you cut the first 25MB and upload?
Most likely.
Edit: Okay, so most of that is text for talking and singing. (Yes, they sing in this game) It's going to take a while to cut out. I'll have it up by tomorrow.