Commit Graph

25382 Commits

Author SHA1 Message Date
phosit a56ffcfd25 Update appdata for next RC
(cherry picked from commit 45c3a03a2e)
Signed-off-by: phosit <phosit@autistici.org>
v0.28.0-rc4
2026-02-04 20:16:52 +01:00
real_tabasco_sauce 72e0ace313 German balance emergency changes
-Seeresses "Soldier" class removed as they are support units.
-Seeresses given correct vision value.
-Seeresses are unaffected by healer discount.
-germans no longer access archery spread tech since they have no archers.

(cherry picked from commit 87ed9c8092)
Signed-off-by: phosit <phosit@autistici.org>
2026-02-04 20:16:52 +01:00
Atrik 7033b81ce6 Default hotkeys changes
Reassign 'Toggle mouse grab' to F3 to avoid conflicts with gameplay hotkeys

Unassign 'Show status bars' often toggled by mistake by new players and confused for a selection bug

Assign 'Bird eye view' to Shift+Tab

(cherry picked from commit 426693ebef)
Signed-off-by: phosit <phosit@autistici.org>
2026-02-04 20:16:52 +01:00
phosit 30b741f8ba Update appdata for next RC
(cherry picked from commit 72591b7608)
Signed-off-by: phosit <phosit@autistici.org>
v0.28.0-rc3
2026-01-29 21:56:19 +01:00
Ralph Sennhauser 2da2c3394f Cleanly fail autostart for invalid map type
As for any invalid argument reject them and cleanly exit with failure
status.

Fixes: #7687
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 958e6de9d3)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:19 +01:00
Ralph Sennhauser f578a5b34d Readd JS API function Engine.Exit()
Requested in #8244 for scripting purposes and automated testing. Extend
the original design by adding a means to pass an exit status. This also
comes in handy in case one wants to cleanly error out from JS on parsing
errors of command line arguments as reported in #7967.

Fixes: #8244
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 0d60bdfd2e)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:19 +01:00
Vantha 8fee4dbb76 Temporary workaround for font baseline issue
Quick temporary fix for #8505 for the release of R28.

(cherry picked from commit 2483e7172b)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:19 +01:00
Vantha baa18fd57d Temporary workaround for icon misalignment
Quick temporary fix for #8194 for the release of R28.

(cherry picked from commit 7fd788af0f)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:19 +01:00
Atrik 231750edf1 Fix errors if promoted units change attack range
While in combat, if units are promoted and the promotion results
in a change in their attack range, this could trigger some errors
as 'this.template[type]' had a chance to be undefined when performing
a 'RepeatRangeCheck'.

Fixes #8670

(cherry picked from commit 68e625ab7a)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:18 +01:00
Ralph Sennhauser 0d1cdc0eaa Workaround renamed property in gamereport
The gendered citizen feature changed stat counter names in
3592814aa8 which are submitted to echelon
for rated games with the game report, the change in name for the property
means it no longer matches the database column name effectively breaking
rated games.

Translate the property name on the fly.

Fixes: #8687
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 0691e7f0ff)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:18 +01:00
phosit 63d4513ebf Serialize canPlay property in Petra
This was forgotten in 7b1d4426aa.

Fixes: #8674
(cherry picked from commit a6357322e9)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-22 20:43:57 +01:00
Dunedan a1cb3055d9 Fix string extraction of new game settings
5741f77c6e and b5256ce014 added new translatable strings for game
settings, but missed adding them to
binaries/data/mods/public/l10n/messages.json to get them properly
extracted into the PO-templates for translation. This commit fixes that.

(cherry picked from commit f4c52e49a7)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-15 18:06:48 +01:00
Dunedan 7fd034a2c0 Fix translatable strings in XML files
Some translatable strings in XML files have leading and trailing line
breaks and tabs. As these characters are significant in text in XML
files, they don't belong there.

Refs: #8649
(cherry picked from commit 8f8d1195c2)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-14 20:59:47 +01:00
phosit 0f21853bd8 Update appdata for next RC
(cherry picked from commit b77ee3c5dc)
Signed-off-by: phosit <phosit@autistici.org>
v0.28.0-rc2
2026-01-05 21:09:03 +01:00
phosit b7fe462045 Revert "Add myself to the community credits (for packaging work)"
This reverts commit 7f0486e18e.
2026-01-01 17:33:45 +01:00
phosit bf0034f694 Close register-page before opening login-page
The `onTick` of the register-page was still running when connecting to
the lobby. This lead to an error when the `connect` message was
received.
With this commit returning from the login-page will always return to the
entrance-page. Previously it returned to the register-page when it was
opened by through that page.

