Page 1 of 1

Final Fantasy XII: The Zodiac Age - unpacking a binary file

Posted: Wed May 26, 2021 4:58 am
by dclem
I have binary packed file likely containing a series of if/then action statements if decoded and unpacked to modify.
I know exactly what to seek and modify within the file, and what to look for when unpacking it for modification.

Re: help unpacking a binary file

Posted: Wed May 26, 2021 7:08 am
by ikskoks
What is the name of the game this file is from?

Why do you think it has if/then action statements? And what are you planning to do with them after unpacking?

Re: help unpacking a binary file

Posted: Wed May 26, 2021 7:30 am
by dclem
ikskoks wrote:
Wed May 26, 2021 7:08 am
What is the name of the game this file is from?

Why do you think it has if/then action statements? And what are you planning to do with them after unpacking?
Final Fantasy XII: The Zodiac Age
(JRPG game)

This file is a section of the single packed binary (battle_pack.bin). The battle_pack file contains a bunch of sections when it's unpacked, which houses a bunch of the game's mechanics.
Section7.bin (in particular) holds the Gambit-Target information, which, for this game, function as a simplified programming language; basically allowing to automate actions.

e.g. There's a bunch like:

Code: Select all

If a Target has < 30% Health :: Do This Action (Cure)
or:

Code: Select all

If a Target is weak against element Fire :: Do this Action on them (Fire magic)
and so on.

I plan to understand more and modify these 'if/then-esque' game-target statements to something a little more unique.