Commit Graph

11402 Commits

Author SHA1 Message Date
yairm210
0d19bf55e5 Resolved #12295 - crash on modded game with no capital city indicator 2024-10-16 00:32:51 +03:00
yairm210
e0f3c0acd4 AI: Improved automated worker tile selection (workable tile applies to current tile, separated to debuggable function)) 2024-10-16 00:26:46 +03:00
EmperorPinguin
086ba8c165
Don't auto-replace holy sites (#12296)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt

* AI changes for humans

* Fix puppet focus

* Update Automation.kt

* Puppet focus

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Stats.kt

* Update CityTurnManager.kt

* Remove specialist science modifier

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update CivilianUnitAutomation.kt

* Update ReligionAutomation.kt

* Worker prioritization

Workers are valuable in expand cities.

* Update ConstructionAutomation.kt

Food always important, it's rarely good to skip e.g. granary if we're on 6 pop.

* Update ConstructionAutomation.kt

Should achieve about the same with less lines of code.

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Policies.json

* Update Policies.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update Policies.json

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Rename Crop Yield to Growth

* Update worker usage

* Update UnitAutomation.kt

* Tutorials update

* Update Tutorials.json

* Fix spelling error

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* AI tech and policy choices

* Update Techs.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update UnitPromotions.json

* Update

* Update Policies.json

* Update Tutorials.json

* ReligionAutomation bugfix

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update AI city settling and science game

* Update ReligionAutomation.kt

* Maybe revert this now the belief picking has improved

* Update ReligionAutomation.kt

* Remove some if-statements

* Update Automation.kt

* Update Automation.kt

* Update ConsoleLauncher.kt

* Update

* Update Automation.kt

