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

PS2 Avatar The Last Airbender - models?

Post questions about game models here, or help out others!
Cloud452
veteran
Posts: 91
Joined: Sat Oct 23, 2010 2:50 pm
Has thanked: 2 times

PS2 Avatar The Last Airbender - models?

Post by Cloud452 »

Looking to extract models (characters, stages) from the following PS2 games:

Avatar: The Last Airbender
Avatar: The Last Airbender - The Burning Earth
Avatar: The Last Airbender - Into the Inferno

All three games are made by THQ, and have appears to be a main data file as "DATA.PAK" (although this just applies to the last two, the first has eight data.pak files).

Image

The data.pak from "Into the Inferno":
http://www.mediafire.com/?c5aomif3e1t9dm7
http://www.mediafire.com/?vdkfe1kxdnma2cr
http://www.mediafire.com/?wnxm8wlguktlgl2
Cloud452
veteran
Posts: 91
Joined: Sat Oct 23, 2010 2:50 pm
Has thanked: 2 times

Re: PS2 Avatar The Last Airbender - models?

Post by Cloud452 »

....nothing? Not even a little bit of help, or a nudge in the right direction? :(
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: PS2 Avatar The Last Airbender - models?

Post by finale00 »

Just screenshot the beginning and end of the file or get the first and last MB. I'm not downloading 600 MB to see what it might look like.
Cloud452
veteran
Posts: 91
Joined: Sat Oct 23, 2010 2:50 pm
Has thanked: 2 times

Re: PS2 Avatar The Last Airbender - models?

Post by Cloud452 »

finale00 wrote:Just screenshot the beginning and end of the file or get the first and last MB. I'm not downloading 600 MB to see what it might look like.
Screenshot as in open with hex-editor and take a screencap of what it displays at the top and bottom?
FurryFan
mega-veteran
mega-veteran
Posts: 190
Joined: Sat Jan 09, 2010 9:37 pm
Has thanked: 8 times
Been thanked: 64 times

Re: PS2 Avatar The Last Airbender - models?

Post by FurryFan »

This post refers to Avatar: The Last Airbender (The first PS2 game).

In this game their are several PAK files that contain files for each chapter, aka
their is a file named C5_DATA.PAK

Some of the data in these PAK files are compressed while other data is not compressed. You can decompress the compressed data by using the tool, called "offzip" aluigi.altervista.org/mytoolz.htm

That tool will not give you the file names, however the files names are uncompressed in the beginning and end, of the PAKs.

Format of the PAKs
All Offsets are relative to the start of the PAK (aka right when the header "kcap" begins)

4ByteASCIIHeader: kcap
4ByteUnknownOrConstant: 01 00 01 00
4ByteOffsetToEndOfASCIINameTable
4ByteIntegerSizeofPAKfile
4ByteOffsetToStartOfASCIINameTable
4ByteIntegerNumberofSubFiles
Now Begins the FileLength/SizeTable (if your following we at now at offset 0x18)
Format of the FIleLength/SizeTable
{4ByteUnknownID, 4ByteOffsetOfSubFile, 4ByteSizeOfSubFile, 4ByteUnknown}
FormatOfTheASCIINameTable
{ASCII file Path terminated with the hex byte 00}

PAKS can be nested. Nested paks. Take the same format as the regular PAKs, except, that the subfiles are zlib compressed. In first level PAKs, there are RAD files, which I think never contain models, only data describing how to use the data from second level PAKs.

Can someone make a script to extract PAKs into subfiles? The information above should be enough.

Most if not all models contain the ASCII header enod
Followed by the most of the model data in array format. The funny thing is that while
the models are in tristrips there is zero padding between some vertexes that must be removed. For example say in one model between there is zero padding between the 12th 34th 132nd and 421st vertexes. The padding is of different sizes, and is in every component. Let me see if I can get file names, of the compressed files, and decompress them so they will be much easier too work with.
I accept ALL requests. Let me know your requests.
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

If you want to extract the audio, use PSound (just google it)
I'm still looking for a utility to extract the files..........

I've used OFFZIP and extracted allot of .gml;.plo;.... files (what is correct;)
.RCB files aren't recognized, searching for a util for that....

use OFFZIP -a DATA.PAK C:\EXISTINGFOLDER 0
to start extracting zlib compression files from the pak file

You'll hear from me soon :)
LB
FurryFan
mega-veteran
mega-veteran
Posts: 190
Joined: Sat Jan 09, 2010 9:37 pm
Has thanked: 8 times
Been thanked: 64 times

Re: PS2 Avatar The Last Airbender - models?

Post by FurryFan »

The rsc files contain models in at least the original game. And the format of the files is very similar in the original game, as compared to Into the Inferno except in Into the Inferno there is some padding between the headers of each pack or subpack.
I accept ALL requests. Let me know your requests.
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

I'm busy writing a program; quite some hard work as i am not a pro in those things :)
At least ive managed to get the list of all the files in the DATA.PAK file: (Program coming soon) :

In the beginning of a compressed PAK file, you will see this : Hbilz => turn it around and you will see zlibh :)
Heres the list :
i think that .rcb files contain effects and their resources

