1
Utilities and 3rd Party Applications / Re: DFHack 0.47.05-r8 | 50.05-alpha2 (pre-release)
« on: January 26, 2023, 07:41:49 pm »In hack/scripts in a file with a .lua extension. Then type the name of the file (without the extension) in dfhack command prompt to run the script. See the documentationThanks, that worked! There was a weird error thing generated afterward, but the actual work details were still put in.
EDIT: No it didn't, it just spammed the first few work details in the list over and over.
Here's error:
...\steamapps\common\Dwarf Fortress//hack/scripts/labor.lua:58: Invalid index in enum.attrs[]
stack traceback:
[C]: in metamethod '__index'
...\steamapps\common\Dwarf Fortress//hack/scripts/labor.lua:58: in local 'script_code'
...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:808: in function 'dfhack.run_script_with_env'
(...tail calls...)
EDIT2: Seems to be human error on my end, gonna try again.
EDIT3: Yup got it right this time. Including text of labor.lua if anyone else wants it - note, does not assign hauling/construction labors.
Spoiler (click to show/hide)