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
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
bc23cc9eca
Made Process::setPermisions functions, to set memory page's permisions
2011-07-28 01:00:12 +03:00
Warmist
a01004efd6
Merge branch 'master' of github.com:warmist/dfhack
2011-07-28 00:21:58 +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
260bdfac0d
Peek and pokes with lua bindings
...
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-27 23:41:56 +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
2a95a4edf2
Windows part of mutex rewrite.
2011-07-27 14:22:37 +02:00
Petr Mrázek
2470e564a9
Linux-side of threading function rewrite. Windows=broken.
2011-07-27 05:59:09 +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
a8ff3d9d48
Merge pull request #116 from matthew-cline/TOPIC-items
...
Improved Items module and itemhacks plugin
2011-07-25 01:10:07 -07: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
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
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
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
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
zilpin
4619739b35
-workaround compile time error with a C style string hack.
2011-07-18 16:45:00 -04:00
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
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
Warmist
d0c2f3b9f5
Functioncall minilib testing
2011-07-17 12:00:29 +03: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