• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
April 30, 2024, 06:29:38 pm

News:

Don't be hasty to start your own mod; all our FFT modding projects are greatly understaffed! Find out how you can help in the Recruitment section or our Discord!


Note about Formation Data

Started by Edea, October 07, 2012, 05:29:35 pm

Edea

Eternal asked me to leave something here so he wouldn't forget :P

First, just to reiterate for anyone else who might be interested:  CLAN FORMATION POINTERS (Starting ROM Address 0854cd7c; $28 bytes (40) per section).

If you've got that already...Bytes (x+4) to (x+7) contain a 4-byte pointer which leads to the given formation's 'unit composition' data. 

For example, if you look at 0854d254 in a hex editor, the bytes at 0854d258 to 0854d25b read '00 d2 52 08,' or 0852d200.  Go there, and you'll notice a pattern of '2D 2C 2C 2C 46,' spaced 48 bytes apart.  That would translate to 'Red Cap, Goblin (1), Goblin (2), Goblin (3), Sprite.'

The Formation data seems to hold two other pointers per entry; I'm guessing they're for unit placement of enemies/guests and designation of legal tiles for you to plop down your own units, but I haven't really looked at or tested them, yet.