Furcadia/Tricks/magic

From FurcadiaWiki

Jump to: navigation, search

The following data should be placed into the /etc/magic file in order to make the file command detect Furcadia's file formats - at least most of them. To make use of the definitions below, use the file command on the Furcadia files (i.e.: file iteme.fs2).

Note: Some formats are not supported. FSH format isn't supported either due to the fact it has no format identification header and I have no idea how to read from the end of the file and not the start...

#########################################
###--# Furcadia Format Recognition #--###
#########################################

# Furcadia Shape File (FSH)
# Need to know how to look up from end of file.

# Furcadia Extended Shape File (FS2)
0       string          FSH
>3      string          2.00            Furcadia extended shape file (FSH v2.0,
>>12    lelong          &0x01           encrypted)
>>12    lelong          ^0x01           decrypted)
>>8     lelong          x               %d shapes
>3      string          !2              Furcadia shape file (unknown format)

# Furcadia DragonSpeak File (DS)
0       string          DSPK            Furcadia DragonSpeak file (ASCII)

# DragonSpeak Text File (TXB)
0       string          DST10           Furcadia DragonSpeak text file (TXB)

# Furcadia DragonSpeak Binary File (DSB)
0       string          DSB10           Furcadia DragonSpeak binary file
>9      lelong          &0x01           (encoded)
>>5     lelong          x               - %d lines
>9      lelong          ^0x01
>>5     lelong          x               - %d lines

# Furcadia Object File (FBJ)
0       string          FO01            Furcadia object preferences file (FBJ)
>4      lelong          x               - %d objects

# Furcadia Portrait Cache File (CHC)
0       string          FC10            Furcadia portrait cache file (CHC)
>4      lelong          x               - %d bytes per image
>8      lelong          x               (%d x
>12     lelong          x               %d)

# Furcadia Portrait Cache Indexing File (CHP)
0       string          FP10            Furcadia portrait cache index file (CHP)

# Furcadia Package File (RCH)
0       string          FR01            Furcadia package (RCH)
>4      lelong          >0              - Version: %d
>8      lelong          >0              - Timestamp: %d

Personal tools