What is MIME type "application/x-tads"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
application/x-tads identifies files used by the Text Adventure Development System (TADS). These files contain game logic and interactive fiction content, which a TADS interpreter runs.
Files with this MIME type embed instructions, narrative elements, and puzzles that drive text-based adventures. They help the interpreter render interactive stories, process player input, and manage game flow.
Typical use cases include:
- Interactive Fiction Execution: The MIME type guides software to correctly execute TADS game files.
- Game Distribution: Authors share TADS files so players can experience text adventures.
- Development Testing: Creators use it while building and debugging game logic.
Files usually use extensions like GAM and T. These links provide additional details on how these extensions function in practice.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/x-tads
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/x-tads">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'application/x-tads');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the application/x-tads MIME type used for?
This MIME type identifies compiled game files created with the Text Adventure Development System (TADS). It tells the operating system or browser that the file typically ending in .gam contains interactive fiction data that requires a TADS interpreter to run.
How do I open a file sent as application/x-tads?
You need a specific interpreter (player) installed on your device, such as QTads, HTML TADS, or a multi-format player like Gargoyle. These applications load the game file and allow you to type commands to interact with the story.
How do I configure Apache to serve TADS game files?
To ensure browsers recognize the file correctly, add the following line to your .htaccess file or main configuration: AddType application/x-tads .gam .t3. This ensures the server sends the correct Content-Type header instead of a generic binary type.
Can web browsers play application/x-tads files natively?
No, standard web browsers (Chrome, Firefox, Edge) cannot execute TADS code directly. If you click a link with this MIME type, the browser will usually download the file. To play online, you must use a web-based interpreter like Parchment that processes the file using JavaScript.
What is the difference between .gam and .t extensions for this MIME type?
The .gam extension is standard for compiled TADS 2 game files intended for players. The .t extension is historically used for TADS source code, though application/x-tads is primarily associated with the executable game data rather than the text source.
Why does the MIME type start with 'x-'?
The x- prefix indicates that application/x-tads is a non-standard or private MIME type not officially registered with the IANA. It is a community convention used by Interactive Fiction archives to distinguish TADS games from other file types.
Why is my TADS file downloading as application/octet-stream?
This happens when the web server is not configured to recognize .gam files. It defaults to application/octet-stream (generic binary data), forcing a download without telling your computer which application should open it.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.