Commit Graph

445 Commits (68fbd4a78deee46fdc7d8ea5ab580f023fb804d2)

Author SHA1 Message Date
Petr Mrázek a8543f5ef0 Ported autodump tool 2011-08-04 04:04:46 +02:00
Petr Mrázek ff4d545ae7 Port tubefill tool. 2011-08-02 16:25:10 +02:00
Petr Mrázek e04dd8f101 The old unreveal flood fill is now the revflood command. 2011-08-02 03:48:59 +02:00
Petr Mrázek 6cc66d3434 Merged grow and immolate tools into plants plugin. 2011-08-02 02:21:25 +02:00
Petr Mrázek 8559966de2 Remove obsolete files. 2011-07-31 23:29:03 +02:00
Petr Mrázek d65f5596cb Ported mode, probe. Some changes required for that. 2011-07-25 10:14:58 +02:00
Petr Mrázek bd9643c8cc Merge branch 'dfapi'
Conflicts:
	CMakeLists.txt
	library/DFProcess-linux.cpp
	library/include/dfhack-c/modules/Creatures_C.h
	library/include/dfhack/modules/Maps.h
	library/modules/Creatures_C.cpp
2011-07-23 17:29:05 +02:00
Petr Mrázek 6b6eed34cc Merge https://github.com/zilpin/dfhack 2011-07-23 17:08:15 +02:00
Petr Mrázek 97ee2a2a39 Merge pull request #95 from matthew-cline/TOPIC-pregnancy
creatures: read and write pregnancy counter
2011-07-23 08:07:34 -07:00
Petr Mrázek 0defcc9889 Making Items a bit more sane. It's still using Accessors though. 2011-07-20 10:41:13 +02:00
zilpin 4619739b35 -workaround compile time error with a C style string hack. 2011-07-18 16:45:00 -04:00
zilpin 4eb13800cd -WriteVein(), and some convenience functions for the vein bitmaps. 2011-07-18 15:55:41 -04:00
zilpin de24b01a69 -fix pillar tile types to be TILE_SMOOTH instead of TILE_NORMAL.
-Added working (though clumsy) draw tile tool.
-Began lumberjack and veinswap tools.
2011-07-13 23:44:37 -04:00
Petr Mrázek f5c50b6938 Merge pull request #92 from matthew-cline/TOPIC-buildings
buildingsdump.cpp: cleanup
2011-07-11 15:09:43 -07:00
Matthew Cline 5c1526d6d9 creatures: read and write pregnancy counter
Also change creaturemanger to print out the ticks-until-birth for
pregnant creatures.
2011-07-11 02:48:10 -07:00
Matthew Cline 6cce940901 buildingsdump.cpp: cleanup
Split code off from main into functions for easier readibility, and
improved code formatting some.  Also, reduced the amount of hex
dumped for "buildings under cursor" mode, since any more than that
was dumping memory regions that were constantly changing as ticks
went by even if nothing was done to the building.
2011-07-10 23:50:29 -07:00
Petr Mrázek 4d406524c0 Merge pull request #91 from matthew-cline/TOPIC-blockflags
playground/blockflags: toggle block flag bits
2011-07-10 22:51:32 -07:00
Matthew Cline ea9a6deed4 playground/blockflags: toggle block flag bits
Invert/toggle all block flag bits, to investigate what they do.
Strangely, they don't seem to do anyting.
2011-07-10 17:29:34 -07:00
Matthew Cline cb9c9aae7c Deal with third flag group in creatures
Added support for reading and writing the third creature flag group,
t_creaturflags3 (the offest already exists in Memory.xml).  So far I've
only figured out three of the flags (out of an apparent 13):

1) announce_titan, which causes the creature to be announced as if
   it was a titan or FB which had just arrived.

2) scuttle, which causes the creature to be die like it had been
   killed in the game.  That is, it leaves behind a corpse, and
   will generate unhappy thoughts in dwarves if approriate.

3) ghostly, for creatures which are the ghosts of dead dwarves.

I updated creaturemanager to use scuttle for --kill, and added the
action --erase to kill in the old way which doesn't leave a corpse or
creatre unhappy thoughts.
2011-07-10 04:00:52 -07:00
Matthew Cline 49fd378a47 incremental: deal with shifting Linux maps
Issues #88: sometimes the end of the heap of the DF process will change
between detaching and re-attaching to the process.  To deal with this,
/proc/PID/maps is re-read every time the process is attached.

Also, made semgent finder give a little more info if there's an error
doing a memory read.
2011-07-10 02:16:28 -07:00
Matthew Cline be5361da15 creaturemanager: oops, "-i" was broken 2011-07-07 01:10:40 -07:00
Matthew Cline 87e7ce5b1d New actions and creature filters, plus minor stuff
Multiple changes:
* Slight rearrangement of help message.
* Fixed bug where "Dead" flag wasn't being displayed with
  --showallflags.
