1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

19183 Commits

Author SHA1 Message Date
Ivan Savenko
2d6ae7859b Fixes BattleAI not selecting best hex when approaching nearest enemy 2025-01-19 16:38:50 +00:00
Ivan Savenko
ed70e94f9a Better reporting for configurable building initialization crash 2025-01-19 16:13:12 +00:00
Ivan Savenko
9cf75713d0 Fix possible crash on opening unit window if unit has both ability and
artifact bonus
2025-01-19 16:08:29 +00:00
Ivan Savenko
2823bf5848 Minor code simplifaction 2025-01-19 12:41:02 +00:00
Ivan Savenko
c6eac55210 Fix reference to renamed console command 2025-01-19 12:40:41 +00:00
Ivan Savenko
4912e92f33 Try to fix possible crash on statistics window 2025-01-19 12:40:17 +00:00
Ivan Savenko
82b81a7853 Added better error reporting for unclear crashes 2025-01-19 12:39:22 +00:00
Laserlicht
bd3b33a94e fix invalid hotkey 2025-01-19 00:30:45 +01:00
Laserlicht
2ebf1daf0d add smooth drag for RMB & fix drag for new windows 2025-01-19 00:30:23 +01:00
Ivan Savenko
711bbc684f Try to fix strange crash on mod install 2025-01-18 21:29:55 +00:00
Ivan Savenko
83155c2755 Try to fix crash on loading screenshots without active mod 2025-01-18 21:28:35 +00:00
Ivan Savenko
232e70c03a Try to fix unclear, rare crash on saving the game 2025-01-18 19:51:31 +00:00
Ivan Savenko
b946d36bb0 Fix crash on winning game by capturing town that is victory condition
without defeating all enemies first
2025-01-18 19:51:09 +00:00
Ivan Savenko
3d56375ec0 Fix possible crash on loading game with broken mods active 2025-01-18 19:50:25 +00:00
Ivan Savenko
f132fad14e Fix spells banned on map appearing in towns, cleanup code 2025-01-18 19:49:56 +00:00
Ivan Savenko
2a16767cdc Fix FREE_SHOOTING bonus check (including war machines) 2025-01-18 19:49:30 +00:00
Ivan Savenko
b33b880482 Do not add dead units as 'adjacent', since all callers assume this 2025-01-18 19:48:59 +00:00
Ivan Savenko
f3e8291ecd Fix crash on attempting to rename preset to the same name 2025-01-18 19:48:06 +00:00
Ivan Savenko
92b2c175a7 Clarify docs on fused artifacts 2025-01-18 19:47:42 +00:00
Ivan Savenko
59cdd46490 Possible fix for crash on opening creature/commander window 2025-01-18 19:45:34 +00:00
Laserlicht
c1e709e8c4
fix video background 2025-01-18 20:35:01 +01:00
godric3
dea6a02e1c Fix loading vcmp campaign with specific hero used in scenario bonuses 2025-01-18 14:50:34 +01:00
Ivan Savenko
364286e1b9
Merge pull request #5287 from Laserlicht/xbrz_fix
[1.6.x] fix canvas fillTexture
2025-01-18 15:38:14 +02:00
Ivan Savenko
0a63969a51
Merge pull request #5290 from GeorgeK1ng/mapedit_czech
Updated Czech translation
2025-01-18 15:37:38 +02:00
Ivan Savenko
565a94ee4e
Merge pull request #5289 from Laserlicht/asset
[1.6.x] clear generated assets only on client
2025-01-18 15:37:14 +02:00
Ivan Savenko
4993f45423
Merge pull request #5286 from Laserlicht/ger
[1.6.x] Update german
2025-01-18 15:36:45 +02:00
Ivan Savenko
d825868e26
Merge pull request #5198 from Laserlicht/android_native_copy
[1.6.x] Android native copy files
2025-01-18 15:36:19 +02:00
Ivan Savenko
3479ec9651 Per-hero artifact scoring for NKAI
AI now has better (but not perfect) system for scoring artifacts.

All artifacts now have their base score, based on bonuses provided by
the artifact. For composite artifacts, AI will also consider bonuses
from its components.

When exploring, AI will now weight artifacts as min(base score, price /
5), meaning even artifacts that AI can't score will still have some
priority, if only to sell them or deny them to enemy

