Commit Graph

1576 Commits (3d5169901c247a5c87a22b2cd500526e4db0c5f8)
 

Author SHA1 Message Date
zilpin 3d5169901c minor bug fixes 2011-07-18 16:34:35 -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 2339dcb4b9 Merge pull request #93 from matthew-cline/TOPIC-readSTLString
readSTLString() new/free mismatch fix
2011-07-11 15:13:03 -07: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 5da4eb3344 readSTLString() new/free mismatch fix
valgrind caught a problem where memory was allocated with "new[]" but
freed with "delete"; changed it to free with "delete[]".
2011-07-11 02:06:38 -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
Petr Mrázek 6b1d7fbe35 Merge pull request #90 from matthew-cline/master
Deal with third flag group in creatures
2011-07-10 22:51:06 -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
Petr Mrázek bc9911212e Merge pull request #89 from matthew-cline/master
incremental: deal with shifting Linux maps (Issue #88)
2011-07-10 03:18:16 -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
Petr Mrázek 488322cb0d Merge pull request #87 from matthew-cline/master
creaturemanager.cpp: Additional actions and creature filters, and misc changes
2011-07-09 20:32:20 -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 b7b48ba1bb Merge pull request #86 from matthew-cline/master
cmake option BUILD_NO_CURSES
2011-07-07 00:33:23 -07:00
Matthew Cline cecbf60375 Added option BUILD_NO_CURSES
You can now do "cmake .. -DBUILD_NO_CURSES=ON" to prevent curses tools
from being compiled, since there's a problem using mvwaddwstr() on some
Linux distributions.
2011-07-07 00:16:48 -07: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 da2fb1cb1a Fix creature owned items vector offset on Windows, added support for owned items to more versions. 2011-05-28 10:18:50 +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 a459ee8137 Added 'glowing barrier' to the known tile types. 2011-05-26 05:51:04 +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 9c1afa2285 Fix vegetation vector on windows to include willow trees. 2011-05-26 02:48:59 +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 6d32802dd4 Vegetation update order is a 16bit integer! 2011-05-26 02:13:29 +02:00
Petr Mrázek 608b0f9f56 Better document Items module 2011-05-26 02:10:23 +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 040b5be290 Reformat stopwatch.h for readability 2011-05-23 04:19:17 +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 c6b749e7e5 Small tweak to process enumeration on Windows. 2011-05-23 03:24:16 +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