129 Commits

Author SHA1 Message Date
Matthias Schoeck
7eb57b40dd Update AI helper library files...
...and adjust experimental multiplayer AI code accordingly
2012-12-29 00:36:54 +00:00
Simon Forsyth
0f15ff94db Bugfixes and improvements for experimental multiplayer AI.
Avoid crash near end of games with turn limits.

Properly identify poison immune units.

Better timing for keep switching.

Handle more weapon specials involving damage.
2012-12-28 21:49:35 +00:00
Simon Forsyth
5d7c5f6fe6 Improvements to experimental multiplayer AI recruiting 2012-12-22 03:03:48 +00:00
Simon Forsyth
16e6f91b11 Respect passive leader aspect in experimental AI 2012-12-12 00:57:50 +00:00
Simon Forsyth
260ac0f676 Remove dependency on AI-demos add-on 2012-12-09 23:21:26 +00:00
Simon Forsyth
5f2295f570 Fix problem with changing recruit lists...
...when new list is not a subset of the old list
2012-12-07 20:41:58 +00:00
Simon Forsyth
a82d9e1920 Push updates to Experimental AI from AI-demos.
Improves isolation of recruiting from rest of AI.
2012-12-07 19:11:21 +00:00
Simon Forsyth
c7c91fde55 Recache unit information for recruiting when era/scenario adds units...
...to the recruit list after the first unit is recruited
2012-12-03 22:42:01 +00:00
Steven Panek
268338c660 Ran umcpropfix. 2012-11-24 21:17:31 +00:00
Simon Forsyth
9d23bd133e Turn off remaining comments by new AI 2012-11-24 21:00:55 +00:00
Simon Forsyth
024906af4a Turn off some comments by new AI on console 2012-11-24 20:46:07 +00:00
Simon Forsyth
6830fc1719 Add new AI 2012-11-24 19:57:11 +00:00
Dmitry Kovalenko
b207a1b1ca LuaAI: the need to define an engine is now deprecated.
All CAs can be store in external .lua files. If the scenario config
lacks an [engine] tag for the Lua AI engine, but still tries to use CA
with engine=lua, a dummy engine will be automatically generated,
providing the needed functionality
2012-06-12 12:36:06 +00:00
Dmitry Kovalenko
e810953bea Removed an unneeded function introduced in 2012-04-16T20:49:02Z!nephro.wes@gmail.com 2012-04-17 19:30:15 +00:00
Dmitry Kovalenko
f54f2b0e75 LuaAI:
(1) added wesnoth.is_debug_mode();

(2) disabled the LuaAI debug library usage for non-debug launch modes
2012-04-16 20:49:02 +00:00
Dmitry Kovalenko
ca9f107ee1 LuaAI: added a new file 2012-04-15 20:27:27 +00:00
Dmitry Kovalenko
8f99e3f995 LuaAI: created some debug methods
ai.debug will be registered by stdlib on demand
2012-04-15 16:33:36 +00:00
Dmitry Kovalenko
ace211df28 LuaAI:
(1) even more naming inconsistencies fixed; 

(2) even more methods hidden
2012-04-12 18:56:08 +00:00
Dmitry Kovalenko
b9f9e29a0b LuaAI:
(1) fixed some naming inconsistencies;

(2) hidden some methods to the cache table, so that they don't lie
around unused in the ai table
2012-04-12 17:48:34 +00:00
Dmitry Kovalenko
175d0a84f5 LuaAI: rewired caching functions to ai.get_*() instead of ai.get_cached_*() 2012-04-11 17:05:09 +00:00
Dmitry Kovalenko
9ddd3d4408 [[lua AI fixes]]
(1) First draft of the caching system for LuaAI. (2) Added validation
variables and setters/getters in the ai contexts, to allow LuaAI cache
check the movemaps for validity
2012-04-08 00:00:14 +00:00
Dmitry Kovalenko
de73faad91 Tweaked the patrol_gen function to return a pair of function: execution and evaluation 2011-07-12 08:39:18 +00:00
Dmitry Kovalenko
cd0450f950 Removed debug outputs 2011-06-30 14:54:08 +00:00
Dmitry Kovalenko
8d65c3b7f7 Added functionality to the [add_ai_behavior] tag.
Not fully working at the moment, but is usable. The usage syntax will
most probably remain, but the internals will be modified.
2011-06-30 14:14:46 +00:00
Nils Kneuper
0723abe7e3 add some (hackish!) attempt to make the po update routines scan .lua files...
...for strings, too

this is done by a) scanning for all .lua files additionally to all
.cfg files in FINDCFG and b) by adding the equivalent of a "commented
out" #textdomain DOMAIN declaration

next step: testing if it really does work as expected this should also
fix bug #15629 since the objectives are now *only* declared via some
lua magic
2010-03-15 20:22:28 +00:00
Guillaume Melquiond
0684992511 Removed never used argument. 2010-02-27 09:18:12 +00:00
Iurii Chernyi
3cbbeeb6e1 continue work related to patch #1432.
Fix issues identified on irc by silene. Fixed 1,2,4,5,6 (not entirely
sure about 1)
2010-02-21 23:11:56 +00:00
Iurii Chernyi
f9b0fdb1f5 Lua AI: redesign, simplified usage, added lua_ai test scenario 2010-02-21 12:24:31 +00:00
Iurii Chernyi
b873f11333 extracted lua ai code into external .lua files 2010-02-17 19:34:35 +00:00