Commit Graph

795 Commits (700392ba55b68759e3a1dbdca8bd21470574ecbd)

Author SHA1 Message Date
Wes Malone 07ed843737 Describe wood, table, quern, millstone 2015-05-30 17:10:55 -04:00
Peridexis Errant bec0150669 Many more descriptions - 54 to go! 2015-05-27 09:31:04 +10:00
Peridexis Errant de2724062d Several more descriptions 2015-05-26 23:55:18 +10:00
Peridexis Errant e929760f6b Described jewelery 2015-05-26 21:09:59 +10:00
Peridexis Errant 711a817e88 Added some more descriptions
Thanks to /u/Puffin4Tom and /u/KroyMortlach
2015-05-26 20:58:16 +10:00
Peridexis Errant 3bd258816f Merge branch 'develop' of https://github.com/DFHack/dfhack into describe-items 2015-05-26 17:28:29 +10:00
Peridexis Errant 1ad5fda6b4 Finish item-descriptions.lua templating 2015-05-26 17:27:58 +10:00
lethosor 957b894a80 warn-starving improvements
* Display all problems with all units
* Display units' professions if applicable
* Log warnings to the console
* Allow use as a module
* Add an argument to (re-)display all problematic units

See #614
2015-05-24 13:05:46 -04:00
lethosor de984b1a60 Merge remote-tracking branch 'PeridexisErrant/warn-starving' into develop 2015-05-24 12:35:10 -04:00
lethosor 7baf581b93 Make gui/gm-editor work with lua tables 2015-05-24 11:43:05 -04:00
Putnam3145 73527cc6eb Made teleport work with cursor and handle errors. 2015-05-19 13:18:40 -07:00
PeridexisErrant 7c3c92dd54 Remove surplus end 2015-05-13 23:04:32 +10:00
PeridexisErrant 2569abcdec Fix variables na and announcement -> msg 2015-05-13 22:58:34 +10:00
Peridexis Errant 3583004c6d Add warn-starving.lua
With minor changes; it doesn't repeat here.
Closes issue #596.
2015-05-13 14:49:10 +10:00
lethosor 6447695d1f Merge remote-tracking branch 'PeridexisErrant/add-scripts' into develop 2015-05-09 09:36:51 -04:00
Peridexis Errant d7717a92ab Add burial.lua by Putnam
It's useful, and why not?
2015-05-09 17:29:03 +10:00
Peridexis Errant 939cab4451 Add fix-ster by Tacomagic
Allow setting fertility or sterility of units or whole species.
2015-05-09 16:35:19 +10:00
lethosor 9ce0616325 Allow scripts that recognize "moduleMode" to be used as modules 2015-05-08 18:03:19 -04:00
lethosor 4e5326e25d Only allow quicksave to be used in fortress mode 2015-05-06 18:47:40 -04:00
Lethosor c095371814 Merge pull request #606 from Putnam3145/patch-16
Make full-heal -r optionally remove corpse.
2015-04-29 17:37:22 -04:00
Lethosor 06a2e430dc Merge pull request #608 from Putnam3145/patch-17
Made "could not find syndrome" error work.
2015-04-29 17:37:06 -04:00
Putnam3145 aeeb2cfd6e Made "could not find syndrome" error work.
Before, it was trying to look at the syndrome ID it didn't actually find.
2015-04-29 14:19:24 -07:00
Putnam3145 f6b9d19762 Make full-heal -r optionally remove corpse. 2015-04-24 18:59:09 -07:00
Putnam3145 d4c2ec9365 Made hack-wish assign quality properly.
Also added a few return values and localized most functions so that it can be better used with dfhack.script_environment.
2015-04-23 18:11:13 -07:00
lethosor 3eb814ce51 Clean up gui/dfstatus.lua 2015-04-18 19:19:43 -04:00
lethosor e3b7d61bc1 Fix a few view-item-info issues
* Make descriptions work
* Allow the script to be enabled/disabled
* Avoid appending an empty line to script output and add a DFHack
  label