[ the list isn't complete as i can't upload .txt files here and i'm only allowed 60000 characters!!!!]
00_worldmap.pak
00_worldmap_en_normal.pak
00_worldmap_en_normal.rad
00_worldmap_musicmanagercs.rad
01_fnship.pak
01_fnship_en_normal.pak
01_fnship_en_normal.rad
01_fnship_musicmanagercs.rad
02_factory.pak
02_factory_en_normal.pak
02_factory_en_normal.rad

08_temple_musicmanagercs.rad
09_combustion.pak
09_combustion_en_normal.pak
09_combustion_en_normal.rad
09_combustion_musicmanagercs.rad
10_airship.pak
10_airship_en_normal.pak
10_airship_en_normal.rad
10_airship_musicmanagercs.rad
11_finale.pak
11_finale_en_normal.pak
11_finale_en_normal.rad
11_finale_musicmanagercs.rad
20_flying.pak
20_flying_en_normal.pak
20_flying_en_normal.rad
20_flying_musicmanagercs.rad
boot.pak
boot_en_normal.pak
boot_en_normal.rad
common_en_normal.rad
mainmenu.pak
mainmenu_en_normal.pak
mainmenu_en_normal.rad
00_worldmap.pak
00_worldmap_en_normal.pak
00_worldmap_en_normal.rad
00_worldmap_musicmanagercs.rad

03_pier_musicmanagercs.rad
04_invasion.pak
04_invasion_en_normal.pak
04_invasion_en_normal.rad
04_invasion_musicmanagercs.rad
05_palace.pak
05_palace_en_normal.pak
05_palace_en_normal.rad
05_palace_musicmanagercs.rad
06_prison.pak
06_prison_en_normal.pak
06_prison_en_normal.rad
06_prison_musicmanagercs.rad
07_gondola.pak
07_gondola_en_normal.pak
07_gondola_en_normal.rad
07_gondola_musicmanagercs.rad
08_temple.pak
08_temple_en_normal.pak
08_temple_en_normal.rad
08_temple_musicmanagercs.rad
09_combustion.pak
09_combustion_en_normal.pak
09_combustion_en_normal.rad
09_combustion_musicmanagercs.rad
10_airship.pak
10_airship_en_normal.pak
10_airship_en_normal.rad
10_airship_musicmanagercs.rad
11_finale.pak
11_finale_en_normal.pak
11_finale_en_normal.rad
11_finale_musicmanagercs.rad
20_flying.pak
20_flying_en_normal.pak
20_flying_en_normal.rad
20_flying_musicmanagercs.rad
boot.pak
boot_en_normal.pak
boot_en_normal.rad
common_en_normal.rad
mainmenu.pak
mainmenu_en_normal.pak
mainmenu_en_normal.rad
00_worldmap.pak
00_worldmap_en_normal.pak
00_worldmap_en_normal.rad
00_worldmap_musicmanagercs.rad
01_fnship.pak
01_fnship_en_normal.pak
01_fnship_en_normal.rad
01_fnship_musicmanagercs.rad
02_factory.pak
02_factory_en_normal.pak
02_factory_en_normal.rad
02_factory_musicmanagercs.rad
03_pier.pak
03_pier_en_normal.pak
03_pier_en_normal.rad
03_pier_musicmanagercs.rad
04_invasion.pak
04_invasion_en_normal.pak
04_invasion_en_normal.rad
04_invasion_musicmanagercs.rad
05_palace.pak
05_palace_en_normal.pak
05_palace_en_normal.rad
05_palace_musicmanagercs.rad
06_prison.pak
06_prison_en_normal.pak
06_prison_en_normal.rad
06_prison_musicmanagercs.rad
07_gondola.pak
07_gondola_en_normal.pak
07_gondola_en_normal.rad
07_gondola_musicmanagercs.rad
08_temple.pak
08_temple_en_normal.pak
08_temple_en_normal.rad
08_temple_musicmanagercs.rad
09_combustion.pak
09_combustion_en_normal.pak
09_combustion_en_normal.rad
09_combustion_musicmanagercs.rad
10_airship.pak
10_airship_en_normal.pak
10_airship_en_normal.rad
10_airship_musicmanagercs.rad
11_finale.pak
11_finale_en_normal.pak
11_finale_en_normal.rad
11_finale_musicmanagercs.rad
20_flying.pak
20_flying_en_normal.pak
20_flying_en_normal.rad
20_flying_musicmanagercs.rad
boot.pak
boot_en_normal.pak
boot_en_normal.rad
common_en_normal.rad
mainmenu.pak
mainmenu_en_normal.pak
mainmenu_en_normal.rad
00_worldmap.pak
00_worldmap_en_normal.pak
00_worldmap_en_normal.rad
00_worldmap_musicmanagercs.rad
01_fnship.pak
01_fnship_en_normal.pak
01_fnship_en_normal.rad
01_fnship_musicmanagercs.rad
02_factory.pak
02_factory_en_normal.pak
02_factory_en_normal.rad
02_factory_musicmanagercs.rad
03_pier.pak
03_pier_en_normal.pak
03_pier_en_normal.rad
03_pier_musicmanagercs.rad
04_invasion.pak
04_invasion_en_normal.pak
04_invasion_en_normal.rad
04_invasion_musicmanagercs.rad
05_palace.pak
05_palace_en_normal.pak
05_palace_en_normal.rad
05_palace_musicmanagercs.rad
06_prison.pak
06_prison_en_normal.pak
06_prison_en_normal.rad
06_prison_musicmanagercs.rad
07_gondola.pak
07_gondola_en_normal.pak
07_gondola_en_normal.rad
07_gondola_musicmanagercs.rad
08_temple.pak
08_temple_en_normal.pak
08_temple_en_normal.rad
08_temple_musicmanagercs.rad

data/ptx_tabledining_01_a.rcb
data/rs_89_prp_tree_39.rsc

ofx_01_fireballs_frontdeck.ofx
ofx_01_fireballs_approach.ofx
vfxa8_blur_01_c.rcb
ofx_fn_soldier.ofx
ofx_00_paper_disturb.ofx
ofx_fn_guardmale.ofx
ofx_fn_bender.ofx
collisionmaterials.xml
gestures.xml
act_momosamurai.rcb
vfx_toph_bendingwhip_projectile.rcb
rs_208_obj_arm.rsc
rs_184_obj_watertrigger.rsc
rs_241_aang air small.rsc
rs01_a.rcb
vfxa8_loadscreencloud_01_b.rcb
rs_21_skysphere.rsc
ltx_misc_whitebox.rcb
rs_16_l1s01zone01.rsc
rs_18_ant_aang_fe.xml.rsc
tx8_ui_frontend_avatarlogo.rcb
tx8_ui_frontend_avatarlogo_black.rcb
gen_108_savegame.str
gen_109_mainmenu.str
gen_115_messages.str
formal_big.rcb
formal.rcb
polo.rcb
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

Is it possible that you look up how to open .rcb files? and maybe .cr4 files to:)
program is nearly ready!

