1
0
forked from 0ad/0ad
Commit Graph

24160 Commits

Author SHA1 Message Date
6fb0f0a338 Enable clang build and no-pch build on Linux 2024-09-18 00:38:28 +02:00
be0dde6eb5 Update binaries/data/mods/public/simulation/templates/structures/kush/wonder.xml
What this "mighty Kushite monument" is based on, perchance?
2024-09-17 02:17:43 +02:00
e66f8beee5 Update binaries/data/mods/public/simulation/templates/structures/brit/wonder.xml
Corrected closing, thanks @Stan
2024-09-16 13:44:10 +02:00
1b60248426 Merge branch 'main' into main 2024-09-13 15:50:52 +02:00
e56ebb3f46
Enable ruff naming rules 2024-09-13 11:04:07 +02:00
cd8b4266a4
Fix class name in xmlvalidator 2024-09-13 11:04:06 +02:00
8c7cc7373d
Fix variable names in SPIRV compile.py 2024-09-13 11:04:06 +02:00
0d3e3fbc29
Rename simple-example.py 2024-09-13 11:04:05 +02:00
661328ab15
Fix variable naming for map compatibility file 2024-09-13 11:04:05 +02:00
616f2e134b
Fix variable names in checkrefs.py 2024-09-13 11:04:04 +02:00
a71c75d800 Redundant acute accenting it seems, even in Doric Greek
Also, should this technology be applicable specifically to the Spartan champion hoplite, even if training them at a captured Syssition?
2024-09-13 01:14:22 +02:00
a2799b4d93 Adding SpecificName parameter 2024-09-13 00:07:13 +02:00
f9c0b67a2d Adding SpecificName, could mean "village" too 2024-09-13 00:02:56 +02:00
0f04a39942 Minor correction, Middle to Old Persian 2024-09-12 23:57:39 +02:00
763475e058 Revised and expanding SpecificNames
Corrections after noticing Koine shift being out of time-frame.
2024-09-12 23:48:54 +02:00
a12d77d8a5 Adding GenericName to particular Wonder 2024-09-12 16:15:24 +02:00
d9ba397d9a Update binaries/data/mods/public/simulation/templates/structures/han/wonder.xml
"Bìyōng" could be omitted since it's first attested in 3rd century CE
2024-09-12 16:10:27 +02:00
caad5739e1 Adding GenericName for this particular wonder
This or "Palace of Aigai"?
2024-09-12 16:04:23 +02:00
6a8aaf9ac2 Update binaries/data/mods/public/simulation/data/technologies/phase_city_generic.json 2024-09-12 15:42:51 +02:00
0512683fba Update binaries/data/mods/public/simulation/data/technologies/phase_town_generic.json 2024-09-12 15:41:30 +02:00
2e9107d0b4 Update binaries/data/mods/public/simulation/data/technologies/phase_village.json 2024-09-12 15:39:33 +02:00
cbdda0396a Update binaries/data/mods/public/simulation/data/technologies/phase_town_generic.json 2024-09-12 15:33:17 +02:00
c35096135e Update binaries/data/mods/public/simulation/data/technologies/agoge.json 2024-09-12 15:15:43 +02:00
ff33257f73 Update binaries/data/mods/public/simulation/data/technologies/art_of_war.json 2024-09-12 15:12:46 +02:00
facdcb22df Update binaries/data/mods/public/simulation/data/technologies/phase_village.json
Enrichment of Specific Names for some civilizations
2024-09-12 15:06:49 +02:00
ea4b580527
Simplify JSON parsing 2024-09-11 17:52:10 +02:00
0e84957979
Simplify XML parsing by iterating only once
This simplifies the XML parsing, by iterating over the DOM tree only
once. Curiously this doesn't result in significant performance gains.

