Welcome to symthic forums! We would love if you'd register!
You don't have to be expert in bit baking, everyone is more than welcome to join our community.

You are not logged in.

Hey! If this is your first visit on symthic.com, also check out our weapon damage charts.
Currently we have charts for Battlefield 3, Call of Duty: Black Ops 2, Medal of Honor: Warfighter and Call of Duty: Modern Warfare 3

  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

1

Monday, January 6th 2014, 11:42am

Extracting audio files from Battlefield 4

Hello people, would anyone be able to make a tutorial on how to extract the audio files from Battlefield 4? I have tried the Python codes from http://www.bfeditor.org/ but there are errors in all of them that cannot be overcome. Someone please make a tutorial. Thankyou

Sheepnub

I pity the wool

(2,328)

Posts: 3,229

Date of registration
: Sep 20th 2013

Platform: PC

Location: Atlantis

Battlelog:

Reputation modifier: 14

  • Send private message

2

Monday, January 6th 2014, 11:55am

Element has explained this to me earlier on in a PM. I'll include the PM here. It worked -flawlessly- for me. Just follow it step-by-step.

~Bigtime credits to elementofprgress

Quoted from "'elementofprgress"

Its pretty easy to do. pretty much all your gonna have to do is install the exe files in the zip edit the input and output file paths in the scripts and run them.
bin.rar 21.0 MB
MEGA
that zip has everything you will need.

Okay, before you start I'll give you a few heads up. To properly extract EVERYTHING your going to have to temporary remove some of the XP1 files or else the script will crash on them and give you an error that literately says something along the lines of asdf "yeah we haven't implemented this yet" You can just move them to anywher but the bf4 directory and put them back later. These files are:
D:\Program Files (x86)\Origin Games\Battlefield 4\Data\Win32\ xp1weapons.sb/.toc files and xp1weaponchunks
D:\Program Files (x86)\Origin Games\Battlefield 4\Update\Patch\Data\Win32\ xp1weapons.sb\.toc
and the whole D:\Program Files (x86)\Origin Games\Battlefield 4\Update\Patch\Data\Win32\XP1 folder
Also take a min and read the commented text(everthing after a "#" basically all the red text) in the scripts your running. Really most the instructions, options, and explanations are there.
Keep everything in the folder that unzips together in that folder and don't t try and run the scripts from anywhere in the windows Users folder. ie. MyDocuments/Downloads/Desktop. idk why but the scripts freak out when you do(at least in win 8.1. file permission issues most i think)
The audio extraction may error out on you. if it does remove the ebx file causing the issue(it will tell you the filename and path) and try again. if it errors again send me the traceback error log.
To extract all the raw data and audio is gonna take up a TON of HDD space. Something along the lines of 100 GBs
If you get stuck i'm always hanging around IRC and TS. Now always there, but always idleing there lol. If i'm no where to be found i recently showed tehmoriz how to do all this so he'd be able to help you out most likely. If he isn't around you can check out Official BF Editor Forums -> Battlefield 3? . Franklester post everything there and has answered a lot of common issues and explained things and stuff in his post.

Okay the first thing you need to do is install python exe and the vcredist.
once you do that right click dumper.py and click edit in idle. a window with the script will open. edit the bf4directory to where your bf4 is install and the output to where you wanna dump the all the data to.

Then press F5, it will ask you to save, okay. then the script will start running. Now you wait and wait and wait for it to finish lol. Depending on your pc 15-45 mins normally.

Once its done(you will know because the stream of files will stop and you will see ">>>" at the bottom) your gonna have to edit another part of the script and run it again.

right below where you changed the files paths you will see two lines that say tocRoot=bf4Directory. one will have "##" infront of it. The ## comments out that line(ie the script does not use it)

So during the first run your extracted all the patch data, now you want the nonpatch data. to do this you just change what line has "##" infront of it. then press f5, save and let it run. this part shouldn't take as long but still takes a bit. NOTE: when ever a new patch comes out or you are reextracting data you always wanna extract the patch data first then the nonpatch. the script will never overwrite data that is in the directory you are dumping the game to. When it is all done you can close all the python idle windows.

You now have all the raw data extracted you can now extract the audio or convert the raw data to text files. Doesn't matter what one you do first.

CONVERTING THE RAW DATA TO TEXT
To convert it to text your gonna right click ebxtotext.py and edit in idle and modify the input folder to match where you dumped the rawdata to \bundles\ebx filepath. (also feel free to change ".dice" to ".txt")

after changing the filepath press f5, save and let it run. At first and for a while it will look like its doing nothing, but its building the GUID table. This can take a while. Then all of a sudden the IDLE window will start streaming with filenames its converting to .txt. Just like before you know its done when it stops pumping out filenames and will see ">>>" at the bottom of the window. then close all the idle windows when your done.

EXTRACTING AUDIO
Change all the file paths right in the beginning to match your corresponding filepaths on your system. press f5 blah blah blah. You probally get it at this point huh? lol

