READ THE RULES: Click here

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

Gameloft Custompak (obb unpacker)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Chipicao
ultra-veteran
ultra-veteran
Posts: 476
Joined: Thu Feb 03, 2011 11:18 am
Has thanked: 42 times
Been thanked: 302 times
Contact:

Gameloft Custompak (obb unpacker)

Post by Chipicao » Mon Apr 28, 2014 5:31 pm

obb files from Android games are supposedly plain zip archives, but I've come across one from GT Racing 2 that doesn't look like a zip. I started analyzing it and below is a quickbms script that should extract it.

Code: Select all

# Gameloft CustomPak extractor
# script for QuickBMS http://quickbms.aluigi.org
# tested with GT Racing 2 and The Dark Knight Rises .obb archives

endian big

get DUMMY long
get DATA_OFF long
get NAMES_OFF long
get FILES long
get BNAME basename

savepos LASTFILE
for i = 0 < FILES
	goto LASTFILE
	get OFFSET long	#relative to file start
	get SIZE long
	get NAME_OFF long	#relative to NAMES_OFF
	get DUMMY long
	savepos LASTFILE

	math NAME_OFF += NAMES_OFF
	goto NAME_OFF
	get NAME string
	set FNAME string BNAME
	string FNAME += /
	string FNAME += NAME

	log FNAME OFFSET SIZE
next i
Last edited by Chipicao on Wed Jul 23, 2014 3:52 pm, edited 2 times in total.
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Android .obb unpacker (non-zip)

Post by GMMan » Wed Jul 23, 2014 2:23 pm

It's actually a Gameloft CustomPak. You might meet some encryption on the filenames and/or file contents.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

User avatar
Chipicao
ultra-veteran
ultra-veteran
Posts: 476
Joined: Thu Feb 03, 2011 11:18 am
Has thanked: 42 times
Been thanked: 302 times
Contact:

Re: Gameloft Custompak (obb unpacker)

Post by Chipicao » Wed Jul 23, 2014 3:54 pm

Thanks for the info. I renamed the script and made a few changes to get rid of that quickbms warning.

I tested it with The Dark Knight Rises for Android and it seems to extract both .obb and .gla archives.
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.

weisuolong0
ultra-n00b
Posts: 5
Joined: Wed Aug 20, 2014 5:41 am

Re: Gameloft Custompak (obb unpacker)

Post by weisuolong0 » Thu Aug 21, 2014 5:31 pm

:lol: tankyou lz

how can you do this script step by step?
where shall i to study meathod of to extract obb bat and any other data files?
sorry ,my english is poor ..

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Gameloft Custompak (obb unpacker)

Post by GMMan » Sun Sep 14, 2014 5:24 pm

If you want to extract CustomPaks, use the CustomPak extractor. It's the most straightforward way of getting the files out. Otherwise, get comfy with a hex editor and study the format.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

Post Reply