78505 Commits

Author SHA1 Message Date
Steve Cotton
31cdf16319 Unsubtly warn about subtle problems loading saved games from old versions
This connects to issue #2710, although the main reasoning about it is in #5517.
The difficulty balance isn't the only problem with loading old saved games, but
it's a simple example to explain.

This warning is intended for the change between 1.14 and 1.16, but will be shown
to anyone loading 1.15.x saves into 1.15.y - that's something that they should
expect in a dev branch.
2021-03-13 03:45:41 +01:00
Celtic Minstrel
e0c1ac2626
Fix [unstore_unit]x,y=recall,recall
Fixes #5604
2021-03-12 19:46:35 -05:00
Iris Morelle
e720a437b0 pot and documentation update 2021-03-12 20:22:02 -03:00
Iris Morelle
e954c7e389 wc: Fix strings wrongly assumed to exist in the wesnoth textdomain
This does not fix #5114 or #5526, but it does fix #5311.
2021-03-12 20:01:52 -03:00
Iris Morelle
3d7842c43e gui2/mp_faction_select: Use a disambiguator for the Random gender option
You just know sooner or later someone's going to try to use "random" for
something other than gender and some translations will end up looking
wrong as a result.
2021-03-12 20:01:52 -03:00
Iris Morelle
2de931cfa0 wc: Fix mapgen-related strings being in the wrong textdomain
The _ locals are there to ensure that if _ is overridden anywhere else
in the enclosing scope (which I haven't properly determined *where* it
is yet) it gets overridden again with the right textdomain object.
It *does* tell wmlxgettext what the correct textdomain is without using
the `-- #textdomain` hack anyway, so might as well just do it this way
regardless of the global-looking _ in map/main.lua.

CC #5311
2021-03-12 20:01:52 -03:00
Pentarctagon
edef0c5f33 Add database insert for addon information. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b2429c393 Add validation for the feedback topic id. 2021-03-12 16:12:09 -06:00
Pentarctagon
b974423e2e Add optional fuh to campaignd. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b7a958e9a
Add a new query to get faction side count. 2021-03-12 00:27:06 -06:00
nemaara
790bd029fc Add Liberty update to changelog 2021-03-11 02:01:41 -05:00
nemaara
bb2dcfc7d5 Liberty: revise dialogue 2021-03-11 02:01:17 -05:00
Iris Morelle
cc75fe2a23 scenario-test: Reuse translatable strings from the right textdomains
Addresses part of #5311.
2021-03-11 03:42:38 -03:00
Pentarctagon
395fcf3371
Additional cleanup after 18.04 CI job removal. 2021-03-10 21:50:03 -06:00
Pentarctagon
6ca9f0969e
Remove Ubuntu 18.04 CI job.
As of the TLS PR, supporting Ubuntu 18.04 will not be possible due to Boost 1.65 not supporting perfect forwarding in ssl stream's constructor.
2021-03-10 13:49:56 -06:00
nemaara
8eb0bc3151 DiD: use redraw instead of setting vision 2021-03-10 02:07:40 -05:00
nemaara
0a3c09aa03 DiD: remove allow_undos 2021-03-10 02:03:14 -05:00
nemaara
fb1ed14b0a DiD: fix drunk jaime 2021-03-10 01:58:37 -05:00
nemaara
f0df337865 DiD: give Mal Keshar better movement 2021-03-10 01:56:49 -05:00
Iris Morelle
c40232d504 font: Fix double resource leak in font::pango_text
The impacted code path is only executed as part of the implementation of
the characters_per_line constraint.

