Anonymous

Changes

From Final Fantasy Inside

FF7/Text encoding

932 bytes added, 22:00, 10 December 2008
m
Battle Text within the KERNEL.BIN: added some more "battle text functions"
=== Battle Text within the KERNEL.BIN ===
Sections 10-17 and 26 of the [[FF7/Kernel/Kernel.bin|KERNEL.BIN]] are encoded differently than the rest of the text data. An Several other values have additional byte serves as a functionfunctions:
'''EA - F0''': These are variable position markers used in the Battle Text section (25) of KERNEL.BIN. These will only appear in specific texts and should only be used in those texts. These tell the battle engine that when a title needs to be displayed that certain values need to be inserted into the string. These are always followed by two NULL pointers (FFFFh). EA: Name of a CharacterEB: Name of an ItemEC: NumberED: Name of the TargetEF: Name of AttackFO: Target's Letter (for enemies) Example S t o l e X ! 33 54 4F 4C 45 00 EB FF FF 01 FF The battle engine will replace the "EB FF FF" with the name of the item at the index passed to it. '''F8''': This appears at the beginning of a text. It tells the battle engine that the next byte will determine the color of the box the text is to be displayed in. 02h is the only one used and it displays a red box associated with Limit Breaks. '''F9''': This is an encoding technique designed to make the raw data smaller. It is based on the LZS compression method, but optimized for smaller files with fewer large similar blocks. A byte following this value will tell the game's memory the location of, and how much, text to read. The byte is set up like this:
In binary:
YYXXXXXX
Anonymous user