Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Micky on 2005-12-31 12:02:32

Title: FF7 kernel.bin info
Post by: Micky on 2005-12-31 12:02:32
Just a few words about the text sections in kernel.bin:
- The sections are    
Code: [Select]
"Attack descriptions",
"Spell descriptions",
"Item descriptions",
"Weapon descriptions?",
"Accessory (arm) descriptions",
"Accessory (hand) descriptions",
"Materia descriptions",
"Special Item descriptions",
"Attacks (Menu items)",
"Spells",
"Items",
"Weapons",
"Accessories (arm)",
"Accessories (hand)",
"Materia",
"Special Items",
"Generic Messages",
"Summons?"

- each section starts with a table of offsets to each string
- the strings have a extra compression: after the escape code 0xF9 is an offset:
Code: [Select]
int dist = ((*ptr) & 0x3F)+2;
int count = ((*ptr) >> 6)*2+4;
into the previous string.
- there is another escape code 0xF8, but I'm not sure what it is used for.