Monsters, Inc. (PS2) .WAD animation extractor?

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Monsters, Inc. (PS2) .WAD animation extractor?

Post by frogz2007 »

I was wondering; Could somebody make a .WAD extractor and repacker? They contain animations used by the game characters. If one could extract these, the animations could be more easily replaced (they can be replaced with a hex editor such as HxD, but it is tedious). Thanks!

Link:

https://www.dropbox.com/s/njj9m4u221s2o ... lr.7z?dl=1
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by aluigi »

I don't know if it works also with the other WAD archives because the offset may change:

Code: Select all

math OFFSET = 0x1f58
for
    goto OFFSET
    get DUMMY long
    getdstring NAME 0x18
    get SIZE long
    savepos OFFSET
    log NAME OFFSET SIZE
    math OFFSET + SIZE
next
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by frogz2007 »

It worked for the most part, but it won't reimport (or extract all of the files, it seems). To be specific it gave this exact error when trying to reimport:

incomplete input file 0: C:\Users\Me\Documents\PS2 Games\scareflr.wad
Can't read 4 bytes from offset 3fa1d3f9.

When extracting the file, it will give this error:

Can't read 4 bytes from offset 00510547

I tested it on the other .WAD files, and it seems to work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by aluigi »

Don't worry for the error in scareflr.wad, I didn't add a way to check the end of the archive.
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by frogz2007 »

Oh, ok. But, how would the reimporting work? Or is this script not valid for it?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by aluigi »

The reimport must work for sure, the script is valid and simple.
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) .WAD animation extractor?

Post by frogz2007 »

It works perfect now.