This first test version will only work with characters using 3pantskeleton.ebx, it must be in the same dir (for both tools)
Fb_BF1_mesh.exe - mesh extractor
Usage: Fb_BF1_mesh <mesh> <chunk>
Fb_BF1_faces.exe - face fixing tool
Usage: drop VisualUnlock file onto the tool
This will make a small .SMD file with skeleton pose, which will fix the head. Apply transformation to bake it.
To apply transformation:
Load the head mesh, delete its skeleton, then import small SMD (it will actually be new skeleton with 2 poses: initial pose and corrected pose), and connect it to the head.
If you prefer to do it manually, you can edit model SMD file as text file. Open head SMD, scroll down to the "triangles" line, and delete all lines before it (this is the skeleton). Then insert small SMD in the beginning of the file.
Star Wars Battlefront 1 - same 2 tools, same usage, skeleton name: humanmale.ebx
VisualUnlock files allows to automatically find the needed face asset inside the bank.
Every mesh in ANY frostbite game must have this unlock file. Can be called different. Usually located near mesh.ebx file. Example:
Note that for some characters, these VisualUnlock files may contain asset links not in head, but in teeth, hair or beard instead. There are also some weird cases, where head links to incorrect asset, and the correct one is in hair.
Also in the same dir must be .assetbank file (or files) where you think assets for this face can be.
These are usually biggest bank for the level, located in "res\animations\antanimations\"
You can place ALL banks there, tool will check them all. This can be slow, because banks are HUGE.
Some scripts incorrectly name .assetbank files as ".ANT", in this case you need to rename them.
Last edited by id-daemon on Sat Oct 28, 2017 4:02 pm, edited 8 times in total.