1d1ede279f 
								
							
								 
							
						 
						
							
							
								
								Update structures  
							
							
							
						 
						
							2014-04-21 09:52:07 +04:00  
				
					
						
							
							
								 
						
							
							
								6bef167f83 
								
							
								 
							
						 
						
							
							
								
								Add a couple of useful scripts and fix two missing NULL checks.  
							
							... 
							
							
							
							- A script to unstick jobs trying to build walls from the same tile.
- A devel script for viewing the path a unit is currently following. 
							
						 
						
							2014-04-21 09:24:05 +04:00  
				
					
						
							
							
								 
						
							
							
								c27c38e4c0 
								
							
								 
							
						 
						
							
							
								
								Remove tired or hungry siege operators from duty when at peace.  
							
							... 
							
							
							
							The threshold is set at the level when they start to blink - normally
they would continue on with the job until they get a thirsty/hungry
thought, but immediately run off to eat if they lose the job (thus
refusing to load the engine after firing it). The code checks for
active sieges and whether there is a free replacement unit. 
							
						 
						
							2014-04-15 21:52:39 +04:00  
				
					
						
							
							
								 
						
							
							
								fc9826389b 
								
							
								 
							
						 
						
							
							
								
								Account for meandering movement when predicting unit path in siege engine.  
							
							... 
							
							
							
							The movement is random, but there is an average slowdown coefficient. 
							
						 
						
							2014-04-15 19:50:23 +04:00  
				
					
						
							
							
								 
						
							
							
								55cea36c76 
								
							
								 
							
						 
						
							
							
								
								Use the new API to produce combat reports for aimed siege engine attacks.  
							
							... 
							
							
							
							This requires exposing the actual operator unit to lua code. 
							
						 
						
							2014-04-15 19:50:23 +04:00  
				
					
						
							
							
								 
						
							
							
								7844907204 
								
							
								 
							
						 
						
							
							
								
								Add new API functions for creating announcements and combat reports.  
							
							... 
							
							
							
							Allow specifying the announcement flags directly, and adding unit
combat reports. Also, make announcement functions write the message
to the game log. 
							
						 
						
							2014-04-15 19:50:23 +04:00  
				
					
						
							
							
								 
						
							
							
								b56c3a95a6 
								
							
								 
							
						 
						
							
							
								
								Fix some signed/unsigned mismatch warnings and whitespace in Job module.  
							
							
							
						 
						
							2014-04-15 19:50:23 +04:00  
				
					
						
							
							
								 
						
							
							
								22dab5d807 
								
							
								 
							
						 
						
							
							
								
								Update XML, fix several scripts that were broken by field name changes  
							
							
							
						 
						
							2014-04-14 12:30:34 -05:00  
				
					
						
							
							
								 
						
							
							
								ddd56d8ea6 
								
							
								 
							
						 
						
							
							
								
								Update the structures.  
							
							
							
						 
						
							2014-04-12 17:21:35 +04:00  
				
					
						
							
							
								 
						
							
							
								7aecffe0cd 
								
							
								 
							
						 
						
							
							
								
								Update structures and fix broken things.  
							
							
							
						 
						
							2014-04-04 22:34:39 +04:00  
				
					
						
							
							
								 
						
							
							
								788bc55096 
								
							
								 
							
						 
						
							
							
								
								Fix a mistake in the lua resize() method of BitArray.  
							
							
							
						 
						
							2014-04-04 22:33:05 +04:00  
				
					
						
							
							
								 
						
							
							
								a09e132107 
								
							
								 
							
						 
						
							
							
								
								Support using multiple lua init scripts per save.  
							
							... 
							
							
							
							This should make it easier to add and remove init script code by
