75842 Commits

Author SHA1 Message Date
Celtic Minstrel
0ecae9de17 Fix ai.aspects table not containing string aspects 2019-11-22 23:10:16 -05:00
Steve Cotton
63bb076b97
Support running multiple expected-to-pass unit tests (#4582)
This allows batching all of the tests that are expected to return status zero,
which is currently 161 tests, and running the batch with a single instance of
Wesnoth.  It doesn't include the changes to the run_wml_tests script to use
this new feature.

Timing on my PC:
* 4 seconds to run a single test on a debug build
* 90 seconds to run the whole batch of 161 on a debug build
* 1.2 seconds to run a single test on a release build
* 31.2 seconds to run the whole batch of 161 on a release build
2019-11-22 23:14:53 +01: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
mattsc
a9d9fbaccd AI: fix [leader_goal] for sides with multiple leaders
Previously the AI would only move one of the leaders.
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
20753a8fd1 Add description revisions to changelog 2019-11-19 01:57:25 -05: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
6576293228 Remove the obsolete --timeout command-line option
This option has never been supported in any tagged release of Wesnoth:
* added in e5b39510540cb3bb68cfd9ef6f3a3a1094d2d534
* changed to only print a warning in c8699e2f057b14b19ba60dbd4e71f4647b45ca78
2019-11-19 02:49:49 +01:00
pentarctagon
1a2be4bef5 Add steam runtime job to travis. 2019-11-18 19:28:15 -06: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
gfgtdf
1db9d63435
remove unused variable 2019-11-18 19:53:47 +01:00
gfgtdf
45a33e6e3a add wesnoth.create_side()
wesnoth.create_side() can create a side while the scenario
is running, this is especially useful for [modification]s
that can not define sides by default.
2019-11-18 18:56:38 +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
Charles Dang
e6b5f2e2d4 Cleaned out some ancient detritus from the attic
[ci skip]
2019-11-18 16:02:21 +11:00
nemaara
78a40c8dcb Add language move to changelog 2019-11-17 19:23:25 -05: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
ec3e0d50ec Add tutorial move to changelog 2019-11-17 18:08:13 -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
Charles Dang
9952099ba6 Removed unused variable 2019-11-18 08:40:45 +11:00
Iris Morelle
2e9bf3e0d1 Minor code cleanups
* Remove the redundant explicitly-defined default ctor for
   game_config::server_info() as it does nothing than the compiler's
   default doesn't already do.

 * Use emplace_back() in the only way that works without giving the
   compiler a migraine.
2019-11-17 18:05:29 -03:00
Iris Morelle
1cf49cc6d9 Update changelog for issue #4564
[ci skip]
2019-11-17 18:05:29 -03: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
78df5c305e gui2/edit_text: Add an option to disallow whitespace-only input 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
Celtic Minstrel
ece5490fd9 Improve ilua's table output for tables that have both an array part and additional keys
Previously for such tables it would just show the array part and ignore the rest.
2019-11-17 14:23:59 -05:00
Celtic Minstrel
61d0da9c84 Add __tostring metamethods to textdomains, races, unit types, weapons, and sides 2019-11-17 14:23:59 -05:00
Celtic Minstrel
d53ac4b496 Fix ilua not honouring __tostring functions for tables
This gives ilua full access to the debug module so that it can determine whether the table's metatable contains __tostring
2019-11-17 14:23:59 -05:00
Celtic Minstrel
12bb52fd4e Warn if trying to deprecate a table whose metatable is masked 2019-11-17 14:23:58 -05:00
nemaara
cd7160e8f7 DiD: reduce Mal Keshar base exp 2019-11-17 14:09:13 -05:00
pentarctagon
ed7cd5b78b
Remove the labeler workflow.
It's not actually doing anything currently besides making it look like at first glance that every commit to master has some kind of error.
2019-11-17 11:51:23 -06:00
Celtic Minstrel
212a91113c Convert wesnoth.sides to a module and move several functions to it
The old names still work but are deprecated.

In addition, all the moved functions now accept either a side number or a side userdata as the first parameter.
2019-11-17 11:35:56 -05:00
Nils Kneuper
7f785de4eb updated Portuguese (Brazil) translation 2019-11-17 11:35:27 +01:00
Iris Morelle
6ac5044e8a Update changelog
[ci skip]
2019-11-17 01:49:15 -03:00
Iris Morelle
34d45d3ee5 gui2/network_transmission: Modernize appearance
Following the previous commit altering the progress bar's styling, we
now rearrange the dialog to completely eliminate visual gaps during
add-ons server connection by having the status display share a row with
the Cancel button so as to not force extreme layout recalculations. The
status display is also smaller corresponding with its lesser importance
compared to the progress bar itself, which has now become the absolute
centerpiece of the dialog by taking up almost all of its horizontal
space even when the descriptive text is short.

There's an engine change in this, recommended by Vultraz to avoid
recalculating the UI unnecessarily during network transfers. It
necessitates a minor hack in the WML to ensure that the status label has
a non-0 initial size, but it's nothing too major.
2019-11-17 01:49:15 -03:00