How to Make Custom Clothes [SWF]
Back in Black BIOTCHES!
How to Make Custom Clothes
Hi everyone... I am back out of my semi-retirement with a great release. I just want to clearly state I am back. Back to the release, today I am going to teach you guys how to make custom clothing. Custom clothing was a long endeavor of mine ever since I started SWF developing. Today, I put my mind to it and knocked out a good hour of pure developments. I figured it out and am going to release to you. Enjoy.
1) Download this pack Here. Download a SWF Decompiler. Sorry the Hx D program doesnt work, you can download it here.
2) I now want you to goto your SWF directory and find a piece of clothing you want to edit off of. Lets say you want to make a tshirt with your hotel logo on it, you would go find the basic Tshirt swf, copy it and paste it to your desktop.
3) Open the selected SWF in your SWF decompiler and select all the images and export them to the desktop.
4) Edit each image to your liking, then goto your swf decompiler and replace the original images with your edited images. Then save.
5) Now time to rename the SWF, we MUST use the Char technique here. If the SWF's name is trousers_F_skirt then rename the end part with something that uses the same amount of valid characters. trousers_F_skirt can be trousers_F_flirt.
6) Drag the new SWF over the SWF compile program included in the pack. Then drag it over the SWF decompile program included in the pack. Then open HexDex.
7) Then in HexDex open the SWF. Then hit replace and type in the original swf name in find and the edited swf name in replace. Hit okay, then save and close.
8) Now I want you to open up two different files, open figuredata.xml and figuremap.xml.
9) I want you to now go into figuremap and type in the ending of the original name of the base SWF you are editing. Lets say I am using the swf trousers_U_camo then I am going to search camo until I come to the SWF that is the SWF i am using.
10) I want you now to look at that whole line of code. If I was using trousers_U_camo I would use this line of code:
Code:
11) Open HexDex again and open the SWF file you edited before. Now, hit replace and for the find type in the partid. For the trousers_U_camo the part id is 2037. So in find I am going to type in 2037 and in replace I will type in something unique from all other clothings part id. Lets say 6666. Hit ok and it will edit it. Save it.
12) Remember this piece of code in your figuremap.xml:
Code:
[
we need to edit it. Now copy that original code and open a new text file and paste it. We must disect the code now. You changed your part id to something unique like 6666 so this is what you are going to do. Edit the code so it looks like this. Remember to change the SWF name to the edited one to.:
Code:
.
13) Open your figuremap.xml and find the original code, now next to the paste the new code so now it will look like this
Code:
Save figuremap.xml and close it
14) Open up figuredata.xml and search the original part id. For the Camo we are gonna search 2037. Now once you find it look at that whole line of code. It should look like this.
Code:
we need to edit that. Change the set id to 6666, the part id to 6666. So it looks like this.
Code:
Paste it next to the original code, just like in step 13, so it fits the pattern of the whole file and save. Close it now.
15) Open up PHPMyAdmin and goto the table clothing. Hit insert and leave the ID blank, for PID put the new part id so 6666 and the class 0. Insert.
16) Reopen figuremap.xml
17) Now, scroll to the bottom where you a long list of the same code. The code should look similar to this:
Code:
18) If you are making a custom shirt your going to find the list named
Code:
and the list named
Code:
.
If your making a custom thing that belongs on the face, find anything that relates to a face in the list form like the 2 above and do the same exact steps as below.
19) Now one of the codes in that list looks like this:
Code:
scroll to the bottom of the list and after the last code that looks like this we need to add our own. To do construct your own you will need 2 things, your Part ID and your type. The Part ID is what we have been working with, 6666 and the type can vary. In our example our type is LG so our code will look like this:
Code:
. Now you may ask, what if the clothing we are editing has multiple types and the code looks like this:
Code:
Then you make 3 new codes and add them to your list so now your 3 new codes are:
Code:
20) Save your new figuremap.xml
21) Move the edited SWF into your SWF Directory.
22) Clear cache and enjoy your new Habbo Custom Clothing.