Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Some basic questions about the workflow plugin  (Read 1737 times)

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Some basic questions about the workflow plugin
« on: June 27, 2013, 05:05:58 pm »

Sorry if this is an easy/silly question. But I have been searching for the solution to this without much success. Is there a thread or wiki that has a list of all of the workflow dfhack items/commands?

I figured out how to workflow milk / milking shear / shearing... for those of you have not they are as follows:

Code: [Select]
workflow count LIQUID_MISC/MILK # #
workflow count CORPSEPIECE/YARN # #

But now I can't seem to spin the wool into yarn thread. Any suggestions or links? Thanks in advance!
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.

Billy Jack

  • Bay Watcher
  • Baywatch Watcher
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #1 on: June 28, 2013, 10:29:07 am »

DFHack r3 has a built in tool for managing workflow.  Highlight the job in the workflow and hit CTRL-W to bring it up.  Most of it is self explanatory, but I believe there is also a readme file in the Hack folder which has a good explanation.

And that readme is also the best place to go regarding other info about the included DFHack commands.
Logged
Give a dwarf a fish, you feed him for a season.
Give a dwarf a Fishpond, couple of buckets, build a Fishery, and enable Fishfarming labor; you feed him for a lifetime. (And get someone to clean and prep the fish)

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #2 on: June 28, 2013, 11:18:35 am »

DFHack r3 has a built in tool for managing workflow.  Highlight the job in the workflow and hit CTRL-W to bring it up.  Most of it is self explanatory, but I believe there is also a readme file in the Hack folder which has a good explanation.

And that readme is also the best place to go regarding other info about the included DFHack commands.

I appreciate your response. Thank you. But I like using workflow from dfhack, or better said, I like running all my commonly used dfhack commands from a bash file. It helps keep consistency between my fortresses.

Though I like the idea of the gui/front end (opened I think with ALT-W as default, but this can be changed/adjusted) I have not used it extensively. It might very well tell me the command I need. But at the moment I can't see how. Anyone who knows how feel free to cure my ignorance.

The command I am looking for is along the lines of:
Code: [Select]
[DFHack]# workflow count THREAD/YARN 10
Which, though a valid command, doesn't work. Giving me the response:
Code: [Select]
Constraint THREAD/YARN count 10 (gap 5)
  items: amount 0; 0 stacks available, 1 in use.
  (no jobs)

It recognizes that I have one yarn thread (I think) but it appears it doesn't detect the job I want it to do (which is to spin wool into yarn thread).

I have read the readme and I have learned that some of the commands to set tasks require special item token combinations, though not directly how to combine them for certain tasks (like milking, shearing, and spinning). I've just been lucky to figure out milking and shearing. Spinning (yarn) to me is still a mystery. Any help would be much appreciated. As before, thanks in advance!
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.

falconne

  • Bay Watcher
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #3 on: June 28, 2013, 04:03:32 pm »

The easiest way for the non-obvious ones is to add the job from the ingame ui (by changing the constraint directly on the workshop job), then running "workflow list" to show what the constraint looks like. Also there's "workflow list-commands" which prints the output in a scriptable format.
Logged
Utility plugins for DFHack, for improving Dwarf Fortress' user interface.

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #4 on: June 29, 2013, 08:30:01 am »

Much appreciated thank you. Love your work! You are one of my heroes.

However...

I get the following message in the gui when I hit alt-w followed by the 'A' on the "Spin thread R":
Code: [Select]
Unsupported
Workflow cannot guess the output of this job.

Am I doing something wrong? There must be a way to do this. I can feel it in my nuggets.
« Last Edit: June 29, 2013, 08:31:36 am by Rogue Yun »
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.

falconne

  • Bay Watcher
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #5 on: June 29, 2013, 06:37:07 pm »

Thanks :) but I only wrote a UI, not the plugin itself.

As for the spin thread job, that looks like one of those jobs that workflow just can't parse. Even if you come up with the right constraint, workflow can't figure out programtically what the output of that job is, so it wouldn't know to connect that job and your constraint together.

A possible way around this might be to add a "forced binding" function to workflow, to manually associate a given job with a given constraint. This would need a bit of work though and come with a warning that it's only to be used if you know what you're doing.
Logged
Utility plugins for DFHack, for improving Dwarf Fortress' user interface.

Rogue Yun

  • Bay Watcher
  • Beware of the Carp
    • View Profile
Re: Some basic questions about the workflow plugin
« Reply #6 on: June 29, 2013, 06:57:23 pm »

A possible way around this might be to add a "forced binding" function to workflow, to manually associate a given job with a given constraint. This would need a bit of work though and come with a warning that it's only to be used if you know what you're doing.

I hate to give up on this, but I will be the first to admit that I hardly have any idea of what I am doing.  I appreciate your help using the ui with the workflow list-commands.  That will be very helpful in the future. I think I'll call it quits for now on spinning wool thread... but maybe I'll come back to it someday when I have an inkling.
Logged

.:Simple Mood 16x16 ASCII:.
Keep it Simple. Keep it Safe.