Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Frostbite model tools (Battlefield, Battlefront and others)

Post questions about game models here, or help out others!
Post Reply
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Frostbite model tools (Battlefield, Battlefront and others)

Post by daemon1 »

Tools for mesh extraction (with skeletons, fully rigged) for Frostbite games. Also can fix faces. Currently supported:
- Battlefield 1
- Battlefield 3
- Battlefield 4
- Battlefield Hardline
- Medal of Honor Warfighter
- Star Wars Battlefront 1
- Star Wars Battlefront 2
- Need for Speed Payback


Tools for more games posted later here: viewtopic.php?p=147355#p147355

Detailed tutorials by Crofty for everything you need to use the tools https://sta.sh/04jxcv9d9o0

Image
Image
Image

Battlefield 1

This 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, 2 - same tools, same usage,
skeleton name for SWBF1: humanmale.ebx
skeleton name for SWBF2: walrus_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:
\ebx\characters\sp\ep3_mudandblood\townsend_ingame\sp_townsend_head_ingame_vu.ebx
\ebx\characters\mp\faces\unlocks\mp_faces_ako.ebx

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.
You do not have the required permissions to view the files attached to this post.
Last edited by daemon1 on Sun Feb 20, 2022 7:36 am, edited 8 times in total.
User avatar
takoyaki111
advanced
Posts: 48
Joined: Mon Oct 21, 2013 7:43 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by takoyaki111 »

Anyone know of any dumper scripts that dump Battlefront 2s beta?
Crageo
ultra-n00b
Posts: 7
Joined: Sat Oct 15, 2016 7:28 am
Been thanked: 4 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by Crageo »

I get this error when I try to do Maul even though I've got all of the AssetBanks in the same directory.

"Asset not found in asset banks (2)"
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by daemon1 »

UFBE 0.2.1

Image

Changes:

- case-insensitive search
- cloth and other "special" meshes (which require no chunks) will now have a number in its name, allowing mesh tool to convert it
You do not have the required permissions to view the files attached to this post.
Last edited by daemon1 on Sat Dec 02, 2017 8:19 pm, edited 1 time in total.
Crageo
ultra-n00b
Posts: 7
Joined: Sat Oct 15, 2016 7:28 am
Been thanked: 4 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by Crageo »

Yeah never mind I fixed it. Thanks for making the tools btw, you are a true legend.
Crageo
ultra-n00b
Posts: 7
Joined: Sat Oct 15, 2016 7:28 am
Been thanked: 4 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by Crageo »

Also another quick question, I can't seem to convert any of the textures with the batch converter. Do you have any other suggestions that I could use?
User avatar
HeliosAI
mega-veteran
mega-veteran
Posts: 166
Joined: Wed Nov 17, 2010 2:57 pm
Has thanked: 151 times
Been thanked: 62 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by HeliosAI »

Is there a way to tell which chunk files go with the meshes and textures? I have been told a plugin for unwrap3d does this but i don't really want to buy that when i dont even use it.

Thanks so much for this either way!
User avatar
takoyaki111
advanced
Posts: 48
Joined: Mon Oct 21, 2013 7:43 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by takoyaki111 »

o0Crofty0o wrote:Is there a way to tell which chunk files go with the meshes and textures? I have been told a plugin for unwrap3d does this but i don't really want to buy that when i dont even use it.

Thanks so much for this either way!
Use the demo
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by daemon1 »

Crageo wrote:Also another quick question, I can't seem to convert any of the textures with the batch converter. Do you have any other suggestions that I could use?
I will probably update texture converter. Or create something new. But not now.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by daemon1 »

o0Crofty0o wrote:Is there a way to tell which chunk files go with the meshes and textures? I have been told a plugin for unwrap3d does this but i don't really want to buy that when i dont even use it.

Thanks so much for this either way!
The mesh and texture chunk IDs are near the beginning of EBX file if you open it with hex editor. There may be some tools to display IDs (or move the files), but I'm not familiar with them.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by daemon1 »

Here are Python scripts for dumping the beta. 32-bit Python 2.7.3 recommended.

I was only able to fix Nikto and other "face skin" head variants by manually editing (splitting) VUR files. I can't find separate VUR file for those, they are merged together in one.

Also there are problems with troopers weights. I have no reports if anyone needs that fixed.

Image
You do not have the required permissions to view the files attached to this post.
lyutor1945
beginner
Posts: 39
Joined: Mon Nov 02, 2015 6:24 pm
Has thanked: 23 times
Been thanked: 3 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by lyutor1945 »

daemon1 wrote:Here are Python scripts for dumping the beta. 32-bit Python 2.7.3 recommended.

I was only able to fix Nikto and other "face skin" head variants by manually editing (splitting) VUR files. I can't find separate VUR file for those, they are merged together in one.

Also there are problems with troopers weights. I have no reports if anyone needs that fixed.

Image
Can someone explain how to work the python scripts for dumping?
User avatar
HeliosAI
mega-veteran
mega-veteran
Posts: 166
Joined: Wed Nov 17, 2010 2:57 pm
Has thanked: 151 times
Been thanked: 62 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by HeliosAI »

Thanks, i got it to work properly! No crashes or bugs happening with the mesh and face tools at the moment.
lyutor1945 wrote:
Can someone explain how to work the python scripts for dumping?
Here's a small tutorial on that. Hope that helps!
https://sta.sh/01s1dd3fmnpj
artworkplay
veteran
Posts: 116
Joined: Wed Oct 05, 2011 9:40 pm
Has thanked: 49 times
Been thanked: 5 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by artworkplay »

daemon1 wrote: The mesh and texture chunk IDs are near the beginning of EBX file if you open it with hex editor. There may be some tools to display IDs (or move the files), but I'm not familiar with them.
Is this the same with BF3, BF4 and Hardline? I tried looking and am not getting any ID (or that I can understand).
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Frostbite model tools (Battlefield 1, Battlefront 1, 2)

Post by daemon1 »

artworkplay wrote:Is this the same with BF3, BF4 and Hardline? I tried looking and am not getting any ID (or that I can understand).
yes its the same
Post Reply