Commit Graph

3800 Commits (b0d184e2f931730132635a9c298886c1f091ad10)

Author SHA1 Message Date
Warmist fcb7392aa3 Moved all the logic to onupdate, somehow does not print anything. 2011-08-23 18:32:25 +03:00
Petr Mrázek 4447bcbe34 Move memview plugin to devel. 2011-08-23 15:00:31 +02:00
Petr Mrázek 8ab5697f4a Merge https://github.com/warmist/dfhack 2011-08-23 13:47:04 +02:00
Petr Mrázek e42cf32272 More options for circle designator. 2011-08-23 12:51:11 +02:00
Warmist 0975b7352e Memview plugin. 2011-08-22 16:21:13 +03:00
Petr Mrázek 4922be0a75 Circle dig designation tool. 2011-08-22 15:18:35 +02:00
Petr Mrázek b1868f802c Make autodump fix the block-local item ID vectors. 2011-08-21 23:02:05 +02:00
Warmist cc73dd3140 Refactored onfunction a bit, added function hints. 2011-08-21 20:29:35 +03:00
Warmist 78ed7d314b Linux support for onfunction/Die. 2011-08-21 16:27:01 +03:00
Warmist 246f704c68 Move function found for linux. 2011-08-21 15:56:42 +03:00
Warmist 8e68b50ed7 Linux tinkerings, moved few offsets and part of creature pattern into memory.xml model 2011-08-21 01:46:16 +03:00
Warmist 1a99121ead Started migration to init/plugin scheme (init files for noninteractive parts). Also added WINDOWS/LINUX flags 2011-08-21 00:15:40 +03:00
Warmist 150e06f115 OnFunction got new functions to make function callbacks easier (namely SetCallback(name,function) and AddFunction(addr,name)) 2011-08-20 23:13:14 +03:00
Warmist 97a85f274c Replaced test function with OnCreature move... 2011-08-20 20:23:47 +03:00
Warmist 3e75ac015c more registers supported 2011-08-20 17:51:00 +03:00
Warmist f9c1556f7f Working onfunction... 2011-08-20 17:20:04 +03:00
Warmist e901f615c9 Almost working onfunction plugin... need to work out few bugs 2011-08-20 02:33:57 +03:00
Warmist b29c719538 Started working on new plugin 2011-08-20 01:12:30 +03:00
Warmist 68fbd4a78d fixed few formating things, and annoying 'g' error. (work-around somehow the '..' operator does not work with numbers) 2011-08-19 19:12:25 +03:00
Warmist 97712089bd Added dfusion thready flag to spawn another thread 2011-08-19 18:09:00 +03:00
Petr Mrázek eeb030dc7e And don't designate over non-terrain tiles. 2011-08-17 14:29:30 +02:00
Petr Mrázek e1dceda766 Add a crosshair mode to expdig. 2011-08-17 14:27:24 +02:00
Petr Mrázek 09cb6a6828 Added exporatory mining patterns tool. 2011-08-17 13:26:03 +02:00
Petr Mrázek e14548ba4c Added menu ID watcher command and some info on bug reporting/error logs 2011-08-15 06:48:25 +02:00
Petr Mrázek 247592e30c Put warning in tiletypes tool. 2011-08-15 01:59:57 +02:00
Petr Mrázek 292074116e Fix crash bugs in liquids and tiletypes. 2011-08-15 01:30:15 +02:00
Petr Mrázek a0f99ef707 Many tweaks to plugins, reorganized the build system and removed more cruft. 2011-08-14 08:42:21 +02:00
Petr Mrázek 9ecbaecc13 Merge https://github.com/warmist/dfhack
Conflicts:
	plugins/Dfusion/dfusion.cpp
