22003 Commits

Author SHA1 Message Date
Celtic Minstrel
6ed34069fe Micro AIs: Remove tests for deprecated syntax 2016-03-26 21:57:14 -04:00
mattsc
f161a3cc1c Fix AI_FORMULA_AI_EXPERIMENTAL_RECRUITMENT macro
This also deletes the AI_SIMPLE_FORMULA_AI_EXPERIMENTAL_RECRUITMENT
macro. There is no point in keeping both of them.
2016-03-26 15:34:39 -07:00
Celtic Minstrel
7df4fc3970 Fix [modify_side]switch_ai=data/dev/idle_ai.cfg 2016-03-26 16:39:43 -04:00
Celtic Minstrel
f81169b7bb Draw a border around the lobby game list 2016-03-26 16:39:37 -04:00
mattsc
df5714801c AI Arena: fix the menus 2016-03-25 14:15:34 -07:00
mattsc
09ee5c7a4b AI Arena: update [option] tags to new syntax 2016-03-25 13:58:52 -07:00
mattsc
e48908f42f Fix FAI experimental recruitment setup 2016-03-25 09:40:13 -07:00
mattsc
202aa804bb AI Arena: remove akihara_recruitment test
Since akihara_recruitment has been removed.
2016-03-24 19:34:12 -07:00
Celtic Minstrel
a6fbabead2 GUI2: Add wrap key to [scroll_label] 2016-03-24 17:49:04 -04:00
Celtic Minstrel
16ed12f7de Fix FormulaAI lurkers example 2016-03-24 17:49:02 -04:00
Celtic Minstrel
d48060bc00 Fix external Lua CA example for new syntax 2016-03-24 17:49:02 -04:00
mattsc
cccf1f8604 Change id and description of the former "Strong AI" 2016-03-24 12:57:35 -07:00
mattsc
a218e6b659 Move "Strong AI" to ai/dev/ and rename file
This means that it is now only available in debug mode.  It is not
significantly enough different from the default to be one of the main
options.
2016-03-24 12:57:35 -07:00
mattsc
c04f406bd8 Old patrol.lua: fix indenting and add deprecation message 2016-03-24 12:57:35 -07:00
Elvish_Hunter
2c5763216b wmllint: added female_text to the translatable keys
Also removed a few wmllint directives that I placed to handle female_text.
2016-03-24 20:43:17 +01:00
Elvish_Hunter
2cd4298f7b wmllint run on core, campaigns and multiplayer directories 2016-03-24 20:26:44 +01:00
Elvish_Hunter
56b8ed9560 DW and UtBS: shut a few wmllint warnings about translation markers 2016-03-24 20:26:44 +01:00
Elvish_Hunter
dcee0e1805 wmllint: added male_message and female_message to translatable keys 2016-03-24 20:26:44 +01:00
Elvish_Hunter
15777e35e0 wmllint: added rule to handle removal of small portraits 2016-03-24 20:26:44 +01:00
mattsc
dd2d193cbd Remove move_to_targets test scenario
This was useful when the composite AI was introduced (in Wesnoth 1.7),
but does not serve a purpose any more now.
2016-03-24 10:56:45 -07:00
Celtic Minstrel
106f1510d3 Fix unit test 2016-03-24 12:59:59 -04:00
Celtic Minstrel
57e41387a8 Remove Strategy Formulation with RCA stage 2016-03-24 12:39:37 -04:00
Celtic Minstrel
af9be371da Remove old move-to-targets CA and move new one to default 2016-03-24 12:32:34 -04:00
Celtic Minstrel
ab443bcc18 Remove experimental recruitment 2016-03-24 12:06:10 -04:00
mattsc
be505342bf Lua AI test scenarios: rename files 2016-03-24 08:16:03 -07:00
mattsc
5774872e04 Lua AI test scenarios: update id= and name= keys 2016-03-24 08:09:59 -07:00
mattsc
961d134ee2 Fix and simplify Lua AI test scenario 2016-03-24 08:07:01 -07:00
mattsc
ae8df114f6 Fix indenting 2016-03-24 05:27:45 -07:00
Celtic Minstrel
d73a2486ba Deleted AI definition referencing the removed old recruitment CA 2016-03-24 00:08:11 -04:00
Celtic Minstrel
a23a368c20 Remove Akihara's recruitment and battle evaluation 2016-03-24 00:08:10 -04:00
Charles Dang
077e4f3789 tlobby_main: Further layout tweaks and cleanup 2016-03-24 14:57:51 +11:00
mattsc
c60280392b Protect Unit MAI test scenario: adapt Lua engine to new syntax 2016-03-23 16:43:51 -07:00
mattsc
f920a03ebb Patrols MAI test scenario: adapt Lua engine to new syntax 2016-03-23 16:38:22 -07:00
Celtic Minstrel
36eba6e833 tgamestate_inspector: Fix top listbox sometimes disappearing in small resolutions 2016-03-23 12:33:36 -04:00
mattsc
7c4aec9cfe Micro AI test scenario: fix incorrect aspect name 2016-03-22 18:31:42 -07:00
Charles Dang
6158ca73b9 tlobby_main: implemented tab close buttons 2016-03-23 07:53:59 +11:00
Charles Dang
d79cdd50bc GUI2: added minimal Close button definition 2016-03-23 07:50:02 +11:00
Charles Dang
386762a6f2 GUI2: added code for minimal buttons (buttons sans background) 2016-03-23 07:49:11 +11:00
Celtic Minstrel
2ed5e7815f MicroAIs: Fix those that honour the avoid aspect improperly
This affects the Hang Out and Fast MAIs.
2016-03-22 07:22:22 -07:00
Celtic Minstrel
cb0fad078a WML unit tests for simple aspects 2016-03-22 07:22:22 -07:00
Celtic Minstrel
1d7c1c74f6 Improve backwards compatibility for Lua AI
This changes the following:
- Fixes the experimental AI, without changing any of its code except for that in the [engine] tag
- Returns a dummy self from the dummy Lua engine, so that external CAs are more easily switched to using [params]
- Changes the order in which parameters are passed to AI component code. The order is now:
        state/self,    params,    data
