1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00
Commit Graph

18653 Commits

Author SHA1 Message Date
9fbeacb688 Fix possible memory corruption in video player
Fixes two bugs, one was definitely happening, and 2nd one that is causing
undefined behavior and may work only in some std implementations

- VideoPlayer would attempt to access subtitles widget after VideoPlayer
itself was destroyed in onPlaybackFinished call
- std::function was destroyed from a function that is being called by
it. Replaced with 1-method interface to avoid usage of std::function in
this scenario
2024-12-07 15:37:03 +00:00
df069bf14f Merge remote-tracking branch 'upstream/develop' into develop 2024-12-07 13:32:19 +01:00
c7da5c8782 Update swedish.json 2024-12-07 00:35:02 +01:00
8d9e144c61 Updated changelog to account for recent changes 2024-12-06 14:34:48 +00:00
3115894307 Merge pull request #5030 from vcmi/timed_events_objects_removal
Timed events objects removal
2024-12-06 16:07:21 +02:00
ade46d5ffb Merge branch 'develop' into timed_events_objects_removal 2024-12-06 15:33:33 +02:00
7429589a0a Merge pull request #5034 from godric3/map-editor-hero-artifacts
Map editor:  customize hero artifacts
2024-12-06 15:00:51 +02:00
fe51194e22 Merge pull request #5008 from Laserlicht/sprites_test
Tile animation for rivers with xbrz
2024-12-06 14:54:18 +02:00
f35abaaeee Merge pull request #5022 from Laserlicht/innoextract_hash
generate file hashes if innoextract fails
2024-12-06 14:42:48 +02:00
a60e98f0bb Merge pull request #5041 from IvanSavenko/syntaxhighlight_check
[Docs] Enable rule to enforce specifying language for code blocks
2024-12-06 14:39:26 +02:00
f546b434ff Merge pull request #5003 from IvanSavenko/ai_difficulty_config
Change NKAI configuration for different difficulty levels
2024-12-06 14:39:16 +02:00
4b103fd63b code review 2024-12-05 23:31:03 +01:00
53d4afdae5 Enable rule to enforce specifying language for code blocks 2024-12-05 21:32:55 +00:00
16d25e903c Remove flaggable bonus on object deletion 2024-12-05 21:55:32 +01:00
4e58df6635 Bump heroes limit a bit 2024-12-05 20:31:14 +00:00
7be31c94f2 Fixes from code review 2024-12-05 21:16:06 +01:00
df21a77857 Battle-AI-improvements
When defending the AI is now much smarter to use their defensive-structures like walls, towers and the moat to their advantage instead of allowing them to be lured out and killed in the open.

A penalty-multiplier is now applied when deciding which units to walk towards. If an ally is closer than us to the enemy unit in question, we reduce our score for walking towards that unit too. This shall help against baiting a whole flock of AI-stacks to overcommit on chasing an inferior stack of the enemy.
2024-12-05 21:09:24 +01:00
7a701b39fb Update mapeditor/mapsettings/timedevent.h
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2024-12-05 21:02:54 +01:00
7a75aafc88 Merge pull request #5031 from dydzio0614/empty-hexes-shoot-fix
Fix shooting being priority action for dead creature hexes with empty hex target enabled
2024-12-05 17:41:57 +02:00
8c293ce156 First attempt to make per-difficulty configurations for AI 2024-12-05 15:08:04 +00:00
7543635847 Merge pull request #5032 from dydzio0614/alt-creature-buttons
Exchange full army by holding alt while pressing VCMI extras creature arrow button
2024-12-05 16:38:32 +02:00
865a6c1aa0 Merge pull request #5018 from Laserlicht/translate
Added missing translation strings
2024-12-05 16:32:20 +02:00
44ba6c3dd4 Merge pull request #5024 from GeorgeK1ng/develop
Removed vanished elements for Czech launcher translation
2024-12-05 16:32:09 +02:00
24579cedd4 Merge pull request #5026 from Laserlicht/patch-3
revert text fix
2024-12-05 16:31:28 +02:00
55c594e591 Merge pull request #5035 from IvanSavenko/launcher_fix
Fixes for mod management in Launcher
2024-12-05 16:30:53 +02:00
993b13cc09 Merge pull request #5038 from IvanSavenko/docs_json
Use json instead of json5 for syntax highlight in docs
2024-12-05 16:30:18 +02:00
102dfd0966 Merge pull request #5020 from IvanSavenko/ai_object_fix
Fix AI not recruiting heroes when map reveal is off
2024-12-05 16:29:43 +02:00
3f073507a1 Merge remote-tracking branch 'upstream/develop' into develop 2024-12-05 14:55:20 +01:00
879aaba980 Use json instead of json5 for syntax highlight in docs
Looks like website only recognizes javascript & json, and is not aware
of jsonc or json5.