2011-08-13 14:44:54 +02:00
Petr Mrázek 81e6bce92c Command history separated from Console. 2011-08-13 14:42:09 +02:00
Petr Mrázek 1cbcb99dd5 Port tiletypes tool. 2011-08-11 04:39:12 +02:00
Warmist 3f6f33fb94 Embark plugin to memory.xml model 2011-08-09 11:37:59 +03:00
Warmist a94ba4392c small fixes to VersionInfo wrapper, added Current_Race in Memory.xml to new version and ported friendship plugin to memory.xml model 2011-08-09 11:31:51 +03:00
Warmist 148afde4eb finnaly fixed the VersionInfo. Should work now. 2011-08-09 11:00:20 +03:00
Petr Mrázek edb2a14c51 Merge https://github.com/warmist/dfhack 2011-08-09 03:35:08 +02:00
Warmist 179a41adff Rest of methods (editing not implemented) 2011-08-09 03:54:33 +03:00
Petr Mrázek f54e5ef4f1 Ported flows tool. 2011-08-09 02:07:29 +02:00
Petr Mrázek cc19180ac0 Add 'help' options to a bunch of commands. 2011-08-09 01:50:22 +02:00
Warmist 6a8c92e088 versionInfo wrapper, no offsetgroup methods yet 2011-08-09 02:46:32 +03:00
Warmist c1273982cf Merge branch 'master' of https://github.com/peterix/dfhack 2011-08-09 00:34:49 +03:00
Petr Mrázek 8fd437dbc1 Make dfusion use the static lua lib. 2011-08-08 23:30:30 +02:00
Warmist 1b972fe304 Merge branch 'master' of https://github.com/peterix/dfhack 2011-08-09 00:27:40 +03:00
Warmist eb097fc625 some mockery with linux offset finding to test if it's working 2011-08-09 00:21:10 +03:00
Petr Mrázek aa2ad1b64c Merge https://github.com/warmist/dfhack 2011-08-08 23:21:09 +02:00
Warmist 056fd51e96 lua file fixes for linux (hopefully does not break windows) 2011-08-08 23:38:09 +03:00
Warmist 71dc85d35a Linux compatibilty run, not sure if windows is not broken... 2011-08-08 22:19:04 +03:00
Petr Mrázek b75072f89e Reworked readme file. 2011-08-08 05:45:35 +02:00
Petr Mrázek 2de20929c5 Move devel plugins into plugins/devel 2011-08-08 00:55:17 +02:00
Warmist bead6cd350 Lua versioninfo start, small ressurection tool update. 2011-08-07 15:21:52 +03:00
Petr Mrázek 4fdcb811d3 Send the cleartask plugin where it really belongs - /dev/null 2011-08-07 08:42:45 +02:00
Petr Mrázek fedb6150f4 Merge https://github.com/warmist/dfhack 2011-08-06 21:00:54 +02:00
Petr Mrázek cb93b5542e Fix problem with running interactive commands from hotkeys. 2011-08-06 04:37:29 +02:00
Petr Mrázek 24bdc538e9 Fix cleanowned output. 2011-08-05 15:05:57 +02:00
Petr Mrázek 4d6ad9e073 A whole bunch of fixes for crash bugs. 2011-08-05 05:02:36 +02:00
Petr Mrázek be358ec1de Ported deramp, cleanowned and cleartask tools. 2011-08-05 00:41:31 +02:00
Warmist f2b8ff1280 All plugins added, triggers not working yet other +- work
Signed-off-by: Warmist <Warmist@gmail.com>
2011-08-05 00:44:56 +03:00
Warmist 835581e5d3 Embark and friendship working
Signed-off-by: Warmist <Warmist@gmail.com>
2011-08-05 00:22:25 +03:00
Warmist 89c1dba637 .o file reader source files 2011-08-04 21:52:22 +03:00
Warmist e66a03e654 Beggining of auto-offset finder port. (not working yet)
Signed-off-by: Warmist <Warmist@gmail.com>
2011-08-04 20:57:53 +03:00
Petr Mrázek 02d5f2273b Fix colonies plugin. 2011-08-04 04:18:38 +02:00
Petr Mrázek a8543f5ef0 Ported autodump tool 2011-08-04 04:04:46 +02:00
Warmist e7174e6736 DWORD_ fix, not sure if correct 2011-08-03 18:15:58 +03:00
Warmist ef4a459214 Ported items plugin with more stuff 2011-08-03 17:59:06 +03:00
Warmist e98e4a5111 Fixes to hexsearch
Signed-off-by: Warmist <Warmist@gmail.com>
2011-08-03 16:27:04 +03:00
Warmist f4179652fa Lots of changes, including hexsearch and wrapper for lua, also LUNE - an object oriented lua wrapper 2011-08-03 16:07:57 +03: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 a36d8b0619 Merge https://github.com/warmist/dfhack 2011-07-31 23:29:34 +02:00
Petr Mrázek 262e915b93 Make building DFusion optional. 2011-07-30 22:08:24 +02:00
Petr Mrázek 9cf69164ed BitArray implementation, now used in Maps for the flags. 2011-07-30 16:47:49 +02:00
Warmist 5f729ffc0f Added script files and cmake install script for them 2011-07-28 04:22:15 +03:00
Warmist 6c2a822494 small bugfix (lua_Process.cpp) and onTick rate slowed
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-28 04:08:57 +03:00
Petr Mrázek a9a3a3ff5f Merge branch 'topic_tools' 2011-07-28 02:36:25 +02:00
Petr Mrázek 01c1fc6c6a Quick and dirty liquids port, some work on tiles. 2011-07-28 02:35:45 +02:00
Warmist 0799cde3af Small fixes and lua port of Process
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-28 03:11:33 +03:00
Warmist e30975f8f3 Functioncall minilib quickfix for unix.
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-28 01:28:50 +03:00
Warmist f1d32ef766 Peek and pokes with lua bindings. Also interpreter implemented
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-28 00:21:09 +03:00
Warmist d262986740 Added simple readme, fixed sdl_threads and moved to tinythreads (mutex for lua engine). Other small fixes
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-27 23:10:20 +03:00
Petr Mrázek 8dec3546a3 More plugin work 2011-07-26 11:01:16 +02:00
Petr Mrázek e92bacbcc9 Don't build dfusion on linux, gcc can't do explicit __thiscall 2011-07-25 11:09:29 +02:00
Petr Mrázek 761d0de74a Merge branch 'dfapi' of https://github.com/warmist/dfhack 2011-07-25 10:36:43 +02:00
Petr Mrázek d65f5596cb Ported mode, probe. Some changes required for that. 2011-07-25 10:14:58 +02:00
Matthew Cline 109f34cd6e Improved Items module and itemhacks plugin
Items module:
* Identified flags for "owned by hostile" and "owned by trader".
* Identified an unknown uint32_t field as being the item age.
* Added and documented ClassNameCheck for more item ref types, though
  they aren't used yet (other than to mark that item ref class as a
  "known" class).
