can somebody point me to how to use workflow?
do you keep the script in a txt file some place and just copy/paste it into DFHAck every time you start up DF?
Workflow basically has two methods of operation.
1. Command line
2. GUI
Most of the stuff you see in this thread is command line. Just simply type
workflow help
at the spot where you launched Dwarf Fortress and you'll see plenty of what workflow can do. But I generally use the GUI by doing the following
1. In the dfhack.init file, have the following line
keybinding add Ctrl-W@dwarfmode/QueryBuilding/Some "gui/workflow"
Then when you have a job selected in a workshop, you can hit Ctrl W and get the gui to pop up. Just simply read the prompts and you're good to go. And it's quite useful for when you're not certain exactly what the identifier is for an item. For instance, to setup a limit on a clothing type to make I do the following.
1. Make a repeating job in the clothing workshop for the item being made.
2. Hit Ctrl-W to pull up the GUI
3. Hit Shift-A to add a limit
4. Optionally, hit Shit-R to set the limits
5. Hit ESC to exit the gui.
I generally use both the command line and the GUI in combination. The GUI for quick limits and the command line to tailor things. For instance, in the first posting in this thread, I have 3 limits for each clothing type. I don't do that any longer, I instead have 1 limit for any of CLOTH,SILK,YARN so it doesn't matter what type of cloth I have, I simply make as many clothing items as I need. But to do that, I setup 3 jobs for each clothing type, then use the GUI to specify a limit for just the CLOTH item. After I do that, I then use the command line and issue
workflow list-commands
to get the list of workflow limits that are active. A bit of CUT & PASTE and I soon have a text file that does an 'workflow unlimit' to get rid of all of the limit commands I specified for the cloth items and a 'workflow amount' command for each of the items I just unlimited with the modification that the 'CLOTH' part of the item description being replaced with 'CLOTH,SILK,YARN'. Once that file is created, I then do 'script filename' to have dfhack read in the new workflow commands and limits.