Commit Graph

1245 Commits (33aead34b43799e440e58586a215df69c8c3c02e)

Author SHA1 Message Date
Alexander Gavrilov d5ea05ebb8 Implement a pressure plate sensitive to machine power.
When built next to a gearbox, it will monitor its powered state.
2012-09-06 12:37:29 +04:00
jj e09b98216f ruby: fix vector[length+50] = 0 segfault 2012-09-05 20:39:13 +02:00
Alexander Gavrilov 8d876cc7d9 Support renaming some buildings, and arbitrary units, via gui script. 2012-09-05 21:27:42 +04:00
jj afbace8af6 ruby: alloc_building(:Furnace, :Smelter) 2012-09-05 19:18:21 +02:00
Alexander Gavrilov 9c6fcee9a9 Add steam engine documentation, and use barrel quality in efficiency calc. 2012-09-05 11:23:00 +04:00
Kelly Martin 96fec768c7 Merge remote-tracking branch 'angavrilov/master' 2012-09-04 12:05:05 -05:00
Alexander Gavrilov aa449a2180 Add a tweak to work around the endless temperature update bug.
This obsoletes fix/stable-temp.lua, which only fixes items once.
2012-09-03 21:11:35 +04:00
Alexander Gavrilov 1618ccf5bb Fix steam-engine build on msvc, and add a script for listing mem ranges. 2012-09-03 10:28:17 +04:00
Alexander Gavrilov 2249cb14fa Require level 3 both for water & magma, and indicate level 5 by brightness. 2012-09-02 18:57:10 +04:00
Alexander Gavrilov 3b08ee44d1 Vary the internal power consumption of the engine depending on quality. 2012-09-02 17:32:44 +04:00
Alexander Gavrilov 67630776ee Tweak steam engine raws. 2012-09-02 17:17:18 +04:00
Alexander Gavrilov 9c3843c1d4 Use new API in steam engine; always explode if destroyed with steam inside. 2012-09-02 14:59:13 +04:00
Alexander Gavrilov 3713c5ea9e Add some APIs required by steam engine to the core. 2012-09-02 14:10:58 +04:00
jj a4c028b3b7 ruby: buildings tweaks 2012-09-02 01:38:58 +02:00
Alexander Gavrilov 8536785d1d Boilers made out of unsuitable materials should explode! 2012-09-01 20:46:34 +04:00
Alexander Gavrilov bae85ac77d Make the steam engine consume liquids from Z level below. 2012-09-01 17:52:51 +04:00
Alexander Gavrilov 74501d3197 Try preventing "boiling water" from freezing, and dump steam on destroy. 2012-09-01 14:42:19 +04:00
Alexander Gavrilov f158e1894d Further work on steam engine.
- Display water inside as 'boiling' by hooking item_liquid_miscst.
- Store current power in flags to avoid mess if items disappear etc.
- Suspend/unsuspend stoke jobs depending on steam level.
- Implement intelligent steam use rate and boiler capacity cap.
- Modify appearance of special tiles to display status.
2012-09-01 11:29:05 +04:00
jj acdf0ffb42 ruby: fix create building map occupancy 2012-09-01 03:35:47 +02:00
Quietust c68afdaad2 Display command key helper for Manipulator on Unit List, various tweaks 2012-08-31 20:35:35 -05:00
jj dcc9498dbc ruby: tweak apis 2012-09-01 03:22:48 +02:00
Alexander Gavrilov ece0833c93 Prototype steam engine workshop :)
Very broken and incomplete still.
2012-09-01 00:22:55 +04:00
jj ce608e4f6a ruby: yield announcements for further customization 2012-08-31 19:16:13 +02:00
jj 54780cac3f ruby: allow vmethod call with 6 args, use direct fptr 2012-08-31 15:51:22 +02:00
Alexander Gavrilov e6b2cb73af Add a tweak for pressure plate creature weight limit rendering.
Print them as readable "???K", instead of the normal truncated numbers.
2012-08-30 20:48:06 +04:00
Quietust c414aafc59 Add "Toggle Group" key 2012-08-30 10:03:12 -05:00
Alexander Gavrilov 1dee51abb0 Use generic DOCTOR tile for wound dresser labor. 2012-08-30 19:01:43 +04:00
Quietust 7676f07b06 Display creature graphics tiles beneath the column headers 2012-08-30 09:46:09 -05:00
Kelly Martin a8158cb19a Merge remote-tracking branch 'q/master' 2012-08-30 09:25:26 -05:00
Kelly Martin 604cf80832 Repurpose the nestboxes plugin as a watcher that automatically forbids fertile eggs. 2012-08-30 09:23:11 -05:00
Quietust 4e169558f5 Tweak column labels a bit 2012-08-28 15:52:26 -05:00
Quietust b2587c1e6d Fix skill sort 2012-08-28 15:33:22 -05:00
Alexander Gavrilov 834d7fa1fa Tweak prospector: try using the biome elevation for soil depth.
Until a better idea presents itself (or maybe it is the right way).
Soil depth computation affects which soil layers are reported, and
Z level alignment of the layer stack.
2012-08-28 11:52:54 +04:00
expwnent d69a7c63e3 Tabs to spaces. 2012-08-27 16:05:23 -04:00
expwnent 1a5f05768f Made it not run every tick. 2012-08-27 15:06:41 -04:00
Quietust c587ea2c74 Add new tweak command to make Train orders no longer count as patrol duty 2012-08-27 14:06:10 -05:00
Alexander Gavrilov f73cebff68 Account for caves and magma sea in pre-embark prospector. 2012-08-27 23:03:17 +04:00
Alexander Gavrilov f1915915b4 Follow change in xml again. 2012-08-27 23:03:02 +04:00
expwnent e12e7ddd40 Fixed some memory leaks. 2012-08-27 14:42:00 -04:00
Quietust 5ad9b82ace Merge branch 'master' of git://github.com/angavrilov/dfhack 2012-08-27 09:17:27 -05:00
Quietust faf3bdf2b7 Adjust grid display - labors without skills use different tiles, and skills without labors have a red background 2012-08-27 09:04:32 -05:00
Alexander Gavrilov 5fed060d7d Follow field rename in xml. 2012-08-27 16:01:11 +04:00
Quietust f562871867 Add ViewCre and Zoom-Cre to Manipulator (by forwarding them to Unitlist) 2012-08-26 13:58:37 -05:00
Alexander Gavrilov 84f6663a07 Add a tweak to save the cursor position of dwarfmode between menus. 2012-08-26 21:19:56 +04:00
Alexander Gavrilov 8171652323 Support permaflow in liquids, including the gui. 2012-08-26 20:08:28 +04:00
Alexander Gavrilov bee33fd486 Add a performance test for location caching in general refs. 2012-08-26 14:43:14 +04:00
Quietust f6e4969e19 Key names are bright green, not dark green 2012-08-25 11:07:42 -05:00
Quietust da6567e374 Merge branch 'master' of git://github.com/angavrilov/dfhack 2012-08-25 11:02:28 -05:00
Alexander Gavrilov bd9800055d Link to the lua library in the liquids plugin. 2012-08-25 20:01:03 +04:00
Quietust dcdff40c85 Add sorting, command help; replace filtering with just using the current page of the UnitList viewscreen (and don't close it) 2012-08-25 10:57:50 -05:00
Alexander Gavrilov 41ad42d0fd Expose the liquids plugin engine to lua, and make a wrapper gui script. 2012-08-25 10:37:03 +04:00
Petr Mrázek 21904fd607 Merge https://github.com/jjyg/dfhack 2012-08-24 22:30:39 +02:00
Petr Mrázek 9154564e71 Sync up submodules 2012-08-24 21:56:16 +02:00
expwnent 15adb17559 Converted tabs to spaces. 2012-08-23 22:21:09 -04:00
expwnent 76cd941084 Added teledwarf: teleports dwarves to their destination instantly. 2012-08-23 22:17:28 -04:00
expwnent eac2f3f5d1 Added misery plugin: multiply effects of negative thoughts. 2012-08-23 22:05:35 -04:00
jj c339c7085a ruby: add memory_check / memory_patch native methods 2012-08-23 18:44:03 +02:00
jj 5b0f37276f Merge branch 'master' of git://github.com/quietust/dfhack 2012-08-23 17:19:15 +02:00
Quietust 7046a6abbc Manipulator - store unit 'summary' objects so names/professions can be cached (for faster sorting), and properly display skill level when it's exactly at the level threshold 2012-08-22 20:52:19 -05:00
Quietust 132491e868 Use Units module to get unit colors, fix initial scroll position 2012-08-22 16:54:34 -05:00
Quietust 92c0b555dc Use Units module to get profession strings 2012-08-22 11:15:05 -05:00
Quietust 83214ccb72 Fix bugs in window resizing, cleanup some other stuff 2012-08-22 10:43:26 -05:00
Alexander Gavrilov 7987ea9a98 Put some compatibility features into the base dfhack viewscreen. 2012-08-22 18:18:19 +04:00
Alexander Gavrilov 8969fc9435 manipulator: Inherit from dfhack_viewscreen, and don't use itoa. 2012-08-22 12:23:56 +04:00
Quietust b6e5786b4f Manipulator - display summary of selected unit + skill/labor 2012-08-21 16:41:20 -05:00
Quietust 2c0a42296c New plugin: Dwarf Manipulator - enter the [u]nits list and press [l]abors to get a DwarfTherapist-style labor editor 2012-08-21 15:43:32 -05:00
expwnent 6d12368724 Added digtype to dig.cpp. Digtype allows designation of all veins of a given type. 2012-08-19 22:45:47 -04:00
Alexander Gavrilov b8ee52131b Add a module for painting tiles into the gps global. 2012-08-19 09:31:09 +04:00
Alexander Gavrilov fd0bf2ef92 Extract the color enum from color_ostream to toplevel. 2012-08-19 09:21:25 +04:00
Quietust 8ed219d4e0 Add "clean plants", currently just removes water from rain (and lets you set them on fire) 2012-08-18 19:21:40 -05:00
Alexander Gavrilov 01ba2a31fc Tweak the interpose API, and fix a couple of bugs. 2012-08-18 11:48:07 +04:00
Alexander Gavrilov 236ffd578b Add experimental support for interposing vmethods of known classes.
The hairiest bit is the abuse of compiler-specific pointer-to-member
internals in order to provide more or less transparent API.
2012-08-17 22:40:53 +04:00
Petr Mrázek cde97bba6f Fix workflow some more 2012-08-13 07:42:02 +02:00
Petr Mrázek 4eedd6f5f0 Fix workflow. 2012-08-13 07:39:11 +02:00
jj e659d845ab ruby: fix LinkList.next= 2012-08-13 02:06:56 +02:00
jj 53a0536506 ruby: typo in building_deconstruct 2012-08-13 00:46:27 +02:00
jj@jj 5a880d619c ruby: add MapTile#dig, tweak unit_iscitizen 2012-08-12 22:36:54 +02:00
Petr Mrázek 7cc100b26e Merge https://github.com/jjyg/dfhack 2012-08-12 01:10:37 +02:00
jj 030bd8ab57 fix/loyaltycascade: clear the enemy status cache, dont require a save/reload anymore 2012-08-12 00:24:34 +02:00
jj 2362bb8eea ruby: add popup_announcement method 2012-08-11 22:25:08 +02:00
jj 4c720c7504 ruby: add explicit paths everywhere for ruby-autogen 2012-08-11 20:11:00 +02:00
jj 942b245461 ruby: add method to check if an item is free for use as construction material 2012-08-11 20:08:33 +02:00
jj 8f4c39d3f5 showmood: fix fetched/needed quantity calculation 2012-08-09 17:07:20 +02:00
jj 7a03f93dbd ruby: add raw stl::string allocation, add _cpp_delete, tweak readme 2012-08-09 14:50:52 +02:00
Valentin Ochs 2abb9a898c One more autolabor cleanup 2012-08-08 10:50:07 +02:00
Valentin Ochs 4039d2c0b7 Don't disable autolabor when you input "autolabor 1|enable" and it's
already enabled.
2012-08-08 10:47:02 +02:00
Valentin Ochs 2c703ffbca Remove unnecessary whitespace 2012-08-06 16:59:09 +02:00
Valentin Ochs bb760bd376 Added quality constraints to workflow plugin 2012-08-06 16:55:55 +02:00
jj c1bcd270e9 ruby: add spawn_water/spawn_magma methods to MapTile 2012-08-03 17:00:02 +02:00
jj f400591080 ruby: use enums in single-bit values too 2012-08-03 16:53:54 +02:00
Petr Mrázek 81ea0345ad Fix cage-related bug in the sort plugin. 2012-08-03 16:09:51 +02:00
jj 160487f7eb ruby: move all generated/downloaded stuff in the build/ directory 2012-08-03 15:19:43 +02:00
jj 61195859e3 fix autolabor compilation error 2012-08-03 03:28:29 +02:00
Quietust 1ed6d6e7e0 Merge https://github.com/ab9rf/dfhack
Conflicts:
	plugins/autolabor.cpp
2012-08-02 10:32:25 -05:00
Petr Mrázek 144802e3ef Merge https://github.com/hashaash/dfhack 2012-08-02 14:44:52 +02:00
Petr Mrázek 8a8b45d840 Merge https://github.com/warmist/dfhack 2012-08-02 14:44:31 +02:00
Donald Ruegsegger d8cb6e2c4e Fixed seedwatch not working on reclaim
Just needed to add a check for game_type::DWARF_RECLAIM in two places
2012-08-01 19:52:50 -05:00
Kelly Martin 78fc850ce2 Autolabor: dwarves who are scheduled for a meeting are automatically cleared of all labors.
Labor to skill map is now generated at plugin start rather than with every iteration.
Also partially refactored the code; no behavioral changes from that.
2012-07-22 12:16:50 -05:00
Warmist 9f53f6296d Removed Console module from dfusion. 2012-07-18 21:07:27 +03:00
Quietust 9705497a7e Merge branch 'master' of git://github.com/peterix/dfhack 2012-07-17 10:39:20 -05:00
Quietust 2695d55090 Make indentation consistent (spaces), only display "not enabled" error if you actually try to do something 2012-07-17 10:27:30 -05:00
Kelly Martin 671f8cc1ff Synchronize with changes to df-structures 2012-07-16 20:56:46 -05:00
Kelly Martin ab4c4b63c0 Merge remote-tracking branch 'jjyg/master' 2012-07-16 20:52:15 -05:00
Kelly Martin 70ac2ffa17 Merge remote-tracking branch 'upstream/master' 2012-07-16 20:52:03 -05:00
Petr Mrázek 6be752454d Check zone plugin parameters better 2012-07-12 02:16:08 +02:00
jj 0615a27663 ruby: refix unit_idlers, make unit_find handle 'u'nitlist viewscreen 2012-07-12 00:44:07 +02:00
jj d8e55196c2 ruby: better handling of errors in onupdate callbacks 2012-07-11 23:25:55 +02:00
jj b0edb33023 ruby: fix unit_idlers 2012-07-11 23:24:53 +02:00
Kelly Martin b2623e68a3 Track submodules 2012-07-11 14:38:04 -05:00
Kelly Martin 79ca632f64 Merge remote-tracking branch 'jjyg/master' 2012-07-11 14:37:19 -05:00
Kelly Martin 08469abd09 Merge branch 'master' of https://github.com/angavrilov/dfhack.git 2012-07-11 14:37:06 -05:00
Quietust 0f23aba89d Sync with df-structures 2012-07-11 14:31:47 -05:00
Kelly Martin 4c7c38df93 * Autolabor: really exclude the broker from all labors when trader requested
* Autolabor: add 'haulpct' config option to control percentage of non-idle dwarfs assigned to hauling labors (default is 33)
* Zones: allow nontamed birds to be nestboxes.  warning: does not check for 'hostile to civilization' birds, so if you try to tame a hostile elk bird, !!fun!! will happen
* Stripcaged: changed default behavior to keep armor, reduced noisiness
2012-07-11 14:30:47 -05:00
Petr Mrázek a5977db443 Merge https://github.com/jjyg/dfhack 2012-07-09 01:13:07 +02:00
Petr Mrázek 6975f643fc Fixage, syncing with structures 2012-07-09 01:05:40 +02:00
jj c20951c30b Merge branch 'master' of git://github.com/angavrilov/dfhack 2012-07-06 20:37:14 +02:00
Alexander Gavrilov 4bbb185f7b Fix build and allow autodump to any walkable tile (e.g. a stair). 2012-07-06 20:11:20 +04:00
jj d645d6b046 ruby: better message on out of bounds array access 2012-07-06 13:32:39 +02:00
jj bef5079d43 ruby: add vector.first/last 2012-07-06 13:25:47 +02:00
jj 8e17ebbefc add SC_PAUSED / SC_UNPAUSED onStateChange events 2012-07-05 18:03:02 +02:00
Timothy Collett 45456b2230 Enable building Stonesense and Ruby support 2012-07-05 11:39:27 -04:00
Timothy Collett 068542d58a Submodule changes 2012-07-05 11:39:08 -04:00
Kelly Martin 6f4f3039e1 Merge remote-tracking branch 'jjyg/master' 2012-07-05 10:04:28 -05:00
Kelly Martin fb2d901e01 Merge remote-tracking branch 'angavrilov/master' 2012-07-05 10:01:04 -05:00
Kelly Martin 217ef18aef Merge remote-tracking branch 'upstream/master' 2012-07-05 10:00:36 -05:00
Kelly Martin 83f00e5583 Autolabor: allow setting the nonidle hauler percentage at runtime.
Stripcaged: add keeparmor option
2012-07-05 09:59:28 -05:00
Timothy Collett b718912184 Fix Ruby build 2012-07-05 10:31:55 -04:00
jj 7074048146 showmood: display number of items already collected 2012-07-05 16:17:41 +02:00
jj 7732901b6e ruby: tweak onupdate to allow tick rate-limiting 2012-07-05 15:35:37 +02:00
jj f560d2de11 ruby: add MapTile class 2012-07-05 14:15:34 +02:00
jj e4d4bf23ae update xml, fix autolabor with new trade depot flags name 2012-07-04 19:05:44 +02:00
jj f80ca239d0 ruby: allow coords arguments to *_find, add building_find 2012-07-04 18:34:41 +02:00
jj 7c4f60df1d ruby: extend item_find to work on constructed coffers 2012-07-04 17:48:44 +02:00
jj 15cfc1d00b ruby: handle constructed beds in item_find in LookAround mode 2012-07-04 17:24:46 +02:00
jj edf0a9cb3d ruby: add decode_mat method for mat_type/mat_index 2012-07-04 17:24:03 +02:00
jj cb17bde8f4 ruby: refix codegen for refers-to without key-field, add translate_name 2012-07-04 15:18:36 +02:00
jj 877b879e57 ruby: item_find handle v/i unit inventory 2012-07-03 23:57:15 +02:00
jj 2e42e31754 ruby: add curview, fix item_find/unit_find wrt gview mode, fix refers-to to use binsearch 2012-07-03 19:51:52 +02:00
jj 501fd43dda ruby: fix handling of <pointer to unknown data struct> 2012-07-03 18:40:10 +02:00
jj a7a25b80a0 ruby: use the color_ostream argument from dfhack to output to dfhack-run 2012-07-03 16:13:15 +02:00
jj 0bdff401ca ruby: fix codegen align int64_t on windows 2012-07-03 15:24:35 +02:00
jj b9425474a1 ruby: fix codegen for darwin 2012-07-02 21:57:53 +02:00
Timothy Collett c24333515b Merge branch 'master' of https://github.com/jjyg/dfhack
Conflicts:
	library/Core.cpp

Starting to merge in Ruby stuffs
2012-07-02 11:07:30 -04:00
Timothy Collett 421e5fd82c Swap order of includes to work around silly compiler/assembler bug on OS X 2012-07-02 11:02:48 -04:00
jj 554683929f ruby: allow explicit target-os override in codegen 2012-07-01 14:20:55 +02:00
Alexander Gavrilov bd5aea994b Merge remote-tracking branch 'q-github/master' 2012-06-30 15:51:49 +04:00
jj 31a5495031 ruby: osx support (maybe) 2012-06-29 17:51:26 +02:00
jj 592c0a41ac ruby: remove useless raise in unit_find 2012-06-29 11:29:36 +02:00
jj 56ff129ee0 ruby: fix enum + base-type 2012-06-29 11:25:41 +02:00
Quietust f0d4d799d8 Don't index world_data->region_map beyond its bounds 2012-06-27 16:38:39 -05:00