1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

18945 Commits

Author SHA1 Message Date
Ivan Savenko
09db3e4bef Reworked resource piles loading to fix wog maps with mithril 2025-01-25 11:40:21 +00:00
Ivan Savenko
baa9b1e312 Load unknown objects as "Nothing" object 2025-01-24 19:26:40 +00:00
Ivan Savenko
e4505f20b9 Remove no longer used map checksum computation 2025-01-24 19:26:40 +00:00
Ivan Savenko
2ee5f2df02
Merge pull request #5295 from IvanSavenko/bugfixing
[1.6.4] Bugfixing for recently reported issues
2025-01-21 15:50:02 +02:00
Ivan Savenko
e26fe815e9
Merge pull request #5293 from godric3/fix-using-specific-hero-in-campaing-bonus
Fix loading vcmp campaign with specific hero used in scenario bonuses
2025-01-20 16:26:09 +02:00
Ivan Savenko
2ac2a08d2c
Merge pull request #5296 from Laserlicht/right_drag
[1.6.4] Fix Smooth Map Dragging for RMB
2025-01-20 16:23:53 +02:00
Ivan Savenko
f852d81930
Merge pull request #5298 from Laserlicht/gog_screenshot
Gog.com screenshots for docs
2025-01-20 15:48:44 +02:00
Ivan Savenko
dddd32fb98
Merge pull request #5294 from Laserlicht/video_bg
[1.6.4] fix video background
2025-01-20 15:48:08 +02:00
Ivan Savenko
54c86e0292
Merge pull request #5292 from IvanSavenko/nkai_artifact_score
Per-hero artifact scoring for NKAI
2025-01-20 15:47:40 +02:00
Ivan Savenko
6b387e5d17 Fix integer overflow when total resource amount is above (int max / 100) 2025-01-20 11:17:32 +00:00
Ivan Savenko
5064f6282a Clarified docs 2025-01-19 19:43:12 +00:00
Ivan Savenko
7a0e8f95b9 Add quick workaround for NKAI not constructing resource silo 2025-01-19 19:41:38 +00:00
Laserlicht
9bf53df9a0 add gog screenshots to docs 2025-01-19 18:04:07 +01:00
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