2011-03-20 10:17:33 -06:00
|
|
|
if(NOT DEFINED DFHACK_CONSISTENCY)
|
2011-05-27 00:20:52 -06:00
|
|
|
MESSAGE(FATAL_ERROR "Please build the whole thing, not parts. You can turn parts on/off using options/ccmake during build.")
|
2011-03-20 10:17:33 -06:00
|
|
|
ENDIF()
|
2009-09-13 18:02:46 -06:00
|
|
|
|
|
|
|
# this is required to ensure we use the right configuration for the system.
|
|
|
|
IF(UNIX)
|
2011-03-20 10:17:33 -06:00
|
|
|
add_definitions(-DLINUX_BUILD)
|
2011-03-16 00:35:08 -06:00
|
|
|
ENDIF()
|
|
|
|
|
2011-05-14 22:25:19 -06:00
|
|
|
# burn trees and shrubs to ashes
|
|
|
|
DFHACK_TOOL(dfimmolate immolate.cpp)
|
2011-05-27 00:20:52 -06:00
|
|
|
IF(WIN32)
|
|
|
|
INSTALL(
|
|
|
|
PROGRAMS dfimmolate-all.bat dfimmolate-fire.bat dfimmolate-shrubs.bat dfimmolate-shrubs-fire.bat dfimmolate-trees.bat dfimmolate-trees-fire.bat
|
|
|
|
DESTINATION ${DFHACK_BINARY_DESTINATION}
|
|
|
|
)
|
|
|
|
ENDIF()
|
2011-05-14 22:25:19 -06:00
|
|
|
|
|
|
|
# grow saplings into trees instantly
|
|
|
|
DFHACK_TOOL(dfgrow grow.cpp)
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
# a reveal clone
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfreveal reveal.cpp)
|
2009-09-13 18:02:46 -06:00
|
|
|
|
2011-04-10 10:41:49 -06:00
|
|
|
# re-hide borked reveals
|
2011-04-10 14:14:35 -06:00
|
|
|
DFHACK_TOOL(dfunreveal unreveal.cpp)
|
2011-04-10 10:41:49 -06:00
|
|
|
|
2011-03-21 14:14:07 -06:00
|
|
|
# designate all visible floor tiles as lair, freezing items in place
|
|
|
|
DFHACK_TOOL(dflair lair.cpp)
|
|
|
|
|
2010-11-07 01:49:33 -07:00
|
|
|
# force pause!
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfpause forcepause.cpp)
|
2010-11-07 01:49:33 -07:00
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
# prospector - produces a list of available materials and their quantities
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfprospector prospector.cpp)
|
2011-04-19 17:32:34 -06:00
|
|
|
IF(WIN32)
|
2011-05-27 00:20:52 -06:00
|
|
|
INSTALL(PROGRAMS dfprospector-text.bat dfprospector-all.bat DESTINATION ${DFHACK_BINARY_DESTINATION})
|
2011-04-19 17:32:34 -06:00
|
|
|
ENDIF()
|
2009-09-13 18:02:46 -06:00
|
|
|
|
2010-04-10 18:08:21 -06:00
|
|
|
# vdig - dig the vein under the cursor
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfvdig vdig.cpp)
|
2011-03-20 10:17:33 -06:00
|
|
|
IF(WIN32)
|
|
|
|
INSTALL(PROGRAMS dfXvdig.bat DESTINATION ${DFHACK_BINARY_DESTINATION})
|
|
|
|
ENDIF()
|
2010-04-10 18:08:21 -06:00
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
# cleanmap - removes mud, snow, blood and similar stuff from a map. farmers beware
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfcleanmap cleanmap.cpp)
|
2009-10-23 04:54:24 -06:00
|
|
|
|
2011-04-19 17:28:47 -06:00
|
|
|
# cleanowned - confiscate items owned by dwarves so they can be atomsmashed/reused/etc.
|
|
|
|
DFHACK_TOOL(dfcleanowned cleanowned.cpp)
|
2011-05-08 02:45:37 -06:00
|
|
|
IF(WIN32)
|
2011-05-27 00:20:52 -06:00
|
|
|
INSTALL(PROGRAMS dfconfiscate.bat dfremovelitter.bat DESTINATION ${DFHACK_BINARY_DESTINATION})
|
2011-05-08 02:45:37 -06:00
|
|
|
ENDIF()
|
2011-04-19 17:28:47 -06:00
|
|
|
|
2010-04-10 18:56:56 -06:00
|
|
|
# unstuck - make DF run if something goes wrong with the 'normal' memory access method
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfunstuck unstuck.cpp)
|
2010-04-10 18:56:56 -06:00
|
|
|
|
2010-04-30 13:52:37 -06:00
|
|
|
# probe - map tile probe
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfprobe probe.cpp)
|
2010-04-30 13:52:37 -06:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# attachtest - 100x attach/detach, suspend/resume
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfattachtest attachtest.cpp)
|
2009-11-17 07:52:47 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# a benchmark program, reads the map 1000x
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfexpbench expbench.cpp)
|
2010-02-06 19:55:54 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# suspendtest - test if suspend works. df should stop responding when suspended
|
|
|
|
# by dfhack
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfsuspend suspendtest.cpp)
|
2010-02-18 18:13:53 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# flows - check flows impact on fps
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfflows flows.cpp)
|
2010-05-01 16:49:01 -06:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# liquids manipulation tool
|
|
|
|
# Original author: Aleric
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfliquids liquids.cpp)
|
2010-02-18 18:13:53 -07:00
|
|
|
|
2010-08-13 15:25:14 -06:00
|
|
|
# Solves the problem of unusable items after reclaim by clearing the 'in_job' bit of all items.
|
|
|
|
# Original author: Quietust
|
2011-04-16 16:53:05 -06:00
|
|
|
DFHACK_TOOL(dfcleartask cleartask.cpp)
|
2010-08-13 15:25:14 -06:00
|
|
|
|
2010-08-09 16:30:52 -06:00
|
|
|
# position - check the DF window and cursor parameters
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfposition position.cpp)
|
2010-08-09 16:30:52 -06:00
|
|
|
|
2011-03-07 02:12:27 -07:00
|
|
|
# mode - a utility to change the current game and control modes
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfmode mode.cpp)
|
2011-03-07 02:12:27 -07:00
|
|
|
|
2010-08-09 16:30:52 -06:00
|
|
|
# just dump offsets of the current version
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfdoffsets dumpoffsets.cpp)
|
2010-08-09 16:30:52 -06:00
|
|
|
|
2010-09-01 12:51:12 -06:00
|
|
|
# change the weather
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfweather weather.cpp)
|
2010-09-01 12:51:12 -06:00
|
|
|
|
2011-03-23 21:00:23 -06:00
|
|
|
# refill adamantine veins
|
|
|
|
DFHACK_TOOL(dftubefill dftubefill.cpp)
|
|
|
|
|
2011-03-21 04:09:34 -06:00
|
|
|
# deramp
|
|
|
|
# Author: zilpin
|
|
|
|
# seeks entire map for 'remove ramp' designation, makes a floor, removes designation.
|
|
|
|
# intended use is to simulate old 'channel' functionality.
|
|
|
|
DFHACK_TOOL(dfderamp deramp.cpp)
|
|
|
|
|
2011-02-13 19:58:32 -07:00
|
|
|
# incrementalsearch - a bit like cheat engine, only DF-specific, very basic
|
2011-03-16 00:35:08 -06:00
|
|
|
#DFHACK_TOOL(dfautosearch autosearch.cpp)
|
|
|
|
DFHACK_TOOL(dfincremental incrementalsearch.cpp)
|
2011-02-13 19:58:32 -07:00
|
|
|
|
2011-04-27 17:36:31 -06:00
|
|
|
# auto dump. dumps all items marked for dumping at the cursor position without the need for dwarf labor.
|
|
|
|
# ... or just kills the items? :P
|
|
|
|
DFHACK_TOOL(dfautodump autodump.cpp)
|
2011-05-08 02:45:37 -06:00
|
|
|
IF(WIN32)
|
|
|
|
INSTALL(PROGRAMS dfautodestroy.bat DESTINATION ${DFHACK_BINARY_DESTINATION})
|
|
|
|
ENDIF()
|
2011-04-27 17:36:31 -06:00
|
|
|
|
2011-05-13 11:37:48 -06:00
|
|
|
# tile types. tile shape, material, and special information manipulation tool
|
|
|
|
DFHACK_TOOL(dftiletypes tiletypes.cpp)
|
|
|
|
|
2011-05-21 12:32:53 -06:00
|
|
|
# veinlook - look at the map... sort of, kind of
|
|
|
|
DFHACK_CURSES_TOOL(dfveinlook veinlook.cpp)
|
2011-05-22 19:23:56 -06:00
|
|
|
|
|
|
|
# dfstatus - watches DF and prints stuff in a window
|
|
|
|
DFHACK_CURSES_TOOL(dfstatus dfstatus.cpp)
|