1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00
Commit Graph

7110 Commits

Author SHA1 Message Date
a0ad810033 Remove old code 2024-05-16 19:11:33 +00:00
2ed355952c Added proper serialization for unordered_map 2024-05-16 19:03:04 +00:00
42f7a48fa4 Simplified integer serialization code 2024-05-16 18:53:49 +00:00
84bc6c42db Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
65f63e862c Tweaks to modding docs & error reporting based on discovered issues 2024-05-16 15:14:36 +00:00
f309a4eb82 Exclude some AB creatures from randomization picks
This changes handling of several campaign-only creatures to be in line
with H3 - Sharpshooters, Enchanters and Azure/Rust/Faerie/Crystal
dragons.

Now these creatures will not be picked for
- random creatures in Refugee Camp
- as replacement for Random Monster object from map editor

Random map generator is not affected and can still pick this creatures
(confirmed to be same in H3)
2024-05-16 09:53:37 +00:00
f963b827e9 Add more descriptive error messages 2024-05-16 08:03:06 +00:00
cce3f1cb2d Implemented compact serialization of integer numbers 2024-05-15 19:50:01 +00:00
87eac164e6 Implemented string deduplication for serializer
Every unique string will now be serialized only once.
Reduces save size by ~20%
2024-05-15 19:49:59 +00:00
5b182c31df Add 'hasFeature' method for convenience 2024-05-15 19:49:34 +00:00
7ad64207ed Prefer high-quality bik's to smk's 2024-05-15 17:05:17 +00:00
1b1f724de1 Merge pull request #3970 from Laserlicht/extra
ExtraOptions improvements
2024-05-15 15:20:59 +03:00
35954dc41b Simple workaround to fix vcmiserver shutdown procedure
At the moment, vcmilobby *requires* async writes in order to handle
multiple connections with different speeds and at optimal performance,
without hanging if one player is too slow and can't eat all data server
sent to him at once.

However server (and potentially - client) can not handle this mode and
may shutdown either socket or entire asio service too early, before all
writes are performed, leading to weird freeze on ending scenario where
client would not receive notifications about end of game.
2024-05-14 19:40:20 +00:00
da9d82b697 Merge pull request #3973 from vcmi/master
Merge master -> beta
2024-05-14 16:59:10 +03:00
00728ded88 Report more information on exception 2024-05-14 12:48:19 +00:00
c92a5bbbab Attempt to track crashes with unclear cause 2024-05-14 09:44:40 +00:00
bb5627e98c Merge pull request #3954 from IvanSavenko/fix_compile
Fix compilation issues
2024-05-14 12:16:27 +03:00
941c1576c5 improve extraoptions 2024-05-14 00:33:30 +02:00
c786354af3 Add better crash message for zero-length battlefield list 2024-05-13 21:03:06 +00:00
62b564650d Fix possibly hanging pointer to deleted CGObjectInstance
Was stored by CRemoveObjectOperation and accessed on destruction even
though it has been removed by the game
2024-05-13 16:19:14 +00:00
93da58beed Do not use locks on single-threaded server.
Especially since this lock is global and is shared between client and
server for no reason
2024-05-13 15:42:33 +00:00
95d761bbb8 Handle corrupted H3 data - show message box instead of silent crash 2024-05-13 15:41:47 +00:00
93038b791e Fix connection termination handling 2024-05-13 14:09:59 +00:00
58d1c93c1b Merge pull request #3931 from IvanSavenko/retaliation_preview
[1.5.1] Retaliation preview
2024-05-13 14:40:00 +03:00
6d08ec6323 More robust handling of connection errors
Fixes potentially hanging by heartbeat sockets
2024-05-12 19:13:17 +00:00
62c2be160a Added changing thread name for FreeBSD 2024-05-12 15:10:29 +00:00
06aab2ccbb Merge pull request #3924 from vcmi/fix_road_routing
Route roads away from zone borders
2024-05-12 16:02:38 +03:00
33fd18e828 Merge pull request #3938 from IvanSavenko/lobby_fixes
[1.5.1] Fixes for issues with lobby server
2024-05-12 10:13:00 +03:00
9049fb738a Merge pull request #3946 from dydzio0614/mana-vortex-hero-order
Fix "bonusing" town building visiting hero order
2024-05-11 21:58:23 +03:00
0ce78cae06 Merge pull request #3926 from IvanSavenko/optimize_map_list_load
[1.5.1] Improve performance of parsing of map headers for map list
2024-05-11 21:56:58 +03:00
f20ef4f1b3 Fix hero order for giving bonuses in town to match H3. 2024-05-11 20:21:02 +02:00
dae3569077 Fix build 2024-05-11 16:18:21 +00:00
0403626c93 Fix excessive calls of steady_timer::async_wait 2024-05-11 16:10:07 +00:00
67604e1e01 Reapply "Simple implementation of heartbeat package"
This reverts commit ede92c1a9c.
2024-05-11 16:10:08 +00:00
4c3aac8f19 Use async_write to prevent locks if receiver is too slow 2024-05-11 16:09:03 +00:00
147db10a28 Avoid crash if configs file is missing, e.g. broken version of mod 2024-05-11 13:19:07 +00:00
1bc7c29111 Add workaround for visiting Altar of Sacrifice on 1.4 saves 2024-05-11 13:19:07 +00:00
16f43254b5 Use async_resolve to avoid crash on resolve error 2024-05-11 13:19:07 +00:00
31401e219f Fix possible crash on nullptr dereference 2024-05-11 13:19:07 +00:00
ac4204f660 Fixed calculation of retaliation damage 2024-05-10 19:40:14 +00:00
5a979e42e2 Satisfy SonarCloud 2024-05-10 21:14:15 +02:00
ee27a79aa1 Sonarcloud issues 2024-05-10 17:07:09 +02:00
3acc1f1845 Improve performance of parsing of map headers for map list 2024-05-10 14:30:39 +00:00
21bb61fc4d Unused variable 2024-05-10 15:56:49 +02:00
7cb17afe7a Fix diagonal paths if we need to use them 2024-05-10 15:53:54 +02:00
2521557f68 Fixed some newly reported issues from SonarCloud 2024-05-10 13:40:24 +00:00
a6fa6855dc Route roads away from zone borders 2024-05-10 15:35:33 +02:00
2ddb41e654 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-10 08:09:51 +00:00
b4af84a3ce Merge pull request #3911 from vcmi/penrose_cleanup
Clean up excessive operations and logs
2024-05-08 22:43:28 +03:00
2297e09fcb Clean up excessive operations and logs 2024-05-08 15:51:42 +02:00