Nice work sir!disastorm wrote:Ok guys, so for anyone having issues using the gibbed tools on libs, you need to remove the class definition from the projects/Watch Dogs/binary objects/files/ gibbed directory.
Here is a picture of mine ( I've removed stuff like Items.binaryobjectfile.xml, GraphicKit_parts.binaryobjectfile.xml, etc )
Additionally, the file being modded should be patch.dat/fat.
Here is how to do model swaps using the clothing in the game:
The file on the left is the items.lib file for one of the DedSec hats.
The file on the right is the graphickit_models.lib file for Aiden from the jail mission.
You simply copy paste the section shown.
The highlighted field, with hash "D935FAD9" is the reference to the graphickit_parts.lib file.
Here is how you can find out what the various sections in the graphickit_models files are:
The below example shows checking the 3 sections on the Aiden file shown in the image above.
Inside the extracted graphickit_parts directory:
$ grep "8A84909104000080" ./*
./W2CH_PAR_pois_mul.pers18_AidenHead.xml: <field hash="1FE8D41C" type="BinHex">8A84909104000080</field>
./W2CH_PAR_pois_mul.pers18_AidenHead.xml: <field hash="389F6DA7" type="BinHex">8A84909104000080</field>
$ grep "E4F1550C02000080" ./*
./W2CH_PAR_body_m.body_m_full.xml: <field hash="1FE8D41C" type="BinHex">E4F1550C02000080</field>
./W2CH_PAR_body_m.body_m_full.xml: <field hash="389F6DA7" type="BinHex">E4F1550C02000080</field>
$ grep "758E3CF002000080" ./*
./W2CH_PAR_avat_ma_tor.avat_ma_tor_coataiden01_REWARD_brownleather.xml: <field hash="1FE8D41C" type="BinHex">758E3CF002000080</field>
./W2CH_PAR_avat_ma_tor.avat_ma_tor_coataiden01_REWARD_brownleather.xml: <field hash="389F6DA7" type="BinHex">758E3CF002000080</field>
This shows us that these 3 sections are Aiden's Head, the generic male body, and his coat.
Important Notes:
-After modifying the Item files, these items will no longer show up in your locker ( until you revert the changes ). You must first equip the items before adding the modded patch.fat/dat, and then upon logging in, you will see the modded graphickit parts on your character.
-I don't know 100% but it appears that when equipping various parts, it will remove the default Marcus parts. For example if you equip an item that you set to a male or female body, it will replace Marcus's body as opposed to showing both at the same time. However, in some cases i did seem to see the glasses + the additional graphickit_part so maybe I did something wrong, or there are some cases where this doesn't apply.
-I also believe the parts don't matter whether or not they are Head, torso, etc, they can be set to any piece of clothing.
-However, I did try to make one item set to multiple parts by duplicating the section at the bottom of the file on the left, but it appears to only use the first definition of that object, so it appears one item per graphickit part.
The full modding flow should be as below:
extract patch.fat/dat
convert whatever file you want to modify into xml using the Gibbed tools.
Modify the xml.
Convert it back to .lib or whatever it was before.
Put it back in the folder where the patch.fat/dat was extracted.
Repack the patch.fat/dat from the folder using the Repack exe tool.
Put the patch.fat/dat in your watchdogs data64 directory or whatever its called.
Run the game with the cheat thingy disabled.
i have tried it by myself,and it works!
but the problem is that there is no facial movements in chatting with the swapped face,
moreover,seems like the glasses are not possible to get rid of.
anyway,i think you can creat a new thread on guru3d to discuss model swapping in wd2,it may helps in gathering people to brainstorm.