According to the Pango documentation, PangoFontMetrics should be
released using pango_font_metrics_unref(), and PangoFont should be
released using *something* not specified. Existing code, and the
documentation for pango_fontset_get_font(), suggests the answer for the
latter is g_object_unref().
2021-03-09 01:55:16 -03:00
krazyfencer
7ed2a7abf6
Fixed single player campaign number of players marker (#5591)
Modified the default values for a campaign's min_player and max_players in the game creation engine to be min=1, max=1
2021-03-08 10:41:18 -06:00
Pentarctagon
1b6802f7c4
Fix copy/paste typo. 2021-03-08 10:36:09 -06:00
Iris Morelle
64e68ca0b2 campaignd: Add server id to server id request
[server_info] id= defines a free-form string that can be used to
identify the server instance independently from the campaignd version
used for it.

Meant for PR #5588, which requires an unchanging identification for
campaignd instances in lieu of game_config::wesnoth_version.
2021-03-08 12:03:50 -03:00
Pentarctagon
cb5f45cae6
Remove left over paramiko usage from dockerfiles. 2021-03-07 16:49:22 -06:00
mattsc
b56a44ed66 ExpAI recruiting: prevent potential divide-by-zero 2021-03-07 14:46:04 -08:00
Iris Morelle
703e7e3664 campaignd: Add log-related FIFO commands
This adds 'log <severity> <comma-domain-list>' to change the log level
for one or more log domains without restarting the server, 'log precise
on/off' for changing the timestamp precision setting, and 'timings
on/off' for changing the request servicing timing reports setting.
2021-03-07 16:26:11 -03:00
mattsc
373559b6bf Protect Unit Micro AI test scenario: fix deprecated WML 2021-03-06 16:45:57 -08:00
Celtic Minstrel
37fde7aaee
Allow hex references to hold auxiliary user values 2021-03-06 18:44:29 -05:00
mattsc
51e4b56a1e ai_helper.lua: fix a typo 2021-03-06 15:35:43 -08:00
mattsc
cadb233d6c Update some deprecated Lua uses 2021-03-06 15:08:54 -08:00
Celtic Minstrel
a2d7a26365
Fix several Lua issues, mostly unintentional globals (#5587) 2021-03-06 17:01:53 -05:00
Pentarctagon
3da6ce096b
Disable Windows github actions caching.
It already didn't work anyway, but now it seems to be actively causing problems by randomly failing due to lack of disk space. Though how it can only sometimes run out of disk space despite trying to cache the same thing every time, and when the runner instance is supposed to always have the same amount of disk space available, is anyone's guess.
2021-03-06 13:26:57 -06:00
mattsc
44e279cb2f Lua location_set: fix a variable name 2021-03-06 10:53:02 -08:00
mattsc
200f5dd913 Lua AI: do not add deprecated-syntax fetchers for new aspects 2021-03-06 10:05:14 -08:00
mattsc
d9e8f69718 Lua AIs: fix some incorrectly used variables
Fixes #5586
2021-03-06 09:53:53 -08:00
mattsc
cab4446580 Lua AI helper functions: remove trailing spaces 2021-03-06 09:53:27 -08:00
Celtic Minstrel
8562676615 This seems to fix the SIGILL on MacOS 2021-03-06 11:01:31 -05:00
Celtic Minstrel
9346c3c6b6 Oops, that wasn't supposed to be committed 2021-03-06 10:15:09 -05:00
Celtic Minstrel
a96fd147d1 Fix a crash if the cache gets corrupted 2021-03-06 10:07:52 -05:00
Nils Kneuper
9c85dd2de3 updated Chinese (Traditional) translation 2021-03-06 12:56:47 +01:00
Celtic Minstrel
9fb200e57a
Fix the schema 2021-03-05 22:17:41 -05:00
Celtic Minstrel
a12de1f90f Fix several races using the Markov name generator instead of the new CFG generator 2021-03-05 09:29:11 -05:00
Celtic Minstrel
93398ae3a4
Fix another syntax error 2021-03-04 23:43:24 -05:00
Celtic Minstrel
86c3c30c46
Fix a syntax error 2021-03-04 23:33:33 -05:00
Celtic Minstrel
3a7eef0310 Merge pull request #4580 from wesnoth/lua_gamemap
Refactor the game map to permit exposing it to Lua
2021-03-04 14:00:43 -05:00
mattsc
28ea6e82c6 Multipack Wolves MAI: fix error when a wolf is surrounded 2021-03-03 17:41:41 -08:00
mattsc
ea4657c6d4 Goto Micro AI: add remove_movement option
By default, the MAI removes movement points from units even when they cannot find a hex to move to.  When this option is set to 'no' (default is 'yes'), this step is skipped, so that other candidate actions can take over.

This implements feature request #5580
2021-03-03 12:49:35 -08:00
mattsc
7e8cedaea8
Merge pull request #5573 from mattsc/ca_retreat_injured
AI: Improve behavior of the retreat_injured CA
2021-03-03 08:22:21 -08:00
mattsc
043ee7a80b Protect Unit Micro AI: ensure units are on AI side
In general, the units specified in the MAI setup should be on the AI side.  However, that might change during a scenario, for example when there is an event that switches units to other sides.
2021-03-03 08:14:46 -08:00
Steve Cotton
0035b776d7
Handle empty children in patch_movetype (#5582)
In movetype::write, the children might not be created if that child has an
empty config; there might be no child at all for movetypes such as "none". The
movetype "none" is a real movetype defined in units.cfg for units that
shouldn't be able to move.

The original_cfg local variable was only used once anyway, removing it and the
comment made the code clearer.

This wasn't caught in the 1.15 testing, but with 1.14 it resulted in a
"mandatory WML child missing" warning.
2021-03-03 02:57:01 -05:00