AI will now also consider what to equip when trading with heroes or on
the end of AI pass. When considering what to equip, hero will use base
score of an artifact, adjusted by how relevant particular bonus /
artifact for a hero. Some examples:
- Morale-bonusing artifacts have their score reduced based on percentage
of undeads in the army, all the way to 0 for undead-only troops
- Artifacts that give spells (books, hat) will have score reduced based
on how many of these spells are already known by hero
- Land movement artifacts have zero score while on water and vice versa
- Necromancy artifacts will have zero score if hero does not have
necromancy
- Archery artifacts are scaled by amount of ranged troops, and only used
if hero has archery skill

AI may still equip 'bad' artifact, however this should only happen if
hero has no other artifacts to equip into said slot.

TODO's for future PR's (although not sure if / when I will work on
these):
- avoid equipping duplicates of the same artifact. Most notably with
scrolls, but may happen with other misc artifacts or rings.

- consideration for various spell-immunity neclaces

- consideration for birectional artifacts, like Shackles of War, or some
Spheres - since these artifacts need consideration on what our expected
enemy is to correctly estimate whether

- equipping artifacts based on immediate need - for example, equipping
recovery artifacts before end of day, equipping legion pieces only in
town on day 7, preparing for strong / weak enemies (or even preparing
for specific enemy in advance)

- transferring resource-generating artifacts and such to scout heroes,
allowing main hero to focus on combat

- ensure that AI can equip combined artifacts even if non-primary slots
are in use - by considering whether score of combined artifact is higher
than score of all used slots
2025-01-18 13:14:24 +00:00
George King
cbfd105d58
Update strings.xml 2025-01-17 20:03:28 +01:00
George King
3b25942648
Updated Czech translation 2025-01-17 19:56:26 +01:00
Laserlicht
24a39a8b48 clear generated assets only on client 2025-01-17 19:27:33 +01:00
Andrey Filipenkov
7e6816959a
use static QFile::copy() method 2025-01-17 09:24:09 +03:00
Laserlicht
604c466ebd
fix canvas fillTexture 2025-01-17 01:23:14 +01:00
Laserlicht
3cb647bb2d code review 2025-01-16 22:30:46 +01:00
Laserlicht
04ddf17ff1 fix link 2025-01-16 21:14:05 +01:00
Laserlicht
ccd1e6fe32 update german 2025-01-16 21:14:05 +01:00
Ivan Savenko
ffc118f605
Merge pull request #5225 from GeorgeK1ng/menu_tweak
Various main menu improvements
2025-01-15 15:10:35 +02:00
Ivan Savenko
ee01284db9
Merge pull request #5259 from IvanSavenko/translation_regenerate
Translation update
2025-01-15 14:54:45 +02:00
Ivan Savenko
ce1350b3a4
Merge pull request #5261 from IvanSavenko/bonus_optimize
Bonus system optimization - per-node invalidation
2025-01-15 14:42:36 +02:00
Ivan Savenko
36e53705a0
Merge pull request #5262 from dydzio0614/vietnamese-translation-2
Updated vietnamese translation by Hunter8x
2025-01-15 14:41:58 +02:00
Laserlicht
eb9bcaa420 added dockerfile for android build 2025-01-15 11:04:45 +01:00
Laserlicht
65256e8340 android native copy 2025-01-15 11:04:28 +01:00
Dydzio
8a0d3567e4 Updated vietnamese translation by Hunter8x 2025-01-12 20:19:10 +01:00
Ivan Savenko
ce0ddfd580
Merge pull request #5260 from IvanSavenko/version_bump_164
Version bump to 1.6.4
2025-01-12 17:33:34 +02:00
Ivan Savenko
e829d723b2 Replace global bonus tree change counter with per-node counter 2025-01-12 12:23:07 +00:00
Ivan Savenko
5ec5e23534 Add caching for commonly accessed values 2025-01-12 12:21:10 +00:00
Ivan Savenko
1c6fbe4200 Reduce excessive NKAI logging 2025-01-12 12:21:10 +00:00
Ivan Savenko
d935a19504
Merge pull request #5250 from IvanSavenko/optimize_ai
BattleAI optimizations
2025-01-12 14:20:30 +02:00
Ivan Savenko
d32090292e Version bump to 1.6.4
Release date TBD
2025-01-12 12:19:27 +00:00
Ivan Savenko
8edb9f8fc9 Regenerated translations 2025-01-12 12:16:24 +00:00