READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Star Wars Knights of the Old Republic iOS ".bzf"

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Shurtugal
ultra-n00b
Posts: 3
Joined: Fri May 03, 2013 6:38 pm

Star Wars Knights of the Old Republic iOS ".bzf"

Post by Shurtugal » Tue Apr 29, 2014 12:54 am

I would like to request support for the "bzf" file format for this game. I believe it contains either .bif or .2da files. I am unsure of what the files were on the PC version atm. The bzf files are located in the data folder just like in the PC version. I have source code for an old Linux project meant to extract these files. I was able to port it to iOS but unfortunately it does not recognize these bzf files. However I came across an open source implementation of the Bioware Aurora engine. and one of the headers deals with decompressing the zip files. I however am not knowledgeable enough to make use of it. Perhaps you might be able to.

Linux Project: http://sourceforge.net/projects/biounzi ... /biounzip/
OpenSource Reimplementation of Bioware Aurora Engine: https://github.com/xoreos/xoreos/blob/m ... /zipfile.h
One of the bzf files: https://www.mediafire.com/?75jo6pzgaatior1 [119KB]

That's currently all the information I have. If I find anything new that might help I shall add it here.

Edit: forgot to include sample file.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1637
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Star Wars Knights of the Old Republic iOS ".bzf"

Post by Ekey » Thu May 01, 2014 7:43 am

Simple script

Code: Select all

# Star Wars Knights of the Old Republic (iOS) (BZF format)
# 
# Written by Ekey (h4x0r)
# http://forum.xentax.com
# 
# script for QuickBMS http://quickbms.aluigi.org

comtype LZMA_DYNAMIC

idstring "BIFFV1\x20\x20"
get FILES long
get NULLS long
get DUMMY long
get PACKSIZE ASIZE
set j FILES
math j -= 1

for i = 0 < FILES
    get FILEID long
    get OFFSET long
    get SIZE long
    get DUMMY long
    savepos TEMP
	
	if i == j
	   set ZSIZE PACKSIZE
	   math ZSIZE - OFFSET
	   clog "" OFFSET ZSIZE SIZE
	else
	   get FILEID2 long
	   get OFFSET2 long
	   get SIZE2 long
	   get DUMMY2 long
	
	   math OFFSET2 -= OFFSET
	   set ZSIZE OFFSET2
	   clog "" OFFSET ZSIZE SIZE
	endif
	goto TEMP
next i

Shurtugal
ultra-n00b
Posts: 3
Joined: Fri May 03, 2013 6:38 pm

Re: Star Wars Knights of the Old Republic iOS ".bzf"

Post by Shurtugal » Thu May 01, 2014 1:54 pm

Ekey wrote:Simple script

Code: Select all

# Star Wars Knights of the Old Republic (iOS) (BZF format)
# 
# Written by Ekey (h4x0r)
# http://forum.xentax.com
# 
# script for QuickBMS http://quickbms.aluigi.org

comtype LZMA_DYNAMIC

idstring "BIFFV1\x20\x20"
get FILES long
get NULLS long
get DUMMY long
get PACKSIZE ASIZE
set j FILES
math j -= 1

for i = 0 < FILES
    get FILEID long
    get OFFSET long
    get SIZE long
    get DUMMY long
    savepos TEMP
	
	if i == j
	   set ZSIZE PACKSIZE
	   math ZSIZE - OFFSET
	   clog "" OFFSET ZSIZE SIZE
	else
	   get FILEID2 long
	   get OFFSET2 long
	   get SIZE2 long
	   get DUMMY2 long
	
	   math OFFSET2 -= OFFSET
	   set ZSIZE OFFSET2
	   clog "" OFFSET ZSIZE SIZE
	endif
	goto TEMP
next i
Thank you so much. I am unfamiliar with this tool however so I have a question. It does work great, but is it possible to extract the files with their actual names or am i mistaken and that these are their real names?

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1637
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Star Wars Knights of the Old Republic iOS ".bzf"

Post by Ekey » Thu May 01, 2014 8:23 pm

Archives not contain real names, only ID's.

Post Reply