1321a64613 
								
							
								 
							
						 
						
							
							
								
								Remove lots of old/unused functions from the Units module  
							
							
							
						 
						
							2017-06-10 17:21:34 -04:00  
				
					
						
							
							
								 
						
							
							
								047a66030b 
								
							
								 
							
						 
						
							
							
								
								getAnyUnit: add support for viewscreen_unitst, viewscreen_textviewerst  
							
							
							
						 
						
							2017-06-07 20:51:40 -04:00  
				
					
						
							
							
								 
						
							
							
								92c2e52e45 
								
							
								 
							
						 
						
							
							
								
								Fix MSVC error  
							
							
							
						 
						
							2017-06-02 21:22:19 -04:00  
				
					
						
							
							
								 
						
							
							
								9df35dd844 
								
							
								 
							
						 
						
							
							
								
								revealInDwarfmodeMap: use map y dimensions  
							
							
							
						 
						
							2017-06-02 00:40:59 -04:00  
				
					
						
							
							
								 
						
							
							
								43c4a88068 
								
							
								 
							
						 
						
							
							
								
								Move some checks in paintTile/readTile after hooks are called  
							
							
							
						 
						
							2017-06-02 00:40:14 -04:00  
				
					
						
							
							
								 
						
							
							
								05f322ca30 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'lethosor/lua-dmdims' into develop  
							
							
							
						 
						
							2017-06-01 23:34:35 -04:00  
				
					
						
							
							
								 
						
							
							
								939aff3231 
								
							
								 
							
						 
						
							
							
								
								readTile(): add hook support and map parameter  
							
							
							
						 
						
							2017-05-31 12:12:15 -04:00  
				
					
						
							
							
								 
						
							
							
								f59be2a9a0 
								
							
								 
							
						 
						
							
							
								
								Expand focus strings for jobmanagement and workquota_condition viewscreens  
							
							
							
						 
						
							2017-05-27 00:57:16 -04:00  
				
					
						
							
							
								 
						
							
							
								55931703ac 
								
							
								 
							
						 
						
							
							
								
								Designate the correct tile for trees with multi-tile trunks  
							
							... 
							
							
							
							DF always designates the southeast trunk tile, while plant.pos is the center,
