59b023c71d 
								
									
								
							
								 
							
						 
						
							
							
								
								Ensure that command-prompt is dismissed after a command creates a new screen  
							
							... 
							
							
							
							Fixes  #1803 
Running a command that created a new screen would previously result in a screen
order that looked like this, due to how `Screen::Hide` works:
- DF screen
  - `command-prompt` screen (dismissed)
    - New screen
The `command-prompt` screen remained on the stack until the new screen was
dismissed, so it would intercept viewscreen vmethod calls intended for the
DF screen.
This change adds a new behavior to `Screen::Hide` that results in this screen
order after running a command:
- DF screen
  - New screen
    - `command-prompt` screen (dismissed) - DF removes this screen immediately 
						
							2021-03-21 20:42:50 -04:00  
				
					
						
							
							
								 
						
							
							
								9e17bc938c 
								
									
								
							
								 
							
						 
						
							
							
								
								only set labor validity for the player civ  
							
							
							
						 
						
							2021-02-17 09:16:49 -08:00  
				
					
						
							
							
								 
						
							
							
								6819ee9928 
								
									
								
							
								 
							
						 
						
							
							
								
								make alchemist flag valid for controllable civs  
							
							
							
						 
						
							2021-02-05 16:45:39 -08:00  
				
					
						
							
							
								 
						
							
							
								32a0363f31 
								
									
								
							
								 
							
						 
						
							
							
								
								move identity check up a bit to avoid useless work  
							
							
							
						 
						
							2021-01-24 08:57:56 -08:00  
				
					
						
							
							
								 
						
							
							
								03719f58df 
								
									
								
							
								 
							
						 
						
							
							
								
								avoid infinite parentage when linking rooms  
							
							
							
						 
						
							2021-01-24 08:52:34 -08:00  
				
					
						
							
							
								 
						
							
							
								3ba984c22c 
								
									
								
							
								 
							
						 
						
							
							
								
								only reset extents if they are unusable  
							
							... 
							
							
							
							this allows callers of Buildings::setSize() to "pre-initialize" the
extents to declare non-rectangular structures. this allows quickfort to
create non-rectangular stockpiles, farm plots, zones, etc. the extents
are still reset as before if the size of the building doesn't match the
caller's expectations.
this commit also fixes a memory leak when setSize() allocates memory for
extents, but the memory is not deallocated if the building is ultimately
invalid for some reason. 
							
						 
						
							2020-12-16 11:10:47 -08:00  
				
					
						
							
							
								 
						
							
							
								8cb38ecf5b 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'myk002/myk_metalhead_mario' into develop  
							
							
							
						 
						
							2020-11-13 14:04:30 -05:00  
				
					
						
							
							
								 
						
							
							
								76e8c495fe 
								
									
								
							
								 
							
						 
						
							
							
								
								revert skip_vector=true for now  
							
							
							
						 
						
							2020-11-13 10:45:53 -08:00  
				
					
						
							
							
								 
						
							
							
								fa126af1fd 
								
									
								
							
								 
							
						 
						
							
							
								
								undo unnecessary edits  
							
							
							
						 
						
							2020-11-12 22:49:06 -08:00  
				
					
						
							
							
								 
						
							
							
								10616a387f 
								
									
								
							
								 
							
						 
						
							
							
								
								cleaner mask-based implementation  
							
							
							
						 
						
							2020-11-12 22:44:38 -08:00  
				
					
						
							
							
								 
						
							
							
								02a86d761a 
								
									
								
							
								 
							
						 
						
							
							
								
								identify bars as non_economic items  
							
							... 
							
							
							
							allows Job::isSuitableMaterial() to match metal bars as a building
material 
							
						 
						
							2020-11-12 19:10:06 -08:00  
				
					
						
							
							
								 
						
							
							
								913d860ae4 
								
									
								
							
								 
							
						 
						
							
							
								
								Use initial working directory as process path on Linux, and expose to Lua  
							
							
							
						 
						
							2020-11-12 19:07:51 -05:00  
				
					
						
							
							
								 
						
							
							
								23b230495e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into cwd-handling  
							
							
							
						 
						
							2020-11-12 18:44:05 -05:00  
				
					
						
							
							
								 
						
							
							
								1d0e2dc6bc 
								
									
								
							
								 
							
						 
						
							
							
								
								Update extents handling to use building_extents_type  
							
							
							
						 
						
							2020-11-03 14:56:16 -05:00  
				
					
						
							
							
								 
						
							
							
								09fbaba726 
								
							
								 
							
						 
						
							
							
								
								buildingplan: support all building types  
							
							... 
							
							
							
							Allow buildingplan to handle all building types, update the docs, and add in little extra fixes to ensure all the new types work correctly. 
							
						 
						
							2020-10-16 14:23:35 -07:00  
				
					
						
							
							
								 
						
							
							
								82013c0c5e 
								
							
								 
							
						 
						
							
							
								
								prep buildingplan for core algorithm changes  
							
							... 
							
							
							
							Lots of refactoring and reorganizing, with only cosmetic player-visible changes.
