preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Nov 23, 2024, 12:25:00 pm
 Dwarf Fortress File Depot » Utilities » DF PHP Macro Translator
      
Registration is not required to download. However, it will allow you to vote, comment, and upload. Forgot your password?
File Listing: DF PHP Macro Translator
Last Updated: Sep 06, 2009, 02:44:23 am
File version: 1.0
For DF version: 0.28.181.40d
Downloads: 75 Size: 5.3 KB
Views: 506 Type: ZIP
Rating (0 votes): Unrated
Description
This PHP script takes a quickfort .csv layout, and translates it into the macro form used by the DF interface.txt files in df_28_181_40d13 and later. This allows for simple layout of complicated (multi-floor) digging plans in a spreadsheet. (requires PHP to do the translation)

This script allows Linux, OS X, and Windows DF players to take the existing library of .csv layouts, and use (many of) them on their system, without needing a utility like Autohotkey.

The macroizer was written in PHP to make it cross-platform and easy for people to extend it to include additional functionality. As of v1, it will reject certain dubiously-formatted CSV files, and only supports digging (and stairs, ramps, channels, etc). It does not, as of v1, support room designations, furniture placement, or stockpile designation.

Running this script on a CSV file results in the grid form of the plan being printed in macro instructions. These lines need to go into the "\data\init\interface.txt" file, with a unique header to label the macro, such as:
[BIND:MACRO0]

See the wiki macro discussion for further details about the needs of the built-in macros.

Two simple examples (multi-floor stairs, and the layout for one floor of a cave river system) are included for demonstration purposes.
Raw Data: JSON / Text
Checksum / Hash
SHA-256: 5aba8fcf44398c87a19ea52f5de28e1e5f21e0530f3b56e141ff9bd4281b7254
IP: logged
Commands
More From This Author
Comments
No comments have been posted for this file yet.
HomeSearchRankingsStatisticsAboutContact

Website by Brett Flannigan. The core site script is PHCDownload (© 2005-2024).
Hosted by Linode.