The CR4 files contain (compressed?) tga files
Last edited by triad on Wed Aug 01, 2012 12:22 pm, edited 1 time in total.
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

Oh, i've just found out that the .RAD files is the .PAK give information over the .PAK file with the same name

The CR4 files contain (compressed?) tga files
FurryFan
mega-veteran
mega-veteran
Posts: 190
Joined: Sat Jan 09, 2010 9:37 pm
Has thanked: 8 times
Been thanked: 64 times

Re: PS2 Avatar The Last Airbender - models?

Post by FurryFan »

Here are some QuickBMS scripts to extract the PAK files from "Avatar The Last Airbender" (the first one for the PS2, the other 2 games have a slightly different format). You will need the newest version of "QuickBMS" which can be found here:
http://aluigi.altervista.org/quickbms.htm

1. First Script:
http://ps23dformat.wikispaces.com/file/ ... TA.PAK.bms

Code: Select all

<bms games="'Avatar The Last AirBender'" platforms="'PS2'" ext="PAK">
ImpType Standard ;
Set F Long 20 ;
GoTo F 0 ;
Get F Long 0 ;
Set JF Long 16 ;
GoTo JF 0 ;
Get JF Long 0 ;
Set D Long 28 ;
GoTo D 0 ;
SavePos D 0 ;
For T = 1 To F ;
GoTO D 0 ;
Get FO Long 0 ;
Get CS Long 0 ;
SavePos H 0 ;
GoTo JF 0 ;
Get FN String 0 ;
SavePos JF 0 ;
GoTo H 0 ;
Get W Long 0 ;
Get W Long 0 ;
SavePos D 0 ;
Log FN FO CS 0 ;
Next T ;
</bms>
1. Use the script above called "avatar_DATA.PAK.BMS on the PAK files you see on the Avatar Disc.

