Page 9 of 54

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

Posted: Sat Nov 25, 2017 2:16 am
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

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

Posted: Sat Nov 25, 2017 2:34 am
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.

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

Posted: Sat Nov 25, 2017 6:59 am
by daemon1
this is for NFS audio

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

Posted: Sat Nov 25, 2017 7:03 am
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.

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

Posted: Sat Nov 25, 2017 2:41 pm
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

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

Posted: Sat Nov 25, 2017 2:50 pm
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!

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

Posted: Sat Nov 25, 2017 4:17 pm
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.

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

Posted: Sat Nov 25, 2017 5:59 pm
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?

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

Posted: Sat Nov 25, 2017 6:02 pm
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?

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

Posted: Sat Nov 25, 2017 6:11 pm
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...

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

Posted: Sat Nov 25, 2017 6:27 pm
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

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

Posted: Sun Nov 26, 2017 2:51 am
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.

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

Posted: Sun Nov 26, 2017 8:31 am
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

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

Posted: Sun Nov 26, 2017 8:56 am
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
>>> 

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

Posted: Sun Nov 26, 2017 9:29 am
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