How to create a Custom Profile - jessicanataliagta/mutare GitHub Wiki
It's easy to create a custom profile that will cover other games. All necessary scripts are on the "Custom Profile" folder.
So let me explain how to use it by order.
Open "rename_bones.ms" with a text editor (I recomend notepad++), inside there will be a list of bones to rename, like this:
dataPair "mixamorig:Hips" "Pelvis",
dataPair "mixamorig:RightUpLeg" "R Thigh",
dataPair "mixamorig:Spine1" "Spine1",
The first name "mixamorig:Hips" is the auto rig bone name and "Pelvis" is the name of the equivalent bone from the game. So give a look to the auto rig character bone names (in this case from Mixamo) and give a look to your game character and think what bone from the auto rig is equivalent to the bone in your game.
Obviously there allways will be missing bones. For exemple, gta sa has 10 bones that don't exist in mixamo. But that is fine because we are NOT going to put the auto rig skeleton in our game, instead, we will use our script to edit the original game skeleton bone positions and skin weight to match your new model.
If there is cases where the auto rig has more bones than your game, you can use Skin_ReplaceWeights2.ms to merge bones. For exemple, Mixamo has 3 spine bones but GTA III VC SA has only 2 spine bones, named spine and spine1. So what I did was rename the third spine bone to spine2, then I use that script to merge it to spine1.
copy_bones_position.ms is a script that will put on the script listener from 3ds max, a list of positions of all objects on the scene.
You can open move_bones.ms on a text edit, paste the list made by copy_bones_position.ms and save. This script will move the original game model bones to the right position.
Read my tutorial about the usage on gta, it's very easy to adapt and use the method in other games.