* Update TileImprovements.json
2024-10-15 21:24:21 +03:00
theofficialgman
f1f32f7296
update pi-apps shields query (#12298)
due to https://github.com/badges/shields/issues/10594
2024-10-15 21:00:25 +03:00
yairm210
afbc15db79 Solve ANRs due to resuming music player which is in an unplayable state 2024-10-15 14:54:02 +03:00
yairm210
d26d942f58 Allow mod search always - hack version (does not remove loader) 2024-10-14 17:11:39 +03:00
yairm210
f9d21d2767 Cache online mod list for fast load 2024-10-14 17:06:06 +03:00
yairm210
f5946bc08f translations: 'Enemy city has attacked' once again translatable 2024-10-14 12:40:42 +03:00
yairm210
755d66e085 Actually I think I had it right the first time - avoid building if all carriable units can already be carried now, NOT if carrier will have empty slots 2024-10-14 11:12:51 +03:00
yairm210
45fc67df29 4.13.16 2024-10-13 23:01:55 +03:00
Yair Morgenstern
b56c868c7c
Version rollout (#12285)
* Bump version and create initial changelog entry

* Update Latin translation (#12284)

* Merge a branch

* Update translation

* Fix translation

* Update translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update French.properties (#12281)

* Update Italian.properties (#12278)

* Update German translation (#12277)

* Update Brazilian_Portuguese.properties (#12275)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-10-13 22:58:18 +03:00
yairm210
e5b4793d58 AI: Better rules to not build unit-carrying units 2024-10-13 22:56:23 +03:00
yairm210
8d10ca881e Added "if [modFilter] is not enabled" conditional - https://github.com/yairm210/Civ-IV/pull/36 2024-10-13 22:46:59 +03:00
EmperorPinguin
899c5d48ea
Update Citizen Assignment and ConsoleLauncher.kt (#12267)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt

* AI changes for humans

* Fix puppet focus

* Update Automation.kt

* Puppet focus

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Stats.kt

* Update CityTurnManager.kt

* Remove specialist science modifier

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update CivilianUnitAutomation.kt

* Update ReligionAutomation.kt

* Worker prioritization

Workers are valuable in expand cities.

* Update ConstructionAutomation.kt

Food always important, it's rarely good to skip e.g. granary if we're on 6 pop.

* Update ConstructionAutomation.kt

Should achieve about the same with less lines of code.

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Policies.json

* Update Policies.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update Policies.json

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Rename Crop Yield to Growth

* Update worker usage

* Update UnitAutomation.kt

* Tutorials update

* Update Tutorials.json

* Fix spelling error

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* AI tech and policy choices

* Update Techs.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update UnitPromotions.json

* Update

* Update Policies.json

* Update Tutorials.json

* ReligionAutomation bugfix

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update AI city settling and science game

* Update ReligionAutomation.kt

* Maybe revert this now the belief picking has improved

* Update ReligionAutomation.kt

* Remove some if-statements

* Update Automation.kt

* Update Automation.kt

* Update ConsoleLauncher.kt

* Update

* Update Automation.kt
2024-10-13 22:32:26 +03:00
yairm210
d25a436391 Resolved #12279 - Units that can withdraw before melee do not do so when escorting civilian units 2024-10-13 16:30:37 +03:00
yairm210
edad6d794b Resolved #12282 - Filtering uniques are also checked for in unit types 2024-10-13 16:28:58 +03:00
yairm210
f0fc40bd3e Resolved #12276 - Free tech pickable in any way you enter the tech screen 2024-10-13 16:15:50 +03:00
yairm210
e105a6ec6b Resolved #12261 - documented explicit discrepancy from Civ V regarding great warpath railroad connection 2024-10-13 13:15:10 +03:00
yairm210
8c676271be Fixed broken doc links 2024-10-11 16:43:15 +03:00
yairm210
6f0babb393 4.13.15 2024-10-10 23:18:23 +03:00
Yair Morgenstern
327e31b5e2
Version rollout (#12274)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#12270)

* Update Latin translation (#12269)

* Merge a branch
Change 'urbs pupuli' to 'municipium'

* Fix translation; fix typo

* Update translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update German translation (#12268)

* Update Italian.properties (#12266)

* Update French.properties (#12265)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
2024-10-10 23:14:29 +03:00
yairm210
2e51de3b22 Added "Remaining [civFilter] Civilizations" as countable value 2024-10-10 23:14:14 +03:00
yairm210
be40912b56 AI: Greatly discourage attacking enemies with stronger total combat strength 2024-10-10 23:07:23 +03:00
yairm210
695f536031 Conditional phrasing: "for [civFilter]" -> "for [civFilter] Civilizations" 2024-10-10 23:03:28 +03:00
yairm210
3ff7b935b6 Fixed spies stealing multiple tech steals in one turn 2024-10-10 22:58:00 +03:00
yairm210
feae93b799 Added 'City-State' as value for nationFilter 2024-10-10 22:57:19 +03:00
yairm210
e4ed06abd0 AI: Keep 'don't spread religion' promises better 2024-10-09 08:03:26 +03:00
yairm210
7632e681e7 Resolved new game ANRs in a better way 2024-10-08 13:23:03 +03:00
yairm210
bf8ccee943 Modding: Resolved badly configured ruins causing crashes 2024-10-07 08:53:54 +03:00
yairm210
e8c5f43612 4.13.14 2024-10-06 16:58:23 +03:00
yairm210
246142dffc Revert "Missionaries no longer restricted from spreading religion in city where it's already the major religion"
This reverts commit 604b9f10e7.
2024-10-06 16:53:44 +03:00
Yair Morgenstern
2a6516d15e
Version rollout (#12264)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#12263)

* Update translation (#12259)

Co-authored-by: sls1005 <sls1005@github.com>

* Update Italian.properties (#12255)

* Update Italian.properties

* Update Italian.properties

* Update Latin translation (#12254)

* Merge a branch
Changed 'passus' to 'gressus'.
Changed 'non validus' to 'irritus'.

* Merge a branch

* Fix translation

* Update translation

* Change '-tor' to '-trum' for some words

* Update translation

* Change 'pugnator' to 'aeroplanum pugnans'

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-10-06 16:53:38 +03:00
EmperorPinguin
6f4d8fd7b5
Improve AI city settling, science game, and belief picking (#12256)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt

* AI changes for humans

* Fix puppet focus

* Update Automation.kt

* Puppet focus

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Stats.kt

* Update CityTurnManager.kt

* Remove specialist science modifier

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update CivilianUnitAutomation.kt

* Update ReligionAutomation.kt

* Worker prioritization

Workers are valuable in expand cities.

* Update ConstructionAutomation.kt

Food always important, it's rarely good to skip e.g. granary if we're on 6 pop.

* Update ConstructionAutomation.kt

Should achieve about the same with less lines of code.

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Policies.json

* Update Policies.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update Policies.json

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Rename Crop Yield to Growth

* Update worker usage

* Update UnitAutomation.kt

* Tutorials update

* Update Tutorials.json

* Fix spelling error

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* Update Tutorials.json

* AI tech and policy choices

* Update Techs.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update UnitPromotions.json

* Update

* Update Policies.json

* Update Tutorials.json

* ReligionAutomation bugfix

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update AI city settling and science game

* Update ReligionAutomation.kt

* Maybe revert this now the belief picking has improved

* Update ReligionAutomation.kt
2024-10-06 16:46:46 +03:00
PLynx
5d1c05d8e4
Add two population-related conditional uniques (#12258)
* Added the Conditional Below Population

* Added the Conditional Between Population
2024-10-06 16:46:34 +03:00
yairm210
7fbd8a194b chore: Delete dead code 2024-10-06 16:01:19 +03:00
yairm210
034c081234 chore: Easier debug for canActivateSideEffects 2024-10-06 16:00:21 +03:00
yairm210
35e5a5f674 Remove "-0 HP" from city attack notifications 2024-10-06 15:44:08 +03:00
yairm210
604b9f10e7 Missionaries no longer restricted from spreading religion in city where it's already the major religion 2024-10-06 15:34:49 +03:00
yairm210
50f00d64c4 chore: deprecate old uniques 2024-10-01 18:07:45 +03:00
yairm210
5c7e2c673f Ruleset validation for personalities with victory types not present in ruleset 2024-10-01 18:02:59 +03:00
yairm210
c4c46eb316 Added mod download percentage tracking 2024-10-01 15:58:39 +03:00
yairm210
f398e08928 chore: Simplified brush code - less overload functions, by adding a parameter to existing functions (reduce layers of indirection) 2024-09-30 15:38:35 +03:00
yairm210
ce5a723e5a Simplified brush code - no matter what, always visually update all updated tiles and their neighbors - could have edge images that are now relevant 2024-09-30 15:30:13 +03:00
yairm210
b56eebed52 4.13.13 2024-09-30 00:04:25 +03:00
Yair Morgenstern
b0f0877f8c
Version rollout (#12253)
* Bump version and create initial changelog entry

* Update French.properties (#12252)

* Merge a branch (#12251)

Co-authored-by: sls1005 <sls1005@github.com>

* Update Catalan.properties (#12250)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
2024-09-30 00:02:30 +03:00
Yair Morgenstern
80d565dd06
Homework from @SomeTroglodyte - Remove lastOverviewPage and replace with persistState.last (#12248) 2024-09-29 23:53:00 +03:00
yairm210
bfa42ea433 Minimized MP game update IO by ignoring games older than 2 weeks for 'update all' 2024-09-29 23:52:03 +03:00
yairm210
2ac1699321 Resolved ANRs when pausing game due to game clone time 2024-09-29 23:42:34 +03:00
yairm210
2ee5f08855 Resolved ANRs when starting a new game (checking for multuplayer server connection) 2024-09-29 23:25:15 +03:00
yairm210
0fbfd66bcc Protect terrainImage against incorrectly configured mods (natural wonder turnsInto is not in ruleset) 2024-09-29 23:18:31 +03:00