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!
kschade45
ultra-n00b
Posts: 9
Joined: Thu Nov 23, 2017 1:49 am
Has thanked: 3 times

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

Post by kschade45 »

Tried the script on the Python full game dump and got this error.

Code: Select all

Traceback (most recent call last):
  File "E:\Kiennen\Games\EXTRACT\swbf2_sounds\fb3decoder.py", line 576, in <module>
    main()
  File "E:\Kiennen\Games\EXTRACT\swbf2_sounds\fb3decoder.py", line 566, in main
    dbx=Dbx(f,relPath)
  File "E:\Kiennen\Games\EXTRACT\swbf2_sounds\fb3decoder.py", line 343, in __init__
    inst=self.readComplex(instanceRepeater.complexIndex,f,True)
  File "E:\Kiennen\Games\EXTRACT\swbf2_sounds\fb3decoder.py", line 369, in readComplex
    cmplx.fields.append(self.readField(fieldIndex,f))
  File "E:\Kiennen\Games\EXTRACT\swbf2_sounds\fb3decoder.py", line 422, in readField
    (typ,length)=numDict[fieldDesc.type]
KeyError: 16685
mono24
double-veteran
double-veteran
Posts: 840
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 435 times
Been thanked: 235 times

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

Post by mono24 »

OrangeC wrote:Is it possible to convert an ebx file to txt in the newer games?
Did you managed to convert ebx2txt for NFS Payback? I still have no luck not even with audio conversion, tools/scripts for SWBF2beta or FULL do not work.
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 »

this is for NFS audio
You do not have the required permissions to view the files attached to this post.
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 »

kschade45 wrote:Still having issues with the audio extractor script. Loads the tools and nothing else happens. Is there anything special I need to do or look for?
No, audio script works like before and it extracts the audio. You need to set in/out paths, path to ealayer3.exe as is was in other games, and it should work.
Hornedal
ultra-n00b
Posts: 3
Joined: Sat Jun 10, 2017 2:25 am
Has thanked: 1 time

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

Post by Hornedal »

I used the NFS fb3decoder and it detected everytthing and ran down a list of all the ebx files but there were no audio files extracted...

Edit: this was for the SWBF2 dumps
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 »

Hornedal wrote:I used the NFS fb3decoder and it detected everytthing and ran down a list of all the ebx files but there were no audio files extracted...

Edit: this was for the SWBF2 dumps
use SWBF2 decoder for SWBF2 dumps!
kschade45
ultra-n00b
Posts: 9
Joined: Thu Nov 23, 2017 1:49 am
Has thanked: 3 times

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

Post by kschade45 »

I have all the paths set fine. (Using your tool to dump the whole game in folders)

Code: Select all

#Choose where you dumped the files and where to put the decoded audio:
dumpDirectory   = r"E:\Kiennen\Games\EXTRACT\SWBF2Dump"
#dumpDirectory   = r"H:\my projects\FrostByte\extracted_data"
targetDirectory = r"E:\Kiennen\Games\EXTRACT\swbf2sound"

#Download Zench's tool so the script can handle EALayer3.
ealayer3Path=r"E:\Kiennen\Games\EXTRACT\ealayer3-0.7.0-win32\ealayer3.exe"
Then it just loads the tools and ends, unless I'm not patient enough and something will start to happen in a little.

Code: Select all

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 
XAS1 dll detected.
EASpeex dll not detected.
EALayer3 tool detected.
>>> 
Should I try on a different system maybe? My PC always seems to give me weird issues.
Hornedal
ultra-n00b
Posts: 3
Joined: Sat Jun 10, 2017 2:25 am
Has thanked: 1 time

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

Post by Hornedal »

daemon1 wrote:
Hornedal wrote:I used the NFS fb3decoder and it detected everytthing and ran down a list of all the ebx files but there were no audio files extracted...

Edit: this was for the SWBF2 dumps
use SWBF2 decoder for SWBF2 dumps!
Where can I find it?
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 »