* Added option "-saf" as a shortcut for --showallflags.
* Creature origin (memory pointer) and civilization number are
  displayed in the multi-line listing.
* Split logic for testing if creature is to be used off into it's
  own function, which is easier to read.
* Added "--type" filter, which can select tame creatures, wild
  creatures, demonic creatures, and so on.  If the creature type
  hasn't been changed from the default of DWARF then's it's
  automatically changed to ALL (but can still explicitly be set
  via '-c DWARF')
* Added actions to tame selected creatures and to mark them for
  butchering.
2011-07-07 00:48:57 -07:00
Petr Mrázek 67601dedee Merge branch 'master' into dfapi 2011-07-06 11:21:30 +02:00
Petr Mrázek 5a3b02e9e4 Safe mode for reveal by matthew-cline 2011-07-06 01:32:43 +02:00
Petr Mrázek dfe58b6757 Improvements to probe by matthew-cline 2011-07-06 01:28:23 +02:00
Petr Mrázek b41ab40bb6 Prospector plugin tool thing. How to pass them parameters? 2011-06-20 05:08:21 +02:00
Petr Mrázek 6e00dc4c8e Update version numbers, readme file. Adding a lot of batch scripts for the windows versions of new tools. 2011-05-27 08:20:52 +02:00
Petr Mrázek 07bb0408c1 Fix memory.xml and pdcurses.dll copy problems for good. 2011-05-26 12:33:38 +02:00
Petr Mrázek f953ed198e Remove unused variable 2011-05-26 12:33:25 +02:00
Petr Mrázek b3fd50e2a8 Fix cleanmap. Now it treats mud and snow properly. 2011-05-26 05:48:56 +02:00
Petr Mrázek 0661248d1f Cleanmap filters on matter state. Anything non-solid is removed (including mud and water). Solid mud and snow stay. 2011-05-26 02:14:42 +02:00
Petr Mrázek e7d9bc6f91 matter states for tile coverings, pig iron watch in dfstatus 2011-05-25 05:13:24 +02:00
Petr Mrázek a1a5df52a1 Nicer formatting in dfstatus. 2011-05-23 21:58:44 +02:00
Petr Mrázek d2e01ec579 Fix many warnings from MSVC builds. 2011-05-23 21:30:51 +02:00
Petr Mrázek 95f3f5d10e Added kitchen product tracking to dfstatus (manual merge from enjia2000) 2011-05-23 04:00:56 +02:00
Petr Mrázek b7aef4d84c Move dfstatus to supported. 2011-05-23 03:23:56 +02:00
Petr Mrázek e5e0391d76 stop dfstatus from wasting time. added 'stopwatch.h' to extras for getting accurate unix time in milliseconds 2011-05-21 21:54:53 +02:00
Petr Mrázek 3fae382402 Missing dfstatus.cpp 2011-05-21 20:34:08 +02:00
Petr Mrázek bb99924b24 Curses support across platforms! 2011-05-21 20:32:53 +02:00
Petr Mrázek 909cd8b60b Move termutil to a globally accessible area. 2011-05-17 08:36:38 +02:00
Petr Mrázek 61dea59e29 Fix a big heap of warnings. 2011-05-15 22:24:40 +02:00
Petr Mrázek 515f4952a9 Merge https://github.com/angavrilov/dfhack
Conflicts:
	library/include/dfhack/DFProcess.h
2011-05-15 21:50:20 +02:00
Petr Mrázek bba5f0884d Move grow and immolate to supported. 2011-05-15 06:25:19 +02:00
Petr Mrázek ca65aa99e6 apply terminal detection hack to all supported tools, add missing terminfo header 2011-05-15 06:10:47 +02:00
Petr Mrázek fe6eb4b70a Fix for MSVC build, added prototype cmd.exe detection on windows. 2011-05-15 05:19:51 +02:00
Petr Mrázek 4d3f4c2c23 Unknown 3 was update order. 2011-05-15 02:21:24 +02:00
Petr Mrázek d9e9fae7a0 Unknown 1 was the grow counter. Added the immolate and grow tools. 2011-05-15 01:53:43 +02:00
Petr Mrázek 43fc15476a Added ability to set trees on fire. 2011-05-15 00:26:44 +02:00
Petr Mrázek 9995207833 Merge branch 'master' of github.com:peterix/dfhack 2011-05-14 15:52:09 +02:00
Petr Mrázek b65c4ed55b New vegetation variables, fixed vegetation vector for 31.25 linux 2011-05-14 15:51:11 +02:00