Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Created June 7, 2016 08:00
Show Gist options
  • Save z3ntu/93d05b38d9ba10811c3f1f2d0ae214a6 to your computer and use it in GitHub Desktop.
Save z3ntu/93d05b38d9ba10811c3f1f2d0ae214a6 to your computer and use it in GitHub Desktop.
Gangstar: Miami Vindication game file research (mostly .bdae right now)
Offset Type Description
0x00 char[4] String "BRES" in ASCII (42 52 45 53)
0x04 u16 Byte order mark (BOM) apparently. 0xFE,0xFF for little endian
0x06 u16 Padding //(usually 0x0000)?
0x08 u32 3C 00 00 00
0x0c u16 Length of file in bytes.
0x0e ? ?
Beginning with 0x0e there are alternating 2 bytes 0x0000 and some kind of u16 value which is mostly just incrementation...

Until there is the content 0,0,0,764 in ASCII, which is also contained in the file version.nfo in the original .bdae (=zip) file. Then begins a listing of different files? or textures? or animations? in ASCII. Then it ends somewhere and then mostly 0x00 and random stuff comes.

Apparently this BRES/BDAE format(-header) is loosely based on the Nintendo BRRES format (maybe Gameloft got the format specs from Nintendo while developing for one of their platforms and kept it), see http://wiki.tockdom.com/wiki/BRRES_(File_Format)

-- Header --
BRES
-- Byte Order Mark --
FFFE
-- Padding --
0
-- Random value --
3C (HEX)
60 (DEC)
-- Lenght in bytes --
10304
-- Beginning of content --
222 (DE)
0 (0)
60 (3C)
948 (3B4)
2428 (97C)
2608 (A30)
5792 (16A0)
4512 (11A0)
4 (4)
0 (0)
0 (0)
24 (18)
28 (1C)
32 (20)
36 (24)
40 (28)
2428 (97C)
2468 (9A4)
2616 (A38)
2624 (A40)
2632 (A48)
2744 (AB8)
2752 (AC0)
2640 (A50)
2764 (ACC)
2648 (A58)
2656 (A60)
2664 (A68)
2804 (AF4)
2672 (A70)
2824 (B08)
2680 (A78)
2688 (A80)
2696 (A88)
2864 (B30)
2704 (A90)
2884 (B44)
2476 (9AC)
2896 (B50)
2920 (B68)
2484 (9B4)
3104 (C20)
2508 (9CC)
3116 (C2C)
3120 (C30)
3124 (C34)
3136 (C40)
3140 (C44)
3144 (C48)
2516 (9D4)
3156 (C54)
3160 (C58)
3168 (C60)
3272 (CC8)
3280 (CD0)
3452 (D7C)
3284 (CD4)
3292 (CDC)
3648 (E40)
3176 (C68)
3736 (E98)
3752 (EA8)
3756 (EAC)
3956 (F74)
3760 (EB0)
3776 (EC0)
3780 (EC4)
3784 (EC8)
3800 (ED8)
3804 (EDC)
4036 (FC4)
3808 (EE0)
3824 (EF0)
3828 (EF4)
3832 (EF8)
3848 (F08)
3852 (F0C)
3856 (F10)
3872 (F20)
3876 (F24)
3880 (F28)
3896 (F38)
3900 (F3C)
3904 (F40)
3920 (F50)
3924 (F54)
3928 (F58)
3944 (F68)
3948 (F6C)
3184 (C70)
2524 (9DC)
4196 (1064)
4200 (1068)
4208 (1070)
4216 (1078)
4232 (1088)
4236 (108C)
4248 (1098)
4252 (109C)
4256 (10A0)
4260 (10A4)
4272 (10B0)
4276 (10B4)
4280 (10B8)
4284 (10BC)
4296 (10C8)
4300 (10CC)
4304 (10D0)
4308 (10D4)
4320 (10E0)
4324 (10E4)
4328 (10E8)
4332 (10EC)
4344 (10F8)
4348 (10FC)
4352 (1100)
4356 (1104)
4368 (1110)
4372 (1114)
4376 (1118)
4380 (111C)
4392 (1128)
4396 (112C)
4400 (1130)
4404 (1134)
4416 (1140)
4420 (1144)
4424 (1148)
4428 (114C)
4440 (1158)
4444 (115C)
4448 (1160)
4452 (1164)
4464 (1170)
4468 (1174)
4472 (1178)
4476 (117C)
4488 (1188)
4492 (118C)
4496 (1190)
4500 (1194)
4512 (11A0)
4516 (11A4)
4520 (11A8)
4524 (11AC)
4536 (11B8)
4540 (11BC)
4544 (11C0)
4548 (11C4)
4560 (11D0)
4564 (11D4)
4568 (11D8)
4572 (11DC)
4584 (11E8)
4588 (11EC)
4592 (11F0)
4596 (11F4)
4608 (1200)
4612 (1204)
4616 (1208)
4620 (120C)
4632 (1218)
4636 (121C)
4640 (1220)
4644 (1224)
4656 (1230)
4660 (1234)
4664 (1238)
4668 (123C)
4680 (1248)
4684 (124C)
4688 (1250)
4692 (1254)
4704 (1260)
4708 (1264)
4996 (1384)
4712 (1268)
4716 (126C)
4728 (1278)
4732 (127C)
5008 (1390)
2532 (9E4)
5016 (1398)
5020 (139C)
5028 (13A4)
5056 (13C0)
5100 (13EC)
5108 (13F4)
5116 (13FC)
5124 (1404)
5796 (16A4)
5128 (1408)
5064 (13C8)
5188 (1444)
5804 (16AC)
5220 (1464)
5032 (13A8)
5036 (13AC)
5044 (13B4)
5240 (1478)
5284 (14A4)
5292 (14AC)
5300 (14B4)
5308 (14BC)
5812 (16B4)
5312 (14C0)
5248 (1480)
5372 (14FC)
5820 (16BC)
5404 (151C)
2572 (A0C)
5416 (1528)
5420 (152C)
5428 (1534)
5432 (1538)
5436 (153C)
5440 (1540)
5500 (157C)
5596 (15DC)
5604 (15E4)
5616 (15F0)
5628 (15FC)
5512 (1588)
5516 (158C)
5520 (1590)
5580 (15CC)
5688 (1638)
5696 (1640)
5708 (164C)
5720 (1658)
2604 (A2C)
5780 (1694)
5788 (169C)
9 (9)
11312 (2C30)
11312
-- break --
-- Position: 956 (0x3BC) --
-- (beginning of text block) --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment