Note - Version 2 of this program has been released. It can instantly designate the patterns.
LinkThe auto-designation macro is an AutoHotKey macro that can read a design out of a spreadsheet and designate it in Dwarf Fortress. It takes a spreadsheet like this:
and creates this:
Instructions
- Create a spreadsheet. In it, use a blank cell for an unmined space, or a cell with a letter in it corresponding to the in-game designation (D=mine, I=up/down stair, etc). It should be bordered in # signs.
- Save as a .csv file. CSV files are like spreadsheets, but in a much easier to parse format. If your spreadsheet program asks you for CSV options, leave them at their default.
- Name your file roomdef#.csv, where # is a number 1-9 that you will use to access it from the macro
- Run the macro and press Alt-#, where # is the number from last step
- Run the game, go into the designation menu, move the cursor to the top-left square of the area you want designated, and press Alt-B
- Watch the printer-like operation of the macro
I've also written a program that can parse an image and generate the CSV, but it's definitely not robust enough to distribute. It's what I used to generate the second definition. If you have an image you'd like parsed, post it and I'll try.
Update! The macro can now do constructions as well. Create your construction definition files the same way you do the designation ones, using the construction hotkeys like w=wall, f=floor, etc. Name them "Croomdef#.csv", with the C in front. Before pressing Alt-B, press Alt-C to enter construction mode. You can then use Alt-# to switch files just like with designations. Then, press b-C-w to bring up the cursor and move it to the top-left corner of your desired construction, and press Alt-B. Alt-D will return you to designation mode afterwards.
Update 2! You can now choose which corner of the area you would like to indicate. Use Alt-Q to use the top-left (default), Alt-W to use the top-right, Alt-A to use the bottom-left, and Alt-S to use the bottom-right.
Demo Movie
Here's what the demo movie would have produced if I hadn't cut it off:
Download
[ December 30, 2007: Message edited by: Valdemar ]
[ January 03, 2008: Message edited by: Valdemar ]
[ January 28, 2008: Message edited by: Valdemar ]
[ April 01, 2008: Message edited by: Valdemar ]