(cherry picked from commit 0b83e24065)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Olivier Tilloy b228b611de Add myself to the community credits (for packaging work)
(cherry picked from commit 7f0486e18e)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Olivier Tilloy 72b56d9fe5 Spidermonkey build: do not unpack unneeded test files
This change reduces the disk space requirement by 50%, from 1.1 GB down to 564 MB.
It is relevant when building 0AD in resource-constrained environments (e.g. in CI).

(cherry picked from commit 8bd0d0b84f)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Itms fb12d00c70 Build the Actor Editor during the nightly build
This is a regression of a fix in 7e481b73cd,
lost during the git migration. Refs #1819

(cherry picked from commit d1319179f8)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Vantha 1690efeb72 Complete the per-player pop cap implementation
The 'PopulationLimit' attribute of each player seems to have been
without effect for a long time, but this patch fixes it.

Fixes #7850

(cherry picked from commit 9b8ff77265)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Vantha 5c8cf9a470 Add fallback values for pop cap and pop cap type
Make InitGame.js responsible for providing proper (defined) values.

Refs #7850
Fixes #7695

(cherry picked from commit 3a73dffc1c)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:46 +01:00
Vantha d9ae2f8503 Remove inconsistent override in CDropdown.h
It was added in 670f1e5d42 and, while not illegal, was inconsistent with the
rest of the header file, which caused compiler warnings.
As a quick solution the override keyword is simply removed again.
In the long run, it would be good to still modernise the style of all files
in that directory (at once).

(cherry picked from commit 2e450f0f52)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
trompetin17 b71cd96d12 Fix exceeding input boundaries in console
After 734386ce9f the new font system calculate height and cap height,
previously was having some magic number. Now we are using cap height
divide 2 to give a more nice space.

Remove an extra pixel in the buffer and improves background color for
better reading and eye care.

This also support the change console font option added in d549cbeeaa

Fixes: #8351
(cherry picked from commit 8e820a988e)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
Vladislav Belov d93722a023 Fixes ProfilerViewer when drawing empty cells
Currently CalculateStringSize can't handle empty string (see #8630).
As a simple fix for RC just avoid drawing empty texts.

Refs: #8630
(cherry picked from commit df9c6f510c)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
Itms 7d2647d59a Fix NSIS auto-uninstall
The NSIS script incorrectly passes the default installation dir as
argument for the auto-uninstaller of previous installs.

This is supposed to avoid moving the uninstaller to a temp file, but it
is unclear why that was done, as this leaves the uninstaller behind.

More importantly, now that we have changed the default installation
directory, the auto-uninstall tries to remove the previous install from
the new location, which does nothing and leaves behind several GB on the
disk.

(cherry picked from commit 771bf0ba08)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
Vladislav Belov 1dff943455 Fixes TerrainTextureManager after refactoring
In fb98f5059a the manager was refactored
and the order of deinitialization was incorrectly changed.

(cherry picked from commit cea77c497c)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
real_tabasco_sauce ce7a180e73 update scenario map to account for changed template name for clubman
(cherry picked from commit 621b4f96cc)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
real_tabasco_sauce ca1ad508a4 mixed improvements to germans
-Make clubmen champion macemen and remove buiding ability to ensure they are not mistaken for CS units.
-Decrease obstruction size of houses (clunky to place in staff match)
-Encampents only allowed in own/neutral territory
-'fear' icon used for Lugius vision aura instead of movement speed.
- Make covered wagons unable to research house techs and train civilians.

(cherry picked from commit ec19e5d663)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
Vladislav Belov 6d531e0303 Fixes uninitialized GPUSkinning in Atlas
Currently CRenderingOptions are initialized only once on the application
start. It means changed m_GPUSkinning wasn't reset on the switch to Atlas.

Fixes #8596

(cherry picked from commit f43e98da09)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
phosit e6e5d61b22 Allow swapped in pages to close themselves
This wasn't possible because init functions are called inside each
other and the outer one overwrites the result of the inner one.
Now the outer result doesn't overwrite the inner result but stores it to
the pointed to location.

(cherry picked from commit e62eb96092)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
Vantha 7386a5d514 Improve Engine.GetTextSize deprecation message
(cherry picked from commit 4d08446285)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-23 20:18:16 +01:00
Vantha 4140858066 Fix warnings on the charts tab of summary screen
Engine.GetTextWidth has been deprecated since e845da025a

Idea:
If you look at a dropdown as just a text field (its header) that can
change caption like any other, then getPreferredHeaderTextSize is the
equivalent to getPreferredTextSize (present on buttons and text fields).

Fixes #8493

