• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
March 29, 2024, 02:51:45 am

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!


BATTLE.BIN info from Japanese site (excerpt)

Started by methanol, September 19, 2008, 02:11:39 am

methanol

September 19, 2008, 02:11:39 am Last Edit: December 31, 1969, 07:00:00 pm by methanol
Here's some juicy info from what the Japanese guys know about battle.bin.  The wiki page is huge so I skipped to the good parts.   http://www23.atwiki.jp/fft_cheat/pages/23.html

02D6F0h~ 620 bytes of information about .SPR 'size'

first byte, how to cut up and 'hang'/'apply' the image data (responds to *.SHP?)
second byte, how to display the cut up image (responds to *.SEQ?)
third byte, 01h in case of flying units, all else is 00h?
fourth byte, contents unknown.  Holy Angel is 3Ch, Great Holy Angel is 78h, everything else appears to be 24h
combining bytes 1 and 2 you get the following:
Human class with wide back ..... 00 00
Human class with narrow back ...... 01 01
Chocobo........ 02 02
generic monster ...... 03 03
Lucavi ..... 03 05
Holy Angel ...... 06 06
Great Holy Angel ..... 07 07

from 02DBA8, file information within battle folder

8 bytes used on one file
4 bytes, which block to start reading from
4 bytes, how much to read in (units of 2048 bytes)
Both are little endian values.

Example:  the case of Olan (ORAN.SPR)
02DD20 34 E6 00 00(58932)read start block
02DD24 00 B0 00 00(45056)read size

11FB30h ~ Attack routines