* Added method to get list of an item's unknown item ref classes.
* Made all unknown flags have name 'unk#', instead of some also having
  the name 'u_ngrd#'.

Itemhacks plugin:
* Folded second command into "dumpitems unknown", which will list
  any items which have the unknown vector field non-empty (which seems
  to be associated with tasked items).
* "dumpitems unknown" will also dump any item with a set unknown flag
  or with item refs of an unknown class.
2011-07-24 21:35:50 -07:00
Petr Mrázek caf6f881df Minimize notes module. 2011-07-23 03:25:42 +02:00
Petr Mrázek e00a4e8888 Fix ore/gem sorting. 2011-07-22 03:00:56 +02:00
Petr Mrázek 131c32494a Added DF material structs reversed by Quietust 2011-07-21 22:37:02 +02:00
Petr Mrázek 26dfa7ab39 Merge branch 'dfapi' of github.com:peterix/dfhack into dfapi 2011-07-21 11:30:21 +02:00
Petr Mrázek 262a5c9da3 Callgrind in dfhack script, added an option for building stonesense. 2011-07-21 11:29:26 +02:00
Petr Mrázek 2e40319e40 Merge pull request #114 from matthew-cline/TOPIC-vector-fix
mightBeVec() fix
2011-07-21 02:27:51 -07:00
Matthew Cline 5e4637dd03 mightBeVec() fix
Vector length might not be a multiple of 4 if, for example, it's a
vector of uint8_t or uint16_t.  However, the actual memory allocated to
the vector should be 4 byte aligned, so test for that instead.
2011-07-21 02:19:23 -07:00
Matthew Cline 86577d4f8a Notes module
Gets a vector of pointers to note structs
2011-07-20 18:26:52 -07:00
Petr Mrázek bde3616015 Merge pull request #110 from matthew-cline/TOPIC-inorganic
More info on inorganic materials
2011-07-20 12:35:58 -07:00
Petr Mrázek 9582af667b Merge branch 'dfapi' of github.com:peterix/dfhack into dfapi 2011-07-20 20:59:37 +02:00
Petr Mrázek 873cbd8388 Make 'die' plugin a builtin, made the console interaction less confusing. 2011-07-20 20:58:19 +02:00
Petr Mrázek bdbf2c033c Merge pull request #109 from matthew-cline/TOPIC-clearvec
command clearvec: clear vector
2011-07-20 11:11:40 -07:00
Matthew Cline 6631f97a6a More info on inorganic materials
Get value, wall tile, boulder tile, smelting info and strand extraction
info for inorganic materials.  Prospector uses this to separete out vein
materials into ores, gems and other.

