Gameloft Framework (GLF, 2017-present): LZ4 data serialization

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Gameloft Framework (GLF, 2017-present): LZ4 data serialization

Post by LolHacksRule »

I want to view the game data, I was stumped on their OBB (APK for Disney Getaway Blast) until I figured out its a ZIP with a custom header for likely the index (idx header) (I can open with 7Zip fine or repair using WinRAR), but many of the files in them, even the TEXTURES AND MODELS have this header of GCBF (Game/Gameloft/Code Binary Format/Framework?), along with the data in a funky format. https://we.tl/t-OEeYMs27KG.

Formats confusing:
TGA/PNG: Usually a ZIP with split KTX'ed files
BDAE: ZIP with NFOs, a hash and the compressed BDAE.
SWF: ZIP with TGAs (SERIALIZED) and SWF.
GAME/LEVEL/TX(LEGO/GETAWAYBLAST/few in Tycoon), UI (Car Tycoon): JSON.
XLS/XLSX (All games)

UPDATE: Glitch isn't an engine, its a graphics api according to internal SDK mentions
Last edited by LolHacksRule on Fri Mar 27, 2020 4:28 pm, edited 9 times in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Gameloft Glitch Engine (Lego Legacy OPEN BETA): Unknown data serialization

Post by Ekey »

They are probably compressed by something from the LZ series. It looks like a LZ4
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Gameloft Glitch Engine (Lego Legacy OPEN BETA): Unknown data serialization

Post by LolHacksRule »

Ok thanks for that. I don't see LZ anywhere in the libraries and DLLs... I see LZMA though...

Code: Select all

Header (4bytes): 47 43 42 46
Byte ordering? (1byte): 02 (?), 07, (?), 09, (?), 50, (?), 7A (??)
Zero (7bytes)
Unknown (1byte): 18
Zero (3bytes)
Binary data before packed data (?bytes)
Zero (11bytes)
Packed data to end (?bytes)
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Gameloft Glitch Engine (Lego Legacy/Disney Getaway Blast): Unknown text/script data serialization

Post by LolHacksRule »

The Car Tycoon beta ditches this for most files for some reason...
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Gameloft Glitch Engine (Lego Legacy/Disney Getaway Blast): Unknown text/script data serialization

Post by LolHacksRule »

Turns out I found this https://aluigi.altervista.org/bms/gcbf_versus.bms, sorry for the repost on this topic...
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Gameloft Glitch Engine (2017-present): LZ4 data serialization

Post by LolHacksRule »

Could the script have support for autodecompressing LZ4'ed data in zip-compressed files like BDAE, PNG and TGA?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gameloft Glitch Engine (2017-present): LZ4 data serialization

Post by aluigi »

What you mean?
The files compressed with lz4 are those having the 32bit field "Lz4 " in the table of the archive.
KL3W
Posts: 41
Joined: Sun Jan 02, 2022 1:19 pm

Re: Gameloft Framework (GLF, 2017-present): LZ4 data serialization

Post by KL3W »

Hey!

I am having troubles with BDAE files too for LEGO STAR WARS CASTAWAYS videogame?

Any thing to open these files? It seems BDAE files are BRRES files but I can't open them...