Hornedal wrote:
daemon1 wrote:
Hornedal wrote:I used the NFS fb3decoder and it detected everytthing and ran down a list of all the ebx files but there were no audio files extracted...

Edit: this was for the SWBF2 dumps
use SWBF2 decoder for SWBF2 dumps!
Where can I find it?
first post here?
Hornedal
ultra-n00b
Posts: 3
Joined: Sat Jun 10, 2017 2:25 am
Has thanked: 1 time

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

Post by Hornedal »

Still having problems with the decoder. It reads in the EBX files but no sound files appear in the directory. Also got this error:

Code: Select all

Traceback (most recent call last):
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 576, in <module>
    main()
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 566, in main
    dbx=Dbx(f,relPath)
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 343, in __init__
    inst=self.readComplex(instanceRepeater.complexIndex,f,True)
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 369, in readComplex
    cmplx.fields.append(self.readField(fieldIndex,f))
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 422, in readField
    (typ,length)=numDict[fieldDesc.type]
KeyError: 16685
Update: I manage to extract the lightsaber sound files by specifying the ebx directory to only lightsaber. I assume, error appears becasue not all chunks or ebx files has been extracted...
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 »

Hornedal wrote:Still having problems with the decoder. It reads in the EBX files but no sound files appear in the directory. Also got this error:

Code: Select all

Traceback (most recent call last):
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 576, in <module>
    main()
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 566, in main
    dbx=Dbx(f,relPath)
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 343, in __init__
    inst=self.readComplex(instanceRepeater.complexIndex,f,True)
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 369, in readComplex
    cmplx.fields.append(self.readField(fieldIndex,f))
  File "H:\Dumpstuff\SWBF2\swbf2 audio converter\fb3decoder.py", line 422, in readField
    (typ,length)=numDict[fieldDesc.type]
KeyError: 16685
Update: I manage to extract the lightsaber sound files by specifying the ebx directory to only lightsaber. I assume, error appears becasue not all chunks or ebx files has been extracted...
no its because some EBX files you have there are NOT audio EBX, and i had no time to fix it.
just remove non-audio EBX
mono24
double-veteran
double-veteran
Posts: 840
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 435 times
Been thanked: 235 times

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

Post by mono24 »

daemon1 wrote:this is for NFS audio
Thank you, it works nicely, now only thing left is the ability to convert ebx2txt and we are all set hehe.
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 »

mono24 wrote:
daemon1 wrote:this is for NFS audio
Thank you, it works nicely, now only thing left is the ability to convert ebx2txt and we are all set hehe.
hehe
You do not have the required permissions to view the files attached to this post.
mono24
double-veteran
double-veteran
Posts: 840
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 435 times
Been thanked: 235 times

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

Post by mono24 »

daemon1 wrote:hehe
Thank you that was quick.
so far every line displays the follwong:

Code: Select all

Unknown field type: 49709 File name: 
about 615 lines then this:

Code: Select all

Traceback (most recent call last):
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 422, in <module>
    main()
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 45, in main
    createGuidTable()
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 62, in createGuidTable
    dbx=Dbx(f,relPath)
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 241, in __init__
    self.instances.append( (instanceGUID,self.readComplex(instanceRepeater.complexIndex,f,True)) )
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 264, in readComplex
    cmplx.fields.append(self.readField(fieldIndex,f))
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 264, in readComplex
    cmplx.fields.append(self.readField(fieldIndex,f))
  File "D:\11-Game ReverseEngineering\NeedForSpeed_2016_UTILITIES\BF3_decoder\ebx2text_nfsp.py", line 271, in readField
    field=Field(fieldDesc,f.tell())
MemoryError
>>> 
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 »

mono24 wrote:
daemon1 wrote:hehe
Thank you that was quick.
that was for swbf2

i never had time to correct that old script to properly parse types. maybe some day
Post Reply