Commit graph

944 commits

Author SHA1 Message Date
Pentarctagon
0001eee8d1 pot-update and regenerate doc files 2023-04-22 22:30:38 -05:00
Pentarctagon
fc7ec5bec5 pot-update and regenerate doc files 2023-04-15 20:01:53 -05:00
gfgtdf
f8bd32eb15 Deploy and refactor config::optional_child
Previously the config class had an operator bool and
it was a common pattern to use if(const config& = cfg.child(..)).
While this pattern was nice to use. It has severe drawbacks, in
particular it was unclear whether a function that took a config&
parameter allowed "invalid" configs, while most functions
did not, there were some that did. Furtheremore it lead to a few
buggy codes that were unconvered by this change (Not fixed though!),
in particular codes that tested local config objects that were
not references to being invalid, which could never be the case.
This commits replaces those with just `true` in order to not
change behaviour.

Some obvious cases were also removed including for example
things like `assert(config());` There is ony case in the ai code
that i'm not 100% sure of where one implementation of a virtual
function checked for an invalid config and another one that didn't.

With this, all code that check for a config child to be
present now uses config::optional_child which returns an object
that behaves similar to optional<(const) config&>, so it throws
on invalid dereferencing. But it also has operator[string] for
convinience, in particular to make is similary
easy to use the the previous `if (config& = .. child())`.
Also it has a tool DEBUG_CONFIG which tests whether all
optional_config values are checked before they are derefereneced.

Another method manditory_child was
added that throws when the key is not found, which replaces all
occurances of child() that did not check whether the result was
valid. This was neccecary (this= adding a new method instead of
renaming .child) to keep track of converted changes, and be sure
no occurances of child() were accidentally changed to the
throwing version.

We might want to rename one of mandatory_child or optional_child
to just child later. Not sure which one yet. I think it's better
to keep it in the current state (no config::child() ) for a while
though, so that people that currently used child() in their open
prs or other work get an error and not wrongly rely on the previous
behviour of config::child.

The interface of vconfig was not changed in this commit.
2023-04-03 00:39:12 +02:00
Pentarctagon
81330fc785 pot-update and regenerate doc files 2023-03-18 21:39:38 -05:00
Pentarctagon
42c4d22065 pot-update and regenerate doc files 2023-02-19 22:08:56 -06:00
Pentarctagon
292f77a456 pot-update and regenerate doc files 2023-01-14 18:24:11 -06:00
Pentarctagon
ceb05f3d9f Enable logging to file by default. 2023-01-13 12:51:03 +01:00
Pentarctagon
f45bd210d9 pot-update and regenerate doc files 2022-12-17 19:11:50 -06:00
Pentarctagon
0118664f0f pot-update and regenerate doc files 2022-11-19 23:38:25 -06:00
Pentarctagon
910eedeb61 pot-update and regenerate doc files 2022-09-18 23:15:06 -05:00
Pentarctagon
4d76d9a2e3 pot-update and regenerate doc files 2022-08-20 19:55:18 -05:00
Pentarctagon
a380f9e489 Document id in wesnothd config and adjust some wording. 2022-08-16 15:35:09 -05:00
Pentarctagon
76a6bed609 Add additional tables used by wesnothd. 2022-08-16 15:06:34 -05:00
Pentarctagon
db948c00ac Update missed copyright notices. 2022-08-07 16:13:40 -05:00
Pentarctagon
d1833b5cf7 Adds the --log-to-file command line option.
This sets up writing both the cerr and cout streams to a log file, as well as pulls the log rotation logic out of log_windows.*pp into the general logger.

Note that this is meant for usage on macOS and Linux, not Windows. log_windows.*pp has additional functionality in it, as well as a fair bit related to the --wconsole option.
2022-07-24 09:22:50 -05:00
Pentarctagon
765681335a
pot-update and regenerate doc files 2022-07-19 19:26:27 -05:00
Pentarctagon
44e38ae552
pot-update and regenerate doc files. 2022-06-19 09:07:12 -05:00
loonycyborg
4c7bdcb18b
pot-update and regenerate doc files 2022-05-15 17:29:35 +03:00
Pentarctagon
9bfd432abe Update image pages for webp extension. 2022-04-30 14:23:32 -05:00
loonycyborg
d10a784486
pot-update and regenerate doc files 2022-04-17 03:29:07 +03:00
loonycyborg
400f5af475
pot-update and regenerate doc files 2022-03-20 06:52:10 +03:00
Steve Cotton
01a738d241 Doxygen: fix mainpage links with Doxygen 1.9.1
The extra indentation on these lines caused Doxygen in my local builds
to treat them as a block of preformatted text, and to escape all the HTML.

