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  
				
					
						
							
							
								 
						
							
							
								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