# Magna Carta Script Format #
Long ago in a galaxy far, far away, I was working on a translation of
*Magna Carta*. I had to dump it because there are no Korean speakers
on the Internet. The project was picked up by Talbain at Lakuuna, and
I handed off all my tools to him.
When he finally got the script translated five years later, it turned
out my earlier assessment of the game's FPB file format was incorrect.
Since I had to go back and fix what I got wrong in 2001, it seemed
worth my time to write up how the file format works here.
## File Format ##
These files are used to store all the text for *Magna Carta* events
and are tied to event numbers via string ID codes. Most of the time
these increment from 1: sometimes they do not.

The first string always has an offset of 0. The offsets begin from
position "0," which is at the end of the header. The fastest way
to get this position is one of two calculations:
* File size – String block size
* (String count * 12) + 8)
When re-assembling script files, it is important to keep the string ID
numbers identical to the source files. If you do not, the game
**will** crash.
## Proof of Concept ##
Proof of method code is included below: