103 Commits

Author SHA1 Message Date
Iurii Chernyi
5a4e32bb55 add a workaround to convert old usages of 'fallback to default ai'...
...to 'fallback to rca ai'
2010-04-29 21:24:50 +00:00
Nils Kneuper
05e5aa9508 fixed some untranslateable strings,
...adding some comment to the RCA AI (this fixes bug #15843)

merging 2010-04-12T11:06:54Z!crazy-ivanovic@gmx.net from branches/1.8
2010-04-12 11:08:51 +00:00
Iurii Chernyi
f2b8b94d0b Add support for AI candidate actions written in lua.
patch LuaW_pcall to support LUA_MULTRET. Patch #1558 by Darkas.
2010-03-23 21:04:50 +00:00
Iurii Chernyi
2da0389d81 Fix bug #14247:
...make formula_ai behave correctly if the side has only 1 recruit
2010-03-22 20:22:28 +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
a260c13fb6 remove lua AI example from the list of MP AIs,
...as now it can be tested from within test scenario
2010-02-21 12:26:20 +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
Iurii Chernyi
3815827e90 Allow to write AIs ([stage] components) in Lua.
Special thanks to silene for helping with this. Patch #1432
2010-02-15 21:06:42 +00:00
Iurii Chernyi
6117d5b021 fixed a segfault in fai_candidate_action serialization code,
...removed some old stubs, used better and simpler AI syntax in LoW::1,
LoW::2, LoW::3 , split candidate action WML snippets to their own file
2009-12-25 01:25:34 +00:00
Iurii Chernyi
fb9fa4bd91 stabilize RCA AI configuration for 1.8,
...extract candidate actions to separate macroses
2009-12-24 23:41:15 +00:00
Iurii Chernyi
ff510b6e47 fix a mistake in ai alias files 2009-12-24 23:07:37 +00:00
Iurii Chernyi
be416538bb tweaks and cleanups of available ai configs 2009-12-24 22:40:33 +00:00
Eric S. Raymond
0aa99781cf Reindent mainline. 2009-11-23 14:39:03 +00:00
Iurii Chernyi
10fdab6f86 RCA (with alink's targeting patch) -> default stable singleplayer...
...AI for scenarios which are converted to new ai syntax
2009-11-11 21:17:10 +00:00
Iurii Chernyi
58a415ec83 important speed optimization of candidate action evaluation loop...
...ending candidate action evaluation loop if current score is
greater-or-equal than the upper bound of score for remaining candidate
actions
2009-11-11 12:12:10 +00:00
Mark de Wever
467b3feae6 Fix alignment. 2009-10-20 18:44:01 +00:00
Iurii Chernyi
71a84f6823 forked candidate action:
...testing_ai_default::default_move_to_targets_phase into
testing_ai_default::testing_move_to_targets_phase - set up everything
for experiments on ai movement and targeting phase
2009-10-09 00:53:04 +00:00
Iurii Chernyi
afb3c3ce78 new candidate action:
...testing_ai_default::default_move_to_targets_phase - copy of default
ai movements and targeting phase, as a candidate action
2009-10-09 00:11:27 +00:00
Iurii Chernyi
27d6b0f59b new aspect, leader_aggression, to control the aggression of the leader...
...separately. Default value is -4.0 - that's old implicit default
2009-10-08 00:01:17 +00:00
Iurii Chernyi
9408c3a9ea remove unnecessary translation markers from AI test scenarios 2009-10-07 13:23:20 +00:00
Iurii Chernyi
85459732d1 remove accidentially added translation marker 2009-10-07 13:22:08 +00:00
Iurii Chernyi
df4a5a3f25 AI Arena test case...
...for filtering of allowed attackers/defenders via [filter_own] and
[filter_enemy]
2009-09-30 01:03:24 +00:00
Iurii Chernyi
eb77fed2dc added empty stage, used experimental fai recruitment for LoW::2,
...disabled extra debug output in formula ai recruitment, disabled
recruitment of Ulfserkers and Berserkers in LoW::2
2009-09-22 23:45:23 +00:00
Nils Kneuper
64abf3e200 add a default textdomain declaration...
...(using "./utils/change-textdomain -t data/")
2009-09-20 13:53:46 +00:00
Iurii Chernyi
468d796701 fix obsolete AI macro 2009-09-08 18:20:17 +00:00
Iurii Chernyi
7d2d62cb33 added macros to use new formula_ai recruitment (experimental!).
The simplest way is to include
{AI_SIMPLE_FORMULA_AI_EXPERIMENTAL_RECRUITMENT} in [side][ai]
2009-09-05 22:10:09 +00:00
Iurii Chernyi
afcb29c338 reworked AI macros, added support for moving leader to goal...
...as a candidate action, fixed some bugs, changed modify_ai syntax to
make it more resilient to bugs and to allow reuse of subtags
2009-09-03 23:23:37 +00:00
Iurii Chernyi
717eca7428 new test scenario: move_to_targets, for AI improvement 2009-09-02 21:20:55 +00:00
Iurii Chernyi
3e3aa950a8 removed fai recruitment from testing_ai_default 2009-09-02 17:56:12 +00:00
Iurii Chernyi
40eb5c2a3b removed unnecessary ai_algorithm from default config 2009-08-28 22:19:02 +00:00
Iurii Chernyi
7672a9d7ff ai macros and aliases 2009-08-23 22:04:06 +00:00
Iurii Chernyi
70e0ce4400 new candidate action - testing_ai_default::aspect_recruitment_phase.
Reworked RCA AI to use formula_ai recruitment
2009-08-23 10:44:35 +00:00
Iurii Chernyi
21e097d181 externalized scores of candidate actions in RCA ai 2009-08-23 00:41:13 +00:00
Iurii Chernyi
96d6531065 removed debug_label from poisoning formula 2009-08-21 16:38:50 +00:00
Bartek Waresiak
02c931ab63 Add recruitment.fai to /ai/formula/lib, improve unit choosing algorithm 2009-08-17 17:17:24 +00:00
Bartek Waresiak
f572929016 Disable Formula AI from AIs list,
...make it availale for now only in debug mode
2009-08-16 11:58:32 +00:00
Iurii Chernyi
6a55681bb3 Added a new developer ai configuration 2009-08-15 19:59:52 +00:00
Bartek Waresiak
ea0f15eb57 Formula AI update 2009-08-14 17:07:17 +00:00
Bartek Waresiak
1938717b2e Slence flood of errors coming from testing formula recruiting code 2009-08-14 12:19:19 +00:00
Bartek Waresiak
c47641dd25 Changed description of Formula AI from /ai/dev/, small fix to recruitment 2009-08-13 18:46:46 +00:00
Bartek Waresiak
9f71b56c87 New fai recruitment, added formula AI as choosable AI 2009-08-13 18:39:57 +00:00
Iurii Chernyi
13a103f640 recruitment as aspect 2009-08-12 11:19:17 +00:00
Iurii Chernyi
3b93f971b7 added example usage of side_formulas stage to 'Formula AI' multiplayer AI 2009-08-09 21:04:47 +00:00
Iurii Chernyi
f74d97dbc7 modified knalgan faction config to use new-style ai config snippet 2009-08-04 21:02:46 +00:00
Iurii Chernyi
39633ab2f8 examples of new-style ai configurations 2009-08-04 21:02:29 +00:00
Iurii Chernyi
ba6a7aa2c4 used 'attacks' aspect to keep a cache of attacks...
...shared between ai_default/formula_ai/composite_ai code
2009-08-03 22:03:13 +00:00
Iurii Chernyi
09223f03cc new AI configuration syntax. Note: boost 1.35 required for compilation 2009-08-01 14:17:15 +00:00