2. Second Script:
http://ps23dformat.wikispaces.com/file/ ... ressed.bms

Code: Select all

<bms games="'Avatar The Last AirBender'" platforms="'PS2'" ext="PAK">
ImpType Standard ;
Set F Long 20 ;
GoTo F 0 ;
Get F Long 0 ;
Set JF Long 16 ;
GoTo JF 0 ;
Get JF Long 0 ;
Set D Long 28 ;
GoTo D 0 ;
SavePos D 0 ;
For T = 1 To F ;
GoTO D 0 ;
Get FO Long 0 ;
Get CS Long 0 ;
SavePos H 0 ;
GoTo JF 0 ;
Get FN String 0 ;
SavePos JF 0 ;
GoTo H 0 ;
Get W Long 0 ;
Get W Long 0 ;
SavePos D 0 ;
Log FN FO CS 0 ;
Next T ;
</bms>
2. Use the script above called "avatarPAKuncompressed.bms" on the PAK files that come out
on from using the first script. Extract them to any folder as an example we will call this "Folder B"

3. Third Script:
http://ps23dformat.wikispaces.com/file/ ... ressed.bms

Code: Select all

<bms games="'Avatar The Last AirBender'" platforms="'PS2'" ext="PAK">
ImpType Standard ;
ComType zlib_noerror ;
Set F Long 20 ;
GoTo F 0 ;
Get F Long 0 ;
Set JF Long 16 ;
GoTo JF 0 ;
Get JF Long 0 ;
Set D Long 28 ;
GoTo D 0 ;
SavePos D 0 ;
For T = 1 To F ;
GoTO D 0 ;
Get FO Long 0 ;
Get CS Long 0 ;
SavePos H 0 ;
GoTo JF 0 ;
Get FN String 0 ;
SavePos JF 0 ;
GoTo H 0 ;
Get W Long 0 ;
Get W Long 0 ;
SavePos D 0 ;
CLog FN FO CS 90000000 0 ;
Next T ;
</bms>
3. Use the script above called "avatarPAKcompressed.bms" to decompress the PAK files that came out from
using the first script, but extract them to a different folder then where you did for the second script. Lets call this
"Folder C"
Now Delete the files in "Folder C" that say the size is 0 bytes.

