Frostbite model tools (Battlefield, Battlefront and others)

Post questions about game models here, or help out others!
Crageo
ultra-n00b
Posts: 7
Joined: Sat Oct 15, 2016 7:28 am
Been thanked: 1 time

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

Post by Crageo » Sun Jun 10, 2018 3:58 am

Is this script and the UFBE going to be updated? Since they broke extracting?

mono24
mega-veteran
mega-veteran
Posts: 317
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 110 times
Been thanked: 54 times

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

Post by mono24 » Sun Jun 10, 2018 4:57 am

Crageo wrote:Is this script and the UFBE going to be updated? Since they broke extracting?
Unfortunately when comes about Battlefront II game based on recent updates ONLY Frosty v1.0.4.2 can gain access to its contents, for mas extraction of the WHOLE GAME DATA nothing that exists out there will work, who knows maybe in the future it will be supported by UFBE.

Crageo
ultra-n00b
Posts: 7
Joined: Sat Oct 15, 2016 7:28 am
Been thanked: 1 time

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

Post by Crageo » Sun Jun 10, 2018 7:01 pm

Damn, thats a bummer. Cheers anyway man.

XxsimonexX
n00b
Posts: 11
Joined: Thu Dec 17, 2015 11:17 pm
Has thanked: 2 times

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

Post by XxsimonexX » Thu Jun 14, 2018 8:22 pm

i can't covert .ebx files into .wav from NFS payback using the script fb3decoder.py, every time i run the script after some conversion it stops and it says:

Code: Select all

Traceback (most recent call last):
  File "D:\alisu\Desktop\non usati\-Estrattori suoni + config backup-\estrattore battlefield-rivals\boh\convertitore ebx in wav\prova\fb3audio_nfs.py", line 550, in <module>
    main()
  File "D:\alisu\Desktop\non usati\-Estrattori suoni + config backup-\estrattore battlefield-rivals\boh\convertitore ebx in wav\prova\fb3audio_nfs.py", line 548, in main
    dbx.decode()
  File "D:\alisu\Desktop\non usati\-Estrattori suoni + config backup-\estrattore battlefield-rivals\boh\convertitore ebx in wav\prova\fb3audio_nfs.py", line 500, in decode
    decodePcm(currentChunkName, target, 0)
  File "D:\alisu\Desktop\non usati\-Estrattori suoni + config backup-\estrattore battlefield-rivals\boh\convertitore ebx in wav\prova\fb3audio_nfs.py", line 75, in decodePcm
    xas.swapEndianPcm(chunkPath, target, samplesOffset)
NameError: global name 'xas' is not defined
What can i do to fix this? Thanks a lot!

TrumpetPro
beginner
Posts: 30
Joined: Wed Jul 06, 2016 1:51 am
Has thanked: 1 time
Been thanked: 1 time

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

Post by TrumpetPro » Fri Jun 15, 2018 2:17 pm

Whenever I try to "scan bundles" with UFBE, it finds 0 bundles. I figured something was wrong, but tried dumping anyway. It instantly gave this log:

Code: Select all

Scanning bundles...
0 EBX, 0 duplicates
0 res, 0 duplicates
0 chunks, 0 duplicates, 0 unique chunks
0 total.

Scanning CAS database...
412406 entries, 36696 precache entries, 1102076 duplicated entries.

Dumping files...
0 file(s) dumped seccessfully.
If I try using swbf2full.py, the moment I press run, it says:

Code: Select all

 RESTART: D:\Program Files\Origin Games\STAR WARS Battlefront II\Tools\swbf2 dumper script\swbf2full.py 
and doesn't do anything.

Any help would be appreciated,
TrumpetPro

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1822
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 45 times
Been thanked: 1311 times

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

Post by daemon1 » Fri Jun 15, 2018 2:27 pm

TrumpetPro wrote:Whenever I try to "scan bundles" with UFBE, it finds 0 bundles
in latest update SWBF removed all SB/TOC files. UFBE doesnt support this game currently.

python scripts will not work either

TrumpetPro
beginner
Posts: 30
Joined: Wed Jul 06, 2016 1:51 am
Has thanked: 1 time
Been thanked: 1 time

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

Post by TrumpetPro » Fri Jun 15, 2018 2:29 pm

daemon1 wrote:
TrumpetPro wrote:Whenever I try to "scan bundles" with UFBE, it finds 0 bundles
in latest update SWBF removed all SB/TOC files. UFBE doesnt support this game currently.

python scripts will not work either
Oh OK. Any plans to fix the tool?

parzivail
ultra-n00b
Posts: 3
Joined: Wed Aug 03, 2016 10:46 pm
Has thanked: 1 time

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

Post by parzivail » Sun Jun 17, 2018 8:28 pm

TrumpetPro wrote:
daemon1 wrote:
TrumpetPro wrote:Whenever I try to "scan bundles" with UFBE, it finds 0 bundles
in latest update SWBF removed all SB/TOC files. UFBE doesnt support this game currently.

python scripts will not work either
Oh OK. Any plans to fix the tool?
The Frosty editor program is written in .NET, so it should be trivial to decompile it, see how it finds and loads files inside of the archives, and write a script that mimics that functionality to dump every file instead of just specific ones. I'll leave the implementation to the original Python script developers since they've been doing pretty good so far on their own.

TrumpetPro
beginner
Posts: 30
Joined: Wed Jul 06, 2016 1:51 am
Has thanked: 1 time
Been thanked: 1 time

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

Post by TrumpetPro » Mon Jun 18, 2018 12:50 am

parzivail wrote:
The Frosty editor program is written in .NET, so it should be trivial to decompile it, see how it finds and loads files inside of the archives, and write a script that mimics that functionality to dump every file instead of just specific ones. I'll leave the implementation to the original Python script developers since they've been doing pretty good so far on their own.
https://frostytoolsuitedev.gitlab.io/news.html
If you look here, it seems the new SWBF2 uses a sort of filelist.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1822
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 45 times
Been thanked: 1311 times

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

Post by daemon1 » Sun Jun 24, 2018 9:55 am

TrumpetPro wrote:Oh OK. Any plans to fix the tool?
i doubt i will have time for it this year
maybe in 2019
only maybe!

mrbeanjoga
ultra-n00b
Posts: 1
Joined: Wed Jun 27, 2018 4:49 am

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

Post by mrbeanjoga » Wed Jun 27, 2018 4:53 am

can i export animations?

mono24
mega-veteran
mega-veteran
Posts: 317
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 110 times
Been thanked: 54 times

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

Post by mono24 » Wed Jun 27, 2018 5:13 am

mrbeanjoga wrote:can i export animations?
No, but I am sure in the future that will be available in some form, there is a lot of interest by many out there, time will tell.
But to answer your question better, any asset the game has, animations included, can be exported, just cant be converted yet to usable formats that are known.

eyewee
ultra-n00b
Posts: 7
Joined: Fri May 11, 2018 7:46 pm

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

Post by eyewee » Mon Jul 09, 2018 1:05 am

Trying to get some NFS Rivals 3d map files, I've used bf4dumper python script from bfeditorORG. After +2h and an error, I've got many stuff exctracted (even if not all, due to an error) but not a single meshset file so I could use the MeshFile_Type_Reader... Trying to look every page of the forum, no solution for now. What is my error, folks?

btw. strange thing, walking around for another solution to extract Rivals game map meshes, I went to look for nfs edge. If one of you guys have seen the nfs edge file structure (which is kinda chinese modified nfs rivals), there are no cas/cat files and win32 folder contains .sb and .toc files, even the Data folder has only .das files,
should I forget nfs edge?..
You do not have the required permissions to view the files attached to this post.

mono24
mega-veteran
mega-veteran
Posts: 317
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 110 times
Been thanked: 54 times

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

Post by mono24 » Mon Jul 09, 2018 3:54 am

