Zen Studios Serialized Python scripts: *.BGL + *.DBGL

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

Zen Studios Serialized Python scripts: *.BGL + *.DBGL

Post by LolHacksRule »

As of some table revision (beyond SouthPark?) and beyond at least in FX2/ZP (Mobile)/ZP2 (Consoles + Vita), the files in GL (GLES) are no longer PY files (skeleton_00), instead they are both one BGL file and one DBGL file, according to the game's library, they are serialized Python scripts, that get deserialized to Python scripts in the game's memory. I'm also seeing mentions of importing PYGL and sys in the library but I'm not so sure. Can someone figure out the serializing and deserialize the files for me? Thanks. Games support plaintext over binary and backward.

UPDATE: This isn't just for Pinball games, its for more too.
Last edited by LolHacksRule on Mon Mar 30, 2020 7:29 pm, edited 2 times in total.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Zen Studios Serialized Python scripts: *.BGL + *.DBGL

Post by LolHacksRule »

Here's more samples