I have a question... I tried searching for a solution to this without success.
I tend to rethink my fortress design and start over a lot. So I would like to try to create a list of dfhack commands that I can activate immediately after embark
commands like
autolabor 1
workflow enable
workflow enable drybuckets
workflow enable auto-melt
workflow count BED 10
workflow count DRINK 30
workflow count BLOCKS//OBSIDIAN 100
workflow count TOOL:ITEM_TOOL_LARGE_POT//OBSIDIAN 30
workflow count WEAPON:ITEM_WEAPON_SWORD_SHORT_TRAINING 4
workflow count WEAPON:ITEM_WEAPON_AXE_TRAINING 2
workflow count CAGE 10
workflow count TRAPPARTS 20
workflow count AMMO:ITEM_AMMO_BOLTS 1000
workflow count PANTS:ITEM_PANTS_LEGGINGS//STEEL 300
workflow count TRAPCOMP:ITEM_TRAPCOMP_MENACINGSPIKE//STEEL 300
workflow count WEAPON:ITEM_WEAPON_MACE//STEEL 2
workflow count WEAPON:ITEM_WEAPON_SPEAR//STEEL 2
workflow count WEAPON:ITEM_WEAPON_SWORD_SHORT//STEEL 2
workflow count WEAPON:ITEM_WEAPON_HAMMER_WAR//STEEL 2
workflow count WEAPON:ITEM_WEAPON_AXE_BATTLE//STEEL 2
workflow count ARMOR:ITEM_ARMOR_MAIL_SHIRT//STEEL 10
workflow count ARMOR:ITEM_ARMOR_BREASTPLATE//STEEL 10
workflow count HELM:ITEM_HELM_HELM//STEEL 10
workflow count GLOVES:ITEM_GLOVES_GAUNTLETS//STEEL 10
workflow count SHOES:ITEM_SHOES_BOOTS//STEEL 10
workflow count SHIELD:ITEM_SHIELD_SHIELD/ STEEL 10
workflow count BOX//STEEL 10
workflow count TABLE//STEEL 10
workflow count CHAIR//STEEL 10
I tried putting this code in at the end of the dfhack.init file and though it ran the script these commands gave me the following error multiple times
World is not loaded: please load a game first.
Clearly I need to embark or load a game before these commands can take effect, but I really don't feel like manually putting in the same commands over and over again.
.. is there a shorter route to take? While writing this I also tried to create a shortcut key to do multiple commands. keybinding add Ctrl-Shift-Z "autolabor 1" "workflow enable" "workflow enable drybuckets" "workflow enable auto-melt" "workflow count BED 10" "workflow count DRINK 30" "workflow count BLOCKS//OBSIDIAN 100" "workflow count TOOL:ITEM_TOOL_LARGE_POT//OBSIDIAN 30" "workflow count WEAPON:ITEM_WEAPON_SWORD_SHORT_TRAINING 4" "workflow count WEAPON:ITEM_WEAPON_AXE_TRAINING 2" "workflow count CAGE 10" "workflow count TRAPPARTS 20" "workflow count AMMO:ITEM_AMMO_BOLTS 1000" "workflow count PANTS:ITEM_PANTS_LEGGINGS//STEEL 300" "workflow count TRAPCOMP:ITEM_TRAPCOMP_MENACINGSPIKE//STEEL 300" "workflow count WEAPON:ITEM_WEAPON_MACE//STEEL 2" "workflow count WEAPON:ITEM_WEAPON_SPEAR//STEEL 2" "workflow count WEAPON:ITEM_WEAPON_SWORD_SHORT//STEEL 2" "workflow count WEAPON:ITEM_WEAPON_HAMMER_WAR//STEEL 2" "workflow count WEAPON:ITEM_WEAPON_AXE_BATTLE//STEEL 2" "workflow count ARMOR:ITEM_ARMOR_MAIL_SHIRT//STEEL 10" "workflow count ARMOR:ITEM_ARMOR_BREASTPLATE//STEEL 10" "workflow count HELM:ITEM_HELM_HELM//STEEL 10" "workflow count GLOVES:ITEM_GLOVES_GAUNTLETS//STEEL 10" "workflow count SHOES:ITEM_SHOES_BOOTS//STEEL 10" "workflow count SHIELD:ITEM_SHIELD_SHIELD/ STEEL 10" "workflow count BOX//STEEL 10" "workflow count TABLE//STEEL 10" "workflow count CHAIR//STEEL 10"
I think it performed the "autolabor 1" and then stopped.
Any suggestions? Thank you in advance!