11446 Commits

Author SHA1 Message Date
yairm210
fb7062082b perf: Don't rebuild altases whenever possible, instead of creating and disposing all the time 2025-01-27 22:08:16 +02:00
yairm210
46fe257fc0 perf: Don't rebuild images (=reload and rebuild atlases) when loading game, if the set of mods has not changed 2025-01-27 19:45:29 +02:00
yairm210
d0dea2d9d7 4.15.5-patch1 4.15.5-patch1 2025-01-27 07:56:20 +00:00
Yair Morgenstern
56ab32ea1b
Fix memory leak per turn - dispose of individual pixmaps immediately, dispose of atlases after new screen is available (#12865) 2025-01-27 09:56:11 +02:00
itanasi
a7dca5c7e6
Add info about adding project (#12864) 2025-01-27 09:55:38 +02:00
yairm210
1e20fd109e 4.15.5 4.15.5 2025-01-26 11:48:07 +02:00
Yair Morgenstern
ec5dfd1e5f
Version rollout (#12861)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#12860)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Spanish.properties (#12856)

* Update German translation (#12855)

* Update French.properties (#12854)

* translate new lines and minor fix (#12852)

* Update Indonesian.properties (#12851)

* Update Italian.properties (#12850)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2025-01-26 11:43:17 +02:00
yairm210
fbbd8d6a18 perf(render): Ignore act() for minimap 2025-01-26 11:43:05 +02:00
sulai
477c6c5df5
UnitTable: show a summary when no unit is selected (#12832)
* Show a summary when no unit is selected. Allows to start cycling units any time. Refactor UnitTable to have separate Presenters for units, cities, spies and no selection.

* fix SummaryPresenter hiding close button

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-26 11:24:46 +02:00
sulai
0a6848506c
Fix sticky tooltips (#12859)
Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-26 11:24:29 +02:00
yairm210
45d85351b2 Prerender the "pillaged improvement" icon as well 2025-01-26 11:01:45 +02:00
yairm210
0b19463883 perf(render): Converted improvement images to prerendered images 2025-01-26 10:47:27 +02:00
yairm210
9ab656b55f perf(render): Separate improvement icons to different layer 2025-01-25 18:54:42 +02:00
yairm210
9f8c93d2ab perf(render): Create dynamic texture for resources so swaps are only done on resource layer when we need the number (strategic resources) 2025-01-24 11:48:28 +02:00
yairm210
31aaf3c61a chore: Genericify on-the-fly texture packing to be source agnostic 2025-01-24 10:53:43 +02:00
yairm210
6c2fd82c41 chore: Stat image setup separated to a distinct function - we don't need to keep it around! 2025-01-24 10:47:56 +02:00
yairm210
e4b3d2e6e9 perf(render): Separate resource icons into separate layer 2025-01-24 10:46:33 +02:00
yairm210
d34d2cb092 Correctly reset pixmap packer when loading a new ruleset 2025-01-23 17:48:45 +02:00
yairm210
6234171a55 perf(render): Yields rendered from a dynamically created texture 2025-01-23 17:45:29 +02:00
yairm210
af80570b25 perf(render): Separate yields to different tile layer 2025-01-23 17:36:50 +02:00
yairm210
50088a56f8 chore: Added debug passthrough functions to rendered elements 2025-01-23 15:02:45 +02:00
yairm210
7828aa9887 Resolved #12843 - Automation handles "Found City" uniques with limited uses correctly 2025-01-22 21:42:07 +02:00
yairm210
21bfe2c79c 4.15.4 4.15.4 2025-01-22 17:50:15 +02:00
Yair Morgenstern
4bedfd58bd
Version rollout (#12849)
* Bump version and create initial changelog entry

* feat: Brazilian_Portuguese.properties (#12848)

* Update Ukrainian translations (#12842)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Turkish.properties (#12841)

Updated version of Turkish.properties created in 21.01.2025

* Update Latin translation (#12840)

* Update German translation (#12839)

* Update Spanish.properties (#12836)

* Update French.properties (#12835)

* Update Catalan.properties (#12833)

* Update Indonesian.properties (#12830)

Translation and corrections.

* Update Italian.properties (#12829)

* Update Polish.properties (#12827)

* Update Croatian translation (#12826)

* translate new lines

* Minor fix

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Ahmet Hakan <ahmet.celikagi@sabanciuniv.edu>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: SHypoleac <michal.wolonciej@interia.pl>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
2025-01-22 17:46:47 +02:00
SeventhM
45347cc928
Add a field for global unit uniques (#12775)
* Add a field for global unit uniques

* Whoops

* docs

* Fix this check only ever being done once

* Revert

* Add ruleset uniques when adding rulesets together

* Add ruleset to unitTypes for tests in case it's relevant

* My suggested changes: Implement a separate rulesetMap for units, remove any additional checks to the type where unnecessary

* Remove unit type code, update ruleset info by setter rather than by lazy

* Type information is needed before we set the ruleset here

* So should unique information
2025-01-22 17:41:20 +02:00
General_E
19d0fbc050
Added an UniqueType to Found puppet city. (#12834)
* Settler settle best tile when not escort and dangerous Tiles instead of running away

Settler unit will now settle on best tile in dangerous Tiles without escort instead of running away.

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Now city states get mad when you steal their Lands

* new version

* change to getDiplomacyManagerOrMeet

* added text to template.properties and changed AlertPopup.kt

* Update template.properties

* with period at the end :b

* add flag now

* Made Option to declare war when a city state is bullied unavailable

* added option to change the Maximum Autosave turns stored

* remove print

* change letter

* should fix issue with building test

* update with changes

* Added UniqueType.FoundPuppetCity

with "Founds a new puppet city" in "uniques" of an unit in Units.json.
Making it so you can now settle a puppet city.
2025-01-22 17:40:05 +02:00
SeventhM
9fc2510fe0
Allow building improvements on terrains that only allow some improvements when it has multiple uniques (#12847)
* Allow building improvements on terrains that only allow some improvements when it has multiple uniques

* Whoops, accidentally disallowed all improvements
2025-01-22 17:39:02 +02:00
SeventhM
f5ec43b8f2
Add conditional for when you aren't in a golden age (#12844) 2025-01-22 17:38:51 +02:00
itanasi
32856f9956
Set Avoid Growth=false on capture (#12828) 2025-01-22 17:38:39 +02:00
itanasi
05d246cdbe
Changes (#12846) 2025-01-22 17:32:31 +02:00
yairm210
35b21d98c6 Greeting stats translated correctly in notifications 2025-01-22 14:29:15 +02:00
yairm210
2f79658758 Multiplayer screen correctly handles errors when downloading mods 2025-01-21 12:13:34 +02:00
yairm210
159f2e54d4 chore: Simplified validateInProgressConstructions 2025-01-19 21:44:07 +02:00
yairm210
678df502f9 chore: Simplified updateAllyForCityState 2025-01-19 13:07:46 +02:00
yairm210
350a0cb90a chore: Split CityStateFunctions.cityStateAttacked into subfunctions 2025-01-19 13:03:04 +02:00
yairm210
629081f310 Resolved #12823 - "Cannot attack" accepts "vs" conditionals 2025-01-18 19:54:26 +02:00
yairm210
263bb53277 4.15.3 4.15.3 2025-01-18 19:42:36 +02:00
Yair Morgenstern
c4a8c0cbb6
Version rollout (#12825)
* Bump version and create initial changelog entry

* Small update Dutch (#12821)

* Small Update Dutch.properties

* Update Dutch.properties

* Update Polish.properties (#12819)

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

* Update Russian.properties (#12818)

* Update Spanish.properties (#12815)

* Update Spanish.properties

* Update Spanish.properties

Modified based on metablaster's suggestions
https://discord.com/channels/586194543280390151/640249234238472282/1328773267913310330

* Update German translation (#12810)

* Update French.properties (#12804)

* Update Brazilian_Portuguese.properties (#12803)

* Update Croatian translation (#12797)

* translate new lines

* minor fix

* minor fix 2

* Update Italian.properties (#12796)

* Update Ukrainian translations (#12795)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update Indonesian.properties (#12793)

* Update Indonesian.properties

Translation and corrections.

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: dutchwolfgirl <110766475+dutchwolfgirl@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2025-01-18 19:31:14 +02:00
yairm210
5f58fe3eb8 Fixed unique buildings/improvements with zeroed stat not showing before vs after 2025-01-18 19:17:00 +02:00
EmperorPinguin
2574bfda74
Update AI spending gold on city states (#12805)
* Update UseGoldAutomation.kt

* Update NextTurnAutomation.kt
2025-01-18 18:54:56 +02:00
sulai
7e3827bc6e
Show "x units due" on Big Button, setting for cycling units (#12814)
* Show "x units due" on Big Button

* Add setting for cycling with Next unit button (default true)

* Fix template.properties

* Use the term 'idle' when cycling

* Improve code structure

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-18 18:54:43 +02:00
General_E
44fa9bde7d
Added option to change the Maximum Autosave turns stored (#12790)
* Settler settle best tile when not escort and dangerous Tiles instead of running away

Settler unit will now settle on best tile in dangerous Tiles without escort instead of running away.

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Now city states get mad when you steal their Lands

* new version

* change to getDiplomacyManagerOrMeet

* added text to template.properties and changed AlertPopup.kt

* Update template.properties

* with period at the end :b

* add flag now

* Made Option to declare war when a city state is bullied unavailable

* added option to change the Maximum Autosave turns stored

* remove print

* change letter

* should fix issue with building test

* update with changes
2025-01-18 18:53:33 +02:00
sulai
1792ff7315
Constructions table: avoid vertical movement of lower table (#12824)
* Constructions table: avoid vertical movement of lower table

* Make headerIcon private

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-18 18:53:12 +02:00
itanasi
4726cb3558
Add hotkey for Idle Unit cycle buttons (#12817)
* Add hotkey for Idle Unit cycle buttons

* Add hotkey tooltips

* Reassign and label
2025-01-18 18:51:12 +02:00
yairm210
6384661eb3 4.15.2-patch1 4.15.2-patch1 2025-01-13 07:03:06 +00:00
Yair Morgenstern
b6240efd77
Fix worker improvement crash (#12807) 2025-01-13 09:02:56 +02:00
yairm210
5a159ff5d8 Fix Detekt error 2025-01-12 17:04:04 +02:00
yairm210
92b2f73c51 Fix Detekt error 2025-01-12 16:46:26 +02:00
yairm210
d0ea4f7753 Tech picker screen performance - ~45% of render time decreased with texture swap minimization tricks 2025-01-12 16:45:02 +02:00
yairm210
6a7945e3cb Notification for city conversion when removing heresy 2025-01-12 10:27:58 +02:00