Dmitry Kovalenko
437b619397
added a wesnoth.modify_ai Lua function,
...
...continued work on the patrolling system, made more mess in lua_ai
arena
2011-06-20 17:05:59 +00:00
Dmitry Kovalenko
184105148a
The patrol unit now cycles through the multiple waypoints given to him
2011-06-17 11:20:29 +00:00
Dmitry Kovalenko
93cfadb5bc
Fast & easy fix of the move problem.
...
Now the unit rests on the waypoint until the next turn
2011-06-17 10:19:03 +00:00
Dmitry Kovalenko
bf8300c064
This is a first draft of the patrolling system.
...
At the moment everything manually, the system lacks normal evaluation
of the move and the patrolling unit will not stop until its moves run
out. Also, at the moment, it is possible to patrol between two
waypoints only.
Further work will be carried out to transform the creation of
patrolling units to one line syntax.
2011-06-17 10:07:41 +00:00
Dmitry Kovalenko
1670520d79
The rest of the move maps exposed // Might need refactoring
2011-06-16 14:06:41 +00:00
Dmitry Kovalenko
f87b14b9dc
First draft on movement map exposure to Lua
2011-06-14 19:35:28 +00:00
Dmitry Kovalenko
c1a2084259
More aspect exposure.
...
@Crab_, please, leave feedback on this, I am unsure about several
parts of this patch
2011-06-10 15:17:17 +00:00
Dmitry Kovalenko
c1ea8ac520
Exposed recruitment pattern aspect to Lua
2011-06-08 10:09:29 +00:00
Anonymissimus
87d505241e
transformed wesnoth.get_time_of_day into a more useful implementation
...
(will extend with more parameters and return values)
2011-06-07 15:26:57 +00:00
Dmitry Kovalenko
a1600a1a63
Added wesnoth.get_time_of_day() Lua function
2011-06-07 12:02:03 +00:00
Dmitry Kovalenko
5c7d4d64e5
More(village related) aspects exposed to lua( http://wiki.wesnoth.org/LuaAI )
2011-06-07 10:38:44 +00:00
Dmitry Kovalenko
65db78e77d
More aspects exposed to Lua( http://wiki.wesnoth.org/LuaAI )
2011-06-07 09:29:03 +00:00
Dmitry Kovalenko
330b3886d8
Added Lua support for multiple aspects.
...
More info on: http://wiki.wesnoth.org/LuaAI
2011-06-02 12:24:27 +00:00
Steven Panek
80d08acec3
Converted some instances of 'colour='.
2011-05-30 20:32:35 +00:00
Jody Northup
9e720501c6
exposed suitable_keep(unit) to Lua AI library.
...
Added test of AI.suitable_keep to lua ai test scenario.
2011-04-16 00:05:20 +00:00
Iurii Chernyi
94029166a7
patch #2599 by nephro: lua_ai routine: ai.get_aggression()
2011-03-24 19:59:50 +00:00
Iurii Chernyi
3043de6617
Fix bug #15861 : fix passive_leader and passive_leader_shares_keep.
...
Patch by Grimling
2011-01-02 15:37:57 +00:00
Iurii Chernyi
bbb65ad04e
added experimental recruitment AI...
...
...to the list of ais available in debug mode (launch wesnoth with -d)
2010-11-25 16:28:16 +00:00
Ignacio R. Morelle
b43daf408b
Remove phpBB session id from a commented link
2010-11-09 14:38:14 +00:00
Eric S. Raymond
e7d337a676
Reindent mainline.
2010-09-23 13:04:56 +00:00
Mark de Wever
a717cd92e6
Strip trailing spaces.
2010-07-31 08:15:15 +00:00
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