- show quickfort mode hotlkey label regardless of whether the current building type has buildingplan enabled. before, it was only shown after the user enabled buildingplan for the current building. this eliminates the extra step when enabling quickfort mode, which force-enables all building types.
- changed signature of lua-exported isPlannableBuilding to take subtype
  and custom type in addition to building type. this is only used by
  quickfort, and it already sends all three params in preparation for
  this change
- added lua-exported scheduleCycle(), which is like doCycle(), but only
  takes effect on the next non-paused frame. this lets quickfort
  run only one buildingplan cycle regardless of how many #build
  blueprints were run
- declared a few dfhack library methods and params const so buildingplan
  could call them from const methods
- converted buildingplan internal debug logging fn to have a printf api
- reshaped buildingplan-planner API and refactored implementation in
  preparation for upcoming core algorithm changes for supporing all
  building types (no externally-visible functionality changes)
  - changed df::building_type params to type, subtype, custom tuple keys
  - introduced capability to return multiple filters per building type
    (though the current buildings all only have one filter per)
- split monolith hook functions in buildingplan.cpp into one per scope.
  this significantly cleans up the code and preps the hooks to handle
  iterating through multiple item filters.
- got rid of send_key function and replaced with better reporting of
  whether keys have been handled 
							
						 
						
							2020-10-16 13:52:23 -07:00  
				
					
						
							
							
								 
						
							
							
								ce7772a1c2 
								
									
								
							
								 
							
						 
						
							
							
								
								Add Filesystem::restorecwd()  
							
							... 
							
							
							
							This allows restoring the working directory to its original value, which may not actually be the DF root. See #1671 , dfhack/scripts#152  
							
						 
						
							2020-10-14 21:22:53 -04:00  
				
					
						
							
							
								 
						
							
							
								c9609ad590 
								
									
								
							
								 
							
						 
						
							
							
								
								Make `createitem inspect` consistent for PLANT_GROWTH items  
							
							
							
						 
						
							2020-10-09 12:45:49 -04:00  
				
					
						
							
							
								 
						
							
							
								c73b1f03af 
								
							
								 
							
						 
						
							
							
								
								buckets can be lye- and milk-free  
							
							... 
							
							
							
							otherwise the bucket for wells can never be matched 
							
						 
						
							2020-09-29 00:23:44 -07:00  
				
					
						
							
							
								 
						
							
							
								e546d3eec3 
								
							
								 
							
						 
						
							
							
								
								rename is_civzone to the more general allow_wall  
							
							
							
						 
						
							2020-08-15 20:13:48 -07:00  
				
					
						
							
							
								 
						
							
							
								ae872e812f 
								
							
								 
							
						 
						
							
							
								
								properly detect valid tiles for civzones  
							
							
							
						 
						
							2020-08-15 17:24:12 -07:00  
				
					
						
							
							
								 
						
							
							
								8c5b21b7ee 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix a couple warnings in the Units module ( #1615 )  
							
							
							
						 
						
							2020-08-08 14:35:12 -04:00  
				
					
						
							
							
								 
						
							
							
								23c22b3b9d 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of  https://github.com/DFHack/dfhack  into feature/manipulator_goal  
							
							
							
						 
						
							2020-08-07 22:17:32 +01:00  
				
					
						
							
							
								 
						
							
							
								a85b77e6f1 
								
							
								 
							
						 
						
							
							
								
								Retrieve goal string values from enum attributes and add new Units methods to Lua API and docs  
							
							
							
						 
						
							2020-08-07 22:07:48 +01:00  
				
					
						
							
							
								 
						
							
							
								d3fc691858 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'PatrikLundell/Units' into develop  
							
							
							
						 
						
							2020-08-06 00:12:54 -04:00  
				
					
						
							
							
								 
						
							
							
								9510dd52e1 
								
							
								 
							
						 
						
							
							
								
								Add Goal to Manipulator Detail Modes  
							
							
							
						 
						
							2020-08-04 23:01:28 +01:00  
				
					
						
							
							
								 
						
							
							
								16cfd34678 
								
							
								 
							
						 
						
							
							
								
								recurs-ify default config copying logic  
							
							... 
							
							
							
							I refactored Filesystem::listdir_recursive to support removing the path
prefix from the returned files list. There are no current calls that
make use of the prefix parameter, so I converted it into a boolean.
Current usages will use the new default parameter and will not see any
changed behavior. 
							
						 
						
							2020-07-18 22:22:37 -07:00  
				
					
						
							
							
								 
						
							
							
								0afbe9d931 
								
							
								 
							
						 
						
							
							
								
								include algorithm on windows for std::replace  
							
							
							
						 
						
							2020-07-16 08:42:39 -07:00  
				
					
						
							
							
								 
						
							
							
								bb1fcff410 
								
							
								 
							
						 
						
							
							
								
								use FILENAME_MAX instead of PATH_MAX for compat  
							
							
							
						 
						
							2020-07-16 08:33:23 -07:00  
				
					
						
							
							
								 
						
							
							
								1ae341b637 
								
							
								 
							
						 
						
							
							
								
								Check that we created a dir before we return true  
							
							
							
						 
						
							2020-07-15 22:02:12 -07:00  
				
					
						
							
							
								 
						
							
							
								c19fc1f349 
								
							
								 
							
						 
						
							
							
								
								gcc-4.8 compatibility  
							
							
							
						 
						
							2020-07-15 21:35:21 -07:00  
				
					
						
							
							
								 
						
							
							
								72ce52e004 
								
									
								
							
								 
							
						 
						
							
							
								
								update structures  
							
							
							
						 
						
							2020-07-01 23:10:34 -05:00  
				
					
						
							
							
								 
						
							
							
								a9f219baf9 
								
									
								
							
								 
							
						 
						
							
							
								
								update for DFHack/df-structures#7dfea1f1d4e453b97d5529785701db46360596ce  
							
							
							
						 
						
							2020-06-29 16:16:44 -05:00  
				
					
						
							
							
								 
						
							
							
								5570a5743b 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of  https://github.com/DFHack/dfhack  into Units  
							
							
							
						 
						
							2020-06-26 09:53:41 +02:00  
				
					
						
							
							
								 
						
							
							
								e2301ecae7 
								
							
								 
							
						 
						
							
							
								
								Update structures, fix reaction_productst::produce() parms  
							
							
							
						 
						
							2020-06-23 13:31:27 -06:00  
				
					
						
							
							
								 
						
							
							
								d5b5b81450 
								
							
								 
							
						 
						
							
							
								
								changes  
							
							
							
						 
						
							2020-06-02 15:03:59 +02:00  
				
					
						
							
							
								 
						
							
							
								5d05cfc7cc 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix several functions in the Units module ignoring unit caste.  
							
							... 
							
							
							
							Fixes  #1583 . 
						
							2020-06-02 01:18:57 -05:00  
				
					
						
							
							
								 
						
							
							
								ec7f97bb7a 
								
							
								 
							
						 
						
							
							
								
								adapted to enum value name change  
							
							
							
						 
						
							2020-05-02 17:37:10 +02:00  
				
					
						
							
							
								 
						
							
							
								7c1d1c43e5 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'PatrikLundell/stocks' into develop  
							
							... 
							
							
							
							Conflicts:
	docs/changelog.txt 
							
						 
						
							2020-04-25 21:12:27 -04:00  
				
					
						
							
							
								 
						
							
							
								21be5cf061 
								
							
								 
							
						 
						
							
							
								
								adapted to structures  
							
							
							
						 
						
							2020-04-22 15:32:49 +02:00  
				
					
						
							
							
								 
						
							
							
								f371ae6da8 
								
							
								 
							
						 
						
							
							
								
								adapted to histfig_nemesis_id->union  
							
							
							
						 
						
							2020-04-22 12:38:37 +02:00  
				
					
						
							
							
								 
						
							
							
								f4f2aa0d5e 
								
							
								 
							
						 
						
							
							
								
								removed underscores, adapted to structure (re)naming  
							
							
							
						 
						
							2020-04-15 10:18:37 +02:00  
				
					
						
							
							
								 
						
							
							
								b0d184e2f9 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of  https://github.com/DFHack/dfhack  into Units  
							
							
							
						 
						
							2020-04-15 09:45:54 +02:00  
				
					
						
							
							
								 
						
							
							
								55988e3fc4 
								
							
								 
							
						 
						
							
							
								
								adapted to updated structures, remote Using units for age  
							
							
							
						 
						
							2020-04-08 08:45:40 +02:00  
				
					
						
							
							
								 
						
							
							
								a0e2abe20a 
								
							
								 
							
						 
						
							
							
								
								Units update need coordination with structure identity  
							
							
							
						 
						
							2020-04-04 14:00:26 +02:00  
				
					
						
							
							
								 
						
							
							
								63a26b987d 
								
							
								 
							
						 
						
							
							
								
								Fix issue  #1528  
							
							
							
						 
						
							2020-04-01 11:16:24 +02:00  
				
					
						
							
							
								 
						
							
							
								ffb3c29cfc 
								
									
								
							
								 
							
						 
						
							
							
								
								simplify Graphic module. update structures.  
							
							... 
							
							
							
							it appears that all this added complexity including an extra pointer dereference was to avoid including the vector header. 
							
						 
						
							2020-03-08 00:12:48 -06:00  
				
					
						
							
							
								 
						
							
							
								635e709d95 
								
									
								
							
								 
							
						 
						
							
							
								
								name ui_look_list union  
							
							... 
							
							
							
							update scripts and structures 
							
						 
						
							2020-03-06 16:06:27 -06:00  
				
					
						
							
							
								 
						
							
							
								e356925795 
								
									
								
							
								 
							
						 
						
							
							
								
								update structures  
							
							
							
						 
						
							2020-03-02 23:12:03 -06:00  
				
					
						
							
							
								 
						
							
							
								66ded03bc1 
								
									
								
							
								 
							
						 
						
							
							
								
								update structures  
							
							
							
						 
						
							2020-03-02 20:41:13 -06:00  
				
					
						
							
							
								 
						
							
							
								0d36e62d81 
								
									
								
							
								 
							
						 
						
							
							
								
								fix some weird uses of the part of speech enum  
							
							
							
						 
						
							2020-02-18 16:39:39 -06:00  
				
					
						
							
							
								 
						
							
							
								c2584d615c 
								
									
								
							
								 
							
						 
						
							
							
								
								Define MapExtras::BiomeInfo::MAX_LAYERS ( #1496 )  
							
							... 
							
							
							
							Definition is required even for constexpr variables in some compilation
setups (e.g. debug builds). 
							
						 
						
							2020-02-15 01:22:58 -06:00  
				
					
						
							
							
								 
						
							
							
								0243e422e5 
								
									
								
							
								 
							
						 
						
							
							
								
								Allow plugins to define subclasses of dfhack_viewscreen that have their own virtual_identity.  
							
							
							
						 
						
							2020-02-07 16:00:14 -06:00  
				
					
						
							
							
								 
						
							
							
								5db7d518ee 
								
									
								
							
								 
							
						 
						
							
							
								
								update structures; fix some minor compile warnings  
							
							
							
						 
						
							2020-02-05 12:35:43 -06:00  
				
					
						
							
							
								 
						
							
							
								876ac6c056 
								
							
								 
							
						 
						
							
							
								
								Renamed to getBookTitle, cut down on virtual_cast  
							
							
							
						 
						
							2020-01-25 21:46:10 +01:00  
				
					
						
							
							
								 
						
							
							
								c6bbf39c6c 
								
							
								 
							
						 
						
							
							
								
								Issue  #1262 . Added Items::getTitle and used in stocks  
							
							
							
						 
						
							2020-01-25 12:43:02 +01:00  
				
					
						
							
							
								 
						
							
							
								5eca50476e 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'nornagon/unit-description' into develop  
							
							
							
						 
						
							2020-01-13 23:31:23 -05:00  
				
					
						
							
							
								 
						
							
							
								be5dc2d4a4 
								
									
								
							
								 
							
						 
						
							
							
								
								Make Units::isGay act consistently when called on an asexual unit.  
							
							... 
							
							
							
							The function appears to be used to determine whether heterosexual relationships are possible, so asexual units will always return true for isGay.
Old behavior was to treat asexual units as male. 
							
						 
						
							2020-01-09 14:48:30 -06:00  
				
					
						
							
							
								 
						
							
							
								5de368a1ed 
								
							
								 
							
						 
						
							
							
								
								unit_{=> get_}physical_description  
							
							
							
						 
						
							2020-01-04 22:17:03 +11:00  
				
					
						
							
							
								 
						
							
							
								7644dde9e4 
								
									
								
							
								 
							
						 
						
							
							
								
								default to empty description if symbol unavailable  
							
							
							
						 
						
							2019-12-14 12:01:13 -08:00  
				
					
						
							
							
								 
						
							
							
								50e696acf6 
								
							
								 
							
						 
						
							
							
								
								getDescription => getPhysicalDescription  
							
							
							
						 
						
							2019-12-14 09:36:47 -08:00  
				
					
						
							
							
								 
						
							
							
								7fce6fe0b0 
								
							
								 
							
						 
						
							
							
								
								move THISCALL define to header, clean up code a little  
							
							
							
						 
						
							2019-12-13 23:54:27 -08:00  
				
					
						
							
							
								 
						
							
							
								dfab521a71 
								
									
								
							
								 
							
						 
						
							
							
								
								specify __thiscall  
							
							... 
							
							
							
							According to https://docs.microsoft.com/en-us/cpp/cpp/thiscall?view=vs-2019 , "on ARM and x64 machines, __thiscall is accepted and ignored by the compiler.". So it should be OK to specify this for all win32 
							
						 
						
							2019-12-12 17:51:41 -08:00  
				
					
						
							
							
								 
						
							
							
								9a37849603 
								
							
								 
							
						 
						
							
							
								
								use symbols.xml  
							
							
							
						 
						
							2019-12-07 22:41:55 -08:00  
				
					
						
							
							
								 
						
							
							
								910f965838 
								
							
								 
							
						 
						
							
							
								
								wip  
							
							
							
						 
						
							2019-12-07 22:17:59 -08:00  
				
					
						
							
							
								 
						
							
							
								08aeb6faeb 
								
							
								 
							
						 
						
							
							
								
								Fix EventManager building ID type  
							
							... 
							
							
							
							The pointer to the building ID was sometimes not dereferenced properly.
Addressed by switching to an ID cast to a pointer type for consistency with
other types of events.
Fixes  #1434 
Ref #1003  (19695b4ee7#1253  (a7dfacd1c5 
							
						 
						
							2019-10-05 20:26:31 -04:00  
				
					
						
							
							
								 
						
							
							
								07575095fd 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into persist  
							
							
							
						 
						
							2019-08-22 22:00:50 -04:00  
				
					
						
							
							
								 
						
							
							
								99038c395a 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'ab9rf/biometype' into develop  
							
							
							
						 
						
							2019-07-20 16:32:46 -04:00  
				
					
						
							
							
								 
						
							
							
								ceebef5fe2 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into persist  
							
							
							
						 
						
							2019-05-28 21:08:16 -04:00  
				
					
						
							
							
								 
						
							
							
								13c6bfc1b2 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'sgayda2/memory_fixes' into develop  
							
							
							
						 
						
							2018-12-22 11:54:31 -05:00  
				
					
						
							
							
								 
						
							
							
								02f047e9f1 
								
							
								 
							
						 
						
							
							
								
								a pox on whitespace  
							
							
							
						 
						
							2018-09-11 18:41:32 -05:00  
				
					
						
							
							
								 
						
							
							
								3817773b5a 
								
							
								 
							
						 
						
							
							
								
								eliminate stray whitespace  
							
							
							
						 
						
							2018-09-11 17:32:33 -05:00  
				
					
						
							
							
								 
						
							
							
								4e690df96a 
								
									
								
							
								 
							
						 
						
							
							
								
								Add Persistence module.  
							
							... 
							
							
							
							Alter World to use Persistence instead of storing data in historical figures.
Fake historical figures will be converted to the new format when a world is loaded.
Added plugin_save and plugin_load functions to the plugin API.
Made the weird int7/int28 code that was in the old persistence API slightly safer. 
							
						 
						
							2018-08-26 18:27:58 -05:00  
				
					
						
							
							
								 
						
							
							
								338572d270 
								
							
								 
							
						 
						
							
							
								
								resolve uninitialized variable warning  
							
							
							
						 
						
							2018-08-16 12:15:56 -05:00  
				
					
						
							
							
								 
						
							
							
								59d70d6687 
								
							
								 
							
						 
						
							
							
								
								Add function to infer biome type to Maps module  
							
							... 
							
							
							
							This moves code intended to infer biome type currently living in a
couple of plugins into the Maps module, so that this code can be shared
more easily by multiple plugins, as discussed in #1392 . 
							
						 
						
							2018-08-15 20:28:18 -05:00  
				
					
						
							
							
								 
						
							
							
								4837e65322 
								
									
								
							
								 
							
						 
						
							
							
								
								Add an identity to dfhack_viewscreen and dfhack_lua_viewscreen.  
							
							
							
						 
						
							2018-07-22 17:31:39 -05:00  
				
					
						
							
							
								 
						
							
							
								38cccdb0f4 
								
							
								 
							
						 
						
							
							
								
								Update the module create calls to return unique_ptrs  
							
							
							
						 
						
							2018-07-14 19:55:25 -07:00  
				
					
						
							
							
								 
						
							
							
								9ee368d456 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/MapCache_reduce_latency_from_designation_to_jobs' into develop  
							
							
							
						 
						
							2018-07-11 11:51:24 -04:00  
				
					
						
							
							
								 
						
							
							
								ca5c11603f 
								
							
								 
							
						 
						
							
							
								
								Support dlsym loading from libgraphics vtables  
							
							
							
						 
						
							2018-07-10 17:08:23 +03:00  
				
					
						
							
							
								 
						
							
							
								2dac3c53c7 
								
							
								 
							
						 
						
							
							
								
								Add stress cutoffs to Units module, fix dwarfmonitor/manipulator  
							
							... 
							
							
							
							Fixes  #1292  
						
							2018-07-09 15:59:12 -04:00  
				
					
						
							
							
								 
						
							
							
								037e7e4901 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/spotclean_ui_state_fix_1194' into develop  
							
							... 
							
							
							
							Moved/adjusted changelog entry 
							
						 
						
							2018-07-07 18:08:53 -04:00  
				
					
						
							
							
								 
						
							
							
								54cf8b7dc3 
								
							
								 
							
						 
						
							
							
								
								Fix getVisibleName for units with identities  
							
							... 
							
							
							
							As of 0.44.11 (possibly 0.44.01), identity names take precedence over the
associated histfig names. Tested with:
https://drive.google.com/file/d/1bX5CQMqNsb_mjJOEOS4wBm4mGDLLs_cZ/view  (#1279 )
http://dffd.bay12games.com/file.php?id=13428  (from http://www.bay12games.com/dwarves/mantisbt/view.php?id=10530 )
Fixes  #1279  
							
						 
						
							2018-07-06 11:06:04 -04:00  
				
					
						
							
							
								 
						
							
							
								616675f0ce 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/kittens_data_race_fix' into develop  
							
							
							
						 
						
							2018-07-03 00:30:36 -04:00  
				
					
						
							
							
								 
						
							
							
								81a7ddcf92 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/screen_show_memory_leak' into develop  
							
							
							
						 
						
							2018-07-02 22:58:11 -04:00  
				
					
						
							
							
								 
						
							
							
								0727403ac1 
								
							
								 
							
						 
						
							
							
								
								Fix devel plugins linking in linux  
							
							
							
						 
						
							2018-06-30 21:12:42 +03:00  
				
					
						
							
							
								 
						
							
							
								c39a882b57 
								
							
								 
							
						 
						
							
							
								
								Add missing Unit::isDiplomat  
							
							... 
							
							
							
							Fixes  #1324  
						
							2018-06-29 16:19:18 +03:00  
				
					
						
							
							
								 
						
							
							
								20bd03ab6d 
								
							
								 
							
						 
						
							
							
								
								Reset dsgn_check_cooldown in Block::write  
							
							... 
							
							
							
							To make sure that DF generates jobjs from desgination as soon as
possible the dsgn_check_cooldown should be reset when designations
change. 
							
						 
						
							2018-06-24 17:06:32 +03:00  
				
					
						
							
							
								 
						
							
							
								123de7fdf7 
								
							
								 
							
						 
						
							
							
								
								Use constexpr to prevent attempts of linking static variable  
							
							
							
						 
						
							2018-06-24 17:06:32 +03:00  
				
					
						
							
							
								 
						
							
							
								854f467f56 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/check_jobs_on_mapcache_commit_1229' into develop  
							
							
							
						 
						
							2018-06-21 15:03:51 -04:00  
				
					
						
							
							
								 
						
							
							
								7a5e7c7c86 
								
							
								 
							
						 
						
							
							
								
								Rename unit_flags1.dead to killed, update submodules/changelog  
							
							... 
							
							
							
							Follow-up for dfhack/df-structures#247  
							
						 
						
							2018-06-21 11:17:09 -04:00  
				
					
						
							
							
								 
						
							
							
								9b6781f0f2 
								
							
								 
							
						 
						
							
							
								
								Temporary lower command-prompt when executing the command  
							
							... 
							
							
							
							command-prompt viewscreen may affect command execution if they are
looking for UI state. To make commands execute simillary to hotkeys or
console commands the viewscreen needs to removed from the top position.
Fixes  #1194  
							
						 
						
							2018-06-20 21:51:45 +03:00  
				
					
						
							
							
								 
						
							
							
								6077a8ce4c 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'suokko/printf_warnings' into develop  
							
							
							
						 
						
							2018-06-20 11:25:14 -04:00  
				
					
						
							
							
								 
						
							
							
								9c59b7ff48 
								
							
								 
							
						 
						
							
							
								
								Fix unlikely memory leaks if Screen::show fails  
							
							... 
							
							
							
							The Screen::show takes ownership of the screen pointer. I decided to
switch the parameter to std::unique_ptr to make the pointer ownership
explicit. The unique_ptr then provides automatic screen destruction in
Screen::show unless pointer is inserted or is already in the linked list
that is managed by df. 
							
						 
						
							2018-06-19 16:41:31 +03:00  
				
					
						
							
							
								 
						
							
							
								bcf9387ce9 
								
							
								 
							
						 
						
							
							
								
								Only remove jobs that were created from a designation  
							
							
							
						 
						
							2018-06-18 19:57:00 +03:00  
				
					
						
							
							
								 
						
							
							
								1b5ec7ce69 
								
							
								 
							
						 
						
							
							
								
								Update jobs when committing MapCache changes  
							
							... 
							
							
							
							The map_block->designation.{dig,smooth} are reset to zeros when a job
posting is created for the designation. The job is then used to override
the designation state in the map_block. To make the new designation set
propogate to jobs the job structure would require updating. The update
would be possible a complex operation. The simple alternative is to
remove the job and let df create a new job in the next tick.
Fixes  #1229  
							
						 
						
							2018-06-18 16:34:09 +03:00  
				
					
						
							
							
								 
						
							
							
								6a151353e3 
								
							
								 
							
						 
						
							
							
								
								Use automatic return type for index_tile  
							
							
							
						 
						
							2018-06-18 16:23:57 +03:00  
				
					
						
							
							
								 
						
							
							
								aac892c560 
								
							
								 
							
						 
						
							
							
								
								Adapted to changed Units functions  
							
							... 
							
							
							
							Squashed version of #1307 
Closes  #1307  
							
						 
						
							2018-06-14 10:30:35 -04:00  
				
					
						
							
							
								 
						
							
							
								51584c2d9e 
								
							
								 
							
						 
						
							
							
								
								Corrected isGhost  
							
							
							
						 
						
							2018-06-13 15:37:45 -04:00  
				
					
						
							
							
								 
						
							
							
								f329774059 
								
							
								 
							
						 
						
							
							
								
								dead & killed flag separation  
							
							... 
							
							
							
							squashed 4 commits from #1297  
							
						 
						
							2018-06-13 15:37:45 -04:00  
				
					
						
							
							
								 
						
							
							
								8f2cf3ad26 
								
							
								 
							
						 
						
							
							
								
								Fix printf format warnings  
							
							
							
						 
						
							2018-06-11 19:57:06 +03:00  
				
					
						
							
							
								 
						
							
							
								7a04fefb0b 
								
							
								 
							
						 
						
							
							
								
								Remove Vermin module (unused and obsolete)  
							
							
							
						 
						
							2018-06-01 00:22:10 -04:00  
				
					
						
							
							
								 
						
							
							
								50a863a48e 
								
							
								 
							
						 
						
							
							
								
								Fix Kitchen.h include (case-sensitive)  
							
							
							
						 
						
							2018-05-17 20:11:46 -04:00  
				
					
						
							
							
								 
						
							
							
								17ba492992 
								
							
								 
							
						 
						
							
							
								
								Add some exclusion functions to Kitchen module, expose to Lua, fix build  
							
							
							
						 
						
							2018-05-17 19:34:03 -04:00  
				
					
						
							
							
								 
						
							
							
								97a79893e7 
								
							
								 
							
						 
						
							
							
								
								Change Kitchen.{h,cpp} to title case  
							
							
							
						 
						
							2018-05-17 11:08:13 -04:00  
				
					
						
							
							
								 
						
							
							
								e9ec08f419 
								
							
								 
							
						 
						
							
							
								
								Add Buildings::getRoomDescription(), moved from search plugin, +cleanup  
							
							
							
						 
						
							2018-05-12 17:00:21 -04:00  
				
					
						
							
							
								 
						
							
							
								c15571caa0 
								
							
								 
							
						 
						
							
							
								
								Move isRouteVehicle, isSquadEquipment from workflow to Items module  
							
							
							
						 
						
							2018-05-12 14:49:30 -04:00  
				
					
						
							
							
								 
						
							
							
								a34b34d3cb 
								
							
								 
							
						 
						
							
							
								
								Move a few item functions from autotrade/stocks into DFHack::Items  
							
							
							
						 
						
							2018-05-12 12:04:46 -04:00  
				
					
						
							
							
								 
						
							
							
								759df34fce 
								
							
								 
							
						 
						
							
							
								
								fix potential segfault  
							
							
							
						 
						
							2018-05-11 17:51:32 +02:00  
				
					
						
							
							
								 
						
							
							
								ceaa518be9 
								
							
								 
							
						 
						
							
							
								
								Fix a potential segfault in getAnyUnit  
							
							... 
							
							
							
							See #1218  
							
						 
						
							2018-05-11 10:04:10 -04:00  
				
					
						
							
							
								 
						
							
							
								10abece564 
								
							
								 
							
						 
						
							
							
								
								Fix duplicate condition in Gui::getAnyUnit()  
							
							
							
						 
						
							2018-05-11 09:58:40 -04:00  
				
					
						
							
							
								 
						
							
							
								2a52582c1f 
								
							
								 
							
						 
						
							
							
								
								Add Gui::inRenameBuilding  
							
							
							
						 
						
							2018-05-09 10:23:05 -04:00  
				
					
						
							
							
								 
						
							
							
								51661d7355 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix -Wswitch warning about UNDERWORLD_GATE in MapCache.  
							
							
							
						 
						
							2018-04-05 16:50:04 -05:00  
				
					
						
							
							
								 
						
							
							
								565c1e1260 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix uninitialized pointer being returned from Gui::getAnyUnit when on the pet list with no selection.  
							
							
							
						 
						
							2018-04-05 16:49:30 -05:00  
				
					
						
							
							
								 
						
							
							
								0a2ec30199 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove or comment out unused code.  
							
							
							
						 
						
							2018-04-05 16:48:11 -05:00  
				
					
						
							
							
								 
						
							
							
								2eec5ee78d 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix signed/unsigned comparison warnings in core.  
							
							
							
						 
						
							2018-04-05 16:47:47 -05:00  
				
					
						
							
							
								 
						
							
							
								a44b3b8f98 
								
									
								
							
								 
							
						 
						
							
							
								
								Move null pointer check from Job module to LuaApi, where it does not invoke undefined behavior.  
							
							
							
						 
						
							2018-04-05 16:01:26 -05:00  
				
					
						
							
							
								 
						
							
							
								db95796d4c 
								
							
								 
							
						 
						
							
							
								
								Many build fixes  
							
							
							
						 
						
							2018-03-10 16:53:45 -05:00  
				
					
						
							
							
								 
						
							
							
								38491b4be8 
								
							
								 
							
						 
						
							
							
								
								add checks to avoid potential segfaults. use more dfhack idiomatic code  
							
							
							
						 
						
							2018-01-31 20:10:40 +01:00  
				
					
						
							
							
								 
						
							
							
								537e94d75a 
								
							
								 
							
						 
						
							
							
								
								fix segfault when splatter did not have historical figure  
							
							
							
						 
						
							2018-01-31 20:10:34 +01:00  
				
					
						
							
							
								 
						
							
							
								2deeda11d2 
								
							
								 
							
						 
						
							
							
								
								add many new cases for Gui::getSelectedUnit: report list, combat log list, military screen, unit health, unit custumize, assigning to cage, viewing cage, pitting, penning, burrows, look at corpse, look at corpse piece, look at named spatter  
							
							
							
						 
						
							2018-01-28 13:04:52 +01:00  
				
					
						
							
							
								 
						
							
							
								1ba5477b63 
								
							
								 
							
						 
						
							
							
								
								Add designation priority support to MapCache and dig plugin  
							
							... 
							
							
							
							Fixes  #481  
						
							2018-01-21 19:27:16 -05:00  
				
					
						
							
							
								 
						
							
							
								fde1e284f4 
								
							
								 
							
						 
						
							
							
								
								Gui::getAnyItem: support viewscreen_assign_display_itemst  
							
							
							
						 
						
							2017-12-28 16:19:45 -05:00  
				
					
						
							
							
								 
						
							
							
								4d5c7c5927 
								
							
								 
							
						 
						
							
							
								
								getKeyDisplay: use enabler::GetKeyDisplay()  
							
							
							
						 
						
							2017-12-25 20:14:11 -05:00  
				
					
						
							
							
								 
						
							
							
								88c7e493b8 
								
							
								 
							
						 
						
							
							
								
								Merge ui_area_map_width into ui_menu_width, now a 2-byte array  
							
							
							
						 
						
							2017-12-03 20:34:59 -06:00  
				
					
						
							
							
								 
						
							
							
								c72ae8d8a7 
								
							
								 
							
						 
						
							
							
								
								Merge "announcements" global into d_init where it belongs  
							
							
							
						 
						
							2017-12-03 20:05:08 -06:00  
				
					
						
							
							
								 
						
							
							
								2c95ac411e 
								
							
								 
							
						 
						
							
							
								
								Update xml and all uses of job_handler  
							
							
							
						 
						
							2017-11-25 00:59:59 -05:00  
				
					
						
							
							
								 
						
							
							
								33a43c5bfd 
								
							
								 
							
						 
						
							
							
								
								update structures  
							
							
							
						 
						
							2017-11-04 07:50:47 -06:00  
				
					
						
							
							
								 
						
							
							
								5c33fcccbd 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'BenLubar/win64-warnings' into develop  
							
							
							
						 
						
							2017-08-07 13:51:18 -04:00  
				
					
						
							
							
								 
						
							
							
								16fb230ef6 
								
							
								 
							
						 
						
							
							
								
								getAnyItem: support viewscreen_textviewerst  
							
							
							
						 
						
							2017-08-05 21:38:18 -04:00  
				
					
						
							
							
								 
						
							
							
								17a7885ef2 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix a bunch of 64-bit Windows warnings  
							
							
							
						 
						
							2017-07-21 13:30:05 -05:00  
				
					
						
							
							
								 
						
							
							
								6af5f3b299 
								
							
								 
							
						 
						
							
							
								
								fixing getItemBaseValue() for cheese, sheets and instruments  
							
							
							
						 
						
							2017-06-26 09:17:23 +12:00  
				
					
						
							
							
								 
						
							
							
								10e13c532a 
								
							
								 
							
						 
						
							
							
								
								Add "tweak cage-butcher" and some extra Building module functions  
							
							... 
							
							
							
							* Buildings::markedForRemoval()
* Buildings::getCageOccupants()
Closes  #906  
							
						 
						
							2017-06-25 15:27:21 -04:00  
				
					
						
							
							
								 
						
							
							
								cda5cedacf 
								
							
								 
							
						 
						
							
							
								
								Fix Gui::refreshSidebar() on topmost z-level  
							
							
							
						 
						
							2017-06-23 10:30:16 -04:00  
				
					
						
							
							
								 
						
							
							
								ae809afde7 
								
							
								 
							
						 
						
							
							
								
								Add Gui::refreshSidebar()  
							
							... 
							
							
							
							This handles feeding CURSOR_DOWN_Z and CURSOR_UP_Z properly, avoiding issues
when on the lowest z-level. 
							
						 
						
							2017-06-23 00:02:21 -04:00  
				
					
						
							
							
								 
						
							
							
								27343e3253 
								
							
								 
							
						 
						
							
							
								
								Add unit and tile visibility functions  
							
							
							
						 
						
							2017-06-10 21:54:08 -04:00  
				
					
						
							
							
								 
						
							
							
								778ffb0971 
								
							
								 
							
						 
						
							
							
								
								More Units module cleanup, modernize getUnitsInBox  
							
							
							
						 
						
							2017-06-10 21:02:30 -04:00  
				
					
						
							
							
								 
						
							
							
								0ed7e60522 
								
							
								 
							
						 
						
							
							
								
								getAnyUnit: support viewscreen_layer_unit_relationshipst  
							
							
							
						 
						
							2017-06-10 19:06:43 -04:00  
				
					
						
							
							
								 
						
							
							
								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