automated means, or install multiple mods that need such code. 
							
						 
						
							2014-03-31 16:00:55 +04:00  
				
					
						
							
							
								 
						
							
							
								e620ae765c 
								
							
								 
							
						 
						
							
							
								
								Add missing import/export info for MersenneRNG::unitvector<>  
							
							
							
						 
						
							2014-03-25 13:30:21 -05:00  
				
					
						
							
							
								 
						
							
							
								ec14b2d1e9 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'warmist/dev-modmanager' into develop  
							
							
							
						 
						
							2014-03-24 20:07:02 +04:00  
				
					
						
							
							
								 
						
							
							
								a01939fce6 
								
							
								 
							
						 
						
							
							
								
								Sync structures.  
							
							
							
						 
						
							2014-03-24 19:45:27 +04:00  
				
					
						
							
							
								 
						
							
							
								b030548156 
								
							
								 
							
						 
						
							
							
								
								Added directory listing to lua api (internal category).  
							
							... 
							
							
							
							added mod manager and updated readme/news 
							
						 
						
							2014-03-04 18:01:44 +02:00  
				
					
						
							
							
								 
						
							
							
								36b09c950d 
								
							
								 
							
						 
						
							
							
								
								Actually export to lua a few functions that are documented as available.  
							
							
							
						 
						
							2014-02-28 09:41:04 +04:00  
				
					
						
							
							
								 
						
							
							
								72eb366997 
								
							
								 
							
						 
						
							
							
								
								Merge changes, also fix Windows build (missing header)  
							
							
							
						 
						
							2014-02-27 15:58:15 -06:00  
				
					
						
							
							
								 
						
							
							
								dd268d43d9 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of  https://github.com/jjyg/dfhack  
							
							
							
						 
						
							2014-02-27 15:49:18 -06:00  
				
					
						
							
							
								 
						
							
							
								5a158b21cf 
								
							
								 
							
						 
						
							
							
								
								Update plugins to match fixed field names in cage/civzone  
							
							
							
						 
						
							2014-02-27 14:51:45 -06:00  
				
					
						
							
							
								 
						
							
							
								6d0e6cf7d5 
								
							
								 
							
						 
						
							
							
								
								remove old unused code from when dfhack was out of process  
							
							
							
						 
						
							2014-02-26 12:44:10 +01:00  
				
					
						
							
							
								 
						
							
							
								7bdb687e4a 
								
							
								 
							
						 
						
							
							
								
								Support calling a lua function via a protobuf request.  
							
							... 
							
							
							
							Previously the only way to call lua code was to call scripts
and parse their output to the stream, which is cumbersome. 
							
						 
						
							2014-02-10 20:09:06 +04:00  
				
					
						
							
							
								 
						
							
							
								8800cf6f40 
								
							
								 
							
						 
						
							
							
								
								Export functions for converting between UTF-8 and CP437 to lua.  
							
							
							
						 
						
							2014-02-10 18:54:52 +04:00  
				
					
						
							
							
								 
						
							
							
								387cc983f9 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'osx_shenanigans' of git://github.com/tareqak/dfhack  
							
							
							
						 
						
							2014-02-02 23:50:21 +01:00  
				
					
						
							
							
								 
						
							
							
								7df9957941 
								
							
								 
							
						 
						
							
							
								
								dfhack-run: prevent duplicate "not a recognized command" error message  
							
							
							
						 
						
							2014-01-27 15:36:34 +01:00  
				
					
						
							
							
								 
						
							
							
								6ad8d128ba 
								
							
								 
							
						 
						
							
							
								
								use non-interactive console when calling dfhack.init in TEXT mode  
							
							
							
						 
						
							2014-01-27 15:36:25 +01:00  
				
					
						
							
							
								 
						
							
							
								6b6164c099 
								
							
								 
							
						 
						
							
							
								
								call dfhack.init even in TEXT mode  
							
							
							
						 
						
							2014-01-27 14:51:22 +01:00  
				
					
						
							
							
								 
						
							
							
								f0eeba93ce 
								
							
								 
							
						 
						
							
							
								
								DFHack compiles under OS X now.  
							
							
							
						 
						
							2014-01-25 03:21:56 -05:00  
				
					
						
							
							
								 
						
							
							
								ce33973f0f 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com/quietust/dfhack  
							
							
							
						 
						
							2013-12-24 14:07:08 +01:00  
				
					
						
							
							
								 
						
							
							
								53bd112515 
								
							
								 
							
						 
						
							
							
								
								Hide fake historical figures from legends xml export.  
							
							
							
						 
						
							2013-11-07 12:27:53 +04:00  
				
					
						
							
							
								 
						
							
							
								b2819ea869 
								
							
								 
							
						 
						
							
							
								
								Fix wrong argument iteration bounds in dfhack.matinfo.find().  
							
							
							
						 
						
							2013-11-07 11:40:26 +04:00  
				
					
						
							
							
								 
						
							
							
								04dce1aa7f 
								
							
								 
							
						 
						
							
							
								
								MaterialInfo: fix decoding for COAL subtypes  
							
							
							
						 
						
							2013-11-05 00:31:32 +01:00  
				
					
						
							
							
								 
						
							
							
								15c2d99a3e 
								
							
								 
							
						 
						
							
							
								
								Update xml.  
							
							
							
						 
						
							2013-10-25 14:23:55 -04:00  
				
					
						
							
							
								 
						
							
							
								329741f235 
								
							
								 
							
						 
						
							
							
								
								EventManager: added EQUIPMENT_CHANGE event and exposed it to lua.  
							
							
							
						 
						
							2013-10-24 19:32:52 -04:00  
				
					
						
							
							
								 
						
							
							
								ce1bb1e95b 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'putnam/master' into 0.34.11-r4  
							
							
							
						 
						
							2013-10-20 23:27:12 -04:00  
				
					
						
							
							
								 
						
							
							
								4dbcee9560 
								
							
								 
							
						 
						
							
							
								
								EventManager: be smarter about removing things while iterating.  
							
							
							
						 
						
							2013-10-20 23:16:21 -04:00  
				
					
						
							
							
								 
						
							
							
								c409289ee4 
								
							
								 
							
						 
						
							
							
								
								EventManager: TICK events should unregister correctly when requested and after they fire, other tweaks.  
							
							... 
							
							
							
							- fixed unregister to allow unregistering individual TICK events
 - make registerTick return the resulting freq you have to put back in to the handler in order for it to be unregisterable
