Thanks to the new macro system, we can auto-designate and script grander things than ever before!
I saw snooptodd's
macro work in the forum and was inspired.
But.. but.. it's sort-of a pain to type it in macro form, and there were all these Quickfort CSV layout files already laying around.
So, I whipped up a little PHP script that consumes CSV layout files, and spits out the 40d13-and-later macro forms that go into your interface.txt file for use in-game.
It actually started as an Applescript extension of Martin's excellent
circle digger and
barracks digger, but my approach wasn't very cross-platform, and thus, this PHP script was born.
Well, v1 of it, at least. It effectively scratches an itch I had. It was written pretty quickly, and is not an example of sterling code, but it gets the job done.
V1 supports dig macros, which includes the various stairs, ramps, etc. It does not support building or placing macros (basically the build menu, and the stockpile menu), although someone who wants them is free to add the support.
It supports a subset of the community-generated CSV files for layouts- notably, it doesn't do space-delineated files (comma-separated only), or files which start layout data on the same line as a
#dig. Anyone objecting to this is free to change their files, or to make the parser smarter.
The script was specifically written in PHP to make it accessible to anyone who wanted to make it better, so that it can fit their needs as well. Also, unlike my Applescript solution, it's cross-platform, running on Windows, OS X, and Linux- wherever you've got access to PHP to run it.
The v1 file can be found on the Dwarf Fortress File Depot:
http://dffd.wimbli.com/file.php?id=140520090908 -
There's a web-hosted version with a relatively primitive and unforgiving wrapper at
http://nullship.net/dwarf/submit.php. You should be able to copy-and-paste your CSV layout into the text field, and copy out the results.