77214 Commits

Author SHA1 Message Date
Steve Cotton
934cae6093 Refactoring the orb-coloring code, adding new units/orb_status.hpp
Instead of creating lots of image::locators and calling a family of
similarly-named preferences functions, this refactor encapsulates that logic
and uses an enum.

The new orb_status files still need adding to the MacOS build.

An assert has been added to `unit_drawer`'s constructor. There are two callers
- the `display` class guards it with an explicit check before constructing
unit_drawer. The `game_display` class doesn't have an explicit check, but it's
clear that other code in that class assumes the teams are already valid (and
would crash if they weren't).
2020-10-17 14:11:10 +02:00
Charles Dang
6b21233c44 Split chat-related things out of lobby_info
Greatly simplifies code. Also addresses an issue raised in #3729. Autocompletion now looks at users in the current room.
2020-10-17 22:10:42 +11:00
Steve Cotton
15fb85f446 Add some section-headings to the changelog
Trying to reduce the merge-conflicts if PRs include their own
changelog updates.

[ci skip]
2020-10-17 06:57:17 +02:00
Pentarctagon
0cbf8ff7a8
Wesnoth 1.15.6+dev. 2020-10-16 23:41:32 -05:00
Pentarctagon
49a5899c4e
Wesnoth 1.15.6. 1.15.6 2020-10-16 23:40:02 -05:00
Iris Morelle
003f5c0897 pot and documentation update 2020-10-17 01:34:18 -03:00
Pentarctagon
5de7939384
Update steam runtime image. 2020-10-15 15:44:12 -05:00
Artem Khrapov
065623f85b
Changed the addons hash file extension to .hash.gz 2020-10-15 19:12:06 +03:00
Iris Morelle
0e74a3b0dc Update changelog
[ci skip]
2020-10-15 12:38:15 -03:00
Iris Morelle
93d5264eec Nobody knows how to sort things alphabetically anymore
[ci skip]
2020-10-15 11:54:05 -03:00
Iris Morelle
0512345c7f campaignd: Clean up trailing blanks
This is a pure formatting change, so we don't need to build this.

[ci skip]
2020-10-15 11:50:34 -03:00
Iris Morelle
4ec4756376 campaignd: Fix split log line 2020-10-15 11:24:56 -03:00
kabachuha
9b446b2eff Removed the initial '/' from updatepack and version filenames 2020-10-15 10:39:19 -03:00
kabachuha
aa6daed0de Removed the ref qualifier from the version map 2020-10-15 10:39:19 -03:00
kabachuha
f2ac72a13f Added a check for non-existent directories
Fixes the occasion when the client tries to get the size of a directory with missing parents.
2020-10-15 10:39:19 -03:00
kabachuha
38dc17c731 Split empty and not found requested version processing 2020-10-15 10:39:19 -03:00
Artem Khrapov
e131720271 Fixed wrong files being deleted by the client
It tried to delete files in the parent directory instead of the target one.
2020-10-15 10:39:19 -03:00
kabachuha
d09e54c18a Don't list unchanged directories in an updatepack/uploadpack
This reduces the file size and makes it easier to be debugged.
2020-10-15 10:39:19 -03:00
kabachuha
b0dfad8bef Hashlist comparison fix 2020-10-15 10:39:19 -03:00
kabachuha
bc0aab256c Prevent removelist from deleting a fileless dir if it contains subdirs
The presence of files in these subdirs is checked earlier by the program.
2020-10-15 10:39:19 -03:00
kabachuha
7f07f28862 Fixed wrong version selection by the server
Empty version string had been interpreted as the 'zeroth' version instead of the latest, so an additional check was implemented. Also, the 'upper_bound' pointed at the next element after the latest, so it had to be shifted back by one.
2020-10-15 10:39:19 -03:00
kabachuha
6df3f920da Remove the unnecessary function modifiers 2020-10-15 10:39:19 -03:00
kabachuha
6c055a96dc Remove the accomplished TODO tag 2020-10-15 10:39:19 -03:00
kabachuha
2c132a8949 Addon update uploading fixes
Fixed the server crash when data is not specified because the assignation of an invalid value to a config causes an exception. Also, added the missing removelist/addlist tags to update pack file writing and simplified some code.
2020-10-15 10:39:19 -03:00
kabachuha
74e2e3ecbf Incremental addon uploads (server side) 2020-10-15 10:39:19 -03:00
kabachuha
a0cca4ba54 Incremental addon uploads (client side) 2020-10-15 10:39:19 -03:00
kabachuha
c146034bd1 Added a request for addon hashes 2020-10-15 10:39:19 -03:00
kabachuha
74fda8e103 Make the addons server generate hashlists on upload 2020-10-15 10:39:19 -03:00
kabachuha
0f3af615db Improved the wording in server messages
Switched to a more assertive style and paraphrased the message about missing addon versions.
Suggested by @shikadiqueen, approved by @Vultraz.
2020-10-15 10:39:19 -03:00
kabachuha
715594a8d1 Added the update pack size check
If size of the pack sequence gets larger than the full pack, it's better to send the full pack instead.
2020-10-15 10:39:19 -03:00
kabachuha
7f2385b36f Shutdown the server in potential data loss situations, iteration cleanup
Changes suggested by @shikadiqueen.
2020-10-15 10:39:19 -03:00
kabachuha
e75b8623e3 Removed an unnecessary check 2020-10-15 10:39:19 -03:00
kabachuha
43817eccf0 New directories fix and a valid loop breaker 2020-10-15 10:39:19 -03:00
kabachuha
5a77701ebe Incremental addon updates (client side) 2020-10-15 10:39:19 -03:00
kabachuha
b0c33d358e Incremental addon updates (server side) 2020-10-15 10:39:19 -03:00
kabachuha
7a47bcffc6 Convert the format of legacy addons when loading 2020-10-15 10:39:19 -03:00
kabachuha
33fd51bd42 Made invalid config invalid, fixed prev. version insertion
That involves enabling an access to the invalid config variable in the config class.
2020-10-15 10:39:19 -03:00
kabachuha
3bc4fe9eca Fixed addon updatepack generation
Fixed some mistakes and runtime WML errors. Also tested the changes on my local server, the updatepack generation and naming worked as planned.
2020-10-15 10:39:19 -03:00
kabachuha
d1f8d8da26 The concept of update packs
Added the basic machinery of update packs creation and their lifespan management. Also, fixed the naming of private variables and made invalid_ config actually invalid.
Note: the thing is not finished yet!
2020-10-15 10:39:19 -03:00
kabachuha
2cbbafeae6 Renamed campaign to addon for convenience 2020-10-15 10:39:19 -03:00
kabachuha
eb04570430 Split addons meta from the server config
Redid campaignd's storage architecture so add-on metadata is stored separate from the server configuration (and not duplicated in the individual full packs).

The update packs has not been implemented yet.

Tested on my pet server.
2020-10-15 10:39:19 -03:00
Nils Kneuper
ab5244e906 updated Czech translation 2020-10-15 12:47:55 +02:00
Nils Kneuper
64aab80459 updated Portuguese (Brazil) translation 2020-10-15 12:45:19 +02:00
Pentarctagon
75ce7161ee
Only build on pushes to PRs or the master branch.
Currently a push to a branch on the main repository that also has a PR open results in two separate travis builds being run - one for the branch and one for the PR.
2020-10-15 01:27:51 -05:00
V N
74bd0dca54 Fix tip for Oasis healing 2020-10-15 05:44:07 +02:00
Celtic Minstrel
988bf973e9
Merge pull request #5198 from wesnoth/thread_safe_logging
Thread-safe logging

Closes #5209
2020-10-14 23:30:02 -04:00
Pentarctagon
5cab8f2780
Add boost version increment for wesnothd+database support builds. 2020-10-14 19:41:19 -05:00
Pentarctagon
467e4312b9 Add support for executing async queries.
Making the logging correctly handle multiple threads writing to the same stream at the same time will be handled separately later.
2020-10-14 19:38:49 -05:00
Steve Cotton
8b1c6cf59d Another go at refactoring distributor.cpp (builds and runs successfully)
This is part-way though a refactor, but I'm not committing myself to completing
it; publishing for the comments and discussion.

This solves PR #5198's compile errors about undefined references, but the
solution here is to expand the templates into the multiple hardcoded copies
block starting with `switch(events_.sdl_button_down_event)`.
2020-10-14 08:50:03 -04:00
Celtic Minstrel
a1f44d8f64 Implement thread-safety in the logging system
This chooses a method that minimizes the need to alter the way log messages are written.
Only a few places that did unusual things with the logger needed to be updated.
2020-10-14 08:49:52 -04:00