Matthew Cline
41130cb613
ClassNameCheck tracks class names used
...
Each time the ClassNameCheck constructor is called it adds to the list
of class names given to it, which can later be retrieved by a class
static method.
2011-07-24 21:24:34 -07:00
Petr Mrázek
caf6f881df
Minimize notes module.
2011-07-23 03:25:42 +02:00
Petr Mrázek
35cf108040
Fix up material color names and basic flag array type in Materials.
2011-07-22 03:54:09 +02:00
Petr Mrázek
e00a4e8888
Fix ore/gem sorting.
2011-07-22 03:00:56 +02:00
Petr Mrázek
7325808c98
Fixes to materials.
2011-07-22 02:44:36 +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
Petr Mrázek
b87d7e7f2a
Merge pull request #111 from matthew-cline/TOPIC-notes
...
Notes module
2011-07-21 02:25:15 -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
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
ff0cdd8671
Merge pull request #108 from matthew-cline/TOPIC-dfhackrc
...
".dfhackrc" user config file
2011-07-18 01:26:36 -07:00
Matthew Cline
592a65f9a3
".dfhackrc" user config file
...
If the file ".dfhackrc" exists in the user's home directory or in the
game directory it will be sourced, so the user can set environmental
variables like LD_LIBRARY_PATH. There's also a few shell variables it
can set to alter the behavior of the dfhack script.
2011-07-17 15:50:31 -07: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
e021199178
Merge pull request #106 from matthew-cline/TOPIC-folder
...
Get game's current world save folder
2011-07-17 02:26:06 -07:00
Petr Mrázek
fdb5397a1d
Safer console shutdown.
2011-07-17 11:06:45 +02:00
Matthew Cline
a923d19f76
Get game's current world save folder
...
Use World::ReadWorldFolder() to get "region1" (or whatever it currently
is). Only have offset for Linux.
2011-07-16 16:00:50 -07:00
Petr Mrázek
9f822af45a
Process: added a method for getting the main module base (windows). Returns 0 on linux.
2011-07-16 23:00:28 +02: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
Petr Mrázek
d6d108dd34
Qt plugin fixes for windows, renamed interface to df_interface in Gui.
2011-07-16 18:10:08 +02: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
9025066a2b
Added SDLreal.dll on windows.
2011-07-16 10:32:18 +02:00
Petr Mrázek
0d1dd5aead
Extended escape sequences are 4 bytes, not 5.
2011-07-16 10:31:49 +02:00
Petr Mrázek
5563f28fdc
Updated .gitignore
2011-07-16 09:26:56 +02:00
Petr Mrázek
003ad63c56
Disabled ctrl+c on windows (null signal handler). Some small fixes.
2011-07-16 08:00:13 +02:00
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
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