4. Copy and paste the files/folders from the third step "Folder C", into the place where you extracted in the Second Step, "Folder B" and say Yes when it asks you if you want to override the existing files in "Folder B" with the files from the third step "Folder C".
If everything is done right all of the files in "Folder B" will be decompressed.
Now you can copy over the contents of "Folder B" into "Folder A".

As for the models they have the extension .rsc (but not .xml.rsc)
so rs_5_npc_eo_1_snowwolf.rsc would contain a model
but rs_1_ant_c4q00_wolf.xml.rsc would not contain a model (I think the .xml.rsc is animations).

The rsc model format is tricky but is basically texture/textures near the beginning of the file (BitMaps with the PS2 Texture Filter, but instead of the Color Palate having 256 Colors, is appears to only have 16 Colors (?) Any ways just like how Window Bitmaps can be the 256 color type and some can be other types, this is a variation of the PS2 BitMap.
Next is the mesh itself which has slightly different components (some use Floats, some used 2Byte Signed Integers), but the idea is that all of the model's vertexes appear first, then things like UV's, Normals ect. Except that that there is padding in between some vertexes. You get the padding from bytes in another section of the file, and each byte is the data size. So say you get a data size stream like
8,6,9
Then they might be padding in between the 8th vertex, and the 9th vertex, and in between the 14th vertex and the 15th Vertex.
The padding follows the rule that relative from the very first vertex, each vertex group has to start on a multiple of 16 bytes. And it is more complicated because the vertexes are formed by tristrips, but even more complicated because, there is a mesh component that tells when to terminate tristrips, that also it self has padding.
Here is an example of a wolf mesh I converted:
Image
I accept ALL requests. Let me know your requests.
Cloud452
veteran
Posts: 91
Joined: Sat Oct 23, 2010 2:50 pm
Has thanked: 2 times

Re: PS2 Avatar The Last Airbender - models?

Post by Cloud452 »

I'm highly impressed with all the fantastic work done on this! :D
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

Great work! On the ps2disk there were some .bik videos. I've put them all on youtube! Search on youtube :: Avatar IntoTheInferno Official Content
triad
n00b
Posts: 11
Joined: Fri Jul 20, 2012 1:42 pm
Has thanked: 1 time

Re: PS2 Avatar The Last Airbender - models?

Post by triad »

i've tried to extract the data.pak file but when i do so i'm told that i have to enter a new filename and then the program stops

could someone please help me with that?
FurryFan
mega-veteran
mega-veteran
Posts: 190
Joined: Sat Jan 09, 2010 9:37 pm
Has thanked: 8 times
Been thanked: 64 times

Re: PS2 Avatar The Last Airbender - models?

Post by FurryFan »

triad wrote:i've tried to extract the data.pak file but when i do so i'm told that i have to enter a new filename and then the program stops

could someone please help me with that?
Send me a screenshot, but note that the scripts, only work for the first avatar game, called Avatar The Last Air Bender.
To use the QuickBMS script, download quickBMS. Then click clickBMS.exe, then select the script, then select the pak file, then select the folder to save the stuff in (sometimes you need to click in a different folder, to get past), then it should extract.

In fact if you could make a quick video using the free program called hypercam, that would let me help you even better.
I accept ALL requests. Let me know your requests.
Post Reply