Commit graph

83373 commits

Author SHA1 Message Date
Rafael Fillipe Silva
526a09df2a add tests for super cycle detection on schema self validator
Add test for the already existing validation where a tag shouldn't set itself as its own super.

Add test for the new cycle detection when validating a schema.
2024-02-26 10:15:27 -06:00
Rafael Fillipe Silva
dba52e903c implement super cycle detection for the schema self validator
The super tag dependency forms a directed graph. Boost Graph's depth first search implementation was used with a back edge detector to find the cycles.

This is a preparation for enumerating all keys that a tag can use, including the keys from the super tags. If cycles aren't handled, it is impossible to validate mandatory keys without entering an infinite loop.
2024-02-26 10:15:19 -06:00
Steve Cotton
6bfd776157 HttT S06: Make Elensefar's defenses look damaged by the Orcish siege
Just some debris embellishments to suggest that the towers at the
end of the bridges were hit with siege weapons. The defense stats
are still the same and there's no dialogue change to go with this.

(cherry picked from commit b9cb577bac)
2024-02-26 13:13:45 +01:00
Nils Kneuper
8ba1eb84b4 use correct font file instead whatever it was before... 2024-02-26 08:37:40 +01:00
pentarctagon
d24f75e8f4 Multiply help portait scaling by the pixel multiplier.
Fixes #8275
2024-02-26 00:27:55 -06:00
pentarctagon
523467c40b looks like this never got updated 2024-02-25 21:10:15 -06:00
doofus-01
fe5f4556e5
skeletal rider and alternative bear portraits (backport #8453) (#8458)
* adding skeletal rider and alternative bear portraits (backport #8453)
2024-02-25 15:15:42 -08:00
pentarctagon
cb6fb85fe1 update steam runtime 2024-02-25 13:02:48 -06:00
pentarctagon
1aa56c01a3 Revert d4b7064904
Fixes #8401
2024-02-25 10:30:47 -06:00
Iris Morelle
c64777433a HttT S5b: Fix duplicate loyal trait for Delurin
NAMED_LOYAL_UNIT has the loyal trait built in, so this results in an
extra copy of it being granted to the unit.
2024-02-25 18:46:59 +11:00
Nils Kneuper
918431dce9 Added new font "Lohit-Bengali.ttf" to support Bengali translation 2024-02-24 19:30:37 +01:00
Nils Kneuper
83fc5a0c56 add "noconvert" flag to Bengali translator name 2024-02-24 16:23:32 +01:00
Nils Kneuper
40fc9a8be7 updated French translation 2024-02-24 15:10:18 +01:00
Nils Kneuper
2d7fc054dd updated British English translation 2024-02-24 15:09:09 +01:00
Nils Kneuper
9e8ede348f updated Bengali translation, activated in credits
This introduces a new string for the translation!
2024-02-24 15:07:48 +01:00
pentarctagon
55e141313f bump again 2024-02-23 15:11:16 -06:00
Gunter Labes
3e8f352e2d
Fix logic mistake from the refactor in f8bd32e 2024-02-22 14:10:06 +01:00
Gunter Labes
6d052aa72e
Add copyright job to notification 2024-02-22 10:48:35 +01:00
Gunter Labes
77ad4bb1be
Update used actions to avoid deprecated Node.js 16 2024-02-21 20:19:16 +01:00
pentarctagon
e115745125 change default client keepslive timeout to 20 seconds 2024-02-21 13:16:31 -06:00
Gunter Labes
cc7dda2ba0
Fix logic mistake from the refactor in f8bd32e 2024-02-21 14:48:09 +01:00
Wedge009
f719ae8fc9 Bat images were moved from undead directory to bats in #6655.
(cherry picked from commit a59c32f9e2)
2024-02-21 11:15:01 +11:00
Wedge009
2c56a58a42 Saurian Prophet/Seer portrait was converted from PNG to WebP.
[ci skip]

(cherry picked from commit b334f6707b)
2024-02-21 11:15:00 +11:00
Gunter Labes
1095bf104d
Update CI branch name configuration value for 1.18
Also update used actions to avoid deprecated Node.js 16.
2024-02-21 01:05:07 +01:00
Steve Cotton
982d264094 Update German translation 2024-02-20 12:14:55 +01:00
pentarctagon
4906f3cc7a 1.17.26+dev 2024-02-19 21:10:15 -06:00
pentarctagon
d1b3ede924 1.17.26 2024-02-19 21:05:54 -06:00
pentarctagon
d46f14a44d sync with 1.16 changelog 2024-02-19 21:05:54 -06:00
pentarctagon
264c8413d0 pot-update and regenerate doc files 2024-02-19 21:02:14 -06:00
pentarctagon
820bbc53b8 update add-on server port for 1.18, also here 2024-02-19 18:52:20 -06:00
pentarctagon
388fc2d930 update add-on server port for 1.18 2024-02-19 17:19:53 -06:00
Steve Cotton
731e59f986 Add Bengali translation to the build scripts
No translated text yet, just template .po files.

The po files are generated assuming that PR 8433 will merge, removing
the new translatable text from the multiline_text and spinner widgets.
2024-02-19 17:08:10 -06:00
Steve Cotton
ce03f9e58b Remove new strings that were used for VALIDATE_WML_CHILD
This adds a new missing_mandatory_wml_tag() function, which
returns a message using a common string, similar to the existing
missing_mandatory_wml_key.

To avoid new strings in 1.18, the current implementation
just calls missing_mandatory_wml_key directly.
2024-02-19 16:11:06 -06:00
Steve Cotton
8877848306
Fix multiline_text's overriding of set_cursor (#8418)
Subhraman rewrote the scrolling code in the last few commits,
and it seems that the autoscroll check is not needed anymore.
Remove that check altogether and make it 2 argument.

The problem with the 3-argument override was that, when
code in text_box_base.cpp calls the virtual method, it will
only consider the 2-argument version, and thus skip any
3-argument wrapper.

This fixes a Clang warning, although the warning itself points
out the opposite effect - that the 3-argument version hid the
2-argument one in the subclass.

Also fix a Clang warning that scroll_text could mark a method
as an override.

Co-authored-by: Subhraman Sarkar <suvrax@gmail.com>
2024-02-19 17:10:16 +01:00
newfrenchy83
b4abee7c38
Fix increase by percentage returns 1 if experience is equal to zero (#8425)
Using `[effect]app/y_to,increase=experience,"40%"` on a unit with 0 XP used
to give that unit 1 XP, because of a minimum in the C++.
2024-02-19 13:49:09 +01:00
Steve Cotton
e14d7ddee9 Revert IPF string handling optimisations
When reverting this revert (after 1.18 has branched), the
new .hpp file should be added to XCode and CodeBlocks.

This reverts PR #8396, PR #8407 and the "Small fixup" commit;
they bumped the minimum compiler version from GCC 7 to 8 or 11.

This reverts commit 870eeff8e6.
This reverts commit 029136b19a.
This reverts commit d74ff6f31b.
This reverts commit 8a6de95d48.
This reverts commit d14d233d79.
This reverts commit 698f5c115c.
2024-02-19 12:25:56 +01:00
Steve Cotton
e0df67656a Update changelog, merge changelog_entries
This is mainly from looking through the Git changelogs
for missing entries.
2024-02-19 12:17:12 +01:00
Hejnewar
0034b98fc2 UtBS Heroes: Taunting Strike xp farm fix
In addition make taunting strike more synergised with bolas.
2024-02-18 21:04:29 +01:00
Hejnewar
82128b6b5a UtBS Units: Fighter line adjustments
Adjust Fighter line to allow for easier early leveling and more late game staying power. Add parry to secondary melee attacks in order to incentivise their use.
2024-02-18 21:04:29 +01:00
Steve Cotton
bd31d9042d DiD S10: Fix missing line in human heroes' book endings
A simple case of `role=unit` instead of `speaker=unit`, the
necessary translatable text was already in the scenario.
2024-02-18 16:43:54 +01:00
Hejnewar
cfb7221262 UtBS S01: Improve event/dialog consistency regardless of trigger order
Fix #8201
2024-02-18 14:44:54 +01:00
Hejnewar
a7680561d0 UtBS S05: Use enter_hex so events cannot be triggered out-of-sequence
Fix #8190
2024-02-18 14:44:54 +01:00
Steve Cotton
af8c2fe5cb
EI S11-S18: Add more PO hints
Has a few updates to S04a, S04b, S09 and S99 too.

Lore: this declares Khrakrahs (dragon seen in SoF) to be male.
He's been in many versions of Wesnoth that only had male drakes,
thus will surely already be male in any translation where the
gender has an effect on the wording.

There's a few "TODO for 1.19" comments added:

* In S12, the left behind units say "we must ride ... to save Wesnoth",
    but it should be "you must ride".
* The intro of S13 is confusing, there's little indication of why you
    only have one unit, or what mission he failed.
* In S16, Gweddry says "night approaches" on turn 1 (morning)
2024-02-18 10:44:32 +01:00
gfgtdf
c7ca36be6e
wc: fix #6513 Bezoar artifact (#8340)
* wc: fix #6513  Bezoar artifact

The item now applies the effects directly instead of using [trait]s, 
The lua code that added traits in the wc lua files didn't work, but the main reason why i preferred  this solution instead of changing the lua files is that it makes it possible to simply remove the artifact via for example [remove_object] (which wouldn't work for artifacts using traits as those are separate modifications)

The code now also adds a dummy ability so that players know that this unit has the benefits of the healthy fearless and  undead  traits.
2024-02-17 23:25:07 +01:00
MechanicalDragon963
c6d8c67495 HttT S16, S19a, S19b and S22: Map embellishments
S16 (Hasty Alliance) uses more rocks and bridges, including
bridges over lava.

S19a (Snow Plains) gets some dirt roads without snow on, and the
edge of the map gets some ice and water.

S19b (Swamp of Dread) gets a wide variant of swamp terrains
instead of sand.

S22 gets more variety in the forests and grasslands.

Cherry-picked from the branch in PR #8243.
2024-02-17 22:05:08 +01:00
Steve Cotton
1c4b46add3 EI S01, S13: Fix Gaennell's gender
She's meant to be female, but in S01 the gender defaulted to male,
while in S13 it was set to random.
2024-02-17 20:24:08 +01:00
OrekOrek
97635055f0
HttT S17 Ensure map always has 6 castle hexes around Konrad (#8314)
HttT S17 map height +5

According to several hundred test runs, Konrad's castle seems to be produced between y=59 and y=71 when the center of the chamber is set at y=65 as it currently is.

Because map_height=75 means that the playable map size is y=73 due to the border hexes at the top and bottom, this change probably guarantees that Konrad's castle is fully within the playable map.
2024-02-17 18:05:18 +01:00
Pentarctagon
7a3a72e8bd
Redirect using C output instead of C++ output (#8391)
Apparently redirecting stdout/stderr also results in std::cout/std::cerr being redirected, but not the reverse. This is not compatible with using boost's tee.

Fixes #8108
Fixes #8255
2024-02-17 16:28:08 +01:00
Subhraman Sarkar
8d3a52eb3f
Stop multiline_text from infinite growing and show scrollbar instead
Fixes the following bugs :

Stop scroll_text from growing infinitely and instead show the
scrollbars when the text dimensions exceed the default size of
the underlying multiline_text in some dialogs (such as edit_pbl,
the pbl publishing editor).

Allow horizontal_grow/vertical_grow to work correctly. Currently,
the widget stops vertically growing due to absence of
max_height=0, again in some specific dialogs.
2024-02-17 12:50:09 +01:00
Nils Kneuper
2b5a9476d3 updated Arabic translation 2024-02-17 11:46:20 +01:00