Commit Graph

7781 Commits

Author SHA1 Message Date
yairm210
e4025afb4c Resolved #12522 - fixed crash when swapping while retreating 2024-11-26 08:18:15 +02:00
yairm210
d91319b792 Resolved #12506 - debug option to show tile image locations
Some checks failed
Conflict marking / main (push) Failing after 19s
Detekt / detekt (ubuntu-latest) (push) Failing after 1m0s
Generate mkdocs from docs folder / deploy (push) Failing after 24s
Build and test / Check code and run unit tests (push) Failing after 35m3s
Close stale issues and PRs / stale (push) Successful in 14s
Docker / build (push) Failing after 1m8s
2024-11-25 17:00:48 +02:00
yairm210
9dc1d5b4f1 console: Don't allow adding cities to spectator/barbarian (will crash)
Some checks failed
Conflict marking / main (push) Failing after 9s
Detekt / detekt (ubuntu-latest) (push) Failing after 2m12s
Build and test / Check code and run unit tests (push) Failing after 7m30s
Generate mkdocs from docs folder / deploy (push) Failing after 1m35s
Close stale issues and PRs / stale (push) Successful in 40s
Docker / build (push) Failing after 2m4s
2024-11-24 11:59:42 +02:00
yairm210
d816b50cd9 Resolved #12437 - Worker units do not try and swap with non-adjacent tiles 2024-11-24 11:14:24 +02:00
yairm210
b09b6c92f7 Allow MP updates to catch Throwable, which includes OutOfMemoryError 2024-11-24 10:39:01 +02:00
yairm210
11fb47484a Resolved MP update task concurrent modification exception 2024-11-24 10:28:32 +02:00
yairm210
59bd7d200b Resolved crashes due to incorrect music state - no idea what's actually causing it, but the entire music track handling needs a revamp anyway 2024-11-24 10:26:04 +02:00
yairm210
f303c4f7be Resolved #12516 - console cannot change player type for non-major civs 2024-11-22 10:38:13 +02:00
Yair Morgenstern
b18daec354
Version rollout (#12512)
* Bump version and create initial changelog entry

* Add files via upload (#12508)

* Add Croatian language for translation (#12507)

* Add Croatian language

* Update Croatian.properties

* fix invalid placeholder in Croatian.properties

* restore translated placeholder

* update Croatian.properties and full_description.txt

* Update French.properties (#12503)

* Update Indonesian.properties (#12502)

Translation and corrections.

* Update Italian.properties (#12499)

* Update Russian.properties (#12498)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: SHypoleac <michal.wolonciej@interia.pl>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@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>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
2024-11-21 19:42:36 +02:00
yairm210
c73e78549e resolved #12505 - uniques hidden from users do not show icons in tech tree 2024-11-21 19:30:06 +02:00
Leonard Günther
862762735a
Added more options for UI skin mods (#12501)
* Add fallback skin to skin config

* Add icon and font color to SkinElement

* Use foregroundColor if no icon color is specified

+ Fix fallbackSkinVariants are not used

* Add defaultVariantTint to reduce mod copy pasta

* Add docs for new skin variables
2024-11-21 19:28:09 +02:00
SeventhM
37169ae719
Fix capital indicating uniques ignoring gamestate (#12509)
* Fix capital indicating uniques ignoring gamestate

* Use hasUnique instead of getMatchingUnique.any
2024-11-21 19:27:45 +02:00
SeventhM
98096de9e5
Fix tile defence uniques ignoring unit state (#12510) 2024-11-21 19:27:37 +02:00
yairm210
c68f1fe0dc resolved #12511 - disallow slashes in mp game names 2024-11-21 19:26:24 +02:00
yairm210
d28aabaf7c chore: rename canSwap to allowSwap so we don't think it's a precomputed value of something 2024-11-21 19:19:10 +02:00
yairm210
78d54ac440 perf(cpu): Changed when(string) for performance
- More performant than hash lookup so got rid of nation and improvement filter cache
2024-11-21 08:44:39 +02:00
itanasi
6bf3de0549
ConsoleLauncher: Add binomial test output (#12496)
* Add binomial test

* Fix Major Civ count
2024-11-20 13:30:17 +02:00
yairm210
fbfeb4d508 docs: 2024-11-19 17:38:02 +02:00
yairm210
c5a8753cf7 Fix 'new game' error message thread handling 2024-11-19 09:32:15 +02:00
Yair Morgenstern
b4f9c95caf
Version rollout (#12497)
* Bump version and create initial changelog entry

* Add files via upload (#12492)

corrections and full translation. Isn't perfect but fairly good

* Update Catalan translation (#12489)

* Update Indonesian.properties (#12485)

Corrections.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: SHypoleac <michal.wolonciej@interia.pl>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-11-19 09:11:38 +02:00
SeventhM
dffef35779
Cache state for units, civs, and cities (#12491)
* Cache unit state

* Cache city state

* Cache civ state

* Have to update state after getting gameInfo
2024-11-19 09:02:41 +02:00
itanasi
e84944be06
Changes (#12469) 2024-11-19 09:02:14 +02:00
EmperorPinguin
4aed19358b
Update TradeEvaluation.kt (#12486)
* Update TradeEvaluation.kt

* Update TradeEvaluation.kt

* Update TradeEvaluation.kt
2024-11-19 09:01:59 +02:00
yairm210
78c02df317 Avoid ANR errors when attempting to start a MP game when server takes too long to respond 2024-11-19 08:55:49 +02:00
yairm210
a914571b8e Avoid OOM errors when updating all games by avoiding parallelization 2024-11-19 08:50:59 +02:00
yairm210
0655cc63a4 Resolved #12488 - don't reject constructions for missing stockpiled resource costs, AFTER you've already paid them 2024-11-18 10:35:40 +02:00
Yair Morgenstern
239c8deeb7
Version rollout (#12484)
* Bump version and create initial changelog entry

* Update Latin translation (#12480)

* Update translation

* Fix translation

---------

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

* Update Thai.properties (#12478)

I translate more

* Update Bangla.properties (#12475)

* Update Catalan.properties (#12466)

* Update Italian.properties (#12465)

---------

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: BIGREDKIDS <foxhand2540@gmail.com>
Co-authored-by: Shinigami-alt <76843162+Shinigami-alt@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-11-17 11:42:02 +02:00
EmperorPinguin
4c4d5ee5d5
Update MotivationToAttackAutomation.kt (#12445)
* Update MotivationToAttackAutomation.kt

* Update MotivationToAttackAutomation.kt
2024-11-17 11:38:29 +02:00
SeventhM
405655d51d
Allow filter uniques to have conditionals and work with modifiers (#12404)
* Allow filter uniques to have conditionals

* Move cache to inside the multifilter

* Move Civ caching to nation

* Might as well remove a use of let

* Forgot to remove check

* Might as well edit these for consistency

* Avoid checking unit filters twice where necessary

* Probably the wrong way to fix this, Idk where I should put the fix instead

* Remove extra parenthesis

* Don't multiFilter if we know it won't do anything

* Apparently, issues for initialized tiles can exist for cities too

* Lower cpu cost for changes - use consistent StateForConditionals, set once when loading map and again every time there is an ownership change

* Resolves #12483 - add gameInfo to tile state so game-wide conditionals will work

---------

Co-authored-by: yairm210 <yairm210@hotmail.com>
2024-11-17 11:37:47 +02:00
yairm210
914b9e2f03 Resolved #12467 - Nat wonders land->water conversion no longer causes rivers on water tiles 2024-11-16 20:24:39 +02:00
yairm210
3c7bf97148 Resolved #12477 - Limited, but performant, edge filters
This brings back 'edges below improvements'
2024-11-16 20:21:50 +02:00
EmperorPinguin
f2221ddf43
Update ConstructionAutomation.kt (#12456) 2024-11-14 18:25:00 +02:00
yairm210
5315ddc62a perf(cpu): cheaper, and slightly clearer, 'movement affected by zone of control'
God bless the profiler which can show cpu time of individual lines within if
2024-11-14 15:18:44 +02:00
yairm210
1599db1740 4.14.6-patch1 2024-11-14 11:47:38 +00:00
EmperorPinguin
2812216f3c
Update Automation.kt (#12471) 2024-11-14 13:47:31 +02:00
yairm210
cf7b575329 Resolved #12464 - mod checker accepts civ filters as tile filters 2024-11-14 12:09:05 +02:00
yairm210
8d4a16dd39 Resolved #12468 - great general unique works with conditionals (cache for 'has unique' ignores conditionals) 2024-11-14 08:33:16 +02:00
yairm210
386c0812be Growth nullifying uniques do not nullify starvation 2024-11-14 08:17:27 +02:00
yairm210
a020a2a797 Removed Scenarios button, since the new game screen handles scenarios better 2024-11-14 08:14:49 +02:00
Yair Morgenstern
16d56be9c0
Version rollout (#12463)
* Bump version and create initial changelog entry

* Update Latin translation (#12462)

* Update translation

* Update translation

---------

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

* Add Spanish translations and fix typos (#12453)

* Update Italian.properties (#12449)

* Update German translation (#12448)

* Update French.properties (#12447)

* Update Brazilian_Portuguese.properties (#12446)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Russian.properties (#12443)

* Update Russian.properties

* Update Russian.properties

* Update Indonesian.properties (#12442)

* Update Indonesian.properties

Translation and corrections.

* Update Indonesian.properties

---------

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: Víctor <41088609+vuriaval@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: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-11-13 16:15:05 +02:00
yairm210
e8e87edb29 Resolved #12461 - added 'unit remove all' console command 2024-11-13 16:02:44 +02:00
EmperorPinguin
8ab193b125
Update Automation.kt (#12441)
* Update Automation.kt

* Update Automation.kt

* Update Automation.kt
2024-11-13 15:51:02 +02:00
EmperorPinguin
ba4003bb30
Update ReligiousUnitAutomation.kt (#12444) 2024-11-13 15:50:49 +02:00
EmperorPinguin
08378cb3c8
Update TradeEvaluation.kt (#12440) 2024-11-13 15:50:38 +02:00
yairm210
04ec4f9cdb Remove Tactical AI files - untouched for 2 years and unused, causes confusion to new developers 2024-11-13 15:43:34 +02:00
yairm210
7b075bcf7c Add passthrough functions to all layers for perf work 2024-11-13 12:27:12 +02:00
yairm210
8e0115263b Actual performance change :) 2024-11-13 12:16:00 +02:00
yairm210
1c17a20018 perf(rendering): Don't try to find edge tiles unless we know other images have changes as well
Ths is a trade off - on the one hand it means edge images will be drawn *above* improvements, on the other hand - profiling shows this is 11% of tile update time, which affects evey single user click!

Possible good solution: saving the edge images on the tile itself, and refreshing this and neighboring tiles every time terrains are changed
2024-11-13 12:04:59 +02:00
yairm210
086573b112 perf(rendering): ignore unit layers with no units 2024-11-13 11:57:32 +02:00
yairm210
66357cf729 AI does not offer open borders trade if other side already has open borders 2024-11-12 23:13:15 +02:00