Commit graph

638 commits

Author SHA1 Message Date
Nils Kneuper
b879239096 updated Bulgarian translation 2021-07-03 18:48:42 +02:00
Pentarctagon
110a64d20d
1.14.17+dev. 2021-06-20 13:14:03 -05:00
Pentarctagon
8d6c8ef78d
1.14.17. 2021-06-20 13:12:56 -05:00
Nils Kneuper
affda53db5 updated Japanese translation 2021-06-19 11:33:08 +02:00
Nils Kneuper
5f9d7069e6 updated Scottish Gaelic translation 2021-06-19 11:31:32 +02:00
mattsc
8279b0ac2a Update changelog 2021-06-18 07:30:51 -07:00
Nils Kneuper
5cbeca443b updated Portuguese (Brazil) translation 2021-06-13 10:10:02 +02:00
Nils Kneuper
c4c1233f2a updated Indonesian translation 2021-06-12 11:37:06 +02:00
Nils Kneuper
6aa62e1757 updated British English translation 2021-06-04 12:14:06 +02:00
Nils Kneuper
51a76563e6 updated Spanish translation 2021-06-04 12:11:18 +02:00
Nils Kneuper
14010343bf updated Dutch translation 2021-04-25 00:55:39 +02:00
Nils Kneuper
dfc871ef01 Revert "updated Dutch translation"
This reverts commit daa11d2c71.
Unintentional commit of liberty text domain to lib.
2021-04-25 00:49:54 +02:00
Nils Kneuper
daa11d2c71 updated Dutch translation 2021-04-24 11:18:56 +02:00
Elvish_Hunter
b21f8ceddd Changelog entry 2021-04-18 22:01:36 +02:00
Nils Kneuper
d8f404f9db updated Chinese (Traditional) translation 2021-04-17 10:58:04 +02:00
Nils Kneuper
e11c0123be updated Czech translation 2021-04-10 11:19:46 +02:00
Nils Kneuper
c4504e4ba2 updated Italian translation 2021-04-10 11:18:10 +02:00
Steve Cotton
28bf7a58ac Make WFL's error-reporting machinery thread_local
To report the WFL call stack in the event of errors, a static stack is used to
record that call-stack. This wasn't thread-safe, and it intermittently crashed
when the game config was movetype patching (the other WFL thread involved is
the GUI2 layout code).

