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

7110 Commits

Author SHA1 Message Date
da20aa2388 Use the same cost value in Pathfinder and fuzzy evaluations. 2019-01-17 10:54:41 +03:00
4b5910c2f4 VCAI performance improvements
* Node graph initialization optimized.
* Fixed "Unathorized obstacle access".
* Pathfinding tracing disabled with ifdef.
* Misc bonus calculation optimizations.
* Removed timestamp from log lines. Date formatting eats too much CPU.
* Paths for all heroes in Client are now cached
2019-01-17 10:50:56 +03:00
8fee46de7c AI: town portal support 2019-01-17 10:40:23 +03:00
216d50788b Fix AI build, update default Windows SDK version for projects 2018-12-31 15:18:42 +01:00
035d279ae8 Refactor CGHeroInstance, make spells private 2018-12-23 15:49:26 +03:00
f4a8a1294e Optimizations based on MSVS profiler. 2018-12-16 15:46:48 +01:00
83531f4355 Rename typo in NetPacksServer.cpp 2018-11-17 21:58:54 +02:00
845f0fbf5c Merge pull request #512 from godric3/jsonSchemas
Support for using relative file path in json schema references
2018-11-02 13:07:34 +03:00
708705aa96 CGLighthouse: workaround crash on map initialization. Fix issue 3020
Dirty hack here since proper fix would require to break saves
2018-11-01 23:31:23 +03:00
0ff2e1180d Throw std::runtime_exception instead of a pointer to new one
cf. https://isocpp.org/wiki/faq/exceptions#what-to-throw
2018-10-31 07:27:54 +01:00
2a282c9a8e Merge pull request #509 from godric3/bonusDescription
Skill and hero specialty bonus description
2018-10-31 00:59:05 +03:00
8650a8eea8 allow json schema references to use relative file path 2018-10-30 22:30:56 +01:00
1586868a5d make source id optional in functions converting deprecated specialty bonuses 2018-10-30 20:58:22 +01:00
e26f6ff15f Merge pull request #505 from janisozaur/catch-by-ref
Catch exceptions by const-ref, not by value
2018-10-30 05:08:30 +03:00
f9ac46576b Add description for bonuses from hero specialty 2018-10-29 21:33:13 +01:00
c8ba3de821 Change skill bonuses description to use name instead of identifier 2018-10-29 20:53:13 +01:00
7be9aa4868 Prevent shadowing of function arguments by local vars 2018-10-29 16:56:14 +01:00
9822a8f2df Catch exceptions by const-ref, not by value 2018-10-29 16:41:54 +01:00
e814aca29f Merge pull request #500 from godric3/rmgCrash
Fix crash when generating random map with random number of players
2018-10-29 01:38:10 +03:00
f563712782 fix formatting
Co-Authored-By: godric3 <godric3@users.noreply.github.com>
2018-10-28 16:36:11 +01:00
7ded9dbda8 Fix crash when generating random map with random number of players 2018-10-27 18:18:08 +02:00
72aff02418 AI pathfinding: buy boat 2018-10-21 14:17:55 +03:00
cbaa834589 AI pathfinding: bug fix after refactoring 2018-10-10 14:51:57 +03:00
f327c46fa3 AI pathfinding: rename and add const to functions 2018-10-07 14:51:27 +03:00
49c872e4ec AI: replace SectorMap with new PathfinderManager 2018-10-06 16:35:31 +03:00
eb17313f7f AI: pathfinder extensibility - add one more rule for movement to destination and some refactoring 2018-09-23 15:26:53 +03:00
7150fc9f71 AI: pathfinder api supports configuration 2018-09-23 15:26:53 +03:00
9ab44b950a AI: pathfinder rework, rules refactored a bit. 2018-09-23 15:26:53 +03:00
24221f3fb4 AI: move teleportation handling to pathfinder helper and neighbour finder 2018-09-23 15:26:53 +03:00
6ac987794c AI: first rule extracted for pathfinder 2018-09-23 15:26:53 +03:00
9af0032f84 AI: try to add some pathfinder extensibility. Extracted neighbour nodes finder 2018-09-23 15:26:53 +03:00
cca46e311d Fixed schemas for battle animation overwritting an solo attribute instead images attribute dependant. Now working for replacing battle sprites on pre-existant heroes too (#490) 2018-09-13 02:33:34 +03:00
47ba3b2476 Hero scheme: allow each hero to have a unique battle animation (#480)
* attribute for battle image added on hero class, allowing on hero schemes each hero have a unique battle .def in 'images' structures sided with portraits and specialties images
2018-08-27 09:42:36 +03:00
1471043cae Update visual studio project files 2018-08-22 17:31:48 +03:00
96215233bc macOS: fix packet deserialization (#479) 2018-08-14 01:03:45 +03:00
7ed318d156 Stop awarding single scenario bonuses in campaigns 2018-08-05 05:42:54 +03:00
2288e9b8aa Merge branch 'develop' into AIMapObjectEvaluation 2018-07-30 01:33:49 +02:00
393b25eb7f Minor tweaks/fixes 2018-07-29 19:31:01 +02:00
b37ba8e046 Initial version of AI object value config 2018-07-28 00:43:56 +02:00
615df6203d Oprator overload correction... 2018-07-26 16:43:40 +02:00
273802c92c I have no idea what I'm doing 2018-07-26 12:14:29 +02:00
21c1f47a78 Fixes 2018-07-22 19:12:11 +02:00
2c1d91e2ff Move object ID struct to lib 2018-07-22 18:38:45 +02:00
9bd662b2f3 Merge pull request #459 from vcmi/issue2969
Fix for isuue 2969
2018-07-17 04:28:59 +03:00
6174df0a72 Revert only launcher saving to settings.json from PR441 2018-07-16 22:05:42 +02:00
d6f889f08a Setup town`s war machine in finalization step
* fixes https://bugs.vcmi.eu/view.php?id=2969
2018-07-16 15:16:55 +03:00
260981d586 Update project files to match vcmi code changes 2018-07-06 18:52:51 +02:00
dcbcff41dc apply review comments for CAndroidVMHelper 2018-05-26 14:50:49 +03:00
ee033e9c9c fix android build 2018-05-25 22:57:29 +03:00
224ea28433 Fix various memory errors related to server and connections.
* keep connection when restarting scenario
* wrong double free in Connection
* multiple use after free when stopping server
* double free of StartInfo
2018-05-01 00:04:20 +03:00