lethosor
|
a47a5f8b0a
|
Add an alternative to script_environment() that requires scripts to
recognize use as a module
Also document the use of enable/disable with lua scripts
|
2015-05-09 09:21:00 -04:00 |
lethosor
|
42a6cfaee6
|
Improve Lua enable/disable error handling
|
2015-05-08 18:03:19 -04:00 |
lethosor
|
eaf282c18e
|
Allow lua scripts to be enabled and disabled with built-in commands
|
2015-05-08 18:03:19 -04:00 |
lethosor
|
db423c1aa6
|
Allow Lua scripts to specify whether they can be used as a module or
enabled/disabled
|
2015-05-08 18:03:18 -04:00 |
lethosor
|
e73a2f8778
|
Move script internals to a single table
|
2015-05-08 18:03:18 -04:00 |
lethosor
|
3ca00f85d0
|
Merge remote-tracking branch 'lethosor/json' into develop
|
2015-04-08 20:18:13 -04:00 |
lethosor
|
99f4ea4d2b
|
Implement a PenArray class for caching parts of rendered screens
|
2015-03-27 22:56:30 -04:00 |
lethosor
|
38fa416ad1
|
Lua: Indent array values
|
2015-03-22 14:04:03 -04:00 |
lethosor
|
96e5c5d2fd
|
Fix whitespace
|
2015-03-20 19:55:32 -04:00 |
lethosor
|
b976053be0
|
Add Lua JSON library
|
2015-03-20 19:51:24 -04:00 |
lethosor
|
10cfef0553
|
Fix whitespace issues
|
2015-02-14 22:53:06 -05:00 |
lethosor
|
37f391ea6d
|
Don't store runScript() in script environments
|
2015-02-10 17:22:16 -05:00 |
lethosor
|
337598e0d6
|
Restore lua environment persistence and update modified timestamp correctly
See #544
|
2015-02-10 16:36:21 -05:00 |
expwnent
|
712892fb71
|
Only reload and recompile Lua scripts if they have moved or been updated.
|
2015-02-02 02:24:43 -05:00 |
expwnent
|
bf5e491647
|
Allow Lua scripts to be used as modules.
|
2015-01-31 22:43:54 -05:00 |
expwnent
|
aa5d7c11bc
|
Merge remote-tracking branches 'lethosor/patch-12' and 'lethosor/fs-expansion' into develop
Conflicts:
NEWS
|
2015-01-31 20:25:01 -05:00 |
lethosor
|
3ab558c72d
|
Check for init.lua existence properly
Fixes #501
|
2015-01-30 16:37:23 -05:00 |
expwnent
|
1445b0a919
|
Allowed Lua scripts to share variables with run_script and corrected dfhack.findScript so that it can find save-specific scripts.
|
2015-01-26 21:45:31 -05:00 |
expwnent
|
8e6fcac92e
|
persist-table bug.
|
2014-12-07 07:56:33 -05:00 |
expwnent
|
97b44d5898
|
persist-table tweaks, delete debug print messages
|
2014-11-16 20:41:11 -05:00 |
expwnent
|
7560fbdb6b
|
library/lua/persist-table.lua: now it uses metatables to make persistent memory storage even easier.
|
2014-11-16 17:06:59 -05:00 |
expwnent
|
59ef4e0cc2
|
It is now possible to remove syndromes by SYN_CLASS.
|
2014-11-14 23:33:49 -05:00 |
expwnent
|
e2f4d3e4cb
|
Fix persist-table so that all data is persistently stored properly.
|
2014-11-14 18:49:40 -05:00 |
expwnent
|
828852c36f
|
Made persist-table correctly clear its stuff after exiting a game.
|
2014-11-10 01:09:50 -05:00 |
expwnent
|
593424cd6d
|
new Lua library for persistent maps of arbitrary degree.
|
2014-11-10 01:03:20 -05:00 |
expwnent
|
0471294b1e
|
Fix syndrome-util.
|
2014-10-04 21:54:07 -04:00 |
expwnent
|
0fbc7e22ee
|
Merge remote-tracking branch 'lethosor/patch-4'
|
2014-09-16 17:21:39 -04:00 |
Lethosor
|
d21cd54648
|
Add '@' documentation to dfhack.lua
|
2014-09-14 11:50:03 -04:00 |
Lethosor
|
9d3af4dcb6
|
Close file opened in load_patch() on success
Fixes #327
|
2014-09-10 15:09:57 -04:00 |
lethosor
|
fadca0aef2
|
Add a variant of printall() that uses ipairs
|
2014-09-08 20:30:22 -04:00 |
Warmist
|
f04b93210a
|
Bug fixing.
Fixes for "tab" in hacked buildings.
|
2014-08-16 16:58:09 +03:00 |
Warmist
|
6868cab1fe
|
Exposed dfhack.jobs.linkIntoWorld. Simplified eventful and gui.dwarfmode for sidebar use/creation.
|
2014-08-16 16:58:01 +03:00 |
Alexander Gavrilov
|
4902c577b3
|
Fix some crashes when running without globals and update structures.
|
2014-07-24 23:10:37 +04:00 |
expwnent
|
a8f810cc3b
|
Lots of tweaks.
|
2014-07-09 06:21:52 -04:00 |
expwnent
|
0a16bc2e12
|
Merge remote-tracking branch 'origin/perSaveScripts' into scriptOrganization
Conflicts:
plugins/CMakeLists.txt
|
2014-07-07 09:01:07 -04:00 |
expwnent
|
3c06f3bada
|
Allowed per-save script folders.
|
2014-07-07 08:50:40 -04:00 |
expwnent
|
5404b69476
|
Tweak repeat.lua.
|
2014-07-03 20:32:15 -04:00 |
expwnent
|
e28a42b848
|
Fixed a problem with syndromeUtil, renamed to syndrome-util, and made add-syndrome use proper conventions.
|
2014-07-03 15:18:00 -04:00 |
expwnent
|
9d2c7a1abc
|
Tweak to repeatUtil.
|
2014-07-03 08:09:47 -04:00 |
expwnent
|
d048335a80
|
Tweaked item-trigger.
|
2014-07-03 06:01:58 -04:00 |
expwnent
|
d765de4546
|
Merge remote-tracking branch 'lethosor/lua-runcommand2' into scriptOrganization
|
2014-07-01 02:05:14 -04:00 |
expwnent
|
1c0ae94539
|
processArgs now detects duplicate args.
|
2014-07-01 00:57:24 -04:00 |
expwnent
|
2ed7960f96
|
Tweaked utils.lua::processArgs to allow specification of a table of acceptable argument names.
|
2014-07-01 00:55:52 -04:00 |
expwnent
|
c3c025c034
|
Added Lua subroutine for standardized argument processing.
|
2014-06-30 02:19:50 -04:00 |
expwnent
|
f12aa3665b
|
Removed the temporary lua events because EventManager does them better.
|
2014-06-28 02:46:08 -04:00 |
lethosor
|
830b39e13b
|
Non-silent version of Lua's run_command
|
2014-06-27 21:58:36 -04:00 |
expwnent
|
0db0244d08
|
Added add-syndrome script to modtools and fixed syndromeUtil so it actually works. This should make it so that event hooks only have to be able to run scripts instead of run scripts and add syndromes.
|
2014-06-27 05:47:52 -04:00 |
expwnent
|
187ce3c58b
|
Fixed the organization of my new lua modules. They now go in library/lua instead of where plugin lua modules go. Updated scripts accordingly.
|
2014-06-27 02:43:05 -04:00 |
Alexander Gavrilov
|
6f162a4e72
|
Verify that mkmodule is called with the correct module name.
|
2014-06-26 18:11:05 +04:00 |
lethosor
|
d538e13450
|
Allow runCommand arguments to be passed as a table internally
|
2014-06-16 11:16:35 -04:00 |