Will result in small regression on Github web view - comments will show
up as red (since comments are not part of json format), but syntax
highlight would work both on website and on Github.

Alternative is using javascript for syntax highlight, however syntax
highlighter for json looks better on both website and Github (since it
uses separate highlighting for json keys, separate from strings in
values)
2024-12-04 16:50:01 +00:00
7da5c08f74 Update ObjectClusterizer.cpp
Actually fix the warning now.
2024-12-04 15:07:13 +01:00
66bc6c0d52 Update ObjectClusterizer.cpp
Fixed warning that prevents compilation on GitHub.
2024-12-04 14:57:46 +01:00
9bdf22a3cd Force-refresh of mod list model on start once local mods are loaded 2024-12-04 11:17:07 +00:00
ac01ec3733 Hide update/install/enable buttons on Launcher start 2024-12-04 11:16:31 +00:00
00513c8720 Fix crash on attempt to enable 0 mods, for example after update 2024-12-04 11:16:05 +00:00
cdc1a9ea68 Fix not functioning mod updating 2024-12-04 11:15:39 +00:00
9e07b5c5de Merge pull request #4954 from vcmi/curved_roads
Curved roads
2024-12-04 07:54:41 +01:00
c007bbbcd8 AI improvements
AI will no longer skip turns with heroes that are waiting for a delivery that takes more than one turn. Instead they will do something until their delivery is close enough to get it at the same turn.

Fixed an issue where a bunch of heroes all tried to do the same tasks:
Tasks that involve no fighting will now always be performed by the closest eligible hero while all other heroes look for something else to do.
2024-12-03 23:09:13 +01:00
01bb73b0cc fix imports 2024-12-03 21:28:21 +01:00
025ad58561 map editor: check hero artifacts during mod assessment 2024-12-03 21:17:04 +01:00
896a148a7a map editor: Add possibility to customize hero artifacts 2024-12-03 21:07:33 +01:00
e87ed1e80c Add extra clientside sanity check (should be there from thestart) 2024-12-03 21:03:25 +01:00
ceac0bc203 Full exchange when holding alt while pressing exchange screen creature arrow button 2024-12-03 20:40:06 +01:00
1e9d089fd8 Fix shooting being priority action for dead creature hexes with targeting empty hexes enabled 2024-12-03 18:04:41 +01:00
f7b0c7405b Fix "padding variables" for object deletion 2024-12-03 17:40:35 +01:00
e9be46af98 Merge branch 'develop' into timed_events_objects_removal 2024-12-03 17:27:24 +01:00
f6b37dbca2 revert text fix 2024-12-02 22:36:49 +01:00
a8709731c4 unify time (without seconds) 2024-12-02 20:37:51 +01:00
4fb1e9b056 code review 2024-12-02 20:29:17 +01:00
8900c08b88 Removed vanished elements 2024-12-02 16:12:32 +01:00
34b8123fba Hero hiring adjustments
The AI is now a lot more likely to buy a hero early on when that hero's army is worth more than half the cost of the hero, regardless of other circumstances.
2024-12-02 15:11:39 +01:00