.tsf

The .tsf (previously '.tsssf') file extension is used for individual cards in the Twilight Sparkle's Secret Shipfic Folder Video Game. These files are actually tar archives, containing a .png of the card's face or the card's art - named 'image.png' - and a text-file named 'attributes'. At the moment, the only method available for editing and creating these cards is using the card editor app.

The Archive
As mentioned, each card is really just a tar archive. This format is used so they can be downloaded to a computers memory, and then the files they contain can be accessed without having to first extract them to the client's hard drive in order to read them. This is useful, since a client will need to download a server's entire deck before being able to join a game. This also means that the people hosting a server shouldn't need to worry about clients possibly stealing custom cards.

image.png
Of the two files stored on a '.tsf' file, the image is always the largest. An image is stored in a compressed '.png' format at a resolution of exactly 350 pixels by 500 pixels when storing the entire card's face, or a resolution of exactly 265 pixels by 200 pixels when storing only the card's artwork. The card editor app automatically resizes images imported into it to match the appropriate resolution.

attributes
The 'attributes' files is actually just a binary text file containing information on the card it represents, such as the cards type, name, and keywords, as well as powers and other important attributes. For example, the Fanfic Author Twilight card would have attributes that looks like this: type = pony name = Fanfic Author Twilight keywords = Mane 6, Twilight Sparkle gender = female race = unicorn number_of_ponies = 1 power = startcard Most cards that have their power specified will have additional information regarding that power, such as when it can be activated, weather or not it can be copied, and if that power is mandatory.