21969 Commits

Author SHA1 Message Date
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
Bruno Macabeus
a0c882b02d Added the optional parameter "need-file-in(dir)", to check if the file exists 2016-03-22 11:05:58 +01:00
Bruno Macabeus
71b4d75f15 Fixbug: Not correctly checked if using the optional parameters 'limit(a,b)' and 'list' simultaneously 2016-03-22 11:05:58 +01:00
Bruno Macabeus
f76a0596d9 Various attributes' [scenario] and derived elements' of it have been implemented. But missing several. 2016-03-22 11:05:58 +01:00
Bruno Macabeus
426abfd46e Added check "FORBIDDEN" for element 2016-03-22 11:05:58 +01:00
Bruno Macabeus
5e5128680c Fixbug commit f1006f1adcb56fa823108a819ec5d4c739424a22: I forgot to take the case to send a file, not a directory 2016-03-22 11:05:58 +01:00
Bruno Macabeus
7009d360ab Ops, I had written twice accidentally 2016-03-22 11:05:58 +01:00
Bruno Macabeus
31794109ad Update schema.cfg: terrain_type finished 2016-03-22 11:05:57 +01:00
Bruno Macabeus
42d4ae9109 Added the optional parameter "limit(\d+,\d+)", to specify the range of the value's attribute
Added, partly, toplevel [terrain_type] tag
2016-03-22 11:05:57 +01:00
Bruno Macabeus
98833e2b5b Added optional parameter "optional-translatable" to some rare cases 2016-03-22 11:05:57 +01:00
Bruno Macabeus
a2f8d93785 Added some comments to organize 2016-03-22 11:05:57 +01:00
Bruno Macabeus
a6fec89753 If you specify a directory, will scan all files from directory.
Now can use environment variables.
2016-03-22 11:05:57 +01:00
Bruno Macabeus
128fc64f60 Return message is now more readable 2016-03-22 11:05:57 +01:00
Bruno Macabeus
b9f1ff84be Update to Python3: using print function 2016-03-22 11:05:56 +01:00
Bruno Macabeus
adacf79111 Improved the regexp of symbols in schema.cfg 2016-03-22 11:05:56 +01:00
Bruno Macabeus
67e79f7563 I forgot to translate two comments 2016-03-22 11:05:56 +01:00
Bruno Macabeus
54efe7a8a9 Added datatype symbol 2016-03-22 11:05:56 +01:00
Bruno Macabeus
2eeac0248c Created the optional parameter "list"
Other minor improvements and updates in wmlvalidator
2016-03-22 11:05:56 +01:00
Bruno Macabeus
aeb2dc65c1 It is not necessary to define default values to datatypes, they will be caught the schema.cfg file 2016-03-22 11:05:56 +01:00
Bruno Macabeus
a79de2c35c wmlvalidator, wmlgrammar and wmldata: now it checks translatable lines.
schema.cfg: it was removed type "tstring" and can now be optional parameters
2016-03-22 11:05:56 +01:00
Charles Dang
b0c485f5d0 Tweak/improve several unit help profiles 2016-03-22 18:28:18 +11:00
Charles Dang
849242ca6b tunit_recruit: align recruits listbox to top 2016-03-22 16:16:41 +11:00
Charles Dang
a3bae34562 tgame_version: very slight layout fix 2016-03-22 06:22:34 +11:00
Charles Dang
594af9e15a Added a hovered effect to toggle panels 2016-03-22 06:16:35 +11:00
Charles Dang
2f8f3af61b More design tweaks to windows and borders 2016-03-22 06:13:34 +11:00
Celtic Minstrel
c2e216be5a Tweak some small_profiles 2016-03-21 12:50:04 -04:00
Celtic Minstrel
60a819f17e Remove all non-transparent portrait images
The small_profile key has been used in several cases to approximately preserve the cropping and orientation from the non-transparent portraits. Some of these could be up for review.
2016-03-21 12:50:04 -04:00
Charles Dang
cb992e88b0 Removed Data Manage dialog
This dialog didn't do anything more than allow you to delete saves.
2016-03-21 22:14:34 +11:00
Charles Dang
d1e972b318 Remove '/transparent' from remaining unit type profile paths 2016-03-21 13:07:33 +11:00
gfgtdf
6e37603538 Attempt to fix travis mp tests 2016-03-20 19:04:33 +01:00
mattsc
3d01dabce6 Protect Unit Micro AI: fix bug in AI setup 2016-03-20 10:00:02 -07:00
mattsc
11e1917d21 Guardians Micro AI test scenario: update an image path 2016-03-20 09:37:05 -07:00
ln-zookeeper
6fa2c2ddf0 Added doofus-01's updates to the ruined sand castle 2016-03-20 18:02:14 +02:00
Elvish_Hunter
2ba445dbef Merge pull request #630 from Elvish-Hunter/hexometer-python
Ported hexometer from Bash to Python 3
2016-03-20 11:12:44 +01:00
Celtic Minstrel
308cd8b34f Tutorial S1: Fix deselecting your unit after the select event message 2016-03-20 03:02:58 -04:00