2015-04-18 18:57:21 -04:00
lethosor 1a23ce136a Merge remote-tracking branch 'PeridexisErrant/item-info' into develop 2015-04-18 17:56:32 -04:00
lethosor fab7887f20 Make lint.py work under Python 3 and fix a few UTF-8 errors 2015-04-06 11:25:30 -04:00
Peridexis Errant 2bd5b7e349 Describe blocks, fix trailing whitespace 2015-04-06 16:03:14 +10:00
PeridexisErrant ad09bc98d1 Add script, content, and documentation
See readme diff for more information.  A follow-up pull will eventually
come to complete the description coverage.
2015-04-01 10:23:09 +11:00
Ben Lubar e657a05ca1 ban-cooking script
ban-cooking booze  - bans cooking of drinks
ban-cooking honey  - bans cooking of honey bee honey
ban-cooking tallow - bans cooking of tallow
ban-cooking oil    - bans cooking of oil
ban-cooking seeds  - bans cooking of plants that have seeds (tree seeds
don't count)
2015-03-28 13:09:35 -05:00
scamtank 9a661e1481 Extend fix/blood-del to include tears and sweat
This version of blood-del.lua will catch the new bodily emissions too, mostly from gremlins or gnomes.
2015-03-22 14:24:51 +02:00
lethosor 83e175f52b Fix syntax error in devel/light.lua 2015-02-23 18:57:50 -05:00
Lethosor e9cc242322 Merge pull request #555 from lethosor/travis
Add .travis.yml and fix whitespace issues
2015-02-16 17:05:29 -05:00
Lethosor d14a8b4308 Convert TranslateName output to UTF-8 2015-02-16 13:55:19 -05:00
lethosor 10cfef0553 Fix whitespace issues 2015-02-14 22:53:06 -05:00
lethosor 57bdf731f0 Merge branch 'export-more-legends' into develop 2015-02-12 19:01:05 -05:00
lethosor c39d3165eb Use consistent indentation 2015-02-12 19:00:41 -05:00
PeridexisErrant 62bec962f8 Standard function definition syntax 2015-02-13 10:08:44 +11:00
Peridexis Errant 74476bcd95 fix whitespace
PSA:  do not assume that it's the same as last time you checked.
2015-02-12 16:14:25 +11:00
lethosor 3411704140 Merge remote-tracking branch 'Putnam3145/patch-12' into develop
Conflicts:
	NEWS
2015-02-11 23:18:54 -05:00
Putnam3145 38fbf67262 Make skill-change actually work with level
It was trying to set the level to the string "Proficient" instead of 5, same for every other skill level. There was no workaround, especially since it expected numbers for the value.
2015-02-11 16:08:23 -08:00
PeridexisErrant f67370b817 exportlegends - more data in legends_plus.xml
Originally written by Mason11987, adapted and included with permission.
2015-02-12 09:39:56 +11:00
Ben Lubar ea74e1252a fix attribute-changing syndromes in show-unit-syndromes 2015-02-08 13:55:39 -06:00
lethosor 7823a14a8f Merge remote-tracking branch 'Putnam3145/patch-10' into develop
Conflicts:
	NEWS
2015-02-06 17:08:00 -05:00
Lethosor 8bc9bcfcb1 Merge pull request #533 from Putnam3145/patch-11
Added subthought properly to add-thought.
2015-02-06 16:58:40 -05:00
Putnam3145 ac318aaee8 Added subthought properly to add-thought.
Not used much, but still very much a problem that it wasn't there.
2015-02-06 13:52:56 -08:00
Putnam3145 674b9dd5a9 Made hack-wish stack properly. 2015-02-05 00:25:05 -08:00
Lethosor bcfff161e7 Rename ShowUnitSyndromes.rb to show-unit-syndromes.rb 2015-02-03 21:25:43 -05:00
Ben Lubar 02a14c6b57 fix ShowUnitSyndromes 2015-02-03 20:05:33 -06:00
Lethosor 7aa82fdbdb Merge pull request #527 from warmist/gm-editor
Add search bar to gui/gm-editor
2015-02-03 12:29:01 -05:00
Warmist ab14eae76c LEAVESCREEN now exits out of search too. 2015-02-03 19:17:33 +02:00
expwnent def4fca175 Tweak anonymous-script. 2015-02-02 05:21:13 -05:00
expwnent 0fa316f6eb Tweak reaction-product-trigger. 2015-02-02 05:20:59 -05:00
expwnent e5e0d93ef1 Added modtools/reaction-product-trigger. 2015-02-02 02:39:05 -05:00
Warmist c56d928dae Update search bar after browsing. 2015-02-01 20:07:28 +02:00
Warmist 570381f059 Added search. Access with "s". 2015-02-01 19:58:49 +02:00
expwnent bf5e491647 Allow Lua scripts to be used as modules. 2015-01-31 22:43:54 -05:00
expwnent b685aa2729 Merge remote-tracking branch 'peridexis/fix_hfs-pit' into develop
Conflicts:
	NEWS
2015-01-31 20:19:42 -05:00
Peridexis Errant fa4a781763 Fix hfs-pit feature search
Via notfood, here:
http://www.bay12forums.com/smf/index.php?topic=139553.msg5984896#msg5984896
2015-01-28 09:33:26 +11:00
Putnam3145 0cb70fdb86 Updated add-thought for proper stress change.
Apparently, just adding the thought doesn't cut it.

Also added thought strength to the whole thing.
2015-01-26 19:11:53 -08:00
warmist 686647af0e fix skill-change so it would use insert_sorted
This is needed because the skills vector is actually sorted. Adding skill with id<last one would mess things up very badly.
2015-01-18 19:53:08 +02:00
expwnent a962865b7f Merge remote-tracking branch 'dfhack/develop' into develop 2015-01-15 22:54:42 -05:00
expwnent a78d4cc5f0 Merge pull request #488 from warmist/advfort
Update advfort.lua
2015-01-15 22:49:17 -05:00
warmist f510cd7c11 Update advfort.lua
Fix bug with building jobs
2015-01-13 10:30:53 +02:00
Peridexis Errant 9f0558b547 Allow for other hotkeys keybinds
Using this method is more compact and more flexible.  Also tabs to
spaces...
2015-01-08 13:10:11 +11:00
Peridexis Errant b030bb08fe Finish and document hotkey-notes
All working correctly - thus ends the long story of the needs_porting
folder.
2015-01-08 11:11:09 +11:00
Peridexis Errant 5b54909886 Move hotkey-notes to scripts, delete needs_porting!
The notes script is unfinished, but that's the last thing to do - since
everything else is obsolete, ported, or the subject of a github issue to
make a replacement.
2015-01-06 22:48:24 +11:00
lethosor f451cfb3a5 Merge remote-tracking branches 'cdombroski/autobutcher' and 'cdombroski/siren.lua'
Also update NEWS
2015-01-05 16:59:08 -05:00
lethosor 06029c92c2 Merge remote-tracking branches 'lethosor/export-dt-ini-0.40.21' and 'lethosor/patch-9' 2015-01-05 16:40:44 -05:00
lethosor 7da9ab8f80 Merge remote-tracking branch 'lethosor/0.40.22-plugins'
Also update NEWS
2015-01-05 16:37:34 -05:00
lethosor 3bc17dafab Merge remote-tracking branch 'PeridexisErrant/digfort-checks'
Conflicts:
	NEWS
2015-01-05 16:32:14 -05:00
lethosor 8f60e0eb01 Merge remote-tracking branches 'lethosor/remove-embark' and 'lethosor/revert-401-dfhack-log'
Also update NEWS
2015-01-05 16:31:03 -05:00
lethosor ad6b19f1b2 Merge remote-tracking branch 'PeridexisErrant/needs_porting-cleanup'
Conflicts:
	NEWS
2015-01-05 16:21:24 -05:00
lethosor f0e7d2b895 Merge remote-tracking branches 'warmist/advfort', 'Putnam3145/patch-8', 'AndreasPK/master' and 'PeridexisErrant/fix-exportlegends' 2015-01-05 16:19:52 -05:00
Chris Dombroski 294fe0b30c Update siren.lua for emotions
Runs now without exception/error and adds emotions correctly. Seems to work as intended.
2015-01-05 08:33:10 -05:00
PeridexisErrant b4f224fb3f minor console output tweaks
Also remove unused sample file from code, change handling of offset.
2015-01-02 22:01:48 +11:00
Lethosor 5a404333ca Update devel/export-dt-ini for 0.40.21+
https://github.com/splintermind/Dwarf-Therapist/commit/356ae80
2014-12-26 12:39:05 -05:00
PeridexisErrant d95c0878e1 fix -info option
to export info instead of detailed maps (oops!)
2014-12-24 22:10:04 +11:00
PeridexisErrant e71408b40b replace hellhole.cpp with hfs-pit.lua
A port/update.  May not have great argument handling, and there's a few
magic numbers, but it's a huge improvement over a non-compiling plugin.
2014-12-24 18:24:52 +11:00
lethosor ee958c0f8f Update some plugins/scripts for 0.40.22
* autolabor, manipulator: Add BUILD_CONSTRUCTION and BUILD_ROAD labors
* mousequery: Support "toggle engravings" sidebar mode
* devel/export-dt-ini.lua: Add body_part_flags

Conflicts:
	plugins/mousequery.cpp
2014-12-21 16:49:33 -05:00
Peridexis Errant 93def956f5 finish position.lua
It would be great to report the name of the Age, and the position of the
fort within the world, but aside from those it's finished.
2014-12-21 21:03:44 +11:00
Lethosor 695f04a51d Delete embark.lua
This has been replaced by embark-tools, and there have been reports of this not working in 0.40.xx (http://www.bay12forums.com/smf/index.php?topic=139553.msg5885446#msg5885446)
2014-12-17 21:26:01 -05:00
PeridexisErrant dba7d1bd5d Add file checks to digfort
Checking file type and existence before we start avoids a few issues,
and prevents (highly) misleading feedback of "done" regardless of action
taken.  Closes #453
2014-12-18 09:50:00 +11:00
Warmist 651a8ab497 fixed crashing bug. 2014-12-17 23:05:48 +02:00
PeridexisErrant f3826abc0c cleaning up in needs_porting
Removed obsolete plugins.  Started hotkeys port.  Mostly-finished
position port.  Corrected dwarfmonitor date display.  Documented
putontable.lua in readme.
2014-12-15 23:11:23 +11:00
PeridexisErrant b93eac1c7a Fix "exportlegends maps"
Correct list index error which skipped export of detailed map.  Allow
region-maps-only export to start from detailed maps viewscreen.  More
informative error message.  Closes #445.,
2014-12-15 10:22:05 +11:00
Warmist e22c3b099b New and improved. Fixed bugs, now work gets done automatically. 2014-12-12 10:32:22 +02:00
AndreasPK 88354c7183 Fixed error with passing nil to unit.find 2014-12-12 02:47:59 +01:00
Warmist 550cddc604 Gui for item selection in advfort 2014-12-10 00:09:28 +02:00
Warmist f47565465e more fixes, improvements 2014-12-08 22:19:22 +02:00
Putnam3145 17772954cc Made restrictive mat filter work properly
Yeah, not sure what the heck I was doing there before.
2014-12-07 21:04:39 -08:00
Warmist f84a5dbce1 Fixed a bug where it does not find building ref. 2014-12-08 00:55:46 +02:00
Warmist 05887ffdb8 Fixed advfort somewhat: now it teleports items so you can build/craft stuff. 2014-12-07 22:21:19 +02:00
Warmist c1da5e2741 Removed (for now) all the cruft involving item selection gui. Added unit_action for adventurer to perform work. 2014-12-07 22:21:18 +02:00
Casey Link 52f4cb3fc1 stockpiles: load prompt uses typing + filtering 2014-12-05 14:49:40 +01:00
Casey Link 332566f6a1 stockpiles: disable gui/script when plugin is disabled 2014-12-05 13:27:58 +01:00
Casey Link 1f1780cae9 stockpiles: fix usage help 2014-12-05 12:35:24 +01:00
Casey Link b6118d272c stockpiles: integrate gui plugin into dfhack.init-example 2014-12-05 12:35:24 +01:00
expwnent 19e977528c Merge branch 'autolabor-artisans' of https://github.com/pkdawson/dfhack into develop
Conflicts:
	NEWS
2014-12-04 23:49:13 -05:00
expwnent 6e86336b8f Merge pull request #427 from Ramblurr/fix-teleport
teleport: fix unused code causing crash
2014-12-04 23:39:13 -05:00
expwnent a107e41bda Merge pull request #430 from splintermind/master
update DT scripts for versions 29.0.0+
2014-12-04 23:38:34 -05:00
Josh 5d1efa82f1 update DT scripts 2014-12-03 23:34:22 +01:00
Casey Link c1d36be6e8 teleport: fix unused code causing crash
The `teleportSettings` variable was never used and the line referenced
the non-existing function `getArgsTogether`
2014-12-03 11:33:05 +01:00
expwnent d9ae3cc612 Removed removebadthoughts and updated Readme.rst and NEWS. 2014-11-30 09:26:04 -05:00
expwnent 81b75161d6 Updated remove-stress to the new argument system. 2014-11-30 09:23:35 -05:00
PeridexisErrant 5dcec6f683 Add Putnam's remove-stress script 2014-11-30 22:30:13 +11:00
expwnent 16fcdc3035 modtools/item-trigger should now work with items 2014-11-28 23:03:27 -05:00
expwnent 762f5231e2 reaction-trigger typo. 2014-11-28 23:01:44 -05:00
Patrick Dawson 8b1b32a499 autolabor: Add a talent pool parameter. 2014-11-27 15:56:14 +01:00
Patrick Dawson 42dd60a24c Add autolabor-artisans.lua 2014-11-24 02:32:22 +01:00
Putnam3145 ae6675a188 Update add-thought.lua 2014-11-17 22:47:33 -08:00
Yoann Guillot c43685ae76 superdwarf: remove ruby global function 2014-11-16 13:06:14 +01:00
expwnent 723d6af9f8 Merge https://github.com/Mchl/dfhack into develop. Manually remove trailing whitespace, update NEWS.
Conflicts:
	scripts/forum-dwarves.lua
2014-11-15 15:33:48 -05:00
expwnent 15194613f5 Manually add hobotron's superdwarf fix. 2014-11-15 15:23:00 -05:00
expwnent a04ea52e19 Added Putnam's gaydar script. 2014-11-15 00:22:58 -05:00
expwnent ba8b964f8d reaction-trigger-transition.lua should work now. 2014-11-15 00:06:10 -05:00
expwnent 59ef4e0cc2 It is now possible to remove syndromes by SYN_CLASS. 2014-11-14 23:33:49 -05:00
expwnent c7e0a13505 Merge branch 'adaptation-4015' of https://github.com/hobotron-df/dfhack into develop
Conflicts:
	NEWS
2014-11-14 19:06:04 -05:00
expwnent a474bc4dea Merge remote-tracking branch 'dfhack/develop' into develop
Conflicts:
	NEWS
2014-11-14 18:58:21 -05:00
expwnent c40c4460ba Merge remote-tracking branch 'putnam/fullhealfix' into develop
Conflicts:
	NEWS
2014-11-14 18:56:21 -05:00
expwnent 428fe6a400 interaction-trigger tweaks 2014-11-14 18:50:19 -05:00
expwnent 38c4edf858 Merge pull request #388 from Putnam3145/add-thought
Add "add-thought" script to main repo
2014-11-14 16:05:38 -05:00
expwnent 0642333f97 Merge pull request #343 from PeridexisErrant/exportlegends-sites
exportlegends can do site maps, IDd field
2014-11-14 16:05:06 -05:00
hobotron-df a6b7d6beeb New script for viewing or setting cavern adapation of citizens. 2014-11-13 12:13:23 -06:00
Putnam3145 9f6a04db7f Switched subthought and severity in function arg 2014-11-12 13:55:38 -08:00
Putnam3145 4ccd4a96be Updated add-thought to allow subthoughts.
Only works in non-gui mode for now, since there's no easy way to tell people what subthought is which with the GUI.
2014-11-12 13:54:44 -08:00
Putnam3145 f980ecf38d Added add-thought to scripts.
I figure that it's useful enough and good enough by this point to be
included.
2014-11-10 01:44:30 -08:00
Putnam3145 3a403d8ec6 Updated full-heal to properly use args system.
Also updated NEWS.
2014-11-10 01:09:15 -08:00
expwnent 6220a21de6 More straggling documentation errors in modtools. 2014-11-09 18:39:23 -05:00
expwnent 55348e9c80 Correct reaction-trigger documentation. 2014-11-09 18:37:39 -05:00
expwnent 838bbd97f6 New devel scripts for testing interaction-trigger. 2014-11-09 18:37:11 -05:00
expwnent 779ac3fd50 Updated interaction-trigger to work better. 2014-11-09 18:36:21 -05:00
expwnent 7549169cd2 Merge remote-tracking branch 'dfhack/develop' into develop 2014-11-09 00:39:40 -05:00
expwnent f6a281ebc7 Merge pull request #379 from Putnam3145/teleport-update
Updated teleport for new args system.
2014-11-09 00:35:33 -05:00
PeridexisErrant 994e98c5c1 Use name of now-identified field
Ready for DFHack 40.15-r1 and later
2014-11-09 09:18:53 +11:00
Lethosor ae001c60ad Update export-dt-ini.lua
From https://github.com/splintermind/Dwarf-Therapist/blob/DF2014/export-dt-ini.lua
2014-11-07 16:40:53 -05:00
expwnent 82dade1ae0 interaction-trigger documentation tweak. 2014-11-07 14:14:49 -05:00
Putnam3145 6b2b13b186 Updated teleport for new args system.
Also updated the teleport function to properly check for units at
destination.
2014-11-06 22:15:21 -08:00
expwnent e4d4f7230b modtools/item-trigger: fix equip/unequip bug and correct minor documentation error 2014-11-06 23:46:10 -05:00
expwnent 87443035a9 Merge remote-tracking branch 'quietust/develop' into develop
Conflicts:
	plugins/manipulator.cpp
2014-11-02 04:05:51 -05:00
expwnent 6fa3f92f21 Merge pull request #361 from eswald/drainaquifer
Rewriting the drainaquifer script
2014-11-02 03:27:08 -05:00
Lethosor c60e06aed3 Fix forum-dwarves.lua
formatted_text -> src_text
2014-11-01 17:28:08 -04:00
Quietust 8769af8935 Merge branch 'develop' of https://github.com/expwnent/dfhack into develop 2014-10-31 13:34:20 -05:00
Alexander Gavrilov 04ec2c9932 Update version to v0.40.14 and hack things so they compile.
Also make the find-offsets script less likely to crash if the
unit structure is misaligned and add more integrity checks.
2014-10-26 16:40:39 +03:00
Eric Wald 5d53163e16 Repairing drain-aquifer layer counting. 2014-10-12 22:28:23 -06:00
Eric Wald b0b1dd62d1 Rewriting the drainaquifer script
The original drainaquifer script could occasionally fail to notice aquifer layers if they happen to skip each of the special tiles that it checks, two per block.  It also left the block-level aquifer flags set, which seems like a minor waste of FPS.

The new script uses the block-level flags to determine which blocks to check, which seems to be both more correct and faster.  It's also written in Lua instead of Ruby, for clarity and ease of debugging.  The name has changed slightly to prevent problems if both scripts are installed for some reason.
2014-10-12 21:55:36 -06:00
expwnent 0df2d71506 Fix repeat.lua documentation. 2014-10-04 21:52:28 -04:00
Mchl 543ef37bf9 scripts/markdown.lua: Fix description comment so that the script isdisplayed correctly by 'ls' 2014-09-28 23:50:50 +02:00
Mchl 81d1a1c20e scripts/markdown.lua: Added support for 'topicmeeting' screens. Added option to provide own filename. Added option to overwrite previous data. 2014-09-28 18:52:49 +02:00
Mchl febc9d08b4 Some nonfuncitonal updates to scripts/markdown.lua: update help text, move output filename to a variable for easier modification 2014-09-27 15:24:28 +02:00
Mchl 7b6197ecbf Update scripts/markdown.lua to work with 'announcelist' screens (most notably announcements and combat reports) 2014-09-27 14:46:38 +02:00
Mchl e62b6e9dc8 Add scripts/markdown.lua script. Based on forum-dwarves.lua but exports to markdown (obviously for reddit) 2014-09-27 01:37:29 +02:00
Mchl 7bf46b1584 Fix scripts/forum-dwarves.lua to work with 0.40.13 2014-09-27 01:36:12 +02:00
jj eed684a8df fix superdwarf 2014-09-26 11:39:05 +02:00
PeridexisErrant 27ae8f2ab9 exportlegends can do site maps, IDd field
Expanded exportlegends.lua to handle site maps as well, and improved
precision of args.  Identified `vs.anon_21`; I'm not sure what the
process is so I've used it here and noted it's discovery.
2014-09-24 21:34:09 +10:00
expwnent f114aee758 Merge branch 'fix-exportlegends' of https://github.com/PeridexisErrant/dfhack 2014-09-16 17:13:51 -04:00
expwnent d425c2edf9 Merge remote-tracking branch 'lethosor/lua-printall-ipairs' 2014-09-16 17:08:45 -04:00
PeridexisErrant af79ae44c9 update exportlegends for DF40.x
Better code and also exports the new maps.  Extending to also export
site maps would be cool eventually.
2014-09-09 17:47:26 +10:00
lethosor fadca0aef2 Add a variant of printall() that uses ipairs 2014-09-08 20:30:22 -04:00
Putnam3145 a30780420b Removed hackwish crash.
It's mostly a user error issue, but it is certainly not one that's hard to come across.
2014-09-08 17:00:49 -07:00
expwnent 4800794ba6 Merge remote-tracking branch 'dfhack/develop' 2014-09-08 13:23:28 -04:00
hobotron-df fd657134ff [Fix: Issue 291] bow_item_(sub)type is now shooter_item_(sub)type in history_hit_item struct. 2014-08-30 20:42:48 -05:00
Putnam3145 baeb894502 Made hack-wish work properly. 2014-08-29 18:43:22 -07:00
Eric Wald eeb22c099d Nitpicking log-region
One line was improperly indented, and a variable name no longer made sense.
2014-08-28 14:02:22 -06:00
Eric Wald 73a67b4a64 Repairing the log-region script
A typo was causing the gamelog to always omit the fortress group's untranslated name, while failing to fully prevent the error message caused by unloading the fortress.
2014-08-17 11:01:23 -06:00
expwnent 59e6607d8c Merge remote-tracking branch 'warmist/dev_building_hacks' into develop 2014-08-16 10:26:24 -04:00
Warmist 6868cab1fe Exposed dfhack.jobs.linkIntoWorld. Simplified eventful and gui.dwarfmode for sidebar use/creation. 2014-08-16 16:58:01 +03:00
expwnent c5fb4c1260 Update hack-wish. 2014-08-16 08:45:49 -04:00
expwnent 49f43423c8 Tweaks. 2014-08-15 09:40:49 -04:00
expwnent ce4d1db5a0 More removing unneeded fixes. 2014-08-15 04:23:54 -04:00
expwnent bb46ccfdf0 Fix reaction-trigger to use the right library name for syndrome-util. 2014-08-15 02:52:20 -04:00
Alexander Gavrilov 002bd5240b Bump version to v0.40.07 and update find-offsets to new pressure plate UI. 2014-08-11 14:14:42 +04:00
lethosor 14208577dd Display all found offsets on completion 2014-08-03 22:02:15 -04:00
Quietust 1450298484 assumed_identity -> identity 2014-07-29 16:30:22 -05:00
Quietust d6162cd189 death_info -> incident 2014-07-29 16:26:14 -05:00
Alexander Gavrilov 4902c577b3 Fix some crashes when running without globals and update structures. 2014-07-24 23:10:37 +04:00
Quietust 34ce7f61de Update find-offsets, find gview properly even if INTRO is enabled 2014-07-22 16:38:18 -05:00
Quietust 9435d8f4d9 Fix crashes caused by missing globals 2014-07-21 19:14:43 -05: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 9a17ecbf89 item-trigger typo 2014-07-07 05:52:54 -04:00
expwnent a22f4193eb random-trigger.lua: trigger random scripts 2014-07-06 05:33:21 -04:00
expwnent 026ef063a4 Removed spawnunit. 2014-07-06 03:03:13 -04:00
expwnent 5404b69476 Tweak repeat.lua. 2014-07-03 20:32:15 -04:00
expwnent ec8e58e5e3 Tweak transform-unit. 2014-07-03 20:15:40 -04:00
expwnent 120d8cc6f1 Tweak syndrome-trigger. 2014-07-03 20:09:23 -04:00
expwnent 8b2208f718 Tweak skill-change. 2014-07-03 20:07:13 -04:00
expwnent 9fd5babf7c Remove skillChange. 2014-07-03 20:03:44 -04:00
expwnent 87469c3313 skill-change.lua 2014-07-03 20:03:22 -04:00
expwnent 008c398dd5 Tweak reaction-trigger.lua. 2014-07-03 19:40:33 -04:00
expwnent c9ac09ac48 spawn-flow.lua 2014-07-03 19:22:01 -04:00
expwnent 4be41eb1ed projectile-trigger.lua 2014-07-03 18:28:05 -04:00
expwnent 1815b09f19 Tweak outside-only.lua. 2014-07-03 17:38:40 -04:00
expwnent 72a0a9acf2 moddable-gods.lua script 2014-07-03 17:33:38 -04:00
expwnent 83b0886296 Tweak item-trigger.lua 2014-07-03 16:57:56 -04:00
expwnent e072f4b2db Tweak interaction-trigger.lua 2014-07-03 16:50:35 -04:00
expwnent 2b2d397056 Tweak invader-item-destroyer.lua. 2014-07-03 16:44:34 -04:00
expwnent 84818eaa35 Tweak interaction-trigger.lua 2014-07-03 16:39:46 -04:00
expwnent e4c449c3c2 Tweak force.lua. 2014-07-03 16:33:26 -04:00
expwnent b817205fd6 Tweak add-syndrome, create-item. 2014-07-03 16:30:28 -04:00
expwnent 7b057629dc Tweak anonymous-script. 2014-07-03 16:14:57 -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 85c81cc69f modtools/transform-unit.lua warning. 2014-07-03 15:16:45 -04:00
expwnent d6bbb6808b item-trigger tweaks. 2014-07-03 14:38:29 -04:00
expwnent ff71199931 modtools/invader-item-destroyer.lua: destroy invader items when they die 2014-07-03 14:37:47 -04:00
expwnent 376bcc6020 create-item script 2014-07-03 12:40:07 -04:00
expwnent 57880759e5 Add modtools/syndrome-trigger. 2014-07-03 08:58:43 -04:00
expwnent 07c5a272a3 Tweaks. 2014-07-03 08:58:20 -04:00
expwnent 91bb830127 Tweak item-trigger. 2014-07-03 08:17:17 -04:00
expwnent e38b9c4d11 Tweaked item-trigger. 2014-07-03 08:10:55 -04:00
expwnent 09b8e9d66e modtools/transform-unit.lua 2014-07-03 07:22:08 -04:00
expwnent 49bb468a0d Added scripts/modtools/interaction-trigger. 2014-07-03 06:02:39 -04:00
expwnent d048335a80 Tweaked item-trigger. 2014-07-03 06:01:58 -04:00
expwnent ebde2c2094 Update triggers to deal with nonsilent dfhack.run_command. 2014-07-01 02:15:38 -04:00
expwnent 9a4fd03e42 added anonymous-script.lua so item/reaction-trigger commands do not have to make a file for every trigger for simple operations 2014-07-01 01:38:56 -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 f4c948054e Tweaked item-trigger. 2014-07-01 00:02:19 -04:00
expwnent f58e659193 item-trigger: trigger scripts based on equipping items, unequipping items, and striking enemies with items. Select item by type, material, or by *contaminant* material. 2014-06-30 08:16:10 -04:00
expwnent 801d521093 reaction-trigger now uses standard args. 2014-06-30 04:29:42 -04:00
expwnent c2890173d0 invasion-now is redundant with force, so I removed it. 2014-06-30 04:07:33 -04:00
expwnent cd9abacf34 Made modtools/force use standard argument processing. 2014-06-30 04:06:25 -04:00
expwnent 5811f07a1f attackTrigger -> attack-trigger 2014-06-30 03:42:56 -04:00
expwnent 1a9f9374de attackTrigger now uses standard arguments. 2014-06-30 03:41:23 -04:00
expwnent 10c001b1f4 Moved outside-only where it belongs. 2014-06-30 03:18:12 -04:00
expwnent 0aa2dc149f Converted outsideOnly plugin to Lua script. 2014-06-30 02:21:58 -04:00
expwnent ed90ccf5ea Added reaction-trigger.lua to replace autoSyndrome. 2014-06-29 06:12:54 -04:00
expwnent a54ad7e5a0 Moved attackTrigger where it belongs. 2014-06-28 23:00:40 -04:00
expwnent 19310c32b3 Merge remote-tracking branch 'origin/scriptOrganization' into scriptOrganization 2014-06-28 22:57:47 -04:00
Alexander Gavrilov 8a3050a1c0 Notify the user when dfhack.init is missing, and fall back to example. 2014-06-28 17:08:14 +04:00
expwnent 72acd7bdf6 attackTrigger: call scripts when a unit attacks another with weapons of a given type or weapons of a given material. 2014-06-28 04:39:04 -04:00
expwnent f12aa3665b Removed the temporary lua events because EventManager does them better. 2014-06-28 02:46:08 -04:00
expwnent 9a8b1d04fa Added functionality to repeat.lua so that you can make the thing that's repeating not happen right away. 2014-06-27 06:23:04 -04:00
expwnent 2827861edf Fixed minor error in growthbug. 2014-06-27 06:09:01 -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 0f5bbd5631 Reorganized scripts folder. Deleted digmat.rb because it's redundant with digSmart and it has a higher FPS impact. 2014-06-27 03:46:22 -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
expwnent 61d73cc6c2 Prevented infinite loop on incorrect syntax in repeat script. 2014-06-27 01:46:00 -04:00
expwnent 66098c2bb4 Fixed wrong documentation on repeating scripts. 2014-06-27 01:40:36 -04:00
expwnent 596ab0e1b8 Added many forum scripts, and a makeshift onReport/onStrike event that will be merged into eventful/EventManager later. 2014-06-26 08:36:57 -04:00
Warmist 49bbd41bc3 Added a way to change the mod install directory (and changed the default to hack/mods) and added simpler way to add to init.lua 2014-06-02 17:57:59 +03:00
Alexander Gavrilov e4a6f13347 Merge branch 'cleanup-needs-porting' into develop 2014-05-12 21:56:23 +04:00
Alexander Gavrilov a6d576961d Merge branch 'add-exportlegends-and-logregion' into develop 2014-05-12 21:51:03 +04:00
PeridexisErrant 01d302efc3 fixed whitespace again to four-space indentations
should have read the documentation before trying a style fix...
2014-05-12 10:34:57 +10:00
PeridexisErrant 8a488ec914 actually fixed whitespace
to four-space indentations.  I should have read the documentation
earlier...
2014-05-12 10:32:46 +10:00
PeridexisErrant a2f5e971e2 fixed whitespace in dfstatus script
all indents now use a uniform eight spaces; fixed from mix of four
spaces and tabs
2014-05-12 10:29:59 +10:00
PeridexisErrant 795325b6ef replace all tabs with eight spaces
apparently an important style thing, which I missed
2014-05-12 10:22:04 +10:00
Alexander Gavrilov ae8d630cfa Merge remote-tracking branch 'warmist/dev-rendermax' into develop 2014-05-11 15:44:29 +04:00
PeridexisErrant acdf90c1ba fixed dfstatus script, readme and init entries
replaced magic numbers in dfstatus script with `df.item_type.TOKEN`;
added dfstatus to readme and init_example; myself to contributors list,
updated needs_porting notes and removed script
2014-05-07 12:26:18 +10:00
PeridexisErrant 26c2d0e16b added two scripts
Added scripts `exportlegends` and `log-region`, including init and
readme entries.  The init file now has a section for legends-mode
keybindings.
2014-05-05 14:59:59 +10:00
Alexander Gavrilov 13584f08c5 Merge remote-tracking branch 'warmist/dev-buildings' into develop 2014-05-04 19:52:01 +04:00
Alexander Gavrilov b76ededc1b Merge branch 'undump' of git://github.com/eswald/dfhack into develop 2014-05-04 18:32:29 +04:00
Warmist 9733b30ed6 gui/gm-editor: Fixed enum editing. And added free pointer/reinterpret options 2014-05-01 10:59:21 +03:00
Warmist 401c8f3026 gm-editor: Added enum printing and selection.
gm-editor: a bugfix for some entries not having fields
2014-05-01 10:59:21 +03:00
Alexander Gavrilov 6bef167f83 Add a couple of useful scripts and fix two missing NULL checks.
- A script to unstick jobs trying to build walls from the same tile.
- A devel script for viewing the path a unit is currently following.
2014-04-21 09:24:05 +04:00
Alexander Gavrilov ee4e3a6168 Use the new official gamelog output function in soundsense-season. 2014-04-15 19:50:23 +04:00
Quietust 22dab5d807 Update XML, fix several scripts that were broken by field name changes 2014-04-14 12:30:34 -05:00
warmist fccdbb010d Update mod-manager.lua
Fixes fileExists not working.
2014-04-08 09:07:49 +03:00
jj 47ccecc7dc scripts/lever: allow commands without calling "list" first 2014-03-24 17:53:10 +01:00
Alexander Gavrilov ec14b2d1e9 Merge remote-tracking branch 'warmist/dev-modmanager' into develop 2014-03-24 20:07:02 +04:00
Alexander Gavrilov dde0f194e8 Add a script that clones the currently selected military uniform.
To be precise, it applies to the entity uniform templates, not
uniforms for specific squad positions.
2014-03-24 19:39:34 +04:00
Warmist 4ce951f5b9 light.lua: more help, changed screen exit key to '`'. Made it recalculate only when needed. 2014-03-07 19:58:29 +02:00
Warmist 1ce43c6cc4 Light now fallsoff according to tile contents (water for now only) 2014-03-07 19:58:29 +02:00
Warmist 446b4b9d50 New line algo for lights 2014-03-07 19:58:28 +02:00
Warmist 6e57c6446d Added light script. Can be ran with "static" to recalculate only on '~' press. 2014-03-07 19:58:26 +02:00
Warmist 64ff24f27f Added building filter to advfort. 2014-03-07 19:58:21 +02:00
Warmist a52451a97a eventful: added support for custom workshops and a convenience function to interpose side panel generation 2014-03-07 19:41:50 +02:00
Alexander Gavrilov ef93f2ea4c Compute quality of siege engines and use it to extend firing range.
Since parts aren't there until it is built, it requires checking that.
2014-03-07 17:34:21 +04:00
Warmist b030548156 Added directory listing to lua api (internal category).
added mod manager and updated readme/news
2014-03-04 18:01:44 +02:00
Quietust dd268d43d9 Merge branch 'master' of https://github.com/jjyg/dfhack 2014-02-27 15:49:18 -06:00
Quietust 5a158b21cf Update plugins to match fixed field names in cage/civzone 2014-02-27 14:51:45 -06:00
jj 2e680c4c2c autounsuspend: check water level, make df recheck jobs on unsuspend 2014-02-27 17:38:34 +01:00
jj 3cd0c3aad0 exterminate: add caste specifier 2014-02-26 23:56:53 +01:00
jj 6af362db39 add scripts/devel/spawn-unit-helper.rb 2014-01-04 01:55:48 +01:00
jj 9dc9a3f33a digfort: add start() comment 2013-10-30 15:27:51 +01:00
jj 6546ed2d5a scripts/digfort: better csv handling 2013-10-30 14:31:33 +01:00
expwnent 237251ce0c Merge remote-tracking branch 'jjyg/digmat' into 0.34.11-r4
Conflicts:
	Readme.rst
2013-10-24 19:39:40 -04:00
expwnent ee056f4422 Merge remote-tracking branch 'angavrilov/master' into 0.34.11-r4
Conflicts:
	NEWS
2013-10-20 11:09:40 -04:00
expwnent 57fc0f3e89 Merge remote-tracking branch 'angavrilov/master' into 0.34.11-r4
Conflicts:
	NEWS
	library/xml
	plugins/CMakeLists.txt
	plugins/autoSyndrome.cpp
2013-10-19 20:19:29 -04:00
jj a1d54e2074 digmat: ignore map borders and damp/warm stone 2013-10-14 00:39:32 +02:00
jj 2bcd02ce96 add digmat script 2013-10-11 19:20:59 +02:00
Alexander Gavrilov 3cfbb13afd Support arbitrary expressions in perlin noise rendering script. 2013-10-10 12:15:50 +04:00
Alexander Gavrilov ccc1d936df Add a Perlin noise test script. 2013-10-02 20:00:03 +04:00
Alexander Gavrilov 864baa2241 Fix the lua script not printing any errors if executing a file fails. 2013-10-01 18:58:56 +04:00
expwnent 56e25bfa12 Documented invasion-now, moved it from devel scripts, and documented digSmart in readme. 2013-06-25 19:34:13 -04:00
Alexander Gavrilov e15f5c451f Fix search for cur_season_tick and cur_season in devel/find-offsets.
It seems the one-off error is a problem with the original
save I used, and not the result of some general behavior.
2013-06-20 18:18:02 +04:00
Alexander Gavrilov 21dc3afede Find cur_year_tick_advmode in devel/find-offsets.lua 2013-06-20 17:20:04 +04:00
expwnent 5c827beae0 invasion-now: script to trigger invasions. 2013-05-31 15:54:25 -04:00
Tareq A Khandaker 89d91eddb6 Add & correct offsets for splintermind-attributes 2013-05-11 13:08:01 -04:00
Alexander Gavrilov cafa966be4 Subtract the ASLR rebase delta in the export-dt-ini script. 2013-05-09 18:58:52 +04:00
Tareq A Khandaker 29c77ff85a Add entries to match splintermind-attributes DT
The added address/offset entries correspond to those found in the
splintermind-attributes branch of Dwarf Therapist for Dwarf Fortress v0.34.11
SDL (windows).

These entries can be found the following location:

https://code.google.com/r/splintermind-attributes/source/detail?spec=svneeeac8544d94c133ef2eb7c9a4ef8f2865906b19&r=614f1a76b56a081048626e3acaa5c87bcd313fef

under etc/memory_layouts/windows/v0.34.11_graphics.ini
2013-05-08 15:39:32 -04:00
Eric Wald f415256650 Better way to check for the contained_items field. 2013-05-05 16:48:12 -06:00
Alexander Gavrilov c496b9f76a Translate make-dt.pl from df-structures into lua to avoid lisp dependency. 2013-05-01 14:43:00 +04:00
jj 578b178ac0 scripts/startdwarf 2013-04-30 18:38:51 +02:00
Eric Wald ab4a38415a Building base material undump script.
Based on an idea in https://github.com/peterix/dfhack/issues/119
2013-04-24 11:22:19 -06:00
Petr Mrázek f5ef1464d8 Merge https://github.com/warmist/dfhack 2013-04-24 17:38:47 +02:00
Petr Mrázek 2e379c4d3f Merge https://github.com/Falconne/dfhack
Conflicts:
	plugins/CMakeLists.txt
	plugins/stonesense
2013-04-24 17:24:03 +02:00
Robert Heinrich 024a3d766b Added some more commands to autobutcher UI script.
Changed autobutcher behavior a bit:
now protected units count towards the target quota,
units available for adoption are considered as protected.
Added filters for caged, male and female to assignement UI
for cages, pastures and pits.
2013-04-24 23:37:05 +12:00
Robert Heinrich fd265b37d6 Added lua GUI front-end for autobutcher. 2013-04-24 23:37:05 +12:00
jj ba4f649b3c scripts: switch to windows lineendings 2013-04-21 14:21:53 +02:00