Utility:Dwarf Fortress Map Archive
|This is a web-based utility - it applies to multiple versions of DF.|
The Dwarf Fortress Map Archive (shorthand DFMA) is a repository and online flash-based viewer for player created maps and movies exported from Dwarf Fortress (it also provides some fairly interesting imaging tools for maps). The map archive serves as the most efficient to serve maps and in-game videos to other players of the game. Uploads to the site can be commented on and tiles on the maps can be tagged as "points of interest" by both uploaders and viewers.
While an account is not necessary to contribute to the site, registering allows users to reserve a username and manage their submissions, and also bumps up the contribution size cap from 628 KB to 1 MB.
Viewing items on the site requires flash - you can also download the files directly onto your computer.
 Uploading a map
Map imagings are exported out of the game as regular old bitmaps, which leads to hugely unnecessary file sizes. These maps can be greatly compressed into a lossless compressed file format optimized for the game's repetitious tileset, .FDF-MAP, creating files are 1500 to 2000 times smaller than equivalent 28-layer bitmaps and 20 to 50 times smaller than equivalent PNG files. This makes them small enough to upload and transfer across the web without chewing up bandwidth; a 150MB output file can be delivered for as little as ~100kb.
- If you wish to export your local map:
- Load your fortress, then press and scroll down to the "Export Local Image" option.
- The game's algorithm selects all z-levels with units or buildings on them for export; depending on what you want you can toggle which layers to export to your liking. Once you are ready, xport. This will create a number of BMP files in your Dwarf Fortress root install folder (the same one that the game's main EXE is located in), with each image representing a layer.
- If you wish to export the world map:
- Unfortunately it is not possible to export the world map while you have a fortress saved in that world. An easy workaround is to duplicate the save file and abandon the fortress. After you have exported the world map, you can simply move the save file back into its folder, and your fort will be playable again.
- Press world generation acceptance screen or the main Legends mode screen. Legends mode also provides you with the ability to export detailed maps showcasing certain map features, which you can also do. to "Export image/info" at either the
Troubleshooting: The map compressor should work with all tilesets, graphic or otherwise, but if it is giving you trouble try reverting to the game's basic character set. Games running on version 0.23.130.23a and earlier will not work properly because they are missing file definitions that the program needs. (version 3.3.4). The program can be run remotely, but you will need an unzipper because it comes in ZIP format. This is actually a pretty comprehensive tool, and allows lossless compression to and from a number of formats, but for our purposes the archive only reads .FDF-MAP files. , then navigate to an image and select it. The program will ask you where you want to place the resultant file, then find all related image files and collate them into one file. You may wish to check "Delete images after compressing" to get rid of the original BMP files; you can also ..
- Once you have a working .FDF-MAP file, navigate there yourself on the web) and hit Upload Map (direct link). Fill out the form, hit , and your file should appear on the site's server shortly. (or just
 Uploading a movie
Dwarf Fortress movies can be recorded in-game and stored in the CMV format, created by Toady One for precisely that purpose. This format is efficient, but still uncompressed, and improvements to the algorithm have led to the creation of the CCMV and then the FCMV format. For instance, the original demonstration file is 1637 KB in CMV format, 616 KB in CCMV format, and 292 KB in FCMV format. The DF Map Compressor can also compress CMV files into CCMV and FCMV ones, but as the Archive only accepts CMVs and compresses them into CCMV form itself, this is mostly for show.
- If you have a graphic tileset enabled, disable it. Unlike .FDF-MAPs, the CMV movie format will not play nice with these, and will cause all sorts of strange output.
- Record a movie. This is done with the key: once in the menu you can start a recording with , continue the game as normal, and then once you are done you can lay it back and ave it (you will be prompted for a filename). You can also oad old movies. Given a default install, the movies will be saved in the Data > Movies subfolder of your main Dwarf Fortress directory.
- Navigate to the Upload Movie section of the Archive (direct link), fill out the form, and hit . Voila! It should appear on the site.
 CMV Movie Editor
The site also hosts a standalone CMV movie editor with some basic movie composition features - frame-to-frame cutting, cropping, copying, deleting, and pasting, a paint tool to edit frames, and the ability to create new CMV files from scratch. The source code is available on GitHub.