2016-03-22 07:22:22 -07:00
Celtic Minstrel
7c9e24aa29 Remove several deprecated recruitment-related aspects
- number_of_possible_recruits_to_force_recruit
- recruitment_ignore_bad_combat
- recruitment_ignore_bad_movement
2016-03-22 07:22:22 -07:00
Celtic Minstrel
ca8cb3bd6a Remove the deprecated recruitment stage, candidate action, and aspect 2016-03-22 07:22:22 -07:00
Celtic Minstrel
f8f5557eb0 Huge refactor of Lua AI engine
This commit potentially breaks any Lua AI customization, except for external Lua candidate actions.
In practice, though, Lua aspects and goals will probably continue to work for the most part.

- The ai table now has a read_only attribute.
  If true, functions that change the game state will be missing from the table.
  The read_only attribute is false in CA execution and in stages.
  It is true everywhere else.
- Every Lua AI component now supports a [args] subtag.
  The contents of this tag are passed as parameters to the component code.
  This data is immutable; components cannot alter its contents.
  (External Lua candidate actions do not receive this data.)
- Accessing the persistent engine data is now supported in all Lua components.

When calling a Lua component, the Lua engine now passes two parameters:
1. The contents of the [args] tag in the specific component.
2. The contents of the [data] tag in the Lua [engine].

The return value of the [engine] code, if any, is stored for later used.
It will be passed as the third parameter to any other Lua component.
This data can be changed, but will not be saved.
The default engine does not return any such data.
2016-03-22 07:22:22 -07:00
Celtic Minstrel
bcbba6dde3 Change ID of Idle AI 2016-03-22 07:22:22 -07:00
Celtic Minstrel
28937124f3 Remove [goal]name=protect and add [goal]name=target_unit
- name=protect was a synonym for protect_location, which I consider confusing when name=target refers to a unit
- name=target_unit is of course a synonym for target, added for greater consistency of syntax
2016-03-22 07:22:22 -07:00
Celtic Minstrel
9c2027a8d8 Remove version key from AI configs
This has a lot of cascade effects and may remove support for some old syntaxes, such as [protect_unit].
2016-03-22 07:22:22 -07:00
loonycyborg
8d948765f9 wmlxgettext comments fixes needed by python wmlxgettext
they don't break perl wmlxgettext either
2016-03-22 15:23:14 +03:00
Bruno Macabeus
74b72bb846 Added attributes of the [ai]
Added the optional parameter "limit-max(number)"
2016-03-22 11:05:58 +01:00
Bruno Macabeus
58e8bc7246 Added almost the attributes of the [side]
Added the optional parameter "limit-lower(number)"
Improved the optional parameter "need-file-in(dir)"
2016-03-22 11:05:58 +01:00