77396 Commits

Author SHA1 Message Date
Elvish_Hunter
30d9697ab5 wmlindent run on macros/deprecated-utils.cfg 2020-11-19 12:53:29 +01:00
Elvish_Hunter
4cf440e729 wmlscope: remove 'endarg' strings from HTML output 2020-11-19 11:49:39 +01:00
Elvish_Hunter
b39ca0e548 wmlscope: report optional macro arguments in HTML output 2020-11-19 11:46:55 +01:00
Elvish_Hunter
8c3ca97287 wmlscope: also report macros without documentation in HTML output 2020-11-19 11:44:52 +01:00
Elvish_Hunter
044901fd01 Fixed a deprecation comment to match a regex used in wmlscope 2020-11-19 11:37:06 +01:00
Elvish_Hunter
d51d389801 wmlscope: report about deprecated macros in HTML reference 2020-11-19 11:35:04 +01:00
Steve Cotton
296046d211 SotA: Don't concatenate strings in the recruit dialog
Instead of trying to concatenate translatable strings, just make a single full
string to be shown in the recruitment dialog. This came from trying to update
the i18n hints, and realising my suggest of making the swimmers "Merfolk" in
f6dc83375 was causing problems when they could also be nagas.

These strings are stored in a variable at the start of the campaign (in
ZOMBIE_INIT), so won't appear when loading an existing save game. This is why
the Lua script keeps some support for the old names (although they're not going
to be translated in that case).
2020-11-19 07:47:58 +01:00
nemaara
013bea067f DiD S6: fix orc reinforcement side 2020-11-18 17:41:16 -05:00
nemaara
03ea33ff02 DiD S5: increase AI aggression 2020-11-18 17:36:58 -05:00
nemaara
0c11cf40ea DiD S4: fix bad unit filter 2020-11-18 17:36:44 -05:00
Iris Morelle
74e838865c Update changelog 2020-11-18 18:17:59 -03:00
Artem Khrapov
4ca02ba8a4
Fixed the emptiness check for the addon's meta 2020-11-18 23:46:33 +03:00
kabachuha
00df26e116 update changelog
[ci skip]
2020-11-18 21:20:34 +03:00
kabachuha
2a2a2e84e8 Moved the downgradable status tracking to the UI 2020-11-18 20:49:49 +03:00
Artem Khrapov
967504aba5
Allow downgrading of existing addons 2020-11-18 19:33:54 +03:00
Iris Morelle
1f2eb4b4b2 desktop: Fix multiple compiler warnings
* Uninitialized struct members
 * switch case fallthrough (intended)
2020-11-17 21:41:14 -03:00
Iris Morelle
cc087491f1 campaignd: Drop redundant includes 2020-11-17 20:07:18 -03:00
Iris Morelle
7d02fc884b campaignd: Don't bump download count when a delta is requested
This is a bit redundant but if you want a partial download then you are
most certainly updating something that already exists on your end, so
no, you don't get to bump the download count that way even you leave out
increase_downloads= somehow.
2020-11-17 19:54:29 -03:00
Iris Morelle
ca4ee0356c campaignd: More code clean-up 2020-11-17 19:53:27 -03:00
Iris Morelle
fbf472f1b4 campaignd: Implement client-specified update target in [request_campaign]
The previous implementation here didn't actually use the from/to version
bounds when building the delta pack sequence. So... let's fix that so
people aren't forced to receive a bogus delta that invariably contains
the changes from the earliest uploaded version to the latest.
2020-11-17 19:48:35 -03:00
Iris Morelle
352cbc32ec campaignd: Refactor [request_campaign]
This makes the code easier to follow, hopefully, and quite importantly
avoids an unnecessary copy while building the update pack sequence.

It does away with the size report for deltas in stderr because it's
inaccurate by design -- it's the sum of the individual packs' compressed
sizes rather than the size of the compressed result (which we cannot
determine in advance.)

While testing this I ran into an issue where apparently someone didn't
implement the from/to version logic for the update pack sequence, who
knew. Gotta fix that later I reckon.
2020-11-17 19:48:35 -03:00
Iris Morelle
2018990b62 campaignd: Some code clean-up 2020-11-17 19:48:35 -03:00
Lukas Jox
d30b3eccb8 update changelog 2020-11-17 14:56:26 -06:00
Lukas Jox
a8f057d5be SoF S4: prevent resource spawn on strange locations; fixes #5278 2020-11-17 14:56:26 -06:00
Lukas Jox
9f6cca84c4 Revert "SoF S4: prevent resource spawn on castles"
This reverts commit 7e00c45e665d9572eeaaa025c052594cf9dd05ed.
2020-11-17 14:56:26 -06:00
Lukas Jox
bff72310ad SoF S2p5: change event to follow player expectations 2020-11-17 14:56:26 -06:00
Steve Cotton
1cd0cc7d26 SotA: Fix Ardonna's zombie list after Rastabahn's scenarios
Fixes #5256, which was that `{SAVE_ZOMBIE_LIST rastabahn_zombies}` overwrote
the ardonna_zombies variable.