Offsets provided for both Linux and Windows, but only tested on Linux.
2011-07-20 06:18:50 -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
Warmist f003a19e40 Functioncalling minilib
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-19 16:45:54 +03:00
Matthew Cline 5bb6c3e037 command clearvec: clear vector
Added command "clearvec" to plugin "vectors".  Takes a list of addresses
of vectors (or pointers to vectors), and sets each vector to zero length
by setting it's end to it's start.  Leaks memory, of course, but this
is just to poke at the game to see what happens when a vector's
contents disappear.
2011-07-19 01:17:11 -07:00
Petr Mrázek 00cf7bc39e Merge branch 'dfapi' of github.com:peterix/dfhack into dfapi 2011-07-18 16:28:06 +02:00
Petr Mrázek 84f74bc091 Added plugin loading/unloading/reloading. Many locks. Too many damn locks. 2011-07-18 16:22:49 +02:00
Petr Mrázek 38998a57ca Merge pull request #107 from matthew-cline/TOPIC-vector
Vectors plugin: searches memory for vectors
2011-07-17 13:06:18 -07:00
Matthew Cline 7d1d916570 Vectors plugin: searches memory for vectors
Lists embeded STL vectors and pointers to STL vectors found in the given
memory range.

Linux only, enabled with BUILD_VECTORS cmake option.
2011-07-17 03:05:14 -07:00
Petr Mrázek fdb5397a1d Safer console shutdown. 2011-07-17 11:06:45 +02:00
Warmist d0c2f3b9f5 Functioncall minilib testing 2011-07-17 12:00:29 +03:00
Warmist 6c75e8cd88 Merge branch 'dfapi' of git://github.com/peterix/dfhack into dfapi
Conflicts:
	plugins/CMakeLists.txt
2011-07-17 00:11:21 +03:00
Warmist fc68387ea3 Improved error checking (and flood protection)
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 22:23:44 +03:00
Warmist e47d05eeb4 Full DFHack::Console to lua binding.
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 22:08:58 +03:00
Petr Mrázek fdff604a44 Added missing texture for Qt plugin. It now builds properly on windows, but doesn't render in my VM... 2011-07-16 20:17:03 +02:00
Warmist 3106606a4e OnTick working!
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 20:43:57 +03:00
Warmist 3afa35df61 Added lua c++ wrapper
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 19:29:46 +03:00
Petr Mrázek d6d108dd34 Qt plugin fixes for windows, renamed interface to df_interface in Gui. 2011-07-16 18:10:08 +02:00
Warmist 7969a701c3 Lua integrated.
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 18:34:24 +03:00
Warmist 75cffcb347 First dfusion plugin commit
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 17:22:45 +03:00
Petr Mrázek 3f42479e77 Only build the qt plugin on linux 2011-07-16 15:34:29 +02:00
Petr Mrázek 70dbc3cef9 Test integrating a Qt app into a DFHack plugin. It was a success! 2011-07-16 12:26:31 +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 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 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 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
Matthew Cline d7213da5a3 Fix colonies to use new console output stuff 2011-07-13 17:36:39 -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 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 3a67a4d3c7 Added linenoise library to allow line editing in the terminal. 2011-07-12 12:13:14 +02:00
Petr Mrázek aeeece5c5f Made kittens plugin optional, and disabled by default. 2011-07-12 00:07:59 +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
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
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 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
Petr Mrázek 8b298f8d91 More maps tweaks, function for block event removal, added cleanmap version that nukes spatter objects instead of rewriting their
bitmaps.
2011-07-07 09:49:58 +02:00
Petr Mrázek 4cd80fa5d4 Only warn user when needed. 2011-07-06 12:52:16 +02:00
Petr Mrázek 8318213b97 Safe version of reveal (no hell) 2011-07-06 12:26:45 +02:00
Petr Mrázek 56a409d9a4 sync, some map data structures, commented out some dead code 2011-07-06 11:13:36 +02:00
Petr Mrázek b1d4163095 Fixed prospector, added the command list back, removed the plugin init console spam. 2011-06-27 04:49:56 +02:00
Petr Mrázek 00ddb45dbd Added optional plugin_onupdate function, called each Core update. 2011-06-27 02:13:01 +02:00
Petr Mrázek 722531f590 Added destructor code for PluginManager, console color reset funstion. 2011-06-25 08:05:17 +02:00
Petr Mrázek 6fd7d42f00 Plugin manager, reworked kittens and reveal. 2011-06-25 05:35:29 +02:00
Petr Mrázek 0bb097296a Prospector prints text again. Plugin lookup is better (ignores more non-library files) 2011-06-24 02:48:56 +02:00
Petr Mrázek 857decbcce Plugins go into a folder, disabled console close button on windows because of bugs. 2011-06-22 18:04:22 +02:00
Petr Mrázek f8cdd95b09 Console revamp - linux part. 2011-06-22 08:14:21 +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 c6dc4900d2 Very basic plugin system. 2011-06-20 04:29:38 +02:00
Petr Mrázek f2b91d3269 Making ready for adding plugins. Fixes all over the place, more removal of obsolete parts. 2011-06-20 01:12:07 +02:00