Jump to content
Official BF Editor Forums

Extracting Sound And Music Files From Bfbc2


Recommended Posts

Hello. Im working on multi offset extraction :)

#include <File.au3>
#include <Array.au3>
#include <StaticConstants.au3>
#include <String.au3>

$f = @ScriptDir & "\a.res"
$size = FileGetSize($f)
$file = FileOpen($f, 0)
$chars = FileRead($file, $size)

$Hex = _StringToHex($chars)
MsgBox(0,"f", $Hex)

$DD = _ReadOffsets($Hex, "FFFFFF")
_ArrayDisplay($DD, "D")

Func _ReadOffsets($Data, $Value)
$counter = 1
Dim $A[2]
While Stringinstr($Data, $Value, 0, $counter) <> 0
	$pos = "0x" & Hex(Stringinstr($Data, $Value, 0, $counter)/2)
	Redim $A[$counter+1]
	$A[$counter] = $pos
	$counter += 1
WEnd
$A[0] = $counter-1
Return $A
EndFunc

This code give us Array with 0 element:Number of founded offsets next elements: Offsets in Hex

Example:

[0]|21

[1]|0x00000239

[2]|0x0000047F

[3]|0x0000048F

[4]|0x000004FD

[5]|0x000005DF

[6]|0x00000611

[7]|0x000042D4

[8]|0x000042ED

[9]|0x000042F1

[10]|0x000042F6

[11]|0x0000498F

[12]|0x0000697F

[13]|0x00006BAA

[14]|0x0000704B

[15]|0x00007EE4

[16]|0x0000806E

[17]|0x00008072

[18]|0x000082D0

[19]|0x000082D4

[20]|0x000084F7

[21]|0x000084FB

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 65
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 years later...

I'm also interested in this, there has been a pack online but it has been removed. This one was also recorded ingame.

I am capable of getting the res files in wav format.

The fire sounds are in .wave format, if you adjust their header and rename them to res, they tend to work, but not all of them (the ones I need :()

- my mistake, easy peasy ;)

Edited by KENNITHH
Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...
On 5/13/2017 at 0:53 AM, Crazy--Coyote said:

I know its like 2017, but if anybody still follows this thread, i am in the process of building the weapon sounds from the extracted contents. im also seperating the Foley sounds (reloads, grenades, etc.) and putting those together. if anybody is interested in these, PM me.

Yes! I'm definately interested because bc2 had the most awesome sounds. I want the soldier reaction sounds rather than weapons. That whiny US sniper voice...was awesome.. If you torrent the package, I can help you spread with uploads. add me on steam please for discussion

http://steamcommunity.com/id/nondata/

Link to comment
Share on other sites

  • 1 year later...
On 7/10/2017 at 6:50 AM, rockypocky said:

Yes! I'm definately interested because bc2 had the most awesome sounds. I want the soldier reaction sounds rather than weapons. That whiny US sniper voice...was awesome.. If you torrent the package, I can help you spread with uploads. add me on steam please for discussion

http://steamcommunity.com/id/nondata/

Let me know if you ever got them!

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...

Can anyone in here do the same for Battlefield Bad Company 1? specifically I am looking for the M1A2 Abrams engine sounds; starting up, idle, when moving etc. These sounds were also used in the Bad Company 2 Closed Beta on the PS3. I never knew how to extract these sounds. Thank you so much if someone actually cares to help me out here, been trying to find something for a decade.

Link to comment
Share on other sites

On 11/27/2020 at 9:19 PM, Timb3rwolf said:

It's been 10 years since this thread which started with the xBox gamefiles. I have perfect and easy to use tools to extract .fbrb files. The thing is "Is this possible with the PC files?"

If yes, I'd love to know and help us all to complete this with 100% satisfaction. 

No.

On 1/5/2021 at 5:40 PM, soundsarelife123 said:

Can anyone in here do the same for Battlefield Bad Company 1? specifically I am looking for the M1A2 Abrams engine sounds; starting up, idle, when moving etc. These sounds were also used in the Bad Company 2 Closed Beta on the PS3. I never knew how to extract these sounds. Thank you so much if someone actually cares to help me out here, been trying to find something for a decade.

It's the same procedure as with BC2 except that you have to change the xma version in the bat file.

for /r %%i in (*.str) do "%CD%\xma_test.exe" "%%i" -1 -r "%%i.xm"	#XMA version 1 (BC1)
for /r %%i in (*.str) do "%CD%\xma_test.exe" "%%i" -2 -r "%%i.xm"	#XMA version 2 (BC2, BF1943)
#You can see the help menu if you open xma_test.exe alone through the cmd.

The offsets you need to apply with BC1 are 0x00, 0x2c, 0x6c, 0x28.

BFBC1 - Tank M1A2 SoundFX (Mega Link)

Btw has anyone the Xbox 360 version of BC2 Vietnam DLC ? 

Edited by Neyxos
Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...
On 3/12/2021 at 8:50 PM, PTFO_JAM said:

i always wanted the VO from bad company 2, has anyone tried to extract them?

Russian ? US ? German VO ? 

Edited by Neyxos
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

Announcements




×
×
  • Create New...