Commit graph

2438 commits

Author SHA1 Message Date
Pentarctagon
e9fd0833e8 Clear out old travis stuff. 2022-05-03 20:36:00 -05:00
Pentarctagon
d865cd6aba Use more limited set of image directories when converting to webp. 2022-04-30 14:23:32 -05:00
Pentarctagon
473a0c21f9 A couple script fixups. 2022-04-30 14:23:32 -05:00
dependabot[bot]
80590d1242 Bump minimist from 1.2.5 to 1.2.6 in /utils/wesnoth-map-diff
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 17:47:29 -05:00
macabeus
d94ea84940 wesnoth-map-diff: add more detail on readme 2022-04-27 17:40:52 -05:00
macabeus
bc387de7e9 Add wesnoth-map-diff 2022-04-27 17:40:52 -05:00
Pentarctagon
af445f905b Update docker images to Ubuntu 22.04. 2022-04-21 20:30:34 -05:00
Pentarctagon
0a7ef1edf1
Add SQL to list unique users per day per source. 2022-04-15 10:27:36 -05:00
Pentarctagon
4cae3beea0
Add SQL to list unique users per day. 2022-04-15 09:45:16 -05:00
Celtic Minstrel
a76aa9bddc
Add wesnoth.interface.add_floating_label as a replacement for wesnoth.print (#5837)
This returns a label handle which allows you to remove, reposition, or replace the label later.

In addition to all the features of wesnoth.print, you can now specify where the label appears onscreen, as well as a fadeout time separate from the duration.

You can also anchor the text to an edge or corner instead of centering in on the screen,
specify the maximum width it can occupy as an absolute width or a percentage,
and specify a background colour and transparency.

It includes a demo scenario that demonstrates many of the capabilities of the API.
To play the demo scenario, run with -toverlay_text_demo or select it from the in-game test list.
2022-04-10 13:00:29 -04:00
Pentarctagon
25e763f29b Add script to mass convert images to webp. 2022-04-03 14:56:39 -05:00
Gunter Labes
4af8cea2e1
Fix parameter handling and remove futile exit call 2022-03-24 12:32:12 +01:00
Gunter Labes
5b3e121798
Fix parameter handling and quoting
Add timestamps to some log messages and custom settings for newer server versions.
2022-03-24 12:28:33 +01:00
Gunter Labes
845f5e5ef3
Update autorevision filename
The file was renamed in 05f9f002.
2022-03-24 11:54:27 +01:00
loonycyborg
489e7faa29 Add compatibility symlink for previous dockerfiles 2022-03-22 21:06:07 +03:00
loonycyborg
1e56959008 dockerbuilds: provide our own implementation of msys2 image base for cross-compiling
Unlike rwgrim/msys2-cross this Dockerfile doesn't require manual setup
as it downloads msys2 itself. Though it uses archlinux as image base
instead of debian in order to reuse archlinux's own pacman.
2022-03-22 21:06:07 +03:00
Pentarctagon
f44acd68c2 Add build support for webp images. 2022-03-12 13:47:46 -06:00
Pentarctagon
5155a74f4f Make lua a submodule.
No changes required to the lua source anymore.
2022-03-09 15:01:37 -06:00
Celtic Minstrel
e1300e29b0
Lua API: Add inline documentation for pretty much everything and convert existing docs (#6483)
The new format is EmmyLua-based and can be used with (at least) Visual Studio Code.
2022-02-17 13:43:31 -05:00
loonycyborg
c6f9a96a09
Update flatpak build dockerfile 2022-02-09 18:28:38 +03:00
Steve Cotton
1ad78a0442 Fix the po stats script to recognise "es_419"
The failure mode caused it to overwrite the es_ES stats
with the es_419 ones. Skipping the CI step, as this script
is only run by the pot-update targets.

[ci_skip]

(cherry picked from commit ec7bd83721)
2022-01-17 21:51:02 +01:00
Jonathan-Kelly
6acb7ec7bd
Winds of Fate (Drake campaign): add to mainline (#5831) 2022-01-16 04:06:12 -05:00
Pentarctagon
cda9c0406a
Update steamrt image. 2021-12-19 19:01:20 -06:00
Pentarctagon
254716e41e Expand lua whitespace check. 2021-11-28 14:26:02 -06:00
Gunter Labes
aa9e51bb1b
Add a script to collect candidate commits
The candidate commits are needed to to figure out project manager prospects
and eligible voters for a wesnoth project manager election according to the
constitution.

Run from a wesnoth checkout to generate commit logs per candidate.
2021-11-28 19:36:24 +01:00
Iris Morelle
d886914287
Merge changes from update_server2 into update_server 2021-11-28 05:15:03 -03:00
Iris Morelle
6644f2e081
Update update_server to match production 2021-11-28 05:13:44 -03:00
Pentarctagon
232cb02dfd
Typo fix. 2021-11-22 21:57:51 -06:00
Pentarctagon
18db5fab1c
Add luacheck to docker image. 2021-11-22 18:10:18 -06: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
loonycyborg
8cdfcae202 Made get_dlls.py get dlls for wesnothd too 2021-10-26 17:20:39 +03:00
Iris Morelle
8b4c50d46c
pofix: Update for the current 1.16 announcement errata
[ci skip]
2021-10-23 00:31:39 -03:00
loonycyborg
33ae3e9b53
docker: Compile own openssl for steamrt builds
Steam's scout image provides way too old openssl library version which doesn't
doesn't properly handle recent expiry of one of root Let's Encrypt
certs.
2021-10-16 18:59:39 +03:00
loonycyborg
5bcf5068b4
Update steamrt docker builds 2021-10-15 03:45:44 +03:00
Pentarctagon
9070953903 Install certs so CI can download scons over https. 2021-10-05 11:32:22 -05:00
loonycyborg
ca90694141
Add script to upload windows version of wesnoth onto Itch.io taking data from existing installer 2021-09-26 21:16:32 +03:00
Pentarctagon
a6c61385f6
Use enum in copyright update script. 2021-07-31 12:55:31 -05:00
Pentarctagon
144d7667f8
Add a script to automatically update the copyright notice in source files. 2021-07-29 11:43:50 -05:00
Iris Morelle
99d70b57e1
pofix: 1.14 announcement rules for 1.14.17
[ci skip]
2021-06-22 15:53:55 -04:00
Celtic Minstrel
f539deea1b Remove the wesnoth-test textdomain 2021-06-19 12:10:02 -05:00
Celtic Minstrel
0c42cdc038
Enable translation mark validation by the schema (#5800)
- The t_string type is now a schema built-in type and no longer attempts a regex match.
- You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match).
- Error messages involving keys with very large values ( > 128 characters) will now truncate the value.
- To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define.

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined as a union of t_string and some other type.
2021-06-14 23:59:52 -04:00
Steve Cotton
e7e3ae76d8 Refactor the woptipng script
If a tool made the image bigger, the debug message was the same as if the tool
had made the image's pixel change. Clarify that into two separate messages.

As each verify_images() call checks that the file became smaller, the removed
print statement would never be reached.
2021-05-12 16:04:32 +02:00
Steve Cotton
13bc062975 Remove the old PNG optimisation script
A Python version was added in b3fe980d70, the
main reason for removing the old one is that it's inconsistent to have two
tools where one does almost (but not quite) the same as the other.

Both versions check that the old and new images look the same. However, if any
tool changed the pixels' values then old script would discard the changes from
the other tools too. The new script checks the image after each tool is run, so
that the optimisations from the other tools can still be kept.

The indexed2rgb.sh script had a call to utils/wesnoth-optipng. It's deleted
instead of updated because both wesnoth-optipng itself (since 17c242a9f) and
the new woptipng both do what indexed2rgb.sh did (they all run ImageMagick with
option "png:color-type=6").
2021-05-07 12:01:59 +02:00
Pentarctagon
9dde4d5f6d
sed doesn't work quite the same on macOS. 2021-05-02 17:09:10 -05:00
Pentarctagon
73c4e19ea2
Make whitespace fixing a script. 2021-05-02 16:40:40 -05:00
Pentarctagon
ed92ba75fe Add version to connection_history. 2021-04-22 14:56:16 -05:00
Pentarctagon
14107b3ae6 Use the database to store and retrieve login history for the searchlog command.
This allows the history to be persisted across restarts, whereas right now it's lost.
2021-04-16 12:42:35 -05:00
Steve Cotton
2e2f551199 git-subtree like tool for exporting campaigns
As with git-subtree, it creates reproducible SHA1 ids for the new branch, the
history of An Orcish Incursion will appear as:

* master branch (pre-removal) 2637115bd92334444f1e03d9387266a92ae478da
* master branch (removal) 3d4a4b06 and 8deac9bb
* 1.14 branch 6b5ccb5fd12e7bb4795b25d1aa10d6f0c88a7490

Wesnoth's po/<textdomain> folder is copied into the subtree as "translations".
If there already was a "translations" in the subtree, it's renamed to
"umc_translations_dir".

The campaign will still need a few fixups for paths in _main.cfg, and
the scenarios' map_data or map_file attributes. The map_file paths
were made more portable in a5a1fec2, but this was after AOI's removal.

Many thanks to Lord Knightmare for porting AOI to 1.15 without this script,
which provided a reference to check the script against. LK's 1.0.0 matches
this script's output from the 1.14 branch, including the fix in b9f93cf that
was applied to 1.14 after the removal in master, and with the rank (but not the
"Rookie") from cc01ccae.
2021-03-25 18:30:18 +01:00
Iris Morelle
59baba0eb3 pofix: 1.14 announcement rules for 1.14.16
[ci skip]
2021-03-22 19:01:28 -03:00
Iris Morelle
1c40a0271e ci: Remove dependencies on SDL_ttf and FriBidi 2021-03-13 13:51:47 -03:00