As the keywords are now found in the order they appear in the
document instead of the order they are mentioned in messages.json, the
order of a few strings in the PO-templates changes caused by the changes
in this commit.
2024-09-11 17:52:10 +02:00
eeb502c115
Simplify code by making use of early returns 2024-09-11 17:52:10 +02:00
f4c40b740c
Remove unnecessary extractors package
This simplifies the code structure, by removing the extractors package,
which only contained a single module, the extractors module. This module
is now located in the i18n_helper package.
2024-09-11 17:52:09 +02:00
20ab96a0f4
Make some attribute names PEP 8 compatible 2024-09-11 17:52:09 +02:00
ac48b72550
Move imports to the top of the file 2024-09-11 17:52:09 +02:00
4d3be23bac
Remove broken and unused ini-file extractor
The ini-file extractor has been broken since the transition to Python 3
and nobody noticed, because it isn't used nowadays. Therefore, let's
remove it.
2024-09-11 17:52:09 +02:00
f856a7663f
Add a cache for mask patterns
This increases the performance of updating the PO-templates
significantly by adding a cache for the building of mask patterns. In
non-representative tests it increased the performance of updating the
PO-templates by >25%.
2024-09-11 17:52:09 +02:00
7575dfe3c8
Remove unnecessary use of codecs module 2024-09-11 17:52:08 +02:00
e86fd58524
Simplify and speed up finding of messages.json 2024-09-11 17:51:58 +02:00
04aa01a39b
Speed up fetching of translations from Transifex
This increases the number of workers to use when fetching translations
from Transifex from 5 (the default) to 12. While the Transifex CLI
allows up to 20 workers, using more workers results in frequent request
throttling, which hurts performance more than it improves it.
2024-09-10 07:34:48 +02:00
ccb1d747f0
Use PEP 8 naming conventions for templatesanalyzer 2024-09-10 07:29:33 +02:00
5bea0a0f97 Add the large address aware flag to the nightly build. 2024-09-09 11:46:31 +03:00
26994b156b Split source package downloads
Instead of fetching the whole svn repo containing all current
dependencies into source, fetch them individually into subdirectories of
source.

Adds a wrapper script to each package to place the build output where
it's currently expected.

This allows adding and removing dependencies as well as changing origin
of those packages on a case by case basis.

It's recommended to run "git clean -dxf libraries/source" to free up
extra space and remove untracked files no longer covered by changes in
.gitignore.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-09-08 22:17:08 +02:00
2b5ecd02a7 build-source-libs.sh: drop Perl dependency
Instead of using Perl to get the absolute path due to readlink -f
implementations differing behaviour use realpath. Since the inclusion
into coreutils this should be a valid alternative.

Also check for [[:space:]] instead of only \s as if that one is an issue
the others are as well.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-09-08 17:51:16 +02:00
bf82871ca8 build-source-libs.sh: remove --source-libs-dir
During the migration it apparently looked possibly useful at some point,
in the end it remained unused.

Further the clean-source-libs.sh doesn't handle the case where
build-source-libs.sh was invoked with --source-libs-dir.

Finally, when switching to support individual package this becomes very
complex to support.

For all the above reason remove the option.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-09-08 17:51:16 +02:00
33134af6c3 Stop using the source-libs repository on Windows
All prebuilt files for Windows libraries are now stored in the
windows-libs SVN repository for the foreseeable future.
2024-09-08 17:51:15 +02:00
966d859050 Add yamllint to pre-commit
Adding a hook to pre-commit to enforce a consistent style and remove the
hook check-yaml which only checks if a document is parsable and so
become redundant.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-09-08 13:08:11 +02:00
87f667732c Format yaml files
The schema at https://json.schemastore.org/gitea-issue-forms.json
doesn't like empty titles, so just remove the key to the same effect as
a zero length string.

Add document start markers where they are missing.

Use a max line length of 100 as discussed with Dunedan.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2024-09-08 13:08:11 +02:00
10e7513bba
Revert changes in check_diff.py in batches
This is to avoid running into errors caused by the limited length of
command line input when reverting lots of files.
2024-09-08 11:39:08 +02:00
fce48ca4be Include names of unit actions before descriptions in tooltips
Respecting the format of the tooltips of the other panels, include
a short name in bold on the first line of the tooltip to facilitate
a quick understanding of the action, and below, in normal font, a
description with relevant details.

The description of the patrol action is rewritten to make it more
understandable.

Fixes #7016
2024-09-08 10:25:59 +02:00
34a209b680
Update glad to 2.0.7
Release: https://github.com/Dav1dde/glad/releases/tag/v2.0.7
2024-09-08 09:31:14 +02:00
0f87124b98
Some glad improvements
- Silence a MSVC warning in vulkan.cpp, refs #6987
- Document the patching of gl.h for macOS, from r26094
- Fix shellcheck warnings in the generation script
2024-09-08 09:26:46 +02:00
35d998694f
Move glad from source-libs to source/third_party
Improve definition of the gladwrapper project in premake.
2024-09-08 09:18:45 +02:00
09f55a1afc Revising the loading screen tips and adding new ones 2024-09-06 14:53:35 +02:00