• Announcements

    • Detrux

      Site Relaunched   10/13/2016

      Welcome back to BFEditor.org! We've upgraded the forum software, removed the spammers, and improved security. Apologies for the downtime! Det
Xevin

Extracting Sound And Music Files From Bfbc2

55 posts in this topic

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

Share this post


Link to post
Share on other sites

Can someone please post a download link to all the sound files? I do not own a xbox version of bc2 so I can't do it myself :( Please help! I really want these files.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now