(cherry picked from commit 670f1e5d42)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-23 20:18:16 +01:00
Vantha cc56bafc66 Fix oversight in 83f4d8789b
(cherry picked from commit fbb6052c30)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-23 20:18:16 +01:00
phosit 10408b46c2 Propagate error from autostart
The JavaScript error wasn't propagated leading to an infinite loop.

Fixes: #7967
(cherry picked from commit 14a5ccee52)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-23 20:18:16 +01:00
Itms e2764dcee1 Do not use Jenkins custom SVN client on Windows
It is extremely prone to timeouts and failures in this environment.

(cherry picked from commit ac36758b21)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-14 10:37:17 +01:00
phosit 5c333770ee Increase home island size on River Archipelago
With some settings mines weren't able to be placed.
Refs: #8579

(cherry picked from commit c02764e17a)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-14 10:37:17 +01:00
real_tabasco_sauce 3cba40b5c8 buff new carthage unique mercenary slinger with increased crush damage and greater accuracy.
(cherry picked from commit e96d981319)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-06 20:46:21 +01:00
cube002 2b85f5abf6 Fix carthage stone bonus
Add a civ restriction to make the bonus only apply to Carthage.

(cherry picked from commit 8d38ecda26)
(cherry picked from commit a03b01c935)
(cherry picked from commit f30271e955)
(cherry picked from commit 9c836d39e6)
(cherry picked from commit 91baeeb94e)
(cherry picked from commit cb3fecfce9)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-06 20:37:01 +01:00
phosit a6403f27d5 Update appdata for the next RC
(cherry picked from commit 759406dd77)
Signed-off-by: phosit <phosit@autistici.org>
v0.28.0-rc1
2025-12-03 18:15:06 +01:00
Ralph Sennhauser d90f4400ed Fix autostart-host
Commit b90280855f added support for
multiplayer saved games changing the signature of StartNetworkHost
without updating all callers.

Fixes: #7684
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 31a262ff7e)
Signed-off-by: phosit <phosit@autistici.org>
2025-12-03 18:15:05 +01:00
Dunedan 7575a04305 Add Vietnamese as supported language
As 0 A.D. supports full unicode now and Vietnamese language coverage is
at a good level, let's include Vietnamese as supported language.

(cherry picked from commit 0086f005d4)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-30 14:24:26 +01:00
Dunedan 3e8f296c72 Re-add Catalan as supported language
While Catalan got removed for Alpha 27 because of low coverage, its
coverage is now good enough again to get re-added as supported language.

(cherry picked from commit ed1bd1d75b)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-30 14:24:26 +01:00
real_tabasco_sauce 1087e020d1 Add capture animations for citizens
Fixes #8557

(cherry picked from commit a32a28a5e3)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-30 14:24:26 +01:00
Vantha e961288e89 Correct some settings of the Germans' sandbox map
(cherry picked from commit 36e93989d4)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-30 14:24:26 +01:00
phosit 7ec2d3f0e0 Throw error when simulation script can't be loaded
When a script in "simulation/helpers/" contained an error. Files in
"simulation/components" aren't loaded. The return value of
`LoadDefaultScripts` indicated an error but was ignored. The simulation
still tried to start.

Now instead of returning a ignoreable error code the error is thrown. In
the common path the error is implicitly rethrown to the JS-function
which tried to start the game.

fixes: #8133
(cherry picked from commit 9a526bcae1)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-24 20:20:17 +01:00
phosit 97eca26d58 Don't pass the AppHooks as pointer
It's not permitted to pass a nullptr to the `app_hooks_update`. So a
reference should be used.

CppCheck says one shouldn't take pointer to a temporary.

(cherry picked from commit 977bf5c0d1)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-24 20:20:17 +01:00
phosit 2e4caf5d19 Use designatet initializers for AppHooks
CppCheck wasn't able to handle `{0}`. C++20 allows to use designated
initializers.

(cherry picked from commit b17c2fb80f)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-24 20:20:17 +01:00
Vantha 490434948d Remove some invalid entries from messages.json
'StatusName', 'ApplierTooltip' and 'ReceiverTooltip' are attributes of status
effects, which are defined in JSON files (and already extracted
correctly from there), not XMLs.

(cherry picked from commit 44984699f1)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-19 20:28:48 +01:00
Vantha 6a55830f1f Add context and comment attributes where useful
Add context and comment attributes to all translated XML elements in the
simulation that can specify any string -- unlike "Rank", which has to be
"Basic", "Advanced", or "Elite".
Most of them aren't used right now, but they can be in the
future and by mods, without touching the schemas again.

Fixes #8540

(cherry picked from commit 7032293207)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-19 20:28:48 +01:00
Ralph Sennhauser bf314cbb4c Add Atlas support to Appimage
Include the shared library libAtlasUI.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 5609492731)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-19 20:28:48 +01:00