Also a Rule of Three fix for the call_stack_manager class. While this wasn't
the cause of the crash, it could also have lead to a call_stack.pop_back() on
an empty stack.
2021-03-29 14:32:27 +02:00
Pentarctagon
eaa44cddbf
Wesnoth 1.14.16+dev. 2021-03-20 20:29:08 -05:00
Pentarctagon
667c85d3a4
Wesnoth 1.14.16. 2021-03-20 20:27:51 -05:00
Iris Morelle
c3fed7c31f Update changelog
[ci skip]
2021-03-18 20:58:11 -03:00
mattsc
918b1ad8dc Update changelog 2021-03-18 07:59:21 -07:00
Iris Morelle
0c611c1041 Update changelog
[ci skip]
2021-03-18 02:45:08 -03:00
Steve Cotton
2b8e887bcf Fix [resistance_defaults] and [terrain_defaults] (issue #5308)
The bug introduced in fcd0ceda is fixed by ensuring that movetype::merge() is
called with the strings "movement_costs", "vision_costs" and "jamming_costs"
instead of "movement", "vision" and "jamming".

Both [terrain_defaults][movement] and [terrain_defaults][movement_costs] are
supported and equivalent, as added to the master branch in 3522eb2c.

These now work again:

    [resistance_defaults]
        id="special_res_for_test"
        default="30"
    [/resistance_defaults]

    [resistance_defaults]
        id="copy_of_arcane"
        default="(arcane)"
    [/resistance_defaults]

    [terrain_defaults]
        id="special_terrain_for_test"
        [movement]
            default="(swamp_water + 1)"
            orcishfoot="(swamp_water * 2)"
        [/movement]
    [/terrain_defaults]

Formulas can now access other parts of the movetype too, as this allowed the
code to be the same as in 1.15:

    [terrain_defaults]
        id="special_terrain_for_test"
        [movement_costs]
            default="(swamp_water + 1)"
            orcishfoot="(vision_costs.swamp_water * 2)"
        [/movement_costs]
    [/terrain_defaults]
    [terrain_defaults]
        id="special_terrain_for_test"
        [defense]
            default="(20 + 7 * movement_costs.special_terrain_for_test)"
        [/defense]
    [/terrain_defaults]

The formula handling will recognise "resistance", "movement_costs",
"vision_costs", "jamming_costs" and "defense". For [resistance_defaults], the
formula will recognise both "(arcane)" and "(resistance.arcane)" as equivalent,
similarly for [terrain_defaults] "(swamp_water)" is a shorthand for whichever
subtag is being patched.

A [terrain_defaults] tag may use data added in a previous [terrain_defaults],
as in the examples above where the second tag's [defense] is based on the first
tag's [movement_costs], this gives orcish grunts on the special terrain a 62%
chance to be hit. However, relying on data in the same [terrain_defaults] that
creates or changes it is unsupported - if the [movement_costs] and [defense]
were in a single [terrain_defaults] tag then the result would be implementation
defined, because no guarantee is made of the order in which the children of the
tag are processed.

The unit tests for [terrain_defaults] and [resistance_defaults] must stay
out-of-tree until we support some method of testing them without affecting the
core units' stats during other tests. The test added here is limited to
checking the ways that WML can read the stats, it's also a framework for the
out-of-tree parts to use.

This is a squashed cherry pick of these commits from 1.15:
* 72863e578b (the unit test)
* 0ba433203e
* 3522eb2c2a (adding the aliases)
* 0035b776d7 (fix for empty children)
2021-03-05 18:09:19 +01:00
Iris Morelle
3530a4ef16 Take display zoom into account when rendering unit animation frames
It was already considered for registering halos, just not for rendering
regular frames. This commit touches the halo code a little so we don't
need to call get_zoom_factor() multiple times per frame.

Closes #5508.
2021-02-24 00:22:05 -03:00
mattsc
f40b0cf796 Update changelog 2021-02-20 07:17:01 -08:00
Nils Kneuper
03ad88bee1 updated Turkish translation 2021-02-20 14:13:08 +01:00
Nils Kneuper
6a84cf1c24 updated British English translation 2021-01-30 12:00:32 +01:00
Steve Cotton
75f7cb1e85 wmlxgettext: support double quotes in raw strings (fixes #4484)
This adds support for _<<map="{maps/01_First_Map.map}">>, as used in the
editor file format documentation.

This doesn't require another .pot update, because both the workaround in
3d77d36 and this fix generate the same string in the .pot file. However, it
does change the string that the Wesnoth executable looks for so that it matches
the .pot file's contents.

Cherry picked from commit c30c30acfc, and
additionally reverted commit 3d77d36bb0.
2021-01-16 21:15:36 +01:00
Nils Kneuper
fd32996933 updated French translation 2021-01-09 12:22:38 +01:00
Steve Cotton
2d917fe9fa Re-enable the editor help, add docs about keyboard modifiers and the scenario editor
A couple of warnings about the scenario mode being buggy are added to the
user-visible text, find these by looking for <bold> tags within the text.

This takes all the changes to the editor documentation that were made to master
up to and including a4711ebad9. There have been no changes at all to the editor
documentation in the 1.14 branch, while there have been several updates to the
master branch that would be good to backport if the help is displayed in the
1.14 branch - this commit simply pulls the entire file into the 1.14 branch
along with enabling the editor documentation (a small change to
data/core/help.cfg, as done in commit ed611f9438).

The sound source tool isn't mentioned at all in this documentation. There is a
button for it in the 1.14 UI, but that button's only function is to say that
it's not implemented, so documentation seems unnecessary.
2021-01-06 10:26:15 +01:00
Steve Cotton
c975f308d4 Update changelog 2021-01-05 14:36:54 +01:00
Nils Kneuper
131f24fe5c updated Catalan translation 2020-12-29 13:34:22 +01:00
Nils Kneuper
946db98fe7 updated Chinese (Traditional) translation 2020-12-23 13:42:35 +01:00
Nils Kneuper
21d9218013 updated Spanish translation 2020-12-23 13:36:34 +01:00
Nils Kneuper
3d843a5ea9 updated Portuguese (Brazil) translation 2020-12-23 12:58:10 +01:00
Pentarctagon
2c783cf8c3
Wesnoth 1.14.15+dev. 2020-12-18 19:44:47 -06:00
Pentarctagon
ee1e9599d8
Wesnoth 1.14.15. 2020-12-18 19:43:12 -06:00
Nils Kneuper
9f2a930d6f updated Turkish translation 2020-12-19 02:17:40 +01:00
Nils Kneuper
1caa22441f changelog update for Czech translation update 2020-12-11 20:00:01 +01:00
Steve Cotton
ae1d787799 EI S03: Fix the chance-to-hit on the initial Dark Adept
The map was changed to use ruined castles in 1.14.12 (fb6d79c8) and 1.15.3
(704fa2ef), but the .cfg file was missed.
2020-12-10 11:37:08 +01:00
Iris Morelle
070b7eddde addon/mg: Ensure _info.cfg has an [info] node when reading it
Fixes the dreaded "Mandatory WML child missing yet untested for. Please
report" error occurring when reading _info.cfg files that don't have a
valid [info] tag. In particular, this would cause the game version
dialog to crash to desktop.
2020-12-10 04:15:49 -03:00
Nils Kneuper
cc08685435 updated Italian translation 2020-12-05 12:57:23 +01:00
Severin Glöckner
03777e11df DiD S9: small fixes
Some units can be cut of fin the 2nd round. That's not a problem, but with a
good portion of bad luck it could happen to MKBones, making the scenario
unwinnable. That's handled by map adjustments.

Also increasing HP by 3 for the lich start, might even be more.
Discussion in #5296
2020-11-30 03:31:23 +01:00
Nils Kneuper
f6c58bab57 updated Russian translation 2020-11-29 14:42:59 +01:00
Severin Glöckner
e861dbbe90 German translation updates
mostly from sota spellcheck
2020-11-24 02:25:08 +01:00
Severin Glöckner
dcb7fed2cd Changelog entry for 3d1a448 2020-11-22 22:15:51 +01:00
Sean Yeh
b85c5dc8ad Fix formatting hyperlinks in texts
(cherry picked from commit fe259a5218)
2020-10-31 01:33:54 +01:00
Iris Morelle
b0a30ddf7b Relabel Language & i18n changelog section to appease vultraz
[ci skip]
2020-10-26 12:57:02 -03:00
Iris Morelle
556f6d073b Update changelog
[ci skip]
2020-10-26 12:52:19 -03:00