Ignacio R. Morelle
fbd8f6ae59
Ran wmlindent
2012-01-11 21:49:32 +00:00
Alexander van Gessel
91b915edf4
Apply patch for bug #19032 from coffee
2011-12-21 03:18:19 +01:00
Steven Panek
a3168f89f9
Converted the remaining uses of Ggf.
2011-11-28 20:00:43 +00:00
Dmitry Kovalenko
2a9a663980
Lua backed goals now available(docs to be updated tomorrow)
...
//some minor fixes
2011-08-06 16:06:24 +00:00
Dmitry Kovalenko
8dc1551d30
Exposed the target list to Lua // minor fixes
2011-08-05 13:25:35 +00:00
Ignacio R. Morelle
53e260ca6b
Ran wmlindent in mainline except for data/gui
2011-08-02 00:01:08 +00:00
Dmitry Kovalenko
de07362204
Persistant data storage now is local to the lua_ai_context
2011-07-31 00:45:49 +00:00
Dmitry Kovalenko
a3acad0d70
It is possible now to store data in the Lua AI engine...
...
...and the data persists between save/load routines // Needs slight
refactoring, use at your own risk
2011-07-21 10:31:01 +00:00
Dmitry Kovalenko
3e5bdcf448
Fixed a bug that leads to a crash(Lua aspects weren't saved between games)
2011-07-20 10:13:05 +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
a293e91db3
Completed cleanup functionality(kind of hacky, might need refactoring). Also done some minor fixes
2011-07-08 09:40:08 +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
Dmitry Kovalenko
74cf9b5ae3
Added a counter for sticky candidate actions and a comment for Crab
2011-06-26 18:51:43 +00:00
Dmitry Kovalenko
ba69be6682
Minor cosmetic fixes
2011-06-21 14:10:12 +00:00
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