which is sometimes inaccessible (see #1014 ) 
							
						 
						
							2017-05-05 21:25:25 -04:00  
				
					
						
							
							
								 
						
							
							
								adb14491d0 
								
							
								 
							
						 
						
							
							
								
								Fix loop in Designations::unmarkPlant()  
							
							
							
						 
						
							2017-05-05 17:24:51 -04:00  
				
					
						
							
							
								 
						
							
							
								d3c496cc2b 
								
							
								 
							
						 
						
							
							
								
								Add getSelectedPlant() and related functions  
							
							... 
							
							
							
							Currently only works with the center tile of multi-tile trees 
							
						 
						
							2017-05-05 14:45:46 -04:00  
				
					
						
							
							
								 
						
							
							
								1e469453fc 
								
							
								 
							
						 
						
							
							
								
								Add Designations module, currently supporting plant/tree designations  
							
							... 
							
							
							
							This makes it easier for tools to properly handle designating and undesignating
trees for chopping and plants for gathering, which changed significantly in
0.40.20.
Ref #531  (?), #656 , #1014 , #1018 , #1030 , #1076  
							
						 
						
							2017-05-04 21:47:12 -04:00  
				
					
						
							
							
								 
						
							
							
								71b553b305 
								
							
								 
							
						 
						
							
							
								
								Add a few functions to retrieve unit social activities  
							
							
							
						 
						
							2017-04-28 17:25:58 -04:00  
				
					
						
							
							
								 
						
							
							
								19695b4ee7 
								
							
								 
							
						 
						
							
							
								
								EventManager/eventful: Pass building ID pointers to event handlers  
							
							... 
							
							
							
							Previously, there was some disagreement over whether event handlers such as
Buildings::updateBuildings() took building pointers or building IDs shoved
into pointers. It turned out to be the latter, which, unfortunately, did not
compile on x64. Passing building IDs isn't possible in all cases, because
building event handlers can be called for recently-deleted buildings too.
Pointers to building IDs do work reliably, though.
Fixes  #1003  
							
						 
						
							2017-02-17 22:53:48 -05:00  
				
					
						
							
							
								 
						
							
							
								acdb369aa8 
								
							
								 
							
						 
						
							
							
								
								Avoid non-trivial bitfield constructors  
							
							
							
						 
						
							2016-12-09 13:41:14 -05:00  
				
					
						
							
							
								 
						
							
							
								8521b830b2 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'CannibalVox/job_remove' into develop  
							
							
							
						 
						
							2016-12-05 15:24:37 -05:00  
				
					
						
							
							
								 
						
							
							
								595f3857b6 
								
							
								 
							
						 
						
							
							
								
								Reverse the param order of these two methods  
							
							... 
							
							
							
							The current way doesn't match other Job module methods 
							
						 
						
							2016-12-01 20:13:49 -08:00  
				
					
						
							
							
								 
						
							
							
								de0e211e07 
								
							
								 
							
						 
						
							
							
								
								Figured I could like test my code.  
							
							
							
						 
						
							2016-11-24 23:35:03 -08:00  
				
					
						
							
							
								 
						
							
							
								e490afdf00 
								
							
								 
							
						 
						
							
							
								
								Rebuilt slightly to offer bool return val  
							
							... 
							
							
							
							We fail on unknown general ref types now, without modifying the job at
all yet 
							
						 
						
							2016-11-24 22:36:11 -08:00  
				
					
						
							
							
								 
						
							
							
								8b964ca2dc 
								
							
								 
							
						 
						
							
							
								
								Wipe job_items vector  
							
							
							
						 
						
							2016-11-21 06:51:21 -08:00  
				
					
						
							
							
								 
						
							
							
								fba32f2e2f 
								
							
								 
							
						 
						
							
							
								
								Also disconnect the job from its items.  
							
							
							
						 
						
							2016-11-17 23:25:48 -08:00  
				
					
						
							
							
								 
						
							
							
								74f5df99db 
								
							
								 
							
						 
						
							
							
								
								Add job remove method  
							
							... 
							
							
							
							Job remove eliminates a job's worker & holder references, if any, puts
the worker on cd, if appropriate, removes the job's postings, eliminates
the job from the global linked list, and then finally deletes it.  This
code was tested by incorporating it into autochop and it does make the
plugin work.  However, chop jobs don't have holder building references,
and anyway, with DF being 90% edge case by volume, this could use a heck
of a lot more testing.
I saw elsewhere code that prevented worker removal if the job was a
special job, and that made me feel funny so I made the job remove method
not work if the job is a special job. 
							
						 
						
							2016-11-17 19:54:41 -08:00  
				
					
						
							
							
								 
						
							
							
								70d3c07cdb 
								
							
								 
							
						 
						
							
							
								
								Initial lua getDwarfmodeViewDims rewrite  
							
							
							
						 
						
							2016-10-07 23:51:58 -04:00  
				
					
						
							
							
								 
						
							
							
								70ac99cbfa 
								
							
								 
							
						 
						
							
							
								
								Fix Buildings::setOwner() persistence  
							
							... 
							
							
							
							Needed to set bld->owner_id for changes to persist across save/load
Fixes  #983 , thanks to Quietust 
							
						 
						
							2016-08-21 20:58:40 -04:00  
				
					
						
							
							
								 
						
							
							
								de731b0299 
								
							
								 
							
						 
						
							
							
								
								Move save_dir back into cur_savegame and update submodules  
							
							
							
						 
						
							2016-08-14 12:41:09 -04:00  
				
					
						
							
							
								 
						
							
							
								e965f5318f 
								
							
								 
							
						 
						
							
							
								
								Replace many includes with forward declarations in modules/Maps.h  
							
							
							
						 
						
							2016-08-13 21:44:01 -04:00  
				
					
						
							
							
								 
						
							
							
								215afa34f3 
								
							
								 
							
						 
						
							
							
								
								Update for 64-bit unit changes  
							
							... 
							
							
							
							Includes xml, stonesense, scripts
Ref DFHack/df-structures@25cb373  
							
						 
						
							2016-08-10 23:50:00 -04:00  
				
					
						
							
							
								 
						
							
							
								79377669a1 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'NCommander/dwarfvet' into develop  
							
							
							
						 
						
							2016-07-29 16:25:53 -04:00  
				
					
						
							
							
								 
						
							
							
								41a81f9021 
								
							
								 
							
						 
						
							
							
								
								Fix some more warnings (GCC 4.8)  
							
							
							
						 
						
							2016-07-28 11:00:52 -04:00  
				
					
						
							
							
								 
						
							
							
								fe18f176f7 
								
							
								 
							
						 
						
							
							
								
								More 64-bit fixes  
							
							... 
							
							
							
							Cherry-picked from 7eb3ba6
- Lua update already done in e2c63504dd411e 
							
						 
						
							2016-07-26 23:47:53 -04:00  
				
					
						
							
							
								 
						
							
							
								2455e36510 
								
							
								 
							
						 
						
							
							
								
								Initial 64-bit support  
							
							
							
						 
						
							2016-07-03 23:32:43 -04:00  
				
					
						
							
							
								 
						
							
							
								a03b32846a 
								
							
								 
							
						 
						
							
							
								
								Modify DFHack to handle new produce() prototype. Major thanks to lethosor, and ragundo for their help in this  
							
							... 
							
							
							
							Signed-off-by: Michael Casadevall <mcasadevall@ubuntu.com> 
							
						 
						
							2016-06-13 16:57:45 -04:00  
				
					
						
							
							
								 
						
							
							
								e45fbfc61d 
								
							
								 
							
						 
						
							
							
								
								Modified dwaftvet plugin to work with latest DFHack  
							
							... 
							
							
							
							Initial commit of the dwarfvet plugin
Signed-off-by: Michael Casadevall <mcasadevall@ubuntu.com> 
							
						 
						
							2016-06-08 04:14:59 -04:00  
				
					
						
							
							
								 
						
							
							
								a89251cdf8 
								
							
								 
							
						 
						
							
							
								
								Find job in job screen  
							
							
							
						 
						
							2016-05-14 16:07:27 -04:00  
				
					
						
							
							
								 
						
							
							
								55e58e5f06 
								
							
								 
							
						 
						
							
							
								
								Update handling of viewscreen_workshop_profilest in Gui module, search/sort plugins  
							
							
							
						 
						
							2016-05-14 11:43:37 -04:00  
				
					
						
							
							
								 
						
							
							
								fee6e57b40 
								
							
								 
							
						 
						
							
							
								
								Disable viewscreen_layer_workshop_profilest focus handler for now  
							
							
							
						 
						
							2016-05-11 17:52:56 -04:00  
				
					
						
							
							
								 
						
							
							
								402a96b0e6 
								
							
								 
							
						 
						
							
							
								
								Expose new unit functions to lua and add some basic safety checks  
							
							
							
						 
						
							2016-04-23 21:52:50 -04:00  
				
					
						
							
							
								 
						
							
							
								52728babd4 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into zone-unassign  
							
							
							
						 
						
							2016-04-22 18:41:15 -04:00  
				
					
						
							
							
								 
						
							
							
								b97d33ca28 
								
							
								 
							
						 
						
							
							
								
								moveToBuilding improvements  
							
							... 
							
							
							
							- Don't set in_building by default when use_mode is 0 (consistent with most vanilla DF items)
- make use_mode optional and default to 0 (including in Lua API)
Resolves  #885  
							
						 
						
							2016-04-05 11:43:02 -04:00  
				
					
						
							
							
								 
						
							
							
								f8ff447cb5 
								
							
								 
							
						 
						
							
							
								
								Add a check to the histfig fix and tweak NEWS.  
							
							
							
						 
						
							2016-03-10 08:50:03 -05:00  
				
					
						
							
							
								 
						
							
							
								fd132d3fe7 
								
							
								 
							
						 
						
							
							
								
								Fix persistent histfig crashbug.  
							
							
							
						 
						
							2016-03-10 08:38:55 -05:00  
				
					
						
							
							
								 
						
							
							
								9da79544de 
								
							
								 
							
						 
						
							
							
								
								fix Units::isCitizen  
							
							... 
							
							
							
							fixes a lot of issues where plugins ignore non-dwarf citizens and work
with dwarf mercenaries and bards, where it shouldnot 
							
						 
						
							2016-03-04 22:48:33 +02:00  
				
					
						
							
							
								 
						
							
							
								d508028bcc 
								
							
								 
							
						 
						
							
							
								
								fix job-duplicate (do not clone posting_index)  
							
							... 
							
							
							
							if job cannot be done right now, game puts it in df.global.world.job_postings
when job finally can be done, game removes job from postings and clears posting_index
that index should not be cloned by job-duplicate(new jobs(added by vanilla way) have that value -1 always anyway)
cloning posting_index into the new job causes that job to be ignored 
							
						 
						
							2016-03-03 21:32:16 +02:00  
				
					
						
							
							
								 
						
							
							
								5bb19a230f 
								
							
								 
							
						 
						
							
							
								
								getKillCount: also search kills->events  
							
							
							
						 
						
							2016-02-25 15:34:56 -05:00  
				
					
						
							
							
								 
						
							
							
								25507a10f9 
								
							
								 
							
						 
						
							
							
								
								Add Units::getKillCount() and expose it to Lua  
							
							
							
						 
						
							2016-02-25 15:21:14 -05:00  
				
					
						
							
							
								 
						
							
							
								3e44aabf12 
								
							
								 
							
						 
						
							
							
								
								Expose Units::getSquadName to lua  
							
							
							
						 
						
							2016-02-25 15:19:35 -05:00  
				
					
						
							
							
								 
						
							
							
								83c70ccb0f 
								
							
								 
							
						 
						
							
							
								
								forbid manipulator editing non-citizens  
							
							
							
						 
						
							2016-02-11 13:31:52 +02:00  
				
					
						
							
							
								 
						
							
							
								0a670bb0db 
								
							
								 
							
						 
						
							
							
								
								Implement  #804 , move some functions to Units, colorize zone output, a  
							
							... 
							
							
							
							little cleanup 
							
						 
						
							2016-02-01 11:12:06 -05:00  
				
					
						
							
							
								 
						
							
							
								248331a196 
								
							
								 
							
						 
						
							
							
								
								buildingplan: Support floodgates, grates, bars  
							
							... 
							
							
							
							See #808  
							
						 
						
							2016-01-31 14:50:07 -05:00  
				
					
						
							
							
								 
						
							
							
								a316dfa074 
								
							
								 
							
						 
						
							
							
								
								set floodgate flags correctly when allocating it in lua or c++  
							
							... 
							
							
							
							https://github.com/DFHack/dfhack/blob/0.42.04-alpha2/plugins/ruby/building.rb#L63  
						
							2016-01-29 14:50:50 -06:00  
				
					
						
							
							
								 
						
							
							
								675d173266 
								
							
								 
							
						 
						
							
							
								
								set civzone number when constructing a civzone  
							
							
							
						 
						
							2016-01-18 14:46:39 -06:00  
				
					
						
							
							
								 
						
							
							
								0bcc8dc443 
								
							
								 
							
						 
						
							
							
								
								exportlegends: fix day/month issues more reliably  
							
							... 
							
							
							
							Fixes  #783 , #791  
						
							2016-01-09 19:28:12 -05:00  
				
					
						
							
							
								 
						
							
							
								d0c28d3f50 
								
							
								 
							
						 
						
							
							
								
								Prevent plugins with active viewscreens from being unloaded  
							
							... 
							
							
							
							This requires plugins to pass plugin_self to Screen::show(), but
avoids the need to implement special checks in plugin_onstatechange
for the SC_BEGIN_UNLOAD event. 
							
						 
						
							2016-01-01 11:15:29 -05:00  
				
					
						
							
							
								 
						
							
							
								fabff1ddfb 
								
							
								 
							
						 
						
							
							
								
								Fix df::occupation usage  
							
							
							
						 
						
							2015-12-26 19:59:54 -05:00  
				
					
						
							
							
								 
						
							
							
								64d861bf6b 
								
							
								 
							
						 
						
							
							
								
								Add support for viewscreen_locationsst to various gui functions  
							
							
							
						 
						
							2015-12-25 11:09:13 -05:00  
				
					
						
							
							
								 
						
							
							
								2a2ab00ca9 
								
							
								 
							
						 
						
							
							
								
								Add "map" parameter to a lot of drawing functions  
							
							... 
							
							
							
							Ref #746  
							
						 
						
							2015-12-22 11:42:51 -05:00  
				
					
						
							
							
								 
						
							
							
								10c72a3d5d 
								
							
								 
							
						 
						
							
							
								
								Fix produce() call in modules/Items.cpp  
							
							
							
						 
						
							2015-12-22 09:46:01 -05:00  
				
					
						
							
							
								 
						
							
							
								5a1e5e1464 
								
							
								 
							
						 
						
							
							
								
								Expose Units::casteFlagSet()  
							
							
							
						 
						
							2015-12-19 11:07:35 -05:00  
				
					
						
							
							
								 
						
							
							
								55d5706a21 
								
							
								 
							
						 
						
							
							
								
								Update structures and fix various issues with plugins producing items  
							
							... 
							
							
							
							reaction_product::produce() takes a new unidentified vector<void*>*.
Passing a reference to an empty vector appears to work. 
							
						 
						
							2015-12-18 18:40:11 -05:00  
				
					
						
							
							
								 
						
							
							
								2aeac718cc 
								
							
								 
							
						 
						
							
							
								
								workflow: Account for job postings correctly and fix existing issues  
							
							... 
							
							
							
							Without removing postings correctly, it was possible to end up with
multiple workers assigned to a job that workflow had suspended
multiple times, which caused crashes if more than one worker was
assigned to the same job by DF.
This adds an additional command, fix-job-postings, that runs
automatically when loading a world and fixes:
- Multiple job postings that point to the same job
- Job postings that point to a job where posting_index == -1
  (i.e. jobs that should have no posting assigned)
Fixes  #741  
							
						 
						
							2015-11-25 20:33:13 -05:00  
				
					
						
							
							
								 
						
							
							
								610170b0b0 
								
							
								 
							
						 
						
							
							
								
								Add hooks for getDwarfmodeViewDims and getDepthAt (new)  
							
							
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								fcfffd1cb6 
								
							
								 
							
						 
						
							
							
								
								Track state of gui hooks  
							
							... 
							
							
							
							Also fix a bug in drawborder() and expand color-dfhack-text to test
multiple hooks 
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								fff9072b07 
								
							
								 
							
						 
						
							
							
								
								Add initial support for hooking into Gui-related functions  
							
							
							
						 
						
							2015-11-15 11:54:34 -05:00  
				
					
						
							
							
								 
						
							
							
								051244c8d6 
								
							
								 
							
						 
						
							
							
								
								Fix GCC compile error  
							
							
							
						 
						
							2015-11-06 20:05:14 -05:00  
				
					
						
							
							
								 
						
							
							
								e9be1aa657 
								
							
								 
							
						 
						
							
							
								
								Fix for construction over existing construction & on top of walls  
							
							... 
							
							
							
							Fix to allow constructions on top of (natural) down stairs 
							
						 
						
							2015-11-06 19:00:43 +01:00  
				
					
						
							
							
								 
						
							
							
								6e5d9c23e5 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #715  from DoctorVanGogh/webfix  
							
							... 
							
							
							
							Add 'undisturbed' flag to job item checks 
							
						 
						
							2015-10-31 11:28:25 -04:00  
				
					
						
							
							
								 
						
							
							
								ac71fa8070 
								
							
								 
							
						 
						
							
							
								
								Add isValidLabor() to Units module  
							
							... 
							
							
							
							Closes  #711  and could avoid potential issues when editing units from
other civs with manipulator. 
						
							2015-10-30 18:41:09 -04:00  
				
					
						
							
							
								 
						
							
							
								ba53f3c035 
								
							
								 
							
						 
						
							
							
								
								Add 'undisturbed' flag to job item checks  
							
							
							
						 
						
							2015-10-26 02:19:41 +01:00  
				
					
						
							
							
								 
						
							
							
								8de710f1c1 
								
							
								 
							
						 
						
							
							
								
								Add Renderer module - safer way to install custom renderers  
							
							
							
						 
						
							2015-10-21 17:18:39 -04:00  
				
					
						
							
							
								 
						
							
							
								3f5c002634 
								
							
								 
							
						 
						
							
							
								
								Pass virtual_identity by reference  
							
							
							
						 
						
							2015-10-03 09:27:24 -04:00  
				
					
						
							
							
								 
						
							
							
								d343dfd8a0 
								
							
								 
							
						 
						
							
							
								
								Add a function to find viewscreens (or parents) of a given type  
							
							... 
							
							
							
							This makes it possible for some plugins to detect the game state more
reliably - for example, prospector would previously fail when
embarking if the viewscreen_choose_start_sitest instance had any
children. 
							
						 
						
							2015-10-02 21:50:55 -04:00  
				
					
						
							
							
								 
						
							
							
								a56a427d12 
								
							
								 
							
						 
						
							
							
								
								Make Filesystem::is* functions handle nonexistent paths properly  
							
							... 
							
							
							
							If stat() failed, these functions could read from an uninitialized
stat struct and return "true" for paths that didn't exist. 
							
						 
						
							2015-09-19 17:34:58 -04:00  
				
					
						
							
							
								 
						
							
							
								d663784707 
								
							
								 
							
						 
						
							
							
								
								Detect null unit pointer in Items::createItem()  
							
							
							
						 
						
							2015-06-09 14:02:42 -04:00  
				
					
						
							
							
								 
						
							
							
								36fde3d7e3 
								
							
								 
							
						 
						
							
							
								
								Allow Lua screens to allow OPTIONS to work  
							
							
							
						 
						
							2015-06-05 18:45:52 -04:00  
				
					
						
							
							
								 
						
							
							
								a8f5e683f7 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branches 'RossM/autolabor-changes', 'RossM/workflow-changes' and 'lethosor/plugin-exports' into develop  
							
							
							
						 
						
							2015-05-09 09:39:55 -04:00  
				
					
						
							
							
								 
						
							
							
								51d61d91cb 
								
							
								 
							
						 
						
							
							
								
								Change tabs to spaces.  
							
							
							
						 
						
							2015-05-07 20:50:19 -07:00  
				
					
						
							
							
								 
						
							
							
								7aac9a8fb8 
								
							
								 
							
						 
						
							
							
								
								Improve workflow handling of plant reactions  
							
							... 
							
							
							
							Makes workflow understand "seeds of any plant", "thread of any plant",
"drink of any plant", "powder of any plant", and "liquid of any plant"
when counting items.
Changes workflow's handling of the built-in plant reactions to
understand that they always produce plant products, and that they also
produce seeds.
This means that you can set a target for, for example, "powder of any
plant", and workflow will use a milling job to produce that. 
							
						 
						
							2015-05-07 20:49:29 -07:00  
				
					
						
							
							
								 
						
							
							
								bbb41078e7 
								
							
								 
							
						 
						
							
							
								
								Expose PenArray dimensions and tiles to Lua  
							
							
							
						 
						
							2015-03-28 18:35:07 -04:00  
				
					
						
							
							
								 
						
							
							
								e2b6ae9beb 
								
							
								 
							
						 
						
							
							
								
								Allocate Lua PenArray objects using an existing buffer  
							
							
							
						 
						
							2015-03-28 11:27:47 -04:00  
				
					
						
							
							
								 
						
							
							
								99f4ea4d2b 
								
							
								 
							
						 
						
							
							
								
								Implement a PenArray class for caching parts of rendered screens  
							
							
							
						 
						
							2015-03-27 22:56:30 -04:00  
				
					
						
							
							
								 
						
							
							
								afca7419dc 
								
							
								 
							
						 
						
							
							
								
								Add gametype checks to World.cpp  
							
							
							
						 
						
							2015-03-09 20:08:21 -04:00  
				
					
						
							
							
								 
						
							
							
								10cfef0553 
								
							
								 
							
						 
						
							
							
								
								Fix whitespace issues  
							
							
							
						 
						
							2015-02-14 22:53:06 -05:00  
				
					
						
							
							
								 
						
							
							
								92bd6349a7 
								
							
								 
							
						 
						
							
							
								
								Fix listdir_recursive on Windows.  
							
							
							
						 
						
							2015-01-31 22:28:17 -05:00  
				
					
						
							
							
								 
						
							
							
								e9b4fc513a 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'cdombroski/zone-plugin-cleanup' into temp  
							
							... 
							
							
							
							Conflicts:
	NEWS
	plugins/zone.cpp 
							
						 
						
							2015-01-31 21:01:41 -05:00  
				
					
						
							
							
								 
						
							
							
								066adfdf95 
								
							
								 
							
						 
						
							
							
								
								Implement a function to list directories recursively  
							
							
							
						 
						
							2015-01-30 17:29:17 -05:00  
				
					
						
							
							
								 
						
							
							
								f608235b1e 
								
							
								 
							
						 
						
							
							
								
								Fix some Lua things  
							
							
							
						 
						
							2015-01-29 19:56:50 -05:00  
				
					
						
							
							
								 
						
							
							
								f2eec3198c 
								
							
								 
							
						 
						
							
							
								
								Rename findPenPitAtCoord  
							
							
							
						 
						
							2015-01-29 15:02:54 -05:00  
				
					
						
							
							
								 
						
							
							
								48b6cf1beb 
								
							
								 
							
						 
						
							
							
								
								Export functions to Buildings.h  
							
							
							
						 
						
							2015-01-29 13:57:50 -05:00  
				
					
						
							
							
								 
						
							
							
								1514233aaa 
								
							
								 
							
						 
						
							
							
								
								Add missing null checks to Units.cpp  
							
							
							
						 
						
							2015-01-29 13:57:50 -05:00  
				
					
						
							
							
								 
						
							
							
								daf739fcec 
								
							
								 
							
						 
						
							
							
								
								Remove FIFO support  
							
							
							
						 
						
							2015-01-28 21:39:17 -05:00  
				
					
						
							
							
								 
						
							
							
								c179f5b913 
								
							
								 
							
						 
						
							
							
								
								Extract some stuff from zone.cpp to plugins/Units.{h,cpp}  
							
							
							
						 
						
							2015-01-28 21:28:32 -05:00  
				
					
						
							
							
								 
						
							
							
								f98e2964e6 
								
							
								 
							
						 
						
							
							
								
								Fix a few Windows compilation errors  
							
							
							
						 
						
							2015-01-28 20:05:24 -05:00  
				
					
						
							
							
								 
						
							
							
								bebceffa5f 
								
							
								 
							
						 
						
							
							
								
								Add Filesystem::listdir()  
							
							
							
						 
						
							2015-01-28 19:15:58 -05:00  
				
					
						
							
							
								 
						
							
							
								e8c0482fdc 
								
							
								 
							
						 
						
							
							
								
								Add atime()/ctime()/mtime()  
							
							
							
						 
						
							2015-01-28 18:18:06 -05:00  
				
					
						
							
							
								 
						
							
							
								2e3261565c 
								
							
								 
							
						 
						
							
							
								
								Clean up Filesystem.h  
							
							
							
						 
						
							2015-01-28 17:15:09 -05:00  
				
					
						
							
							
								 
						
							
							
								8f4b766107 
								
							
								 
							
						 
						
							
							
								
								EventManager: Fix a crash bug with EQUIPMENT_CHANGE event.  
							
							
							
						 
						
							2015-01-15 18:13:19 -05:00  
				
					
						
							
							
								 
						
							
							
								d932c76242 
								
							
								 
							
						 
						
							
							
								
								Fix MapCache compiling error on Windows  
							
							
							
						 
						
							2015-01-05 17:28:42 -05:00  
				
					
						
							
							
								 
						
							
							
								06029c92c2 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branches 'lethosor/export-dt-ini-0.40.21' and 'lethosor/patch-9'  
							
							
							
						 
						
							2015-01-05 16:40:44 -05:00  
				
					
						
							
							
								 
						
							
							
								983f096a60 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'quipyowert/define-maxlayers' into 0.40.23-r1  
							
							
							
						 
						
							2015-01-05 16:04:37 -05:00  
				
					
						
							
							
								 
						
							
							
								3c0ac70615 
								
							
								 
							
						 
						
							
							
								
								Remove output from filetype()  
							
							... 
							
							
							
							Not sure how this made it in, but it's causing problems with PRINT_MODE:TEXT (not to mention filling up stdout.log) 
							
						 
						
							2014-12-27 15:05:43 -05:00  
				
					
						
							
							
								 
						
							
							
								f4e8fa2f30 
								
							
								 
							
						 
						
							
							
								
								Define a static variable to fix debug mode crash.  
							
							... 
							
							
							
							Fixes  #404  
						
							2014-12-01 17:19:20 -08:00  
				
					
						
							
							
								 
						
							
							
								83d3785735 
								
							
								 
							
						 
						
							
							
								
								Update xml.  
							
							
							
						 
						
							2014-11-30 14:03:00 -05:00  
				
					
						
							
							
								 
						
							
							
								445640f80c 
								
							
								 
							
						 
						
							
							
								
								Allow commands invoked through command-prompt to access selected items/units/buildings  
							
							... 
							
							
							
							Fixes  #273  
						
							2014-11-25 20:25:31 -05:00  
				
					
						
							
							
								 
						
							
							
								5e3bf9a494 
								
							
								 
							
						 
						
							
							
								
								Make it compile for OSX.  
							
							
							
						 
						
							2014-11-14 22:21:03 -05:00  
				
					
						
							
							
								 
						
							
							
								4464d7318d 
								
							
								 
							
						 
						
							
							
								
								EventManager: make REPORT events only trigger for new reports, not ones that already exist in the save.  
							
							
							
						 
						
							2014-11-14 22:07:48 -05:00  
				
					
						
							
							
								 
						
							
							
								428fe6a400 
								
							
								 
							
						 
						
							
							
								
								interaction-trigger tweaks  
							
							
							
						 
						
							2014-11-14 18:50:19 -05:00  
				
					
						
							
							
								 
						
							
							
								779ac3fd50 
								
							
								 
							
						 
						
							
							
								
								Updated interaction-trigger to work better.  
							
							
							
						 
						
							2014-11-09 18:36:21 -05:00  
				
					
						
							
							
								 
						
							
							
								fa401f8637 
								
							
								 
							
						 
						
							
							
								
								EventManager tweak.  
							
							
							
						 
						
							2014-11-07 14:16:10 -05:00  
				
					
						
							
							
								 
						
							
							
								dcdb6aae1b 
								
							
								 
							
						 
						
							
							
								
								EventManager: properly deal with frame_counter getting reset.  
							
							
							
						 
						
							2014-11-06 23:44:13 -05:00  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								8631da7e4e 
								
							
								 
							
						 
						
							
							
								
								Convenience method to collect a vector from StockpileIterator.  
							
							
							
						 
						
							2014-09-07 14:10:27 -06:00  
				
					
						
							
							
								 
						
							
							
								deee486b81 
								
							
								 
							
						 
						
							
							
								
								Update Maps::SortBlockEvents to include spoors and item spatters  
							
							
							
						 
						
							2014-08-20 10:51:58 -05:00  
				
					
						
							
							
								 
						
							
							
								5e434721ff 
								
							
								 
							
						 
						
							
							
								
								Remove stray BOM  
							
							
							
						 
						
							2014-08-19 13:47:05 -05:00  
				
					
						
							
							
								 
						
							
							
								4da333fca1 
								
							
								 
							
						 
						
							
							
								
								Fix Buildings module to work with ui.tax_collection.rooms change  
							
							
							
						 
						
							2014-08-18 16:33:12 -05:00  
				
					
						
							
							
								 
						
							
							
								5add8c433d 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:DFHack/dfhack into remote_reader  
							
							... 
							
							
							
							Conflicts:
	plugins/remotefortressreader.cpp 
							
						 
						
							2014-08-15 19:15:00 +05:30  
				
					
						
							
							
								 
						
							
							
								2471c4a68e 
								
							
								 
							
						 
						
							
							
								
								Add a new API for converting between interface_key and string characters.  
							
							... 
							
							
							
							It's necessary now that the simple linear arrangement is broken. 
							
						 
						
							2014-08-11 14:23:19 +04:00  
				
					
						
							
							
								 
						
							
							
								36435ca8cf 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of  https://github.com/quietust/dfhack  into remote_reader  
							
							... 
							
							
							
							Conflicts:
	library/modules/Items.cpp
	library/modules/MapCache.cpp
	library/modules/Maps.cpp
	library/modules/Materials.cpp
	library/modules/Translation.cpp
	plugins/CMakeLists.txt 
							
						 
						
							2014-08-08 20:54:44 +05:30  
				
					
						
							
							
								 
						
							
							
								08da62392e 
								
							
								 
							
						 
						
							
							
								
								Fixed a mistake where MapCache was using the wrong range for root depth.  
							
							
							
						 
						
							2014-08-02 17:09:59 +05:30  
				
					
						
							
							
								 
						
							
							
								1450298484 
								
							
								 
							
						 
						
							
							
								
								assumed_identity -> identity  
							
							
							
						 
						
							2014-07-29 16:30:22 -05:00  
				
					
						
							
							
								 
						
							
							
								4902c577b3 
								
							
								 
							
						 
						
							
							
								
								Fix some crashes when running without globals and update structures.  
							
							
							
						 
						
							2014-07-24 23:10:37 +04:00  
				
					
						
							
							
								 
						
							
							
								bc5e0f6ad6 
								
							
								 
							
						 
						
							
							
								
								Made DFHack buildable. Also added plant proto definitions  
							
							
							
						 
						
							2014-07-23 19:57:47 +05:30  
				
					
						
							
							
								 
						
							
							
								9435d8f4d9 
								
							
								 
							
						 
						
							
							
								
								Fix crashes caused by missing globals  
							
							
							
						 
						
							2014-07-21 19:14:43 -05:00  
				
					
						
							
							
								 
						
							
							
								38cdb37433 
								
							
								 
							
						 
						
							
							
								
								Update plant_tree_info field names  
							
							
							
						 
						
							2014-07-21 14:46:51 -05:00  
				
					
						
							
							
								 
						
							
							
								e711605413 
								
							
								 
							
						 
						
							
							
								
								Some minor corrections  
							
							
							
						 
						
							2014-07-21 13:26:34 -05:00  
				
					
						
							
							
								 
						
							
							
								97de21357c 
								
							
								 
							
						 
						
							
							
								
								First pass for 0.40 compatibility; still lots left to do, but this will at least build  
							
							
							
						 
						
							2014-07-21 13:18:29 -05:00  
				
					
						
							
							
								 
						
							
							
								b598cbb0dd 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:DFHack/dfhack into develop  
							
							
							
						 
						
							2014-07-20 16:43:00 +05:30  
				
					
						
							
							
								 
						
							
							
								a14caa53d0 
								
							
								 
							
						 
						
							
							
								
								Fixed mapcache reading plants in for 0.40.01 onwards.  
							
							
							
						 
						
							2014-07-20 16:41:20 +05:30  
				
					
						
							
							
								 
						
							
							
								0a16bc2e12 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/perSaveScripts' into scriptOrganization  
							
							... 
							
							
							
							Conflicts:
	plugins/CMakeLists.txt 
							
						 
						
							2014-07-07 09:01:07 -04:00  
				
					
						
							
							
								 
						
							
							
								649dcd1413 
								
							
								 
							
						 
						
							
							
								
								EventManager tweak: make it report the correct invasion id.  
							
							
							
						 
						
							2014-07-03 14:37:13 -04:00  
				
					
						
							
							
								 
						
							
							
								2fb8faf3e6 
								
							
								 
							
						 
						
							
							
								
								Added Items::createItem function.  
							
							
							
						 
						
							2014-07-03 10:39:20 -04:00  
				
					
						
							
							
								 
						
							
							
								d8c3a05f42 
								
							
								 
							
						 
						
							
							
								
								Made EQUIPMENT_CHANGE event trigger for new units.  
							
							
							
						 
						
							2014-07-03 08:10:12 -04:00  
				
					
						
							
							
								 
						
							
							
								81c87d0921 
								
							
								 
							
						 
						
							
							
								
								EventManager: INTERACTION event for unit interactions.  
							
							
							
						 
						
							2014-07-03 04:55:12 -04:00  
				
					
						
							
							
								 
						
							
							
								516121d4f8 
								
							
								 
							
						 
						
							
							
								
								Fixed the getprofession behavior in adventure mode. Now it checks for the current adventurer's race instead of the fortress race.  
							
							
							
						 
						
							2014-07-02 23:07:24 +05:30  
				
					
						
							
							
								 
						
							
							
								8f43b97284 
								
							
								 
							
						 
						
							
							
								
								EventManager tweaks.  
							
							
							
						 
						
							2014-07-01 09:02:20 -04:00  
				
					
						
							
							
								 
						
							
							
								4ac32cfd74 
								
							
								 
							
						 
						
							
							
								
								EventManager: made UNIT_ATTACK trigger for severed body parts.  
							
							
							
						 
						
							2014-07-01 08:58:48 -04:00  
				
					
						
							
							
								 
						
							
							
								961d033ade 
								
							
								 
							
						 
						
							
							
								
								EventManager: unload event for convenience.  
							
							
							
						 
						
							2014-06-29 10:03:55 -04:00  
				
					
						
							
							
								 
						
							
							
								ceae634954 
								
							
								 
							
						 
						
							
							
								
								Squashed EventManager commented out thing I don't need anymore.  
							
							
							
						 
						
							2014-06-28 02:41:00 -04:00  
				
					
						
							
							
								 
						
							
							
								8e7e87ac73 
								
							
								 
							
						 
						
							
							
								
								Added UNIT_ATTACK event to EventManager and exposed it to Lua.  
							
							
							
						 
						
							2014-06-28 02:31:34 -04:00  
				
					
						
							
							
								 
						
							
							
								c635632ae7 
								
							
								 
							
						 
						
							
							
								
								EventManager.cpp: fix indentation.  
							
							
							
						 
						
							2014-06-27 22:09:01 -04:00  
				
					
						
							
							
								 
						
							
							
								7313c18a2a 
								
							
								 
							
						 
						
							
							
								
								EventManager/eventful: added ON_REPORT event and exposed it to Lua.  
							
							
							
						 
						
							2014-06-23 09:15:46 -04:00  
				
					
						
							
							
								 
						
							
							
								036aae060b 
								
							
								 
							
						 
						
							
							
								
								Merge lethosor stuff. For some reason, git's auto merge message didn't happen because of git-stash shenanigans. Oh well.  
							
							
							
						 
						
							2014-06-19 22:58:17 -04:00  
				
					
						
							
							
								 
						
							
							
								ec64a787c6 
								
							
								 
							
						 
						
							
							
								
								Use _getcwd on Windows  
							
							
							
						 
						
							2014-06-19 22:34:40 -04:00  
				
					
						
							
							
								 
						
							
							
								73fdb8b125 
								
							
								 
							
						 
						
							
							
								
								Fix Windows compile-time error  
							
							
							
						 
						
							2014-06-19 21:24:16 -04:00  
				
					
						
							
							
								 
						
							
							
								ef69522d93 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into filesystem-module-pr  
							
							
							
						 
						
							2014-06-18 15:45:42 -04:00  
				
					
						
							
							
								 
						
							
							
								6fa478de22 
								
							
								 
							
						 
						
							
							
								
								Filesystem module  
							
							... 
							
							
							
							Implements a handful of filesystem-related functions (e.g. chdir, mkdir)
in C++ and Lua. 
							
						 
						
							2014-06-15 22:38:17 -04:00  
				
					
						
							
							
								 
						
							
							
								e0808c8c96 
								
							
								 
							
						 
						
							
							
								
								Use squad::find instead of indexing the vector  
							
							
							
						 
						
							2014-06-10 22:38:32 -04:00  
				
					
						
							
							
								 
						
							
							
								bdcc00f6f7 
								
							
								 
							
						 
						
							
							
								
								Util method (in the Units class) to get a unit squad name (the translated name, or alias if set)  
							
							
							
						 
						
							2014-06-09 21:51:52 -04:00  
				
					
						
							
							
								 
						
							
							
								e483e7439f 
								
							
								 
							
						 
						
							
							
								
								Fix problems with NONE for item types and subtypes  
							
							
							
						 
						
							2014-05-22 08:18:01 -05:00  
				
					
						
							
							
								 
						
							
							
								415cdad489 
								
							
								 
							
						 
						
							
							
								
								Make using new for allocating DF objects with vtables a compile-time error.  
							
							... 
							
							
							
							When done from plugins, it doesn't correctly initialize the vtable
because of some weird things MSVC does, so the only safe way is to
use df::allocate<df::foo>(). For consistency, it is also enforced
for code in the main library. It reveals the issue in the digging
invaders plugin, first found by warmist.
This change is linked to a modification in df-structures codegen. 
							
						 
						
							2014-04-30 21:28:02 +04:00  
				
					
						
							
							
								 
						
							
							
								98325757e2 
								
							
								 
							
						 
						
							
							
								
								Fix signed-unsigned mismatch warnings in the new item value code.  
							
							... 
							
							
							
							Unsigned comparison allows catching negatives in the same check too.
Also, it didn't check the values in getValue. 
							
						 
						
							2014-04-30 20:44:22 +04:00