Move the MERGE_ZOMBIE_LIST code to be next to the LOAD and SAVE code, as any
change to one of these functions should probably be done to all of them.
2020-11-16 04:54:08 +01:00
Steve Cotton
99f27b7191 Make saved_game::expand_scenario() look correct, and add a const
This doesn't change the behavior - the changed line is in a conditional block
which tells us exactly which of scenario_id()'s code paths will happen, and it
will still end up using carryover_["next_scenario"]. The change is just making
it consistent with the way that other lines in expand_scenario() find out which
scenario id to use; it's preparing to load the next scenario, so it should use
that scenario's id to load any metadata, not the current scenario's id.

Also, scenario_id() should be const. This helps with refactoring out the
existence of a de-facto singleton instance of saved_game.
2020-11-16 04:52:24 +01:00
doofus-01
c4bb3c62b0
Update changelog.md 2020-11-14 21:05:49 -08:00
doofus-01
4a9b7e0c0e
Fauna Revisited (#5234)
* stoat - update sprites

* stoat claws attack anim

* stoat portrait

* stoat bite attack animation

* units - add bear portrait

* units - falcon attack anims

* units - icemonax gets a portrait

* units - icemonax attack anim

* units - Greater Icemonax portrait (variation)

* units - rename icemonax sprite files

* units - greater icemonax tail attack anim
2020-11-14 21:03:20 -08:00
Iris Morelle
163490fcf6 campaignd: Add campaignd/blacklist to auto-info logdomains 2020-11-14 23:08:06 -03:00
Iris Morelle
30228991af campaignd: Add --timings option to report request servicing timings
Yes, this requires making campaignd::server::request public so I don't
lose my mind writing friend declarations.
2020-11-14 19:29:46 -03:00
Iris Morelle
420df89624 Add class for reporting elapsed time in object scopes 2020-11-14 19:29:46 -03:00
Iris Morelle
01f8407f65 campaignd: Fix report format
We want to display the previous version value, not the full config with
the version info.
2020-11-14 16:40:02 -03:00
Nils Kneuper
41bb4b1031 updated Portuguese (Brazil) translation 2020-11-14 12:45:14 +01:00
Charles Dang
1a2ed5df44
Merge pull request #5248 from Hejnewar/Allow-users-to-set-chat-lines-to-0
Allow users to set chat lines to 0.
2020-11-14 17:28:06 +11:00
Steve Cotton
d5008fb18c Show an error message when --preprocess-defines is ignored
While making it work would be better, this is a minimial change to at least
get the developer back on track instead of wasting time trying to work out
why putting this in a campaign's _main.cfg file doesn't work:

    #ifdef ENABLE_CAMPAIGN_TESTS
        {./test/}
    #endif
2020-11-13 23:27:38 +01:00
newfrenchy83
ede2cc0098 fix campaignd in codeblock project 2020-11-13 17:04:50 +01:00
Lukas Jox
d254a042eb TSG S8b and epilogue: fix minor inconsistencies 2020-11-11 16:02:53 -06:00
Steve Cotton
0381a4a090 orb_status_helper: add returns after already-unreachable asserts
I'm sure that these asserts are already unreachable, as the caller will be
passing in a valid member of the scoped enum; the asserts are just helpers
if adding another value to the enum.  However, omitting the return statements
can trigger a compiler warning, so add them.
2020-11-10 21:54:02 +01:00
newfrenchy83
7fedeb5790 Update campaignd.cbp 2020-11-10 13:57:48 -06:00
Martin Hrubý (hrubymar10)
8fcddfa6d6
Fix Xcode project 2020-11-10 19:50:41 +01:00
newfrenchy83
118dcc0f09
update code block projectfiles (#5271)
* Update campaignd.cbp

* add commandline_arg to codeblock projectfiles

* Update tests.cbp

* Update wesnoth.cbp
2020-11-10 09:04:56 -06:00
Charles Dang
2ffa21bf04 Made celmin happy
[ci skip]
2020-11-10 17:08:14 +11:00
Charles Dang
bbf22443c5 Updated VS projectfiles
[ci skip]
2020-11-10 12:43:40 +11:00
Iris Morelle
c3c0c7edd4 campaignd: Phasing out "campaign" terminology 2020-11-09 21:55:03 -03:00
Iris Morelle
6f9c98ffbb campaignd: More consistent logging of request sources 2020-11-09 21:24:03 -03:00
Iris Morelle
16af3aba13 campaignd: Fail validation checks early in some cases
There's no need to check anything if we are in read-only mode.
Additionally, we want to get the auth and blocklist checks out of the
way early so we don't waste time on potentially complex archive scans.
2020-11-09 21:24:03 -03:00
Iris Morelle
45de0d1391 addon/client: Fix display of status code messages
Also use a more relevant lead for them.
2020-11-09 21:24:03 -03:00
Iris Morelle
632fe49e10 campaignd: Add server config, dir and port command line options
This changes startup behaviour slightly so that campaignd ensures that
the directory containing the config file exists before doing anything
else. Normally this wouldn't be noticeable since the default behaviour
continues to be to use ./server.cfg (pwd should exist, right?), but it's
important in the event that the user passes -c with a nonexistent path.

We do still create the server.cfg file later anyway, and it's still
possible that the directory containing it disappears in between only to
be forcefully created by ostream_file() -- but who cares, this is all
just meant to be an early reality check to avoid user mistakes.
2020-11-09 21:22:00 -03:00