Commit Graph

8902 Commits

Author SHA1 Message Date
Yair Morgenstern
ea64f941a6 Resolved #9340 - fixed 'enhance religion' crash 2023-05-08 18:02:11 +03:00
Yair Morgenstern
ade3af7729 4.6.9-patch2 2023-05-07 09:57:19 +03:00
Yair Morgenstern
7b5ed07805 Resolved #9333 - Improperly configured mod conditionals do not cause crash 2023-05-07 09:52:59 +03:00
Yair Morgenstern
32041d5b49 4.6.9-patch1 2023-05-07 09:43:25 +03:00
vermontbail
bd3081f276
Changes to landing page FIXED (#9337)
* Updated Building-Locally.md

While the underlying steps haven't changed, some of the options now have slightly different names in Android studio.

* Update index.md

* Revert "Updated Building-Locally.md"

This reverts commit e3772dad78.

* Revert "Revert "Updated Building-Locally.md""

This reverts commit e1f5960a2e.

* Update Building-Locally.md
2023-05-07 08:09:14 +03:00
Yair Morgenstern
5f92b88a08 4.6.9 2023-05-06 21:35:48 +03:00
Yair Morgenstern
cf4419912d 4.6.9 2023-05-06 21:25:13 +03:00
Yair Morgenstern
c895771b3a
Bump version and create initial changelog entry (#9334)
Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
2023-05-06 21:21:50 +03:00
letstalkaboutdune
52e8623f08
AbsoluteUnits - Hussar, Cossack, Panzer (#9331) 2023-05-06 21:13:33 +03:00
Crsi
299aa06d94
Close the friend selection popup in NewGameScreen by click outside or ESC/BACK key (#9329) 2023-05-06 21:13:19 +03:00
SomeTroglodyte
100f4ede64
Fix memory leak from repeatedly resetting the font (#9326)
* Fix memory leak from repeatedly resetting the font

* Reduce ruleset recompilation by MainMenuScreen background changes
2023-05-05 15:20:30 +03:00
SomeTroglodyte
940fa9a551
Slimming a locally built jar (#9321) 2023-05-04 14:21:00 +03:00
Yair Morgenstern
4b9c7171d3 Resolved #9242 - Hide buildings requiring multiple cities in one city challenge 2023-05-04 11:22:03 +03:00
Yair Morgenstern
fab32e8c8a Resolved #9304 - Added Policy icons and solved 'icons from Image' reflection :) 2023-05-04 11:07:54 +03:00
Yair Morgenstern
ec65b7e189 Resolved #9211 - Show Strategic resources you have by trade even if you have not researched tech for it yet 2023-05-04 10:49:40 +03:00
Yair Morgenstern
a370117301 Resolved #9036 - New Kremlin quote 2023-05-04 10:47:00 +03:00
Yair Morgenstern
13a530ba11 Resolved #9294 - solved "get vanilla ruleset" errors after downloading mods 2023-05-04 10:39:42 +03:00
Yair Morgenstern
f6f0c7a050 Resolve #9262 - scale down unit overlays on zoom in to allow selecting bombard target above city 2023-05-04 10:28:30 +03:00
SomeTroglodyte
a40e8c31b9
Limit saved window size to available desktop (#9052)
* Limit saved window size to available desktop

* Defense against corrupted settings file

* LimitDesktopWindowSize - revert unnecessary stuff

* LimitDesktopWindowSize - fix
2023-05-04 09:38:56 +03:00
SomeTroglodyte
b0876935f5
Show a preview of custom maps on new game screen (#9234)
* Show a preview of custom maps on new game screen

* Show a preview of custom maps on new game screen - step 2

* Show a preview of custom maps on new game screen V2
2023-05-04 09:31:43 +03:00
SomeTroglodyte
43b044740c
Allow closing a Popup by clicking outside its area (#9306)
* Allow closing a Popup by clicking outside its area

* Allow closing a Popup by clicking outside its area - upd1
2023-05-04 09:25:14 +03:00
Yair Morgenstern
817764ec38 Probably resolved #9320 - AI 'found religion' crash 2023-05-04 09:20:00 +03:00
Yair Morgenstern
044b67d709 4.6.8 2023-05-03 00:11:43 +03:00
Yair Morgenstern
0252416e23
Version rollout (#9313)
* Bump version and create initial changelog entry

* Update Ukrainian.properties (#9311)

* Update Polish.properties (#9309)

* Update Indonesian.properties (#9307)

Improve some translations

* Update French.properties (#9303)

* Update Catalan.properties (#9299)

* Update German.properties (#9297)

Fixed mistakes from the last pull request and made a few corrections.

Co-authored-by: Birk Birkner <birkner@bbirkner.de>

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Gualdimar <Gualdimar@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: kensvin <kensvin28@gmail.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Knirps1 <52383078+Knirps1@users.noreply.github.com>
Co-authored-by: Birk Birkner <birkner@bbirkner.de>
2023-05-03 00:06:53 +03:00
SomeTroglodyte
159ae86960
Reduce a few memory allocations (#9312) 2023-05-02 23:26:39 +03:00
letstalkaboutdune
fd67a3520e
AbsoluteUnits - Norwegian Ski Infantry, Mehal Sefari, Carolean, Foreign Legion (#9305) 2023-05-02 00:25:07 +03:00
dependabot[bot]
0fb32d8f3f
Bump gradle/gradle-build-action in /.github/workflows (#9302)
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2.3.3 to 2.4.2.
- [Release notes](https://github.com/gradle/gradle-build-action/releases)
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2.3.3...v2.4.2)

---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 19:01:29 +03:00
WhoIsJohannes
fadeaafc75
Various performance improvements (#9296)
* Move caches for passThrough and movementCost into the parent method.

* Reuse path calculated for reaching enemy city if still far away instead of recalculating it for the "landing tile".

* Cache getDistanceToTilesWithinTurn by removing tilesToIgnore from the call and doing that filtering later. Also simplify caller side with some transformations around differences for the first iteration and subsequent iterations.

* Check whether a player is spectator by comparing their civName directly with the Constant rather than going through the lazily initialized property of the nation. This is significantly faster (10x ?) and we're calling this method a lot (tens of millions of times).

Also check whether a tile is explored directly on the tile, not the other way round.

* Revert "Cache getDistanceToTilesWithinTurn by removing tilesToIgnore from the call and doing that filtering later. Also simplify caller side with some transformations around differences for the first iteration and subsequent iterations."

This reverts commit f75ce00d83.

* Simplify UnitMovement.getShortestPath
2023-05-01 07:35:41 +03:00
Yair Morgenstern
01a1e95ef3
Update README.md 2023-04-30 15:00:02 +03:00
Yair Morgenstern
e9fca65b3d 4.6.7 2023-04-26 22:29:09 +03:00
Yair Morgenstern
271e88ad03
Version rollout (#9292)
* Bump version and create initial changelog entry

* update Simplified_Chinese translation (#9289)

Co-authored-by: chr_56 <_>

* update Japanese.properties (#9286)

* Update Japanese.properties

* Update Japanese.properties

* Update Spanish.properties (#9285)

* Update Indonesian.properties (#9283)

* Update Brazilian_Portuguese.properties (#9277)

* Update Polish.properties (#9276)

* Update French.properties (#9274)

Small translation improvements:
- Remove a few past tenses which are unnecessary in French (in the context, past participle alone is enough, especially in notifications)
- More precise translation for "the defence of [cityName]", to refer to the unit garrisoned in the attacked city ("la défense" doesn't sound well)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: chr_56 <30681738+chr56@users.noreply.github.com>
Co-authored-by: namazulake <130637228+namazulake@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: t <73392607+tsaqibfs@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
2023-04-26 22:08:34 +03:00
WhoIsJohannes
b8bd1fc2c2
Performance improvements (#9271)
* Speed up WorkerAutomation.findTileToWork - apparently tileCanBeImproved is quite expensive

* Add cache for rankTileForCityWork in CityPopulationManager.autoAssignPopulation

* Optimize NextTurnAutomation.declareWar by moving expensive BFSs to the end and potentially short-circuiting evaluation if result won't be promising anyways.

* No need to throw if atLeast is negative.

* Revert changes to CityPopulationManager.kt

* Revert changes to CityPopulationManager.kt

* Speed up WorkerAutomation.findTileToWork - apparently tileCanBeImproved is quite expensive

* Add cache for rankTileForCityWork in CityPopulationManager.autoAssignPopulation

* Optimize NextTurnAutomation.declareWar by moving expensive BFSs to the end and potentially short-circuiting evaluation if result won't be promising anyways.

* No need to throw if atLeast is negative.

* Revert changes to CityPopulationManager.kt

* Revert changes to CityPopulationManager.kt
2023-04-26 18:47:07 +03:00
chr_56
03ffa84bd3
Allow to reveal explored resources from a city's demanding resources in CityOverviewTab (#9287)
* allow to locate explored resources from a city's demanding resources in `CityOverviewTab`

* better code of `updateCities` in `CityOverviewTab`
2023-04-26 15:43:13 +03:00
WhoIsJohannes
cccaa88456
Cache civ uniques while refreshing world map tiles. (#9284)
* Cache civ uniques while refreshing world map tiles.

This should have a pretty significant performance improvement of about 10% next rount time.

* Forgot to add stateForConditionals to cache key.

* Make cache keys depend on function

* Restrict LocalUniqueCache API to avoid using it the wrong way.

* Use default values instead of two methods
2023-04-26 10:17:58 +03:00
Yair Morgenstern
0b0a400f65 docs: Closer cropped icon for better viewing 2023-04-25 18:19:30 +03:00
Yair Morgenstern
c2ae308622 Custom icons for mkdocs 2023-04-25 18:10:15 +03:00
Yair Morgenstern
ac63a6453b Fix tests 2023-04-25 18:02:37 +03:00
Yair Morgenstern
cb626861df docs: better unique parameter documentation 2023-04-25 17:45:40 +03:00
Yair Morgenstern
079c237547 terrainFilter now accommodates nationFilter for owner 2023-04-25 17:45:40 +03:00
SomeTroglodyte
2b57bd44ab
Visual clue a load game from clipboard is underway (#9278) 2023-04-25 17:24:05 +03:00
SomeTroglodyte
a507da9a4a
Fix border case crash with lone AI winning on turn 0 (#9280) 2023-04-25 17:22:29 +03:00
Yair Morgenstern
e427d91850 Remove double icons from airsweep/nuke battle table 2023-04-25 17:20:35 +03:00
Yair Morgenstern
eecccd4542 Fade unit icon in overview if not idle 2023-04-25 17:18:07 +03:00
Chris T
bef8ee9327
Don't return 401 when auth is disabled (#9261) 2023-04-25 09:14:29 +03:00
SomeTroglodyte
dc223f8cab
Allow modders to use culture/faith conversion without providing the icons (#9275) 2023-04-25 09:05:05 +03:00
SomeTroglodyte
42dff5584e
"can be promoted" notification only when it's actually new (#9230)
* "can be promoted" notification only when it's actually new

* Reviews - sumOf instead of fold
2023-04-24 22:27:28 +03:00
SomeTroglodyte
dc5cc6d601
Fix wrapping for promotions in unit overview (#9239) 2023-04-24 22:11:39 +03:00
Yair Morgenstern
ea39fe4713 4.6.6 2023-04-24 17:42:13 +03:00
Yair Morgenstern
c7dde1bc41
Version rollout (#9273)
* Bump version and create initial changelog entry

* Completed German translation and fixed a few mistakes (#9266)

Co-authored-by: Birk Birkner <birkner@bbirkner.de>

* Update Polish.properties (#9264)

* Update Italian.properties (#9260)

* Update French.properties (#9258)

* Update Indonesian.properties (#9257)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Knirps1 <52383078+Knirps1@users.noreply.github.com>
Co-authored-by: Birk Birkner <birkner@bbirkner.de>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Newexae <96820363+Newexae@users.noreply.github.com>
Co-authored-by: kensvin <kensvin28@gmail.com>
2023-04-24 17:37:40 +03:00
Yair Morgenstern
c9067df642 Remove 'reset to Dropbox' button since it's deprecated 2023-04-24 17:33:28 +03:00