Commit Graph

2790 Commits (9f057c41af583a076ced1549dde99f6127f5319d)
 

Author SHA1 Message Date
Petr Mrázek fd418cd2dc cmake cleanup in library/ 2011-07-16 07:59:36 +02:00
Petr Mrázek 83b190b5d8 Merge pull request #104 from matthew-cline/TOPIC-die
Linux only plugin: use "die" command to kill game
2011-07-15 22:54:40 -07:00
Petr Mrázek 9eea07fb66 The console is now awesome when you use C++ streams too. 2011-07-16 00:15:20 +02:00
Petr Mrázek b85f196dc4 The console is now awesome on Windows too. 2011-07-15 19:58:17 +02:00
Petr Mrázek 459d48d75a Made the linux console super awesome. The dfhack script won't LD_PRELOAD dfhack for gdb. 2011-07-15 15:55:01 +02:00
Petr Mrázek 0af631aaa3 And nuke the rest of linenoise... 2011-07-14 12:28:41 +02:00
Petr Mrázek 3ecf244e67 Nuke linenoise. Now it's integrated in Console. 2011-07-14 12:21:07 +02:00
Petr Mrázek d21b196766 Error printing call for Console, the NYAN CAT! 2011-07-14 11:15:23 +02:00
Matthew Cline 8ad6a56704 Linux only plugin: use "die" command to kill game
Since you can't do "Ctrl-Z kill -9 %1" from the console, instead just
give the "die" command to terminate the game without saving.  Linux
only, since _exit() probably doesn't work on Windows.

Need to set cmake option BUILD_KILL_GAME to ON to compile this plugin.
2011-07-13 23:52:06 -07:00
Petr Mrázek f2b46274ec Fix for a bug in command history queue access. dfhack script can run valgrind. 2011-07-14 08:02:29 +02: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 96153a7b05 Merge branch 'dfapi' of github.com:peterix/dfhack into dfapi 2011-07-14 04:06:12 +02:00
Petr Mrázek 792d272fbf Windows side of the Console rewrite 2011-07-14 04:05:27 +02:00
Petr Mrázek 1830183406 Merge pull request #100 from matthew-cline/dfapi
Fix colonies to use new console output stuff
2011-07-13 18:27:10 -07:00
Matthew Cline d7213da5a3 Fix colonies to use new console output stuff 2011-07-13 17:36:39 -07:00
Petr Mrázek 10c60d18f4 Merge pull request #99 from matthew-cline/TOPIC-script
Linux launch script: gdb and terminal reset
2011-07-13 04:35:59 -07:00
Petr Mrázek a40153a8e1 Merge pull request #98 from matthew-cline/TOPIC-vermin
Vermin module and colonies plugin
2011-07-13 04:24:38 -07:00
Petr Mrázek 630b746cfe Integrate linenoise into Console - Linux part 2011-07-13 11:45:30 +02:00
Matthew Cline fed916bf8d Linux launch script: gdb and terminal reset
1) Giving "-g" or "--gdb" as the first argument to the dfhack script
will launch DF under gdb.

2) "reset -I" is called after DF finishes, to return the terminal to a
sane state in case DF crashed or was killed.
2011-07-12 23:37:49 -07:00
Matthew Cline d1170d54c3 Vermin module and colonies plugin
This is the start of the vermin module.  Right now it just gets a list
of the positions at which vermin are created (spawn points).  Most
spawn points are invisible and transient, but colonies (ant hills and
such) are permanent and visible.  The address of the spawn points vector
is only provided for Linux 0.31.25

The colonies plugin uses the vermin module to list the location and
species of colonies, and can either wipe them all out or turn them all
into honey bee colonies.
2011-07-12 23:17:51 -07:00
Petr Mrázek 1b011cdf6c Merge pull request #97 from matthew-cline/dfapi
.gitignore: Ignore build/plugins and CPack build stuff
2011-07-12 18:17:34 -07:00
Matthew Cline f3bedca725 Ignore build/plugins and CPack build stuff 2011-07-12 17:57:37 -07:00
Petr Mrázek 927711d4e3 Merge pull request #96 from matthew-cline/dfapi
CMake linux: copy LD_PRELOAD script
2011-07-12 17:55:06 -07:00
Matthew Cline 025a7dffb4 cmake linux: don't restrict output dir 2011-07-12 17:49:56 -07:00
Matthew Cline a30a4a2720 CMake linux: copy LD_PRELOAD script
Copy package/linux/dfhack to the games directory; it's the same as the
normal df script, but sets LD_PRELOAD properly.

Also, CMAkeLists.txt now checks to see that the output directory is set
to the game directory, and fatally fails if it isn't.
2011-07-12 17:25:27 -07:00
Petr Mrázek b5a6087da5 Forgot to commit a file. 2011-07-12 23:27:09 +02:00
Petr Mrázek 3a67a4d3c7 Added linenoise library to allow line editing in the terminal. 2011-07-12 12:13:14 +02: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
Petr Mrázek aeeece5c5f Made kittens plugin optional, and disabled by default. 2011-07-12 00:07:59 +02:00
Petr Mrázek fa4d2d9b2e Removed some silly data races from using cerr... 2011-07-11 23:07:42 +02:00
Petr Mrázek 4015586d89 Eliminated the core suspend latency, possibly added a heap of race conditions. Added vdig. 2011-07-11 22:23:13 +02: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 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
Petr Mrázek 3850954449 Hotkey input works on windows/under wine. Added skeleton for the veindigger plugin. 2011-07-10 21:07:14 +02: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
Petr Mrázek 07c11c704d Fix Windows build (untested, expect explosions). 2011-07-09 16:05:40 +02:00
Petr Mrázek 5209162403 reveal - shorter commands, reversed safe and hell mode (safe is now default) 2011-07-09 13:52:00 +02:00
Petr Mrázek d894ef0ffa Hotkey UI for linux. 2011-07-09 11:33:58 +02:00
Petr Mrázek 65d7278f53 Added a bunch of butchered SDL headers, catching SDL events on linux. 2011-07-08 03:55:37 +02:00
Petr Mrázek d865ff1014 Forgot suspend and resume in cleanmap, leading to race conditions and segfaults. 2011-07-07 13:09:17 +02:00
Petr Mrázek 367d79bcfa Weather plugin to mirror the weather tool. 2011-07-07 10:57:57 +02:00
Matthew Cline be5361da15 creaturemanager: oops, "-i" was broken 2011-07-07 01:10:40 -07:00