26597 Commits

Author SHA1 Message Date
Elvish_Hunter
ec41359368 wmlscope: detect and analyze optional macro arguments 2019-12-02 21:23:58 +01:00
Earth-Cake
1e19cd5d23 Bug fix
Fix a bug regarding enemy leader leaving starting position and going with his soldiers.
2019-12-02 07:19:09 -06:00
Celtic Minstrel
732b7942bb Replace all references to deprecated functions in the helper module
(and remove the require if this meant it was no longer used)
2019-12-02 01:10:34 -05:00
Celtic Minstrel
74e004c265 Use a location set in the implementation of the item functions and WML tags 2019-12-01 22:30:31 -05:00
Celtic Minstrel
4b9f5d4485 Extend the location_set module to support set operators, custom index operators, and a tostring metamethod
Also adds set difference and symmetric difference functions, and a clone function.
2019-12-01 22:29:49 -05:00
Celtic Minstrel
9da5d4adfd fixup! Declare wesnoth.interface.remove_overlay directly instead of declaring it local and then assigning it
Missed updating the deprecation line and used the wrong new name
2019-12-01 21:50:56 -05:00
Celtic Minstrel
57bb4224b0 Declare wesnoth.interface.remove_overlay directly instead of declaring it local and then assigning it 2019-12-01 20:25:47 -05:00
Celtic Minstrel
aa5ac6af29 Add stringx module that exposes Wesnoth's split/join functions to Lua
The built-in string module is set as the metatable index for the stringx module, and the stringx module is set as the metatable index for strings, meaning all string and stringx methods are available through (''):method_name.

This also enables direct indexing of strings to get individual characters (ie ('str')[1] and the like), which package.lua already assumed even though it didn't work. Negative indices are supported to, and index from the end of the srring.

