You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've asked Toady One for some info about jobs:
Me:
I've got a few questions about the job system:
is there anything special about plant gathering?
What is in the 'job manager' (dfhack sees a pointer to job linked list, job postings and then two unknowns)
ToadyOne:
The gather job has several special flags, there should be a single unsigned int32 with those. Bits are gather from zone, pick trees, pick shrubs, gather fallen items, no ladder search, ladder restricted, 'pick trees ground'. Would take a while to figure out what some of those do at this point (haven't looked at it for years). Dunno if this is the kind of info you meant.
Job manager: yeah, the list, the job posting, and then there's one struct after that, the job application binary heap. The first member of that is an array of job application nodes (size 2000), and a size variable. Job applications have an applicant (unit ptr), job posting index, and value. The value determines how far applications climb up the heap when pushed on, so the top value application is always assured to be on the top (though the whole implementation is questionable, as with any of my data structures.)
Hopefully this helps identifying some fields.
The text was updated successfully, but these errors were encountered:
I've asked Toady One for some info about jobs:
Me:
ToadyOne:
Hopefully this helps identifying some fields.
The text was updated successfully, but these errors were encountered: