2012-01-24 04:36:30 -07:00
##############################
# Generic dwarfmode bindings #
##############################
2012-11-10 23:58:05 -07:00
# toggle the display of water level as 1-7 tiles
2012-01-24 04:36:30 -07:00
keybinding add Ctrl-W twaterlvl
# with cursor:
2012-11-10 23:58:05 -07:00
# designate the whole vein for digging
2012-04-08 16:59:22 -06:00
keybinding add Ctrl-V digv
keybinding add Ctrl-Shift-V "digv x"
2012-11-10 23:58:05 -07:00
# clean the selected tile of blood etc
2012-01-24 04:36:30 -07:00
keybinding add Ctrl-C spotclean
2012-11-10 23:58:05 -07:00
# destroy items designated for dump in the selected tile
2012-01-24 04:36:30 -07:00
keybinding add Ctrl-Shift-K autodump-destroy-here
2012-11-10 23:58:05 -07:00
# with an item selected:
# destroy the selected item
2012-01-24 04:36:30 -07:00
keybinding add Ctrl-K autodump-destroy-item
2012-11-10 23:58:05 -07:00
# scripts:
2012-06-06 09:05:07 -06:00
# quicksave, only in main dwarfmode screen and menu page
keybinding add Ctrl-Alt-S@dwarfmode/Default quicksave
2012-11-10 23:58:05 -07:00
# gui/rename script - rename units and buildings
2012-09-05 11:27:42 -06:00
keybinding add Ctrl-Shift-N gui/rename
2012-11-07 02:31:36 -07:00
keybinding add Ctrl-Shift-T "gui/rename unit-profession"
2012-09-05 11:27:42 -06:00
2014-02-13 14:55:13 -07:00
# a dfhack prompt in df. Sublime text like.
keybinding add Ctrl-Shift-P command-prompt
2012-02-25 06:08:05 -07:00
##############################
# Generic adv mode bindings #
##############################
keybinding add Ctrl-B adv-bodyswap
keybinding add Ctrl-Shift-B "adv-bodyswap force"
2014-05-04 22:59:59 -06:00
##############################
# Generic legends bindings #
##############################
# export all information, or just the detailed maps (doesn't handle site maps)
keybinding add Ctrl-A@legends "exportlegends all"
keybinding add Ctrl-D@legends "exportlegends maps"
2012-01-24 04:36:30 -07:00
#############################
# Context-specific bindings #
#############################
2013-04-24 05:47:37 -06:00
# Stocks plugin
keybinding add Ctrl-Shift-Z@dwarfmode/Default "stocks show"
2014-05-06 20:26:18 -06:00
# open an overview window summarising some stocks (dfstatus)
2014-06-27 01:52:36 -06:00
keybinding add Ctrl-Shift-I@dwarfmode/Default "gui/dfstatus"
2014-05-06 20:26:18 -06:00
2012-11-10 23:58:05 -07:00
# q->stockpile; p - copy & paste stockpiles
2012-01-24 04:36:30 -07:00
keybinding add Alt-P copystock
2012-11-10 23:58:05 -07:00
# q->workshop - duplicate the selected job
2012-01-24 04:36:30 -07:00
keybinding add Ctrl-D job-duplicate
# materials: q->workshop; b->select items
keybinding add Shift-A "job-material ALUNITE"
keybinding add Shift-M "job-material MICROCLINE"
keybinding add Shift-D "job-material DACITE"
keybinding add Shift-R "job-material RHYOLITE"
keybinding add Shift-I "job-material CINNABAR"
keybinding add Shift-B "job-material COBALTITE"
keybinding add Shift-O "job-material OBSIDIAN"
2012-09-28 03:32:41 -06:00
keybinding add Shift-T "job-material ORTHOCLASE"
2012-01-24 04:36:30 -07:00
keybinding add Shift-G "job-material GLASS_GREEN"
2012-08-20 13:04:01 -06:00
2012-11-10 23:58:05 -07:00
# sort units and items in the on-screen list
2012-09-28 08:01:17 -06:00
keybinding add Alt-Shift-N "sort-units name" "sort-items description"
keybinding add Alt-Shift-R "sort-units arrival"
keybinding add Alt-Shift-T "sort-units profession" "sort-items type material"
keybinding add Alt-Shift-Q "sort-units squad_position" "sort-items quality"
2012-08-20 13:04:01 -06:00
# browse linked mechanisms
keybinding add Ctrl-M@dwarfmode/QueryBuilding/Some gui/mechanisms
2012-08-24 08:26:18 -06:00
# browse rooms of same owner
2012-09-14 02:14:36 -06:00
keybinding add Alt-R@dwarfmode/QueryBuilding/Some gui/room-list
2012-08-25 00:37:03 -06:00
2012-11-10 23:58:05 -07:00
# interface for the liquids plugin - spawn water/magma/obsidian
2012-08-25 00:37:03 -06:00
keybinding add Alt-L@dwarfmode/LookAround gui/liquids
2012-08-26 11:19:56 -06:00
2012-09-06 02:37:29 -06:00
# machine power sensitive pressure plate construction
keybinding add Ctrl-Shift-M@dwarfmode/Build/Position/Trap gui/power-meter
2012-09-17 07:19:24 -06:00
# siege engine control
keybinding add Alt-A@dwarfmode/QueryBuilding/Some/SiegeEngine gui/siege-engine
2012-09-29 07:21:49 -06:00
# military weapon auto-select
keybinding add Ctrl-W@layer_military/Equip/Customize/View gui/choose-weapons
2014-03-24 09:39:34 -06:00
# military copy uniform
keybinding add Ctrl-C@layer_military/Uniforms gui/clone-uniform
2012-10-11 09:32:41 -06:00
# minecart Guide path
keybinding add Alt-P@dwarfmode/Hauling/DefineStop/Cond/Guide gui/guide-path
2012-10-20 11:57:36 -06:00
# workshop job details
2012-10-21 11:45:51 -06:00
keybinding add Alt-A@dwarfmode/QueryBuilding/Some/Workshop/Job gui/workshop-job
2012-10-20 11:57:36 -06:00
2012-10-23 11:42:03 -06:00
# workflow front-end
2012-10-25 02:44:23 -06:00
keybinding add Alt-W@dwarfmode/QueryBuilding/Some/Workshop/Job gui/workflow
2012-12-01 05:50:03 -07:00
keybinding add Alt-W@overallstatus "gui/workflow status"
2012-10-23 11:42:03 -06:00
2013-04-06 07:10:13 -06:00
# autobutcher front-end
keybinding add Shift-B@pet/List/Unit "gui/autobutcher"
2012-10-27 10:16:27 -06:00
# assign weapon racks to squads so that they can be used
keybinding add P@dwarfmode/QueryBuilding/Some/Weaponrack gui/assign-rack
2012-09-14 02:14:36 -06:00
############################
# UI and game logic tweaks #
############################
2012-08-26 11:19:56 -06:00
# stabilize the cursor of dwarfmode when switching menus
tweak stable-cursor
2012-08-30 09:01:43 -06:00
# stop military from considering training as 'patrol duty'
tweak patrol-duty
2012-09-02 04:10:58 -06:00
# display creature weight in build plate menu as ??K, instead of (???df: Max
tweak readable-build-plate
2012-09-03 11:11:35 -06:00
# improve FPS by squashing endless item temperature update loops
tweak stable-temp
2012-09-14 02:14:36 -06:00
# speed up items reaching temp equilibrium with environment by
# capping the rate to no less than 1 degree change per 500 frames
# Note: will also cause stuff to melt faster in magma etc
tweak fast-heat 500
2012-09-17 07:19:24 -06:00
# stop stacked liquid/bar/thread/cloth items from lasting forever
# if used in reactions that use only a fraction of the dimension.
tweak fix-dimensions
2012-09-18 07:39:37 -06:00
# make reactions requiring containers usable in advmode - the issue is
# that the screen asks for those reagents to be selected directly
tweak advmode-contained
2012-09-28 03:32:41 -06:00
# support Shift-Enter in Trade and Move Goods to Depot screens for faster
# selection; it selects the current item or stack and scrolls down one line
tweak fast-trade
2012-09-28 08:01:17 -06:00
# stop the right list in military->positions from resetting to top all the time
tweak military-stable-assign
# in same list, color units already assigned to squads in brown & green
tweak military-color-assigned
2012-11-11 06:24:13 -07:00
2012-11-16 11:51:07 -07:00
# remove inverse dependency of squad training speed on unit list size and use more sparring
tweak military-training
2013-08-26 06:55:30 -06:00
# prevent crash if bees die in a hive with ungathered products by insta-gathering them
tweak hive-crash
2014-05-11 03:19:14 -06:00
# make crafted cloth items wear out with time like in old versions (bug 6003)
tweak craft-age-wear
# stop adamantine clothing from wearing out (bug 6481)
#tweak adamantine-cloth-wear
2013-09-30 03:19:51 -06:00
###########################
# Globally acting plugins #
###########################
# Dwarf Manipulator (simple in-game Dwarf Therapist replacement)
enable manipulator
# Search tool in various screens (by falconne)
enable search
# Improved build material selection interface (by falconne)
enable automaterial
# Other interface improvement tools
#enable dwarfmonitor mousequery autotrade buildingplan resume zone
# Auto Syndrome
#autoSyndrome enable
2013-03-16 06:20:53 -06:00
2013-05-24 12:43:40 -06:00
# allow the fortress bookkeeper to queue jobs through the manager
stockflow enable
2013-03-16 06:20:53 -06:00
2012-12-06 08:00:48 -07:00
###########
# Scripts #
###########
# write the correct season to gamelog on world load
soundsense-season
2014-05-04 22:59:59 -06:00
# write identifying information about the fort to gamelog on world load
log-region
2013-02-13 02:54:49 -07:00
# patch the material objects in memory to fix cloth stockpiles
fix/cloth-stockpile enable
2014-06-28 01:01:05 -06:00
# civs don't bring blood
2014-07-03 18:33:51 -06:00
#:lua dfhack.onStateChange.onLoadBloodDel = function(state) if state == SC_WORLD_LOADED then dfhack.run_command('repeat -time 1 -timeUnits months -command fix/blooddel') end end
2014-06-28 01:01:05 -06:00
# run growth bug regularly
2014-07-03 18:33:51 -06:00
#:lua dfhack.onStateChange.onLoadGrowthBug = function(state) if state == SC_WORLD_LOADED then dfhack.run_command('repeat -time 1 -timeUnits months -command fix/growthbug') end end
2014-06-28 01:01:05 -06:00
2012-11-11 06:24:13 -07:00
#######################################################
# Apply binary patches at runtime #
#######################################################
# Bug 5994 - items teleported when removing a construction
2013-03-16 06:20:53 -06:00
binpatch apply deconstruct-teleport
binpatch apply deconstruct-heapfall
2012-11-11 06:24:13 -07:00
# Bug 4406 - hospital overstocking on all items
2013-03-16 06:20:53 -06:00
binpatch apply hospital-overstocking
2012-11-11 06:24:13 -07:00
# Bug 808 - custom reactions completely using up all of their reagents
2013-03-16 06:20:53 -06:00
binpatch apply custom-reagent-size
2012-11-11 06:24:13 -07:00
# Bug 4530 - marksdwarves not training when quiver full of combat-only ammo
2013-03-16 06:20:53 -06:00
binpatch apply training-ammo
2012-11-11 06:24:13 -07:00
# Bug 1445 - weapon racks broken, armor stand capacity too low
2013-03-16 06:20:53 -06:00
binpatch apply weaponrack-unassign
binpatch apply armorstand-capacity