eyewee wrote:Trying to get some NFS Rivals 3d map files, I've used bf4dumper python script from bfeditorORG. After +2h and an error, I've got many stuff exctracted (even if not all, due to an error) but not a single meshset file so I could use the MeshFile_Type_Reader... Trying to look every page of the forum, no solution for now. What is my error, folks?
The game can be extracted easily with out errors and all assets in order and yes it can take hours, tell me your steps, what you did, what you used exactly and I am more than happy to help you get it all dumped.
Because there are so many scripts variations out there that its not even funny anymore, that is why Daemon wanted to be a universal Frostbite dumper for all games, its just is limited for now, and until then python scripts will do just fine.
eyewee wrote:btw. strange thing, walking around for another solution to extract Rivals game map meshes, I went to look for nfs edge. If one of you guys have seen the nfs edge file structure (which is kinda chinese modified nfs rivals), there are no cas/cat files and win32 folder contains .sb and .toc files, even the Data folder has only .das files,
should I forget nfs edge?..
I am sure someday an extractor/dumper will surface by whomever wants to tackle it, until then it cant be extracted, because I too am interested.

eyewee
ultra-n00b
Posts: 7
Joined: Fri May 11, 2018 7:46 pm

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

Post by eyewee » Mon Jul 09, 2018 12:10 pm

Well, first I used Bf4 Sbtoc Dumper by Frankelstner, than I wait for a while and I get this error :

Code: Select all

D:\JEUX - GAMES\NFS RIVALS DUMPED/bundles/res/levels/hp2/worldassets/rural/r03/dz1/brdg_r03_kingfisher_construction_platform_ramps/brdg_r03_kingfisher_construction_platform_ramps_physics_win32 fabcb39120813ec5 80000000603c0000e03c000038020000.hknondestruction
D:\JEUX - GAMES\NFS RIVALS DUMPED/bundles/res/levels/hp2/worldassets/rural/r03/dz1/brdg_r03_kingfisher_construction_platform_ramps/brdg_r03_kingfisher_construction_platform_ramps_mesh 64d29a3d3c053add b01b000000000000fc0000007000c000.mesh
D:\JEUX - GAMES\NFS RIVALS DUMPED/bundles/res/levels/hp2/worldassets/rural/r03/dz1/brdg_r03_kingfisher_construction_platform_ramps/brdg_r03_kingfisher_construction_platform_ramps_part_physics_win32 e83efae03aed4fef 8000000060090000400b0000f8010000.hknondestruction

Traceback (most recent call last):
  File "D:\JEUX - GAMES\FrostBite Tools\BFEDITOR.ORG METHOD\bf4dumper\bf4dumper.py", line 258, in <module>
    if "tocRoot2" in locals(): dumpRoot(tocRoot2)
  File "D:\JEUX - GAMES\FrostBite Tools\BFEDITOR.ORG METHOD\bf4dumper\bf4dumper.py", line 248, in dumpRoot
    dump(fname,targetDirectory)
  File "D:\JEUX - GAMES\FrostBite Tools\BFEDITOR.ORG METHOD\bf4dumper\bf4dumper.py", line 179, in dump
    writePayload(entry, targetPath, sourcePath)
  File "D:\JEUX - GAMES\FrostBite Tools\BFEDITOR.ORG METHOD\bf4dumper\bf4dumper.py", line 213, in casPayload
    LZ77.decompress(catEntry.path,catEntry.offset,catEntry.size, bundleEntry.originalSize,targetPath)
WindowsError: [Error -529697949] Windows Error 0xE06D7363
Whereas +5Gb of the game is already extracted. Not having much choise with this repeating error, I run Bf3_MeshFile_Type_Reader from here on xentax, I click on bf4 (otherwise it doesnt work) and the tool sorts all available chunks and meshes together. That's it, at this final stage I only get .mesh and chunk files, also itexture, which is, as I see, must not a big deal to transform into dds.
Now, what shall I do to get the 3d files with coordinates (talking about 3d map files)? As I've seen here viewtopic.php?f=10&t=7679&start=75
with nfs the run, map files have coords in the name of the file, which will be quite easy to just use these coords and put every piece in its place in order to assemble the entire map in 3ds max (or blender if not?).

mono24 wrote: The game can be extracted easily with out errors and all assets in order and yes it can take hours, tell me your steps, what you did, what you used exactly and I am more than happy to help you get it all dumped.
Because there are so many scripts variations out there that its not even funny anymore, that is why Daemon wanted to be a universal Frostbite dumper for all games, its just is limited for now, and until then python scripts will do just fine.

I am sure someday an extractor/dumper will surface by whomever wants to tackle it, until then it cant be extracted, because I too am interested.

Post Reply