New functions:
- stringx.split
- stringx.parenthetical_split
- stringx.map_split
- stringx.escaped_split
- stringx.quoted_split
- stringx.anim_split
- stringx.join
- stringx.join_map
2019-12-01 20:25:13 -05:00
Celtic Minstrel
86f66a5825 Lua: Add a few more useful functions to the WML module and make WML table conversion a little more robust
- New functions: wml.find_child, wml.attribute_count, wml.equal, wml.valid
- When converting a Lua table to WML, the engine will no longer accept invalid attributes
- Use of wml.tovconfig in plugin or map generation scripts is deprecated (it already doesn't quite work properly in those contexts but still could've been used as a way to test a table's validity as WML)
2019-12-01 20:25:13 -05:00
nemaara
dcc96cf0fa DiD: change Lord Karres to Lady Karae and use portrait from AOI 2019-12-02 11:47:50 +11:00
nemaara
66237089a3 TSG: move and use portraits from AOI 2019-12-02 11:47:50 +11:00
nemaara
666f3a2c78 AOI: remove from mainline 2019-12-02 11:47:50 +11:00
walodar
f48c3b62b4 Fix: Dune Alchemist used Dune Apothecary image in both attack animations 2019-12-01 12:38:52 +01:00
Celtic Minstrel
5a27cd5b1b Also correct the dperecation message regarding the previous commit
[ci skip]
2019-11-29 00:36:47 -05:00
Celtic Minstrel
c7e84f487c Correct old names for some deprecated (renamed) unit functions
Fixes #4608
2019-11-29 00:33:36 -05:00
doofus-01
107b9af282
Some dunefolk sprite updates (#4573)
* some dunefolk sprite updates

* some revisions to updates

* revise lvl1 naga sprite to look less like existing fighter

* some more sprite revisions

* some base-frame edits and partial path reorganization

* revised firetrooper base-frame

* little pilot flame for firetrooper torch standing anim

* dunefolk sunderer line base sprites

* finish dunefolk sprite directory reorg
2019-11-28 07:30:59 -08:00
pentarctagon
53e92feedf
Fix team names to match the description of allowing FFA. 2019-11-27 21:32:31 -06:00
sigurdfdragon
6c999dea00 WoV: Update to match the 1.0.5 version on the 1.14 add-on server
Changes:
Make objective notes in S05, 06, 07, & 11 more blunt
S02: Slightly improve dialog
S04: Capitalization fix
S05: Dialog tweak for possible addition of nagas with ranged attack
S09: Improve flow of victory dialog
S09: Change gameplay and difficulty to eliminate tomato surprise
S11: Bump up turn limit
S12: Have saurian elders under player control
S12: Fine-turn enemy recruitment for slightly more clasher line units
2019-11-27 22:25:36 -05:00
Steve Cotton
e50fd80d53
Convert some fail-on-success unit tests to pass-on-success (#4597) 2019-11-25 14:28:03 +01:00
nemaara
c1638915b4 DiD S3: add another easter egg 2019-11-24 01:56:50 -05:00
Celtic Minstrel
b7a358c4af Fix a typo 2019-11-23 15:25:06 -05:00
Celtic Minstrel
859ab37254 Lua: Fix deprecate_api changing the behaviour of tables with an __index metamethod 2019-11-23 14:44:25 -05:00
Celtic Minstrel
3734bce276 Lua: Replace uses of deprecated (moved) sides functions 2019-11-23 14:41:03 -05:00
Celtic Minstrel
930e39422a Lua side proxy now has starting_location member (replaces wesnoth.get_starting_location()) 2019-11-23 14:37:41 -05:00
Celtic Minstrel
153680400d Unify the Lua and WFL interfaces to the movement type
See changelog for details.
2019-11-23 00:59:36 -05:00
jostephd
4b3a7c0800
core.lua: Link to #4584 in a comment near the new warning 2019-11-22 19:19:53 +00:00
mattsc
74c7c17ec8 Experimental AI: fix AI setup max_score values
The return scores were changed in commit 4999b20bd1, but the max_score values in the configurations have not been updated yet. As the relative ranking was not changed, this should not have any effect on gameplay.
2019-11-21 21:11:34 -08:00
mattsc
31b04e345f
Merge pull request #4581 from mattsc/ca_filter_own
AI: add [filter_own] to all default and Exp AI candidate actions
2019-11-21 20:26:24 -08:00
mattsc
1816ee5249 AI: add [filter_own] to all Experimental AI candidate actions 2019-11-21 19:15:11 -08:00
Elvish_Hunter
1c590a7efe SoF: shut 'unknown unit referred to by id' wmllint warnings
This fixes the warnings listed in #4494 and is part of #4381
2019-11-21 23:08:18 +01:00
mattsc
997e08c5d3 Experimental AI: fix bug in move_to_any_enemy CA
Previously, if the best move found for a unit was its own position, the entire CA would be blacklisted and no other unit would be moved.
2019-11-21 13:04:26 -08:00
mattsc
626d7ee381 AI: add [filter_own] to all default AI candidate actions
This allows restricting each CA individually to only a subset of the units. It also means that several instances of the same CA can be used in the same AI configuration, in order to, for example, force the order in which units are dealt with, or to apply different settings to different units.
2019-11-21 12:09:33 -08:00
nemaara
d69b28fd50 DiD S4: vary enemy leader type on difficulty 2019-11-19 16:48:02 -05:00
nemaara
785ff2cddd DiD S4: make one of the warlords a warrior 2019-11-19 16:45:42 -05:00
nemaara
6c0d1e7edd Ruler: fix double space 2019-11-19 15:41:19 -05:00
Toom
c4e39152cf Fix "wmllint: no translatables" magic comment 2019-11-19 18:21:15 +01:00
nemaara
0dfebb3490 Orcish Ruler: revise description 2019-11-19 01:56:50 -05:00
nemaara
c284045f2a Orcish Leader: revise description 2019-11-19 01:56:33 -05:00
Steve Cotton
16f93cd24c Add a unit test for wesnoth.create_side 2019-11-18 21:00:26 +01:00
Elvish_Hunter
855b51521c SotA: shut several 'side without type attribute' wmllint warnings 2019-11-18 20:48:24 +01:00
Elvish_Hunter
63c4fa6f66 wmllint: don't warn about [side] without type= if side controller is null
Fixes a few warnings in SotA
2019-11-18 20:46:34 +01:00
Steve Cotton
1035825152 Update changelog and readme for trackplacer python3 port 2019-11-18 18:24:28 +01:00
Steve Cotton
2c9caab3ce Add trackviewer, remove trackplacer
Trackviewer shows a journey without needing to start Wesnoth and refresh the
cache. Combined with tmx_trackplacer, the python3 versions now have
feature-parity with the old trackplacer, without the reliance on python2 or
pygtk (fixes #4365).

At least on Linux you can have both Tiled and this open on the same file. Save
the file in Tiled, alt+tab to this, and press enter to reload the file.
2019-11-18 16:57:26 +01:00
nemaara
5c9077dc41
Merge pull request #4568 from nemaara/language_icon
Title screen: move language button to icon
2019-11-17 19:22:42 -05:00
nemaara
32eb921d2d
Merge pull request #4566 from nemaara/tutorial_cleanup
Tutorial: move from title screen to campaign menu
2019-11-17 18:06:06 -05:00
Iris Morelle
f136bb9ef3 gui2/mp_connect: Overhaul dialog adding a more powerful server list
There has been functionality to manage custom servers in the player's
preferences file since as far back as commit
5fb0b2a91123474d147c9de4918fc11a1b4c15ac in June 2007, but there's never
been a user interface for it.

This commit removes the current server list dialog attached to the MP
Connect dialog and replaces it with the same functionality embedded into
the latter, as well as the ability to edit the server list in the
player's preferences file. There's some code movement in a few other
places since the previous function in the preferences namespace doesn't
suit the new code (it always returned a combined list of game and
player-defined servers).

There's some disabled code referencing a situation where the listbox
with the list of servers allows the code (and the player) to clear the
selection. It's disabled because there are some UX issues with it noted
in the code comments associated to it.

Fixes #4564.
2019-11-17 18:05:29 -03:00
Iris Morelle
b56bf27604 gui2/game_save: Give the OK button a custom label
[ci skip]
2019-11-17 18:05:29 -03:00
Iris Morelle
06719958da gui2/addon_connect: Use icon button for Help
[ci skip]
2019-11-17 18:05:29 -03:00
nemaara
c98dd7bad3 DiD S9: reduce boss difficulty 2019-11-17 15:00:34 -05:00
Celtic Minstrel
981fa93a40 Make ilua output iterable userdata as tables
This means anything with __len and __pairs metamethods.
2019-11-17 14:23:59 -05:00