Furcadia/Furcadia Specifications/File Formats/TXB

From FurcadiaWiki

Jump to: navigation, search

The Text-Binary format, or TXB, is a very simple file format used by DragonSpeak scripts to reference text entries. Each line consists of a line identifier (usually the same as the line number the line is currently on minus 2, but must be a number), a colon, and the text associated with that identifier. In the official Furcadia client, this file is created from the DragonSpeak file just before uploading a dream, in which the DragonSpeak file will change its text entries into numerical entries corresponding with the lines of the TXB file.

Also, unlike most Furcadia-related files, the line endings for a TXB file are the UNIX-style linefeed character, not the Windows-style carriage-return and linefeed combination.

In many dreams, the TXB file is accompanied by an identical copy of itself in TXT format (text/plain). The reason for this is still unknown.

Contents

Before

Here is a sample DS file before any upload has been started.

 DSPK V03.00 Furcadia
 (0:0) When everything is starting up,
     (5:210) set entrytext to {Welcome to this dream!}.
     (5:105) set entrymusic to 1.
 (0:9) When somebody arrives in the dream,
  (1:70) and their name is {Yamake Takahashi},
     (5:102) share dream control with the triggering furre.
 *Endtriggers* 8888 *Endtriggers*

After

Two files are the result of the aftermath: the TXB file, and the modified DS file.

Text-Binary File

Here is the TXB file that resulted from the upload request (notice how DS lines that require furre names end up with pipes instead of spaces):

 DST10
 0:Master Socket kidnapped my kiwi!
 1:Welcome to this dream!
 2:Yamake|Takahashi

DragonSpeak Script

Here is the DragonSpeak script that was modified during the upload:

 DSPK V03.00 Furcadia
 0:0 5:210 1 5:105 1
 0:9 1:70 2 5:102
 *Endtriggers* 8888 *Endtriggers*

See Also