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

Unpacking models from a game?

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Unpacking models from a game?

Post 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.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Unpacking models from a game?

Post 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.
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post 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?
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Unpacking models from a game?

Post 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.
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post 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?
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: Unpacking models from a game?

Post 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.
Click the thanks button if I helped!
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post 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...
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: Unpacking models from a game?

Post 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.
Click the thanks button if I helped!
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post 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?
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: Unpacking models from a game?

Post 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.
Click the thanks button if I helped!
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post by Cyndaquil »

Ok, this isn't all of it. But it's a good snippet.
Image
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Unpacking models from a game?

Post 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.
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post by Cyndaquil »

Is this it?
Image
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: Unpacking models from a game?

Post by Gh0stBlade »

Cyndaquil wrote:Is this it?
Image
Can you cut the first 25MB and upload?
Click the thanks button if I helped!
Cyndaquil
n00b
Posts: 19
Joined: Mon Jun 04, 2012 11:12 am
Has thanked: 3 times

Re: Unpacking models from a game?

Post 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.
Post Reply