v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Utility:Dwarf Fortress Map Archive"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
 
Line 32: Line 32:
  
 
# If you have a graphic tileset enabled, '''disable it'''. Unlike {{tt|.FDF-MAP}}s, the CMV movie format will '''not''' play nice with these, and will cause all sorts of strange output.
 
# If you have a graphic tileset enabled, '''disable it'''. Unlike {{tt|.FDF-MAP}}s, 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 {{k|;}} key: once in the menu you can start a recording with {{k|r}}, continue the game as normal, and then once you are done you can {{k|p}}lay it back and {{k|s}}ave it (you will be prompted for a filename). You can also {{k|l}}oad old movies. Given a default install, the movies will be saved in the {{tt|Data > Movies}} subfolder of your main Dwarf Fortress directory.
+
# Record a movie. This is done with the {{k|;}} key: once in the menu you can start a recording with {{k|r}}, continue the game as normal, and then once you are done you can {{k|p}}lay it back and {{k|s}}ave it (you will be prompted for a filename). You can also {{k|l}}oad old movies. Given a default install, the movies will be saved in the {{tt|Data > Movies}} subfolder of your main ''Dwarf Fortress'' directory.
 
# Navigate to the Upload Movie section of the Archive ([http://mkv25.net/dfma/addmovie.php direct link]), fill out the form, and hit {{k|Upload Movie}}. Voila! It should appear on the site.
 
# Navigate to the Upload Movie section of the Archive ([http://mkv25.net/dfma/addmovie.php direct link]), fill out the form, and hit {{k|Upload Movie}}. Voila! It should appear on the site.
  
Line 44: Line 44:
 
* Online CMV player created by '''Gonbon''' for ingame movies ([[CMV]]) created by players.
 
* Online CMV player created by '''Gonbon''' for ingame movies ([[CMV]]) created by players.
  
[[category:utilities]]
+
[[Category:Utilities]]

Latest revision as of 12:49, 4 April 2023

This is a web-based utility - it applies to multiple versions of DF.
Links

The Dwarf Fortress Map Archive (shorthand DFMA) is a repository and online 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 way 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 or HTML5 - you can also download the files directly onto your computer.

Uploading a map[edit]

Map images 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.

  1. If you wish to export your local map:
    1. Load your fortress, then press Esc and scroll down to the "Export Local Image" option.
    2. 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, export. 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.
  2. If you wish to export the world map:
    1. 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.
    2. Press p to "Export image/info" at either the 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.
  3. Download Shadowlord's DF Map Compressor (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. Compress image(s) to .fdf-map file, 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 Preview .fdf-map file (before uploading)..
    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.
  4. Once you have a working .FDF-MAP file, Visit Markavian's DF Map Archive (or just navigate there yourself on the web) and hit Upload Map (direct link). Fill out the form, hit Upload Map, and your file should appear on the site's server shortly.
Mkv-dfma instructions v2.png

Uploading a movie[edit]

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 tragedy mule 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.

  1. 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.
  2. Record a movie. This is done with the ; key: once in the menu you can start a recording with r, continue the game as normal, and then once you are done you can play it back and save it (you will be prompted for a filename). You can also load old movies. Given a default install, the movies will be saved in the Data > Movies subfolder of your main Dwarf Fortress directory.
  3. Navigate to the Upload Movie section of the Archive (direct link), fill out the form, and hit Upload Movie. Voila! It should appear on the site.

CMV Movie Editor[edit]

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.

Key facts[edit]