Commit Graph

50 Commits (dfe86f9bd7e0c6def51d6d5179f9018c1e70d950)

Author SHA1 Message Date
Alexander Gavrilov d4d6349f48 Expose builtin commands to dfhack-run, and add lua script support.
Move builtin command implementation to Core methods, and fall
back to hack/scripts/*.lua for otherwise unrecognized commands.
2012-05-04 19:47:18 +04:00
Warmist 8e1d26ff97 Added ability to call dfuse as a hotkey.
E.g. calling dfuse "tools.empregnate()" now works.
2012-04-03 16:17:43 +03:00
Alexander Gavrilov 0f41608ed4 Pull console output support and REPL out of dfusion into core lib. 2012-03-31 15:40:54 +04:00
Alexander Gavrilov 9384f0c842 Update lua to 5.2 and fix obvious breakage due to obsolete api. 2012-03-31 12:11:43 +04:00
Alexander Gavrilov e989ca58db Enhance the interactive interpreter mode of dfusion.
1. Reimplement Console.print* to behave exactly as the standard print
   function, and apply print = Console.println from c++ init code.
2. Add a couple of convenience shortcuts to save some manual typing
   when poking around data structures using the interactive prompt.
3. Change the prompt string to a more distinguished shape.
2012-03-30 11:57:27 +04:00
Quietust 2ac562d4d7 Add missing array terminator - without this, Release builds crash on startup 2012-03-27 10:23:11 -05:00
Warmist 3761426ef5 Extern "C" mess fixed, bitlib mess fixed, bitlib added to autoload. 2012-03-26 18:48:24 +03:00
Warmist 3383aa7f6d New pointer, setup pointer and df-array. ALso new tool, empregnate. 2012-03-18 12:24:28 +02:00
Warmist fd48c59aba Started move to new system. Temp disabled non-working plugins. 2012-03-17 15:05:48 +02:00
Warmist 081aee1363 Fixes for DfHack::Process foolery. 2012-03-11 14:59:32 +02:00
Warmist 237d7b433a Updated to new dfhack standards. 2012-03-11 14:33:08 +02:00
Warmist e8788d8872 Lots of work done with xml parsing. 2012-03-04 14:45:15 +02:00
Warmist da57a66850 fixed build errors with offsetgroup 2012-02-23 00:21:50 +02:00
Petr Mrázek 8f1a2ebf7f Added missing keybinding mention to 'ls', DFusion hotfix. 2012-02-06 04:47:13 +01:00
Warmist 3115fb17c7 Merge branch 'master' of git://github.com/peterix/dfhack 2012-01-06 10:24:46 +02:00
Petr Mrázek 78a98de37e Fix MSVC builds, break buildings :D 2012-01-05 23:39:14 +01:00
Warmist d612db0935 Added binding to suspend/resume (engine.suspend and engine.resume in lua) 2012-01-05 10:58:53 +02:00
Petr Mrázek 86464b99cc Remove DfVector, break MSVC builds until further notice. 2012-01-04 01:45:11 +01:00
Warmist 71e2321fef Added getKeys method to lua offsetgroup and a way to cast versioninfo to offsetgroup 2011-12-24 16:00:43 +02:00
Warmist e7a8c8c684 Lua function calling. 2011-12-04 18:45:34 +02:00
Warmist 6a56eabd71 Added calldf function to call df functions (did not find any working function yet). Added 3 new function for onfunction. 2011-09-21 21:35:58 +03:00
Warmist ab448d4109 Small fixes + lua_bit lib (fixes flag manipulations) 2011-09-17 14:59:10 +03:00
Warmist 25b689b778 Fixes so that windows ver would build (and work) 2011-08-25 07:22:31 +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 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 b29c719538 Started working on new plugin 2011-08-20 01:12:30 +03: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
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
Warmist 179a41adff Rest of methods (editing not implemented) 2011-08-09 03:54:33 +03:00
Warmist 6a8c92e088 versionInfo wrapper, no offsetgroup methods yet 2011-08-09 02:46:32 +03:00
Warmist 71dc85d35a Linux compatibilty run, not sure if windows is not broken... 2011-08-08 22:19:04 +03:00
Warmist bead6cd350 Lua versioninfo start, small ressurection tool update. 2011-08-07 15:21:52 +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 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
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 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
Warmist f003a19e40 Functioncalling minilib
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-19 16:45:54 +03:00
Warmist d0c2f3b9f5 Functioncall minilib testing 2011-07-17 12:00:29 +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
Warmist 3afa35df61 Added lua c++ wrapper
Signed-off-by: Warmist <Warmist@gmail.com>
2011-07-16 19:29:46 +03:00