- when TICK events fire, they now automatically remove themselves from handlers[TICK], as they should
- make sure manageTickEvent fires once per tick 
							
						 
						
							2013-10-20 22:54:25 -04:00  
				
					
						
							
							
								 
						
							
							
								3594dc2eb8 
								
							
								 
							
						 
						
							
							
								
								EventManager: fixed the TICK event, and a few tweaks.  
							
							... 
							
							
							
							- redo tick event management to work with world->frame_counter
 - the freq of a TICK EventHandler is now ignored
 - unregistering for an individual TICK event is still broken
  - you would have to know the modified freq to even begin removing it
  - it is only removed from handleres[TICK], not from tickQueue
- redo unregisterAll to be more efficient
- use the map loaded/unloaded events instead of world loaded/unloaded for initializing/clearing event monitoring data
- get rid of silly unsigned variables 
							
						 
						
							2013-10-20 21:48:28 -04:00  
				
					
						
							
							
								 
						
							
							
								9bf004d07f 
								
							
								 
							
						 
						
							
							
								
								Several EventManager fixes and improvements.  
							
							... 
							
							
							
							- handle loading and unloading of saves better
  - made sure it never triggers bogus events on loading a save
    - plugins should now handle loading themselves with onStateChange
  - special case to make Buildings module keep track of all buildings correctly on load
- fixed syndrome detection
  - was broken because of the switch from ticks-since-the-dawn-of-time to world->frame_counter
  - added lastSyndromeTime global
- fixed possible off by one error when looking for new created items
- got rid of the unread lastTick global
- const'ed the function pointer array of eventManagers 
							
						 
						
							2013-10-20 20:12:42 -04:00  
				
					
						
							
							
								 
						
							
							
								f69fd1d528 
								
							
								 
							
						 
						
							
							
								
								EventManager: prevent eventspam just after loading a save.  
							
							
							
						 
						
							2013-10-20 17:39:54 -04:00  
				
					
						
							
							
								 
						
							
							
								4a32aff6a3 
								
							
								 
							
						 
						
							
							
								
								Update script.lua  
							
							
							
						 
						
							2013-10-20 13:58:15 -07:00  
				
					
						
							
							
								 
						
							
							
								6ef360f4d6 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'warmist/dev-EventManager-lua' into 0.34.11-r4  
							
							
							
						 
						
							2013-10-20 14:52:40 -04:00  
				
					
						
							
							
								 
						
							
							
								0dff26aa23 
								
							
								 
							
						 
						
							
							
								
								Added lua interface (in eventful) for EventManager module.  
							
							
							
						 
						
							2013-10-20 21:44:07 +03:00  
				
					
						
							
							
								 
						
							
							
								d78a111f02 
								
							
								 
							
						 
						
							
							
								
								EventManager: Fixed the death event, fixed another problem with construction event, and made EventManager use world->frame_counter for scheduling event checking in order to make it work in arena mode.  
							
							
							
						 
						
							2013-10-20 14:41:39 -04:00  
				
					
						
							
							
								 
						
							
							
								39553cfb6d 
								
							
								 
							
						 
						
							
							
								
								EventManager: fixed a problem with constructionHandler.  
							
							
							
						 
						
							2013-10-20 14:14:02 -04:00  
				
					
						
							
							
								 
						
							
							
								ee056f4422 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'angavrilov/master' into 0.34.11-r4  
							
							... 
							
							
							
							Conflicts:
	NEWS 
							
						 
						
							2013-10-20 11:09:40 -04:00  
				
					
						
							
							
								 
						
							
							
								1422197533 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'adeon/for-dfhack' into 0.34.11-r4  
							
							
							
						 
						
							2013-10-20 10:45:00 -04:00  
				
					
						
							
							
								 
						
							
							
								9d3ee11349 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'diggingInvaders' into 0.34.11-r4  
							
							... 
							
							
							
							Conflicts:
	scripts/devel/invasion-now.lua 
							
						 
						
							2013-10-19 21:26:50 -04:00  
				
					
						
							
							
								 
						
							
							
								57fc0f3e89 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'angavrilov/master' into 0.34.11-r4  
							
							... 
							
							
							
							Conflicts:
	NEWS
	library/xml
	plugins/CMakeLists.txt
	plugins/autoSyndrome.cpp 
							
						 
						
							2013-10-19 20:19:29 -04:00  
				
					
						
							
							
								 
						
							
							
								78de739d75 
								
							
								 
							
						 
						
							
							
								
								Update aquifers when generating 3D vein layout.  
							
							
							
						 
						
							2013-10-11 19:23:32 +04:00