Locally I'm building with Debian Unstable, which has Doxygen 1.9.1. The
bug isn't present in the CI built docs on https://devdocs.wesnoth.org/
which were built with Doxygen 1.8.13.
2022-02-26 08:11:35 +01:00
loonycyborg
c0c5cd69ac
pot-update and regenerate doc files 2022-02-20 13:52:16 +03:00
Pentarctagon
1f6bf4c203 Upload artifacts that could be used for releases.
Also don't upload things anymore that aren't being used.
2021-11-18 12:32:17 -06:00
Pentarctagon
867965742a Add --simple-version command line option.
This option automaticaly implies --nobanner as well as displays nothing else but the version.
2021-11-18 12:32:17 -06:00
Severin Glöckner
ed6e014c2d German translation: forwardport localized images 2021-10-18 18:39:24 +02:00
Pentarctagon
04bc431e04
Adds some additional text regarding wesnothd's [redirect] and mysql support.
Fixes #1210
2021-08-12 01:03:12 -05:00
loonycyborg
4ffba0b5d1
place deny_unregistered_login config option in alphabetical position 2021-08-11 15:45:30 +03:00
loonycyborg
969219d744
Move tls config params to proper place 2021-08-11 15:41:41 +03:00
loonycyborg
3409d6ccd5
Add TLS config file options to wesnothd man page 2021-08-11 15:33:25 +03:00
loonycyborg
d2b5779fdd
pot-update and regenerate doc files 2021-06-23 10:42:41 +03:00
loonycyborg
fecfe19480
pot-update and regenerate doc files 2021-06-20 14:57:41 +03:00
Iris Morelle
4ee5e41a2e Add Libera.Chat's webchat URLs to documentation
Closes #5797.
2021-05-28 00:22:45 -04:00
Iris Morelle
e147af8db1 pot and documentation update
CC #5797
2021-05-22 22:22:47 -04:00
Iris Morelle
affb15fbac freenode suffered a horrible accident, we're moving to Libera.Chat
The problem is that right now Libera.Chat does not have a web chat
interface, and no guarantee as to what its URLs are gonna be like
; although staff have said they're probably gonna stick to the same stack
as before so we might end up with very similar looking URLs.

For the time being, we have to get rid of the webchat URLs. They will be
missed a bit. Maybe.

Before anybody asks, yes, I am aware of the po comments in German
translation catalogues including a freenode IRC protocol URL. If I do
anything about it now, somebody will helpfully revert my changes during
a message catalogue merge (it happened some time ago). So, not touching
those until release time.

Also nobody cares about Travis anymore. It's dead cruft, just leave it
alone. (What on earth is that massive base64 string anyway?)

CC #5797
2021-05-21 05:20:44 -04:00
Iris Morelle
ada3e068c9 holy outdated link batman
[ci skip]
2021-05-21 05:07:09 -04:00
Iris Morelle
605de10a48 doc/man: Copyright update 2021-05-21 04:57:36 -04:00
Pentarctagon
7b92aa3a8b
Add :fps file creation to the help+man page. 2021-05-17 10:51:37 -05:00
Iris Morelle
98b4c9c73d pot and documentation update 2021-05-15 22:07:59 -04:00
Iris Morelle
cd7a7a0972 pot and documentation update 2021-04-17 22:24:51 -04:00
Iris Morelle
eee53c32e9 pot and documentation update 2021-03-20 22:05:48 -03:00
Celtic Minstrel
7b7b904c99 Add --nobanner command-line argument 2021-03-13 20:49:26 -05:00
Iris Morelle
e720a437b0 pot and documentation update 2021-03-12 20:22:02 -03:00
Iris Morelle
b0e017f7f0 pot and documentation update 2021-02-20 18:47:30 -03:00
Celtic Minstrel
d2734973ed Add a command-line option that makes deprecated Lua stuff evaporate 2021-02-16 20:40:18 -05:00
Steve Cotton
4a43d00522 Show a two-color tennis ball orb for the disengaged state (#5155)
As the disengaged state is part-way between the "partial" and "moved" states,
the orb has parts in each color. On the minimap these units are shown in the
partial color (which is also the color that would be used before this change).

This will match the mounted Quenoth units' "disengage" skill, when they
can still move but can't attack. It should also trigger for some UMC abilities
that get extra moves after a character attacks.

During testing, I found that TSG allows some of the bandits to attack on the
first turn of the bandit branch. There's no gameplay change there, but the orbs
make it much clearer that some units can still attack.

I think there are already too many preferences for orbs, so reused the existing
settings for the colors. A new "show disengaged orb" preference is added, which
when disabled shows the old partial orb instead.

Update the orb and ellipse sections of doc/manual/.

Notes about how I created the new orb image:

* create a color range to_ellipse_red with rgb=FF0000,FF0000,000000,FF0000
* wesnoth --render-image 'misc/orb.png~RC(magenta>to_ellipse_red)' images/misc/orb-ellipse-red.png
* open the orb.png and orb-ellipse-red.png images as layers in Gimp, add a layer mask to both of them
* use the layer mask to get each pixel from exactly one of the layers
2021-02-13 18:28:33 +01:00
Andrey Bienkowski
4b0a4e4227 Delete the list of hotkeys from the manual 2021-02-03 19:13:58 -06:00
loonycyborg
3d81892b95 pot-update and regenerate doc files 2021-01-16 17:22:09 +03:00
Pentarctagon
30362084cf Fix all Doxygen warnings. 2020-12-31 23:59:28 -06:00
Iris Morelle
c45e90ebb6 pot and documentation update 2020-12-18 22:29:40 -03:00