Post by atsuraelu on Jun 25, 2018 14:07:36 GMT
As requested by sky88 , here's a little tutorial/walkthrough on how to do some basic mashups without using Blender or 3dsmax.
It might seem a bit long, but that is mostly because I described everything in too much detail, so as to hopefully be better understandable.
I will be using HUM_532_Bust (Gogeta's Clothes) and HUM_530_Bust (Broly's Clothes) for this, but it will work for any clothing as long as it does not clip too badly.
Tools needed:
Steps:
You can delete all HUM_530_Bust files from your workdir at this point. Read the edit next... To get the mashup into the game, follow this tutorial.
Feel free to ask me, if anything is unclear (as I said multiple times, I suck at explaining stuff) or yell at me, if I forgot anything.
edit:
Aaand, I forgot something...
If you followed the above tutorial, the necklace won't have the correct colors. To rectify this you'll need to drag-and-drop HUM_530_Bust.dyt.emb and HUM_532_Bust.dyt.emb over embpack_v2.exe, open up both DATA000.dds in GIMP or something and paste the content of the dds from HUM_530_Bust.dyt.emb 4px under the last colored line of the other dds. Overwrite the file and drag-and-drop the HUM_532_Bust.dyt folder onto embpack_v2.exe.
Example:
Then open up HUM_532_Bust.emm.xml again, find the necklace_cloth EMMMaterial and change
It might seem a bit long, but that is mostly because I described everything in too much detail, so as to hopefully be better understandable.
I will be using HUM_532_Bust (Gogeta's Clothes) and HUM_530_Bust (Broly's Clothes) for this, but it will work for any clothing as long as it does not clip too badly.
Tools needed:
- XenoXMLConverter
- EMBPack
- Notepad++ or any other text editor
- Any image viewing/manipulation program, that can open dds files.
- YACE if you did not previously extract your CPKs
Steps:
- Extract your data.cpk, data0.cpk, data1.cpk and data2.cpk (located at "C:\ProgramFiles(x86)\Steam\SteamApps\common\DB Xenoverse 2\cpk" or wherever your XV2 is installed) somewhere (for example "C:\ProgramFiles(x86)\Steam\SteamApps\common\DB Xenoverse 2\unpack"), if you haven't done so already.
- Create a working directory somewhere (doesn't matter where). Extract XenoXMLConverter and EMBPack there.
- Go into the directory where you extracted your CPKs and navigate to ".\data\chara\HUM". Once there, copy all files beginning with HUM_530_Bust and all files beginning with HUM_532_Bust into your working directory.
- In your working directory, locate HUM_530_Bust.emd and HUM_532_Bust.emd, select them and drag-and-drop them over XenoXmlConverter.exe. This will generate two files, one named HUM_530_Bust.emd.xml and another one named HUM_532_Bust.emd.xml.
- Open up both files and in HUM_530_Bust.emd.xml search for
<EmdModel name="HUM_530_Bust_Necklace" unknown_total="0">
(this of course will be different, if you want to use different costumes, but the EmdMesh names are pretty descriptive for the most part, so you should not have many problems finding what you are after). - Select the entire mesh entry (from <EmdModel name="HUM_530_Bust_Necklace" unknown_total="0"> to </EmdModel>) and copy it.
- Now in HUM_532_Bust.emd.xml scroll to the very end of the file and create a new line above
</EmdModels>
- Paste what you copied in step 6 on that new line.
- Save HUM_532_Bust.emd.xml, but do not close it yet.
- In your working directory, locate HUM_530_Bust.emb and HUM_532_Bust.emb and drag-and-drop them over embpack_v2.exe (seperately, as embpack does not support multiple input files AFAIK).
- Take a look at the files in the newly created HUM_530_Bust folder in your image viewer. In this case there are 3 textures: DATA000.dds, which is the texture for the gem on the necklace, DATA001.dds, which is the skin texture and DATA002.dds, which is the texture for the necklaces metal parts.
- Now take a look at the files in the HUM_532_Bust folder. There are two textures in them, but we can ignore all about them, save for their filenames.
- Because HUM_532_Bust already has a DATA000.dds, we need to rename the DATA000.dds in the HUM_530_Bust folder to DATA003.dds (because we also have a DATA002.dds already).
- Copy both DATA002.dds and DATA003.dds to the HUM_532_Bust folder.
- Open up the embFiles.xml in that folder and modify it to look like
<?xml version="1.0" ?>
This is so embpack knows what files to pack into the new emb. Save the xml.
<EMB>
<!--index:0-->
<File name="DATA000.dds" filename="DATA000.dds" />
<!--index:1-->
<File name="DATA001.dds" filename="DATA001.dds" />
<!--index:2-->
<File name="DATA002.dds" filename="DATA002.dds" />
<!--index:3-->
<File name="DATA003.dds" filename="DATA003.dds" />
</EMB> - Drag-and-drop the HUM_532_Bust folder over embpack_v2.exe.
- Now that we know, which texture is which, go back to your HUM_532_Bust.emd.xml. Within most EmdModel entries are several EMDSubmesh entries. In this case in the HUM_530_Bust_Necklace there are 3: necklace_cloth, necklace_jewelry and necklace_metal. In each of these entries, there are two EMDSubmeshDefinition entries (I honestly don't know, why there are two, as they are identical in every case I've seen so far) that look something like
<EMDSubmeshDefinition unknow0="0" textureindex="2" unknow1="0" unknow2="34" textScale_u="1" textScale_v="1" />
The part we need to worry about is textureindex, as this tells the game what texture to use for this submesh. necklace_cloth and necklace_metal have textureindex="2", which corresponds to DATA002.dds, so we do not need to change them, but necklace_jewelry (the gem) has textureindex="0", which would be one of Gogeta's textures, so we have to change it to textureindex="3", as we renamed the gem texture DATA003.dds. - Save the xml and close it.
- Now drag-and-drop HUM_530_Bust.emm and HUM_532_Bust.emm over XenoXmlConverter.exe. Open both resulting xmls. Copy the XMMMaterial entries named necklace_cloth, necklace_jewelry and necklace_metal from HUM_530_Bust.emm and paste them into HUM_532_Bust.emm on a new line above
</EMM>
Save and close. - Lastly drag-and-drop HUM_532_Bust.emm and HUM_532_Bust.emd over XenoXmlConverter.exe.
Feel free to ask me, if anything is unclear (as I said multiple times, I suck at explaining stuff) or yell at me, if I forgot anything.
edit:
Aaand, I forgot something...
If you followed the above tutorial, the necklace won't have the correct colors. To rectify this you'll need to drag-and-drop HUM_530_Bust.dyt.emb and HUM_532_Bust.dyt.emb over embpack_v2.exe, open up both DATA000.dds in GIMP or something and paste the content of the dds from HUM_530_Bust.dyt.emb 4px under the last colored line of the other dds. Overwrite the file and drag-and-drop the HUM_532_Bust.dyt folder onto embpack_v2.exe.
Example:
Then open up HUM_532_Bust.emm.xml again, find the necklace_cloth EMMMaterial and change
<EMMParameter name="MatScale1X" type="Float" value="0" />
to<EMMParameter name="MatScale1X" type="Float" value="4" />
Do the same for necklace_metal and for necklace_jewelry, change <EMMParameter name="MatScale1X" type="Float" value="1" />
to<EMMParameter name="MatScale1X" type="Float" value="5" />
Save and drag-and-drop over XenoXmlConverter.exe