81959 Commits

Author SHA1 Message Date
Pentarctagon
0f550369b3
Simplify logging options (#7620)
This removes --wconsole, --wnoconsole, and --wnoredirect. Instead these are now handled by --no-log-to-file and --log-to-file.

If logging to file is enabled, then output will be written to the log file. If logging to file is not enabled, then output is written to the terminal. On Windows, a terminal will be created for the output to be written to if wesnoth is not launched from a terminal.
2023-05-14 12:47:43 -05:00
Nils Kneuper
729dcb842e updated French translation 2023-05-14 11:06:44 +02:00
Pentarctagon
30449e11f4 Fixup copy/paste error. 2023-05-13 15:56:08 -05:00
Nils Kneuper
c23af9a8e5 updated Spanish translation 2023-05-13 10:18:09 +02:00
Nils Kneuper
06b4271f88 updated Czech translation 2023-05-13 10:17:14 +02:00
Pentarctagon
f6be887a91
Let wesnothd and campaignd build without SDL. (#7621) 2023-05-12 19:30:38 -05:00
Iris Morelle
68a123df01
campaignd: Fix Xcode warning about prototype-less function 2023-05-11 01:15:27 -04:00
Celtic Minstrel
c53e91ef82 fixup e4b4b1c 2023-05-09 23:14:25 -04:00
Celtic Minstrel
986fb4b471 The whitespace fixer wants to add blank lines there so whatever 2023-05-09 23:11:16 -04:00
Celtic Minstrel
d4adbdcf91 Fix [clear_variable] not working on a variable name that happens to be a number 2023-05-09 23:10:26 -04:00
Celtic Minstrel
e4b4b1c6ce Make sure Lua GUI2 dialogs are properly cleaned up in the event of an exception 2023-05-09 23:10:00 -04:00
newfrenchy83
f9a94e1312 [1.17] add [filter_ability] in [filter] events and [effect]remove_ability and [filter_ability_active] in [filter] events
see https://forums.wesnoth.org/viewtopic.php?p=681371#p681371 in forum

the type of ability used is also filtered.
2023-05-09 19:26:10 +02:00
gfgtdf
e9c9bb62d5 small update_viewing_player refactor
gui_->show_everything() also depends on the blindfold
feature somehow, that's why the previous implementation
avoided using it and just disabled show_everything in
play_controllers constructor. However i now think
it's safe to use it here.
2023-05-09 16:50:53 +02:00
gfgtdf
9530ad1bc7 add test for no [side]s in [scenario] 2023-05-09 16:50:50 +02:00
gfgtdf
dd9fcccbd3 skip_empty_sides fixes
- We now don't show an error message in the log when no
  [side]s are defined, (this broke the unit test).
- We avoid calling `gui_->set_playing_team` when no [side]s
  are defined.
- skip_empty_sides now doesn't throw, previously the behaviour
  was inconsistent when there were no non-null sides. (it didn't
  throw when there were no sides at all)
- skip_empty_sides now returns two values instead of changing
  the parameter. (this was mostly to make the implementation
  easier)
2023-05-09 16:50:46 +02:00
Steve Cotton
a9ed25e694 Reorder WML includes so manual tests can use the unit-test macros
Move the line that includes data/test/scenarios/manual_tests/ below the
line that includes data/test/macros/. This allows a manual test to use
the setup in COMMON_KEEP_A_B_C_D_UNIT_TEST, putting units in the right position
to test combat and leadership abilities.

Also improve comments in data/test/_main.cfg.
2023-05-08 10:58:22 +02:00
doofus-01
de29611474
New wall terrain type 'Xuf'
1.17 - more overgrown walls (#7602)
2023-05-07 20:20:20 -07:00
Slayer95
36ed4641cd
wmlxgettext: Error out on unused #po, #po-override directives (#7573)
* wmlxgettext: Error out on unused #po, #po-override directives

* wmlxgettext: Ignore out of domain #po, #po-override comments

* wmlxgettext: Properly clear pending #po, #po-override on textdomain switch

* Fix misplaced #po comments in DiD, SoF, TSG, Editor

Some of these ugly relocations can be reverted in or after #7570.
2023-05-08 00:08:21 +02:00
Slayer95
03ab458ce0
wmlunits: Include nested dependencies in -L for -B to process (#7603) 2023-05-07 23:57:10 +02:00
Slayer95
eded720ee2
Refactor TeamColorizer into a Python library (#7604)
* Refactor TeamColorizer into a Python library

* Use TeamColorizer as library
2023-05-07 23:54:18 +02:00
Celtic Minstrel
f7fadba928 Fix compatibility path for helper.set_wml_var_metatable 2023-05-07 14:56:55 -04:00
Steve Cotton
4da33cb7c5 Convert readme in data/test/scenarios to Markdown, and add docs
Add a new guideline that reserves test names containing `_fail_`
or ending `_fail` for tests that don't `PASS`. The rest is just
collecting knowledge already written elsewhere.
2023-05-07 11:10:06 +02:00
Steve Cotton
7540c8f471 Rename test_terrain_mask_simple_name_fail to ..._ignore
I want to reserve names ending `_fail` or containing `_fail_` for tests
that do not expect the `TEST_PASS` status.
2023-05-07 11:10:06 +02:00
Nils Kneuper
c1ab35436c updated French translation 2023-05-07 10:58:53 +02:00
Celtic Minstrel
f5be4cffb7
Don't use optional_child for widget state definitions when it's mandatory (#7600) 2023-05-06 19:54:28 -04:00
Celtic Minstrel
8dea67d323 Don't allow markup in achievement titles.
This is done as a guarantee that there will always be one unambiguous way to identify that the achievement is completed.
2023-05-06 14:45:40 -04:00
gfgtdf
4b152e9cbc
Fix assertion on no [side]s (again)
I should probably add a wml test for this.
2023-05-06 17:32:29 +02:00
alberic89
2cb0d97696
wesnoth_addon_manager: require at least TLS v1.2 (#7591) 2023-05-06 00:12:17 +02:00
Slayer95
1ce11239ed
wmlunits: Fixup for fa76e77 (#7595)
Added missing colons to with statements
2023-05-05 23:55:40 +02:00
Slayer95
5eaed1b744
wmlunits: Specify error as class in html reports (#7581) 2023-05-05 21:05:09 +02:00
newfrenchy83
4494689d68 update codeblock projectfiles 2023-05-05 13:50:43 -05:00
Slayer95
fa76e775ac
wmlunits: Handle code paths for missing attributes (#7580) 2023-05-05 18:45:12 +02:00
gfgtdf
01f28b12ae Refactor statistics
Previously statistics were stored in global variables, now
it is a part of saved_game. With this saved_game now finally
represent the contents of a safefile as it was intended to,
without needing to fill the statistics part in some global
variable. (See also #4672 )

In particular now no longer have to manually reset the
statistics as random parts of the code, it gets reset
along with the saved_game object. Also it is now in theroy
possible for multiple saved_game objects to exist.

Statistics was split in two objects, the statistics_record
which only contains the data, and statistics_t, which
provides methods to modify statistics during a game (to get
cleaner dependencies)

This fixes multiple related bugs with statistics in replays:
- #4133 (stats not bring reset when loading a replay)
- #4133 (duplicate entry for current scenario in replay)
- #4441 (wrong stats at the beginning of a replay)

And issues with statistics being lost for non-host players when
reloading a game in (online) mp (no ticket for that one found).
2023-05-04 21:25:55 +02:00
Iris Morelle
b567b4286c
Fix unused variable warning on Xcode 14.3 2023-05-04 01:03:59 -04:00
Celtic Minstrel
5c3bdd9e07 Fix errors in zombie recruit dialog 2023-05-02 21:04:41 -04:00
Celtic Minstrel
497e6b7ca6 pick_advance whitespace 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3ba31d532f Add new schemas to validate fonts.cfg and language.cfg 2023-05-02 21:04:41 -04:00
Celtic Minstrel
b223dcbbdd Minor fix to schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
db0ee9f02c pick_advance: Load dialog from separate file so it can be validated 2023-05-02 21:04:41 -04:00
Celtic Minstrel
69ba3e0273 Make schema validation script validate Lua dialogs in gui/ subdirectories 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3cfe0c338d Minor improvement to the schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
5a1491a6ae Split up the GUI2 schema into multiple files.
The motivation for this is to reuse parts of it for another schema.
2023-05-02 21:04:41 -04:00
gfgtdf
ac4a1d001d Fix rare case of current_side being out of range.
skip_empty_sides might return an number greater than
the number of sides to indicate turn changes.
2023-05-03 00:16:12 +02:00
gfgtdf
3fa5fde8aa show the next human sides pov during ai turns.
previously it showed the last human sides point of view
in that situation.

Discussion at #4438
2023-05-03 00:16:12 +02:00
gfgtdf
4f6e0e4719 [side] save_id= now defaults to [side][leader]id=
When neither id non save_id are present in [side]

Similar for [side]side_name which will now use
[leader]name= as a fallback.

As discussed in #3742
2023-05-03 00:16:12 +02:00
gfgtdf
afadcfd7df more checks on mp server synced choices
To gain more information on possible issues similar to #3925
2023-05-03 00:16:12 +02:00
gfgtdf
300eb198a3 remove unit::swap
This was at some point used to implemented the
assignment operator, but the assignment operator
is now deleted.
2023-05-03 00:16:12 +02:00
Slayer95
2413e2f366
Improvements to wmltools3 (#7561)
* wmltools3: Make the CrossRef class iterable

Removes generator() method.

* wmltools3: Check for warn level on lack of wmlscope: set export

* wmltools3: Support passing a list of file paths to initialize CrossRef

* wmltools3: Track lineno_end for Reference

* wmltools3: Track default values for macro optional parameters

optional_args is no longer a list, but a dict.

* wmltools3: Track macro bodies as Reference.body

* wmltools3: Register quoted macro arguments verbatim

* wmltools3: Improve parse_macroref

- Support parsing nested macro calls.
- Remove excessive need of parens around macro calls/arguments.
- Support escaping quotes.
- Other compliance improvements.
2023-05-01 17:08:30 +02:00
Pentarctagon
1819febe92 Remove this bit. 2023-04-30 20:15:20 -05:00
doofus-01
b4471f3a11
Various terrain graphics fixes (#7576)
* improve elevation filtering for disabling ice terrain, fixes #7301

* Fix some wall/bridge/chasm layering. Mostly fixes #7302
2023-04-30 12:39:02 -07:00