after typing this all out it seems like a lot and i probably made it seem more complex then it is lol but really its SUPER easy once you get the jist of it. If you have any questions about any of the extra options in the scripts, python, or are curious to what the scripts are actually doing and how they work just track me down and let me know.

good luck
"I put aside a few sceptics, the types of decency in the history of philosophy: the rest haven't the slightest conception of intellectual integrity."
Friedrich Nietzsche


Best of epic quotes :D

Spoiler Spoiler

Just realized it's 4/20 tomorrow


Thanks for the heads up!
*Logs out of Symthic in preparation*

Hardline is a fun and sometimes silly Cops and Robbers sorta thing and I think that's great. Or it would be if it didn't suck.

>littlebird passanger, semi-auto frag rounds
>gunship OP

Meanwhile at DICE-headquarters during BF4's release:

I'm pretty sure there's a massive post-it on every desk "DON'T FUCKING TOUCH ANYTHING THAT IS ACTUALLY DOING WHAT IT'S SUPPOSED TO BE DOING"

UCAV:
"Hey guys remember how stupid prenerf mav was?"

"Lets add c4 to it."

The World Champion went to China once.

They called me a Gweilo.

So I kicked a big fucking hole in their wall and let all the Mongolians in.

just thought I'd share.


The thought of Assaults running out of ACE 23 rounds mid firefight, Engineers facing the rear of an unaware MBT with no rockets left, Recons unable to...Whatever the fuck they do. These are the things that keep me up at night ;(


About hunturk:
I don't know what's funnier, the video itself of the fact that an unlisted video has more views than most of your normal videos :P

...


You just live to hit people upside the noggin with a Math Bomb, don't you?

[context] Maybe it's the UK's overly aggressive porn filter at work. After all, it does have the word "monkey" in it and monkeys have been known to have sex so...


Previously, at DICE HQ:
"Ok guys, the password is "epic dream worlds"; everyone take a letter and do your best to turn it into into something random that we can put into a picture!"


I assume a functional game (BF4) also.

Aww!
*pinches cheeks*
So cute!


But but but

He's a Youtuber ;(

There's no way he doesn't know what he's talking about


  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

3

Monday, January 6th 2014, 12:12pm

So all you do is remove those two files and it will continue? A few hours ago i posted a thread at stack overflow, i said that the error happen just after "XP1Weapons.toc", I never knew that you actually had to 'delete' that file to get it to continue, thanks anyway, i will try it once it finishes downloading. Btw, before when i tried it, i thought that the asdf was a random string so i went removing those things that check for noncas bundles/chunks and it finished, but when converting to audio, it would only convert less than 40% of the files. Python is pretty convenient in these things.

  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

4

Monday, January 6th 2014, 12:19pm

I have one question about the code, when you run it first time, you run it like this:

tocRoot=bf4Directory+"\\"+r"Update\Patch\Data\Win32"
##tocRoot=bf4Directory+"\\"+r"Data\Win32"
When you run it the second time, do you run it with the unpatched like this?

##tocRoot=bf4Directory+"\\"+r"Update\Patch\Data\Win32"
tocRoot=bf4Directory+"\\"+r"Data\Win32"
Like running it twice with the patch first, and without the patch second?

Sheepnub

I pity the wool

(2,328)

Posts: 3,229

Date of registration
: Sep 20th 2013

Platform: PC

Location: Atlantis

Battlelog:

Reputation modifier: 14

  • Send private message

5

Monday, January 6th 2014, 12:21pm

that's correct

-dont ask me why it has to be done like that though :|
"I put aside a few sceptics, the types of decency in the history of philosophy: the rest haven't the slightest conception of intellectual integrity."
Friedrich Nietzsche


Best of epic quotes :D

Spoiler Spoiler

Just realized it's 4/20 tomorrow


Thanks for the heads up!
*Logs out of Symthic in preparation*

Hardline is a fun and sometimes silly Cops and Robbers sorta thing and I think that's great. Or it would be if it didn't suck.

>littlebird passanger, semi-auto frag rounds
>gunship OP

Meanwhile at DICE-headquarters during BF4's release:

I'm pretty sure there's a massive post-it on every desk "DON'T FUCKING TOUCH ANYTHING THAT IS ACTUALLY DOING WHAT IT'S SUPPOSED TO BE DOING"

UCAV:
"Hey guys remember how stupid prenerf mav was?"

"Lets add c4 to it."

The World Champion went to China once.

They called me a Gweilo.

So I kicked a big fucking hole in their wall and let all the Mongolians in.

just thought I'd share.


The thought of Assaults running out of ACE 23 rounds mid firefight, Engineers facing the rear of an unaware MBT with no rockets left, Recons unable to...Whatever the fuck they do. These are the things that keep me up at night ;(


About hunturk:
I don't know what's funnier, the video itself of the fact that an unlisted video has more views than most of your normal videos :P

...


You just live to hit people upside the noggin with a Math Bomb, don't you?

[context] Maybe it's the UK's overly aggressive porn filter at work. After all, it does have the word "monkey" in it and monkeys have been known to have sex so...


Previously, at DICE HQ:
"Ok guys, the password is "epic dream worlds"; everyone take a letter and do your best to turn it into into something random that we can put into a picture!"


I assume a functional game (BF4) also.

Aww!
*pinches cheeks*
So cute!


But but but

He's a Youtuber ;(

There's no way he doesn't know what he's talking about


  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

6

Monday, January 6th 2014, 1:56pm

I ended up with this error
XP1_001.toc

Traceback (most recent call last):
File "C:\Users\Daniel\Downloads\bin\bin\dumper.py", line 366, in <module>
main()
File "C:\Users\Daniel\Downloads\bin\bin\dumper.py", line 363, in main
dump(fname,outputfolder)
File "C:\Users\Daniel\Downloads\bin\bin\dumper.py", line 199, in dump
asdf #noncas bundle. Does not happen yet. I suppose the format is different anyway, so I might as well stop here.
NameError: global name 'asdf' is not defined
>>>

  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

7

Monday, January 6th 2014, 2:10pm

I also have another error, when converting all of the dumped files to audio files, most of the audio files are missing, here is a pic Screenshot by Lightshot
In the window C:\hexing\bf4 dump\sounds\levels\mp_naval there is only one folder, 'music' with one file in it, in the python window, there should be the folders 'music','sfx','ambients' and lots of files, but they don't show, why?

Sheepnub

I pity the wool

(2,328)

Posts: 3,229

Date of registration
: Sep 20th 2013

Platform: PC

Location: Atlantis

Battlelog:

Reputation modifier: 14

  • Send private message

8

Monday, January 6th 2014, 6:40pm

asdf #noncas bundle. Does not happen yet. I suppose the format is different anyway, so I might as well stop here.
NameError: global name 'asdf' is not defined
>>>


---->

Quoted

To properly extract EVERYTHING your going to have to temporary remove some of the XP1 files or else the script will crash on them and give you an error that literately says something along the lines of asdf "yeah we haven't implemented this yet" You can just move them to anywher but the bf4 directory and put them back later. These files are:
D:\Program Files (x86)\Origin Games\Battlefield 4\Data\Win32\ xp1weapons.sb/.toc files and xp1weaponchunks
D:\Program Files (x86)\Origin Games\Battlefield 4\Update\Patch\Data\Win32\ xp1weapons.sb\.toc
and the whole D:\Program Files (x86)\Origin Games\Battlefield 4\Update\Patch\Data\Win32\XP1 folder


For the second one: you forgot to extract -something-
as i said, follow it step-by-step. Don't skip over a single word.
"I put aside a few sceptics, the types of decency in the history of philosophy: the rest haven't the slightest conception of intellectual integrity."
Friedrich Nietzsche


Best of epic quotes :D

Spoiler Spoiler

Just realized it's 4/20 tomorrow


Thanks for the heads up!
*Logs out of Symthic in preparation*

Hardline is a fun and sometimes silly Cops and Robbers sorta thing and I think that's great. Or it would be if it didn't suck.

>littlebird passanger, semi-auto frag rounds
>gunship OP

Meanwhile at DICE-headquarters during BF4's release:

I'm pretty sure there's a massive post-it on every desk "DON'T FUCKING TOUCH ANYTHING THAT IS ACTUALLY DOING WHAT IT'S SUPPOSED TO BE DOING"

UCAV:
"Hey guys remember how stupid prenerf mav was?"

"Lets add c4 to it."

The World Champion went to China once.

They called me a Gweilo.

So I kicked a big fucking hole in their wall and let all the Mongolians in.

just thought I'd share.


The thought of Assaults running out of ACE 23 rounds mid firefight, Engineers facing the rear of an unaware MBT with no rockets left, Recons unable to...Whatever the fuck they do. These are the things that keep me up at night ;(


About hunturk:
I don't know what's funnier, the video itself of the fact that an unlisted video has more views than most of your normal videos :P

...


You just live to hit people upside the noggin with a Math Bomb, don't you?

[context] Maybe it's the UK's overly aggressive porn filter at work. After all, it does have the word "monkey" in it and monkeys have been known to have sex so...


Previously, at DICE HQ:
"Ok guys, the password is "epic dream worlds"; everyone take a letter and do your best to turn it into into something random that we can put into a picture!"


I assume a functional game (BF4) also.

Aww!
*pinches cheeks*
So cute!


But but but

He's a Youtuber ;(

There's no way he doesn't know what he's talking about


  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

9

Tuesday, January 7th 2014, 1:07am

K thanks, i didn't see the whole XP1 folder from the quote.

  • "xGh0stSn1p3r" started this thread

Posts: 34

Date of registration
: Jan 6th 2014

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 3

  • Send private message

10

Tuesday, January 7th 2014, 6:24am

Thanks for helping, i got all of the audio decoded to audio files, it's like more than 30gb just for audio