Page 1 of 1

Paper Mario: TTYD sprite help

Posted: Tue Jun 20, 2017 9:33 pm
by PhillipGamer3264
This file is called ''a_mario'' and ''a_mario-''

https://www.mediafire.com/?kx6783p44qvj3d6

can we extract this sprite plz?

Re: Paper Mario: TTYD sprite help

Posted: Wed Jun 21, 2017 1:26 pm
by ikskoks
Here is partially guessed file format of a_mario:

Code: Select all

big endian

//header
4 bytes - size of header
64 bytes - name + padding
64 bytes - name + padding
64 bytes - compilation date + padding

4 bytes - 1
4 bytes - 5
4 bytes - 5
224 bytes - ?


//animation entries (168 bytes)
64 bytes - animation name
104 bytes - ?

...

//table of filepaths (starting from 18764, 150 files)
number of files *
{
	64 bytes - filepath + padding
}

...

//group entries (starting from 38628, 59 entries)
64 bytes - name + padding
24 bytes - ?
number of entries *
{
	60 bytes - name + padding
	4 bytes - graphics offset
}


//graphics data (graphics data starts from offset 42492, right after header)
number of group entries *
{
	x bytes - file data
}




It's not any help with extraction, but it may help someone with writing tool for that files.

Re: Paper Mario: TTYD sprite help

Posted: Mon Jun 26, 2017 7:01 pm
by PhillipGamer3264
ikskoks wrote:Here is partially guessed file format of a_mario:

Code: Select all

big endian

//header
4 bytes - size of header
64 bytes - name + padding
64 bytes - name + padding
64 bytes - compilation date + padding

4 bytes - 1
4 bytes - 5
4 bytes - 5
224 bytes - ?


//animation entries (168 bytes)
64 bytes - animation name
104 bytes - ?

...

//table of filepaths (starting from 18764, 150 files)
number of files *
{
	64 bytes - filepath + padding
}

...

//group entries (starting from 38628, 59 entries)
64 bytes - name + padding
24 bytes - ?
number of entries *
{
	60 bytes - name + padding
	4 bytes - graphics offset
}


//graphics data (graphics data starts from offset 42492, right after header)
number of group entries *
{
	x bytes - file data
}




It's not any help with extraction, but it may help someone with writing tool for that files.
i extract this file to rename this .tpl file to .tga file but, Open with Paint.NET to extract .PNG Files