Kitty Corp Meow Mix Forums

Help & Tutorials => General Tutorials => Topic started by: Neon on June 23, 2009, 07:18:03 PM



Title: How To Hex
Post by: Neon on June 23, 2009, 07:18:03 PM
*Transfferred from my original post at the original forum*

Okay, some pacs still need hexing, so, ill write a guide.
NOTES:
Does Not Covers indexxed tgas and mipmapping. Sorry.
I am going to use Mario as My example.
YOU WILL NEED:
SSBBarc (newest version) and everything that comes with it)
Ash and Tools
PAC to edit.

Set up:
Make an ash folder. In c, make a folder called "mario". Place everything from SSBBarc there. Also, place texconv there.

Step 1:
Extract Mario as done normally in ASH.

Step 2:
Edit tgas. (Sorry im going to be a bit basic with the ash parts, dont consider this a good guide for starters).

Step 3:
Here comes the hard part.
For all editted tgas, copy the folder they are in to the mario folder you made.

Step 4:
Open Notepad.
In it, paste this:
file 0 = [full location of .tga]
image 0 = 0, 0, type
texture 0 = 0, x

Now, where it says full location of tga, change that to where its located. i.e. C:\Mario\01FitMario_BodyA\tex#00_14.tga
For Type, look at the last two numbers in the tga. Change type based on this:
00 = I4
01 = I8
02 = IA4
03 = IA8
04 = RGB565
05 = RGB5A3
06 = RGBA8
08 = CI4
09 = CI8
10 = CI14X2
14 = CMPR

Based on the previous example, a correct 01FitMario_BodyA would look like this:
file 0 = C:\Mario\01FitMario_BodyA\tex#00_14.tga
image 0 = 0, 0, CMPR
texture 0 = 0, x

Now, for saving it. For the files name call it what it is named minus the numbers before the words. So, for this one, call it FitMario_BodyA. Now, go down to save as all files, and change it to FitMario_BodyA.tcs. Save it in the mario folder you made.
Repeat this for all editted tgas. (You can just skip the ones you didn't edit.

Step 5:
Now, go to run. Run cmd. Type this in:
cd..
cd..
cd Mario
TexConv

It'll ask you to type in the name of the .tcs. It'll ask you if this is correct, type in y. It'll than ask you what to save it as. Type in what you named the tcs, but instead make it a .tpl. It'll ask you if this is correct. Put y again.
Example:
FitMario_BodyA.tcs
y
FitMario_BodyA.tpl
y

Repeat this for all tcses.

Step 6:
Now, in Mario, run SSBBextract on the pac you editted. It will make a folder with a lot of .brres. keep extracting brreses till you get a folder called Textures(NW4R). Look in there. It should have tpls named the same as what you editted. For bigger pacs, it usually wont have all the tpls, but just some. But, not for this one. BTW, the brres for mario that has the tpls in it is 001.brres.
The tpls should be named exactly the same as what the tpls you made are. If not, you either did it wrong, or the tpls are not in that folder. If they are named wrong, change them now.

Step 7:
Go to run. Run cmd. Type in:
cd..
cd..
cd Mario
SSBBarc (name of brres).brres -i (name of tpl).tpl

Example:
cd..
cd..
cd Mario
SSBBarc 002.brres -i FitMario_BodyA.tpl

Repeat for all tpls.

Step 8:
Now, to insert the brres into the pac, type in:
SSBBarc FitMario00.pac -i 002.brres
There, pac editted! Yay!
Now, since all character pacs can be editted with ASH, I'm not gonna cover how to change a pac to a pcs. However, i think lz77ex will work, but idk. But, it doesnt matter, since almost everything that ive seen that needs to be hexxed is a pac.

Any questions?

Special thanks: The forum, meowmix boards, syntax error guide.
I used a lot of things from those, some copy pasted. (Like the brackets that need filling out.)


Title: Re: How To Hex
Post by: Jack H. on July 27, 2009, 06:41:23 PM
Neon, you never modified the x value on the third line of your tcs document. Does it not get edited at all?


Title: Re: How To Hex
Post by: Zephron on July 28, 2009, 12:21:14 AM
It better not need to. I just did all of smashville according to those instructions!!

I WILL KILL YOU IF YOU SAY WHOOPS!!!!!!


Title: Re: How To Hex
Post by: Neon on July 28, 2009, 02:14:14 AM
Neon, you never modified the x value on the third line of your tcs document. Does it not get edited at all?
I don't believe so. You might for an indexed texture, but you don't have to for a normal texture.


Title: Re: How To Hex
Post by: stickman on July 28, 2009, 05:22:07 AM
hmm... this seems harder than normal hexing
or im just old and dont trust new technology ;)


Title: Re: How To Hex
Post by: VILE on July 28, 2009, 05:43:12 AM
I use TCS make, probs faster too.