• 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

Extracting Sound And Music Files From Bfbc2

53 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
$A[0] = $counter-1
Return $A

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
























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

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