Commit graph

774 commits

Author SHA1 Message Date
mattsc
ae71a23c7d Animals MAI test scenario: remove SLFs that always evaluate true 2013-05-03 12:25:52 -07:00
mattsc
e7a71a51d7 battle_calcs library: add functions best_defense_map() and get_attack_combos_subset() 2013-05-03 07:06:22 -07:00
mattsc
5fb4dd3816 battle_calcs relative_damage_map: enemy leader needs to have unity weight 2013-05-03 07:02:23 -07:00
mattsc
7e189c1d51 battle_calcs relative_damage_map: add own and enemy damage to output 2013-05-03 07:01:21 -07:00
mattsc
122d674b9b battle_calcs library: some tweaks to attack_rating() function 2013-05-03 06:55:19 -07:00
mattsc
6b119e4039 battle_calcs library: fix formatting and indenting 2013-05-03 06:51:14 -07:00
mattsc
61d0f53c63 Goto Micro AI scenario: remove unneeded wmllint exception. 2013-05-02 20:54:04 -07:00
mattsc
d3c1309e6f Goto Micro AI scenario: some changes to messages to make wmllint happy
Removed double spaces after messages and took care of 'nonstandard
word-wrap styles'.
2013-05-02 20:47:38 -07:00
mattsc
b75f2a0f90 Goto MAI scenario: update lurker MAI SUF and SLF to new syntax 2013-05-02 20:24:00 -07:00
mattsc
e3b358cab4 Add Goto Micro AI code to MAI switchboard scenario 2013-05-02 20:20:44 -07:00
mattsc
d58fdfd410 Add Goto Micro AI scenario map 2013-05-02 20:17:17 -07:00
mattsc
a7ccb1c877 Add Goto Micro AI functionality 2013-05-02 20:16:33 -07:00
mattsc
83ea570285 Add Goto Micro AI scenario 2013-05-02 20:03:56 -07:00
mattsc
06e896970d Update ai_helper library
New functions print_ts() and print_ts_delta().
Update functions find_best_move() and get_attack_combos().
Use new 1.11.2 syntax and functionality.
2013-05-02 19:57:21 -07:00
mattsc
c63258da84 Micro AIs: add zone guardian by Zazweda 2013-05-01 14:09:14 -07:00
mattsc
5033ef7ebf Micro AIs: use [filter_location] and variants thereof for SLFs
Rename Standard Location Filters in order to be consistent with other
WML.
2013-05-01 10:54:07 -07:00
mattsc
f7aa38bca4 Micro AIs: use [filter] and [filter_second] for SUFs
Rename Standard Unit Filters in order to be consistent with other WML.
2013-05-01 10:16:25 -07:00
mattsc
9995853471 The Elves Besieged Micro AI test scenario: update deprecated aspect syntax 2013-05-01 09:44:35 -07:00
mattsc
2103ece522 Micro AI switchboard scenario: fix some of the context menu item IDs
... so that they are consecutively numbered
2013-05-01 09:39:58 -07:00
mattsc
b1cef372d6 Healer Support Micro AI: add optional SUF for healers
If set, only units passing this filter and having the healing ability
are used as healers.
2013-05-01 07:30:45 -07:00
mattsc
0b5da53da8 [micro_ai] tag: move serialization of cfg table into add_CA() function
This has the advantage that we can still add information to the cfg at
this level (namely the CA name, which gets checked for uniqueness here).
2013-05-01 07:17:00 -07:00
mattsc
a929543f4c [micro_ai] tag: make sure that each CA gets a unique name
This is important if more than one Micro AI of the same type is set up
for a side.
2013-05-01 07:05:59 -07:00
mattsc
1951cc218e Healer Support Micro AI: bug fix for aggression= key
Key needs to converted to a number before checking its value.
2013-04-29 17:39:39 -07:00
Matthias Schoeck
7b7f3222ef The Elves Besieged Micro AI scenario: use 'yes' for boolean WML variable 2013-03-04 21:53:42 +00:00
Matthias Schoeck
184a53d706 Priority Target Micro AI: convert a variable to boolean
target_in_reach is only used to determine whether any target is
in reach, the count of targets is meaningless.  Thanks shadowm.
2013-03-04 21:27:15 +00:00
Matthias Schoeck
d8a24db330 Swarm Micro AI scenario: removed unneeded text from message 2013-03-04 21:19:34 +00:00
Matthias Schoeck
665fe20f79 AI Arena test scenario: minor changes to two messages
In order to make wmllint happy: add wesnoth-icon.png as image
to two messages and change the way one message is wrapped.
2013-03-04 21:11:29 +00:00
Matthias Schoeck
8f366482a5 Development AIs: Add missing translation marks
As found by wmllint
2013-03-04 20:54:45 +00:00
Matthias Schoeck
1c5a1aeba4 AI test scenarios: Add missing translation marks
As found by wmllint
2013-03-04 20:48:27 +00:00
Matthias Schoeck
4410fd190f AI test scenario files: remove trailing whitespaces 2013-03-04 20:40:01 +00:00
Matthias Schoeck
a7b2eabe0b healer_support Micro AI: Add a 'wmllint: ignore' comment
wmllint expects the aggression= key to be used inside [ai] tags only.
2013-03-04 19:55:16 +00:00
Matthias Schoeck
092840c07e Micro AI scenario files: remove some double spaces after sentence ends.
wmllint was complaining about those.
2013-03-04 19:45:17 +00:00
Matthias Schoeck
7ed5309547 Micro AI scenario files: add wmllint unbalanced-on/off comments
These are needed because wmllint gets confused by tags inside message
texts as well as by code that looks like tags, such as the path= keys
in [modify_ai] tags.
2013-03-04 19:36:50 +00:00
Simon Forsyth
3c41b7c75a Fix bug preventing regenerating units from retreating with experimental AI
(thanks mattsc)
2013-02-16 03:11:14 +00:00
Simon Forsyth
f5a4a83def New experimental CAs to improve village capturing and retreat when injured 2013-01-21 19:54:58 +00:00
Matthias Schoeck
40c7046b5a Add new AI aspect leader_ignores_keep.
If set, AI leaders do not move to the closest keep at the beginning of
the turn.  Instead, they participate in the move_to_targets candidate
action (and all other CAs in which they already participated anyway,
of course).  The default value is 'no', which leaves the default
behavior unchanged.
2013-01-20 04:07:08 +00:00
Simon Forsyth
3afbd449ba Do not count regenerating units without moves...
...as having moves in healer support micro AI
2013-01-13 03:54:17 +00:00
Simon Forsyth
1ea4ff0f26 Add healer support micro AI to experimental multiplayer AI 2013-01-12 23:31:59 +00:00
Matthias Schoeck
ce6ee7e586 Rename passive_leader_shares_keep candidate action to leader_shares_keep.
This CA is on by default, dealing with a passive leader is only a
special case.  The old syntax still works for backward compatibility
(for both CA and macros).
2013-01-09 17:18:45 +00:00
Simon Forsyth
8c0f21f9eb Consider regenerating units as effectively unpoisonable 2013-01-05 21:19:38 +00:00
J. Tyne
26c993207b Convert some WML macros and lua functions to use...
...unpoisonable/undrainable instead of not_living.

One remaining use of "not_living" is in the feeding ability.
2013-01-05 18:16:02 +00:00
Matthias Schoeck
93ba347695 Remove all references to Wesnoth Lua Pack dbms debug function.
They were all commented out, but better to remove them altogether.
2012-12-29 20:20:56 +00:00
Matthias Schoeck
b138e47184 Introduce 18 different Micro AIs.
This includes the [micro_ai] tag, the code for the Micro AI engines
and 14 test scenarios.  Full documentation at
http://wiki.wesnoth.org/Micro_AIs
2012-12-29 20:05:55 +00:00
Simon Forsyth
cd9bc8e64f Validate moves from previous evaluations before executing them 2012-12-29 12:32:17 +00:00
Matthias Schoeck
bf7c8b9662 Use new syntax to include default (RCA) AI components 2012-12-29 05:28:32 +00:00
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