Changes

Jump to navigation Jump to search

FF7/FF Text

11,076 bytes added, 16:45, 24 March 2018
Created page with "FF Text is a format that Squaresoft used to store strings in the English version of Final Fantasy VII. Large subsets of the character (e.g. A-Z, a-z, 0-9) set are coded as sim..."
FF Text is a format that Squaresoft used to store strings in the English version of Final Fantasy VII. Large subsets of the character (e.g. A-Z, a-z, 0-9) set are coded as simply their ASCII values offset by 0x20. {| class="wikitable"<font size="10px"><font face="Tahoma">!! style="background: rgb(204,204,204); width: 53px" align="center" | 00! style="background: rgb(204,204,204); width: 53px" align="center" | 01! style="background: rgb(204,204,204); width: 53px" align="center" | 02! style="background: rgb(204,204,204); width: 53px" align="center" | 03! style="background: rgb(204,204,204); width: 53px" align="center" | 04! style="background: rgb(204,204,204); width: 53px" align="center" | 05! style="background: rgb(204,204,204); width: 53px" align="center" | 06! style="background: rgb(204,204,204); width: 53px" align="center" | 07! style="background: rgb(204,204,204); width: 53px" align="center" | 08! style="background: rgb(204,204,204); width: 53px" align="center" | 09! style="background: rgb(204,204,204); width: 53px" align="center" | 0A! style="background: rgb(204,204,204); width: 53px" align="center" | 0B! style="background: rgb(204,204,204); width: 53px" align="center" | 0C! style="background: rgb(204,204,204); width: 53px" align="center" | 0D! style="background: rgb(204,204,204); width: 53px" align="center" | 0E! style="background: rgb(204,204,204); width: 53px" align="center" | 0F|-! 00| align="center" | {SPACE}| align="center" | !| align="center" | "| align="center" | #| align="center" | $| align="center" | %| align="center" | &amp;| align="center" | '| align="center" | (| align="center" | )| align="center" | *| align="center" | +| align="center" | ,| align="center" | -| align="center" | .| align="center" | /|-! 10| align="center" | 0| align="center" | 1| align="center" | 2| align="center" | 3| align="center" | 4| align="center" | 5| align="center" | 6| align="center" | 7| align="center" | 8| align="center" | 9| align="center" | :| align="center" | ;| align="center" | &lt;| align="center" | =| align="center" | &gt;| align="center" | ?|-! 20| align="center" | @| align="center" | A| align="center" | B| align="center" | C| align="center" | D| align="center" | E| align="center" | F| align="center" | G| align="center" | H| align="center" | I| align="center" | J| align="center" | K| align="center" | L| align="center" | M| align="center" | N| align="center" | O|-! 30| align="center" | P| align="center" | Q| align="center" | R| align="center" | S| align="center" | T| align="center" | U| align="center" | V| align="center" | W| align="center" | X| align="center" | Y| align="center" | Z| align="center" | [| align="center" | \| align="center" | ]| align="center" | ^| align="center" | _|-! 40| align="center" | `| align="center" | a| align="center" | b| align="center" | c| align="center" | d| align="center" | e| align="center" | f| align="center" | g| align="center" | h| align="center" | i| align="center" | j| align="center" | k| align="center" | l| align="center" | m| align="center" | n| align="center" | o|-! 50| align="center" | p| align="center" | q| align="center" | r| align="center" | s| align="center" | t| align="center" | u| align="center" | v| align="center" | w| align="center" | x| align="center" | y| align="center" | z| align="center" | {| align="center" | || align="center" | }| align="center" | ~|-! 60| align="center" | Ä| align="center" | Á| align="center" | Ç| align="center" | É| align="center" | Ñ| align="center" | Ö| align="center" | Ü| align="center" | á| align="center" | à| align="center" | â| align="center" | ä| align="center" | ã| align="center" | Ã¥| align="center" | ç| align="center" | é| align="center" | è|-! 70| align="center" | ê| align="center" | ë| align="center" | í| align="center" | ì| align="center" | î| align="center" | ï| align="center" | ñ| align="center" | ó| align="center" | ò| align="center" | ô| align="center" | ö| align="center" | õ| align="center" | ú| align="center" | ù| align="center" | û| align="center" | ü|-! 80| align="center" | ⌘| align="center" | °| align="center" | ¢| align="center" | £| align="center" | Ù| align="center" | Û| align="center" | ¶| align="center" | ß| align="center" | ®| align="center" | ©| align="center" | ™| align="center" | ´| align="center" | ¨| align="center" | ≠| align="center" | Æ| align="center" | Ø|-! 90| align="center" | ∞| align="center" | ±| align="center" | ≤| align="center" | ≥| align="center" | Â¥| align="center" | µ| align="center" | ∂| align="center" | Σ| align="center" | Π| align="center" | π| align="center" | ⌡| align="center" | <u>ª</u>| align="center" | <u>º</u>| align="center" | Ω| align="center" | æ| align="center" | ø|-! A0| align="center" | ¿| align="center" | ¡| align="center" | ¬| align="center" | √| align="center" | ƒ| align="center" | ≈| align="center" | ∆| align="center" | «| align="center" | »| align="center" | …| align="center" | {NOTHING}| align="center" | À| align="center" | Ã| align="center" | Õ| align="center" | Œ| align="center" | œ|-! B0| align="center" | –| align="center" | —| align="center" | “| align="center" | ”| align="center" | ‘| align="center" | ’| align="center" | ÷| align="center" | ◊| align="center" | ÿ| align="center" | Ÿ| align="center" | ⁄| align="center" | ¤| align="center" | ‹| align="center" | ›| align="center" | fi| align="center" | fl|-! C0| align="center" | ■| align="center" | ▪| align="center" | ‚| align="center" | „| align="center" | ‰| align="center" | Â| align="center" | Ê| align="center" | Ë| align="center" | Á| align="center" | È| align="center" | í| align="center" | î| align="center" | ï| align="center" | ì| align="center" | Ó| align="center" | Ô|-! D0| align="center" | {SPACE}| align="center" | Ò| align="center" | Ù| align="center" | Û|||||||||||||-! E0| align="center" | {Choice}| align="center" | {Tab}| align="center" | ,| align="center" | ."| align="center" | ..."||| align="center" | {EOL}| align="center" | {New Scr}| align="center" | {New Scr?}| align="center" | {Cloud}| align="center" | {Barret}| align="center" | {Tifa}| align="center" | {Aerith}| align="center" | {Red XIII}| align="center" | {Yuffie}|-! F0| align="center" | {Cait Sith}| align="center" | {Vincent}| align="center" | {Cid}| align="center" | {Party #1}| align="center" | {Party #2}| align="center" | {Party #3}| align="center" | 〇| align="center" | △| align="center" | ☐| align="center" | ✕||||! style="background: rgb(255,205,154)" | {FUNC}| align="center" | {END}</font></font>|} There is no equivalent character to 80h in most font families.<br /> Characters D4h - DFh appear to produce odd graphical errors. === {FUNC} Character === This character is in fact an opcode, that takes one or more arguments. For the most time it's used to indicate colours, which are as follows:  FE D2: Gray colour FE D3: Blue colour FE D4: Red colour FE D5: Purple colour FE D6: Green colour FE D7: Cyan colour FE D8: Yellow colour FE D9: White colour FE DA: Flash colour* FE DB: Rainbow colour* <nowiki>* these colours are global for a window, you can't reset them with other modifiers. </nowiki> More info can be found in [[FF7/Field/DialogWindow#REDIRECT Special_Letters|Dialog Window]] section of the wiki. === 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. Several other values have additional functions: '''EA - F0'''<nowiki>: 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). </nowiki> EA: Name of a Character EB: Name of an Item EC: Number ED: Name of the Target EF: Name of Attack FO: 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'''<nowiki>: 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. </nowiki> '''F9'''<nowiki>: This is an encodingtechnique 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: </nowiki>  In binary: YYXXXXXX Where YY is the number of bytes to read and XXXXXX is how far back from the F9 byte to look. The number of bytes to read uses the formula:  no_of_bytes = (YY) * 2 + 4 [Where YY is binaryThe location starts at the position that the data read the byte F9 and proceeds backwards XXXXXX + 1 times.<br /> Ex: This is the description of the Poison Ring stored in section 15 of the kernel, both raw data and decoded text.  24 52 41 49 4E 53 00 3B 30 4F 49 53 4F 4E 3D 00 41 54 54 41 43 4B 53 0C 00 50 52 4F 54 45 43 54 53 00 41 47 F9 21 54 F9 A0 3D D r a i n s [ P o i s o n ] a t t a c k s , p r o t e c t s a g ** ?? t ** ?? ] At the end we have two F9 functions located at the end. The first one references the "ains" in the word "Drains" earlier in the description and the second one references the " [Poison" shortly after. The bytes following the F9 describe how to get to those texts:  21 00 100001 - go back 34 bytes and display four characters A0 10 100000 - go back 33 bytes and display eight characters This is an absolute position so it does not matter if there are other encrypted segments between it and the text it is trying to read. NOTE: This may even request that a NULL terminator (0xFF) be output as well, but the data will then be terminated after the last piece of encoded text. This encoding can span back to previous descriptions as well. === Useful downloads === * [http://aaronserv.dyndns.org/hosting/qhimmwiki/ficedula_ff7textdecoder_1.00.zip Ficedula's FF7 Text decoder]* [http://www.subfan.pl/ff7pl/fieldtool.tbl Reference table with FF7 Text values]
Anonymous user

Navigation menu