Commit graph

2410 commits

Author SHA1 Message Date
Gunter Labes
dcbecefe9e
Improve script to update pathfinding unit tests 2023-07-18 19:41:42 +02:00
Pentarctagon
96a78bd55b move to utils 2023-07-17 11:21:10 -05:00
dependabot[bot]
094a2eb16a
Bump tough-cookie from 4.0.0 to 4.1.3 in /utils/wesnoth-map-diff
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-09 21:52:13 +00:00
loonycyborg
fa14ed06a9
make_mingw_build: remove compiled .rc files from working copy dir
they were created there via symlink which confused subsequent builds
leading to issue #7441
2023-06-23 17:19:52 +03:00
Gunter Labes
1fb83c3c7a
Fix setting default TERM value in bash 2023-06-10 01:31:54 +02:00
Gothyoba
4165f99b43
Delete utils/change_textdomain (#7688)
Not sure if this is used anywhere... might break something

Added by Octalot: it was a typo fix, but during the review Soliton and I
decided it was better to just delete it. Reasoning:

* Still expects configure.ac and Makefile.am
* Only knows part of what to do for .lua files
* Could have the entire overwrite function replaced by sed's --in-place option
* Probably easier to just `git grep olddomain` than to update the script
2023-06-03 13:24:42 +02:00
Gunter Labes
370aa403ae
Export TERM so tput actually sees it 2023-06-01 15:48:00 +02:00
Gunter Labes
c013fea7ef
Make non-matching globs expand to nothing
Fixup for 2548e3b.
2023-05-31 20:23:11 +02:00
Gunter Labes
2548e3b680
Avoid word splitting and pathname expansion (ab)use 2023-05-31 19:01:48 +02:00
Gunter Labes
667af05a19
Separate wesnoth independent checks out into their own job 2023-05-31 15:57:40 +02:00
Celtic Minstrel
3ba31d532f Add new schemas to validate fonts.cfg and language.cfg 2023-05-02 21:04:41 -04:00
Celtic Minstrel
b223dcbbdd Minor fix to schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
69ba3e0273 Make schema validation script validate Lua dialogs in gui/ subdirectories 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3cfe0c338d Minor improvement to the schema validation script 2023-05-02 21:04:41 -04:00
Pentarctagon
c1a18e489b Fix comments. 2023-04-21 12:59:53 -05:00
Pentarctagon
a22da2291b
Store side leader information in the database
Fixes #7267
Add new query for getting leader data.
2023-04-21 13:58:17 +02:00
Gunter Labes
031b4a70e4
Avoid descending into modules dir 2023-04-21 00:15:11 +02:00
Pentarctagon
8e6df8cd1f Fix incorrect query for selecting new clients by download source.
The old query was:
* Selecting data from 2 months ago instead of 1 month ago for some reason, presumably left over from when I was testing the query out for different time periods.
* Counting non-new players who used a new download source as new players.
2023-04-14 22:32:48 -05:00
Eric Gallager
bad664f7e0
Try to fix map diff failure when terrain doesn't have an image associated with it 2023-04-13 10:41:38 +02:00
Elvish_Hunter
e58589e4ce woptipng: ignore thread niceness on Windows
Fixes #7457.
2023-03-17 23:30:39 +01:00
Pentarctagon
9315079389 Add curl-based functionality to download files from a URL.
This is a complement to #7416 where it replaces opening the replay's download URL in a browser with directly downloading it into the player's save folder.
2023-03-15 14:49:16 -05:00
Pentarctagon
3f279ba87b Missed updating the comments a while ago apparently. 2023-03-03 14:31:33 -06:00
Pentarctagon
50afb6ead9 column typo. 2023-02-21 13:51:57 -06:00
Steve Cotton
49ebbb9709 Make fix_whitespace complain about mixing tabs and spaces
Ensures that files either use tabs for indentation or spaces for indentation,
but don't switch between the two within the same file.

This doesn't fix the whitespace, it's a simple check to flag it up
on the assumption that it's better to use an editor or code formatter
to clean up the file.

Elsewhere in the CI we use the luacheck tool - while that can detect
mixing tabs and spaces in a single line's indent, it doesn't check for
inconsistent indentation within a file.
2023-02-05 02:22:53 +01:00
Celtic Minstrel
cbbd34a79e
Add new attacks_used key to [attack] (#7351) 2023-02-04 19:55:04 +01:00
Pentarctagon
d1465a9eb9
Add basic achievements functionality. (#7237)
* Add basic achievements functionality.

This reads the mainline achievements.cfg and then all the achievements of each installed add-on.

This is intentionally handled separately from other WML loading so that:
a) All achievements and their status are able to be displayed on the main menu right after Wesnoth starts and regardless of which add-ons are active.
b) Add-ons can add additional achievements to other content, whether UMC or mainline. For example, a modification that adds more achievements for mainline campaigns.

Marking something as achieved is handled by the new [set_achieved] tag and whether an achievement has been completed can be checked via [has_achievement].

There is no attempt to prevent people from manually editing which achievements they've accomplished.

NOTE: These are *not* in any way related to Steam achievements!
2023-01-21 10:32:45 -06:00
Pentarctagon
ceb05f3d9f Enable logging to file by default. 2023-01-13 12:51:03 +01:00
Pentarctagon
3d7d5dbdbf
Add ability to allow secondary authors to upload an add-on. (#7268)
* Add ability to allow secondary authors to upload an add-on.

The secondary_authors attribute is a comma-delimited list of forum accounts that can also upload updates to an add-on. Secondary authors can't change the primary/secondary authors and can't delete the add-on.

The primary author can also make someone else the primary author by:
* Putting their username in the secondary_authors attribute
* Putting someone else's username in the author attribute
* Uploading the add-on while selecting themselves
This works since they are still (until the upload is done) the primary author in the database, so they are allowed to change the authors list, including in this case.
2023-01-11 10:21:55 -06:00
Pentarctagon
bc26194e5b Add era to faction query. 2023-01-09 09:05:44 -06:00
Pentarctagon
fbeae32002 Rename database column SOURCE to ADDON_ID.
Also rename VERSION to ADDON_VERSION.
2023-01-06 19:59:26 -06:00
Pentarctagon
18d1f235ca Noticed I changed the wrong column but forgot to save the file after... 2023-01-06 10:48:42 -06:00
Pentarctagon
859a56f4c2 Shrink max column length.
Required for the updated primary key - the max allowed primary key length is 3072 bytes which isn't enough when there are three VARCHAR(255) columns and each character uses 4 bytes. The max length of the data in these columns so far is also well under 100 characters.
2023-01-06 10:42:21 -06:00
Pentarctagon
e5023e40db Skip inserting rows that would cause a duplicate primary key error.
The cause is that somehow, during regular play, MP campaigns can end up with duplicate values in the [content] data for each [addon]. A very similar issue was fixed in 6c980d12dc, but there's apparently some other way to trigger it that I haven't been able to reproduce. Since the error itself is harmless, it'll just be avoided server-side to avoid the spurious errors in the server log file.
2023-01-06 10:22:04 -06:00
Celtic Minstrel
e482be048b Minor LuaDoc fix 2022-12-28 15:03:53 -05:00
loonycyborg
27cb68b769
Update msys2 base docker image 2022-11-05 19:32:52 +03:00
Pentarctagon
bd306a5aa9 Update flatpak runtime to freedesktop 22.08. 2022-09-03 11:53:56 -05:00
Pentarctagon
2db4add386 Fix column label name. 2022-09-03 02:22:29 -05:00
Pentarctagon
06b29d460d Add query for new users by download source. 2022-09-03 02:21:37 -05:00
Pentarctagon
135e16e853 Fixup previous renaming. 2022-09-02 22:37:02 -05:00
Pentarctagon
9d5266d624 Add query fetching count of users playing their first game. 2022-08-29 23:27:31 -05:00
macabeus
612cca3594 map-diff: throw error if the image is missing 2022-08-09 14:54:13 +02:00
macabeus
3128987810 map-diff: crop notes 2022-08-09 14:54:13 +02:00
macabeus
92bd69ae67 map-diff: add comment on the parser 2022-08-09 14:54:13 +02:00
macabeus
3e8ed56ffd small code review fixes 2022-08-09 14:54:13 +02:00
macabeus
ed4f648cb0 map-diff: add axis and changes notes 2022-08-09 14:54:13 +02:00
macabeus
643b2fec37 map-diff: change focus color to pink 2022-08-09 14:54:13 +02:00
macabeus
77a7b1fa2f map-diff: move get tile logic to images module 2022-08-09 14:54:13 +02:00
macabeus
3bb7f887b6 map-diff: fix paint tile when there is no only-base version 2022-08-09 14:54:13 +02:00
macabeus
2d00b7ebd4 map-diff: fix when reading attributes with comments 2022-08-09 14:54:13 +02:00
Pentarctagon
6e357ea8b3 Enable LTO for steam-linux builds. 2022-08-03 17:19:44 -05:00