Ivan Savenko
|
e8e4446886
|
Simplify NKAI settings loading code
|
2024-04-22 11:14:58 +03:00 |
|
Ivan Savenko
|
20f323d83c
|
Added 'useTroopsFromGarrisons' option to NKAI
|
2024-04-22 11:14:57 +03:00 |
|
Andrii Danylchenko
|
7aff0e63fc
|
NKAI: fix parallel access to object graph
|
2024-04-21 12:27:58 +03:00 |
|
Andrii Danylchenko
|
70fad45316
|
Merge pull request #3770 from vcmi/nkai-multitask
NKAI: allow multiple tasks to be executed from one calculation
|
2024-04-20 15:21:11 +03:00 |
|
Andrii Danylchenko
|
3939c4b9d3
|
NKAI: stability fixes and regression
|
2024-04-20 14:32:58 +03:00 |
|
Alexander Wilms
|
7d925b3689
|
Fix typo: Preasure -> Pressure
|
2024-04-16 21:10:15 +00:00 |
|
Andrii Danylchenko
|
ed76d8a652
|
NKAI: allow multiple tasks to be executed from one calculation
|
2024-04-14 16:46:05 +03:00 |
|
Andrii Danylchenko
|
728f673763
|
NKAI: remove static ai field
|
2024-03-31 21:11:25 +03:00 |
|
Andrii Danylchenko
|
d6f1a5c2b3
|
NKAI: parallel capture objects
|
2024-03-29 20:39:03 +02:00 |
|
Andrii Danylchenko
|
6245adb9a4
|
NKAI: configurable object graph
|
2024-03-08 14:39:16 +02:00 |
|
Andrii Danylchenko
|
5f8a157c6d
|
NKAI: rollback changes with removing scan depth
|
2024-03-03 10:21:17 +02:00 |
|
Andrii Danylchenko
|
b236384356
|
NKAI: graph add battle layer
|
2024-03-02 15:54:05 +02:00 |
|
Andrii Danylchenko
|
a090441672
|
NKAI: object graph second layer not operational yet
|
2024-03-02 15:54:03 +02:00 |
|
Andrii Danylchenko
|
376a17409f
|
NKAI: initial implementation of object graph
|
2024-03-02 15:52:45 +02:00 |
|
Andrii Danylchenko
|
35429eab52
|
NKAI: moddable configuration
|
2024-03-01 22:03:07 +02:00 |
|
Alexander Wilms
|
678cacbd25
|
Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../redundant_virtual.txt`
```python
import os
with open("../redundant_virtual.txt") as f:
for line in f:
print()
line: str = line.strip()
print(line)
tmp = line.split(":",2)
file = tmp[0].strip()
code = tmp[-1].strip()
print(file)
print(code)
new_code = code.replace("virtual ", "", 1)
# https://superuser.com/a/802490/578501
command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
os.system(command)
```
|
2024-02-13 15:21:30 +01:00 |
|
Andrii Danylchenko
|
0c1664dbe7
|
NKAI: various AI fixes after tests in headless
|
2024-01-20 22:55:30 +02:00 |
|
Andrii Danylchenko
|
1db43a509e
|
NKAI: fix casting FLY several times during path calculation
|
2024-01-20 22:55:28 +02:00 |
|
Andrii Danylchenko
|
36bc9ddcec
|
NKAI: mutex for internal AI state
|
2024-01-20 22:55:27 +02:00 |
|
Andrii Danylchenko
|
cc7fc4a2c6
|
Fix headless mode
|
2024-01-20 22:55:27 +02:00 |
|
Ivan Savenko
|
d04241b10a
|
Code cleanup
|
2024-01-19 23:02:00 +02:00 |
|
Ivan Savenko
|
60ffb81b33
|
Replaced remaining placeholder code with callbacks
|
2024-01-19 13:55:22 +02:00 |
|
Ivan Savenko
|
a15366f5a5
|
Make IObjectInterface::cb non-static
|
2024-01-19 13:55:21 +02:00 |
|
Alexander Wilms
|
f3277b7953
|
Define each identifier in a dedicated statement
|
2024-01-10 00:22:23 +00:00 |
|
Ivan Savenko
|
8346d71c98
|
Remove more subID access
|
2023-11-01 14:44:05 +02:00 |
|
Alexander Wilms
|
5cbc75d3b7
|
Merge remote-tracking branch 'upstream/develop' into develop
|
2023-10-29 13:35:37 +00:00 |
|
Alexander Wilms
|
0a6c82c639
|
AI/Nullkiller/Behaviors/DefenceBehavior.{h,cpp}: treat -> threat
|
2023-10-27 23:34:11 +00:00 |
|
Andrii Danylchenko
|
9eb9404f28
|
BattleAI: divide only positive part of score onto turns count
|
2023-10-22 21:37:54 +03:00 |
|
Ivan Savenko
|
ac925bb786
|
Renamed new types for consistency with code style
|
2023-10-22 16:55:19 +03:00 |
|
Ivan Savenko
|
80e6485965
|
MetaIdentifier now uses std::variant internally
|
2023-10-22 16:55:19 +03:00 |
|
Ivan Savenko
|
77facf9387
|
Implement missing functions, fixes linking errors
|
2023-10-22 16:54:56 +03:00 |
|
Ivan Savenko
|
910ad50417
|
Fix client & server compilation
|
2023-10-22 16:54:48 +03:00 |
|
Ivan Savenko
|
0a10fc30b8
|
(lib) Bonus subtype is now stored as metaidentifier that can store any
other identifier inside it
|
2023-10-22 16:54:43 +03:00 |
|
Ivan Savenko
|
fd01a25352
|
Implemented basic version of configurable Witch Hut
|
2023-10-16 00:12:38 +03:00 |
|
Andrii Danylchenko
|
ebe155fa95
|
NKAI: mana recovery
|
2023-09-30 10:37:36 +03:00 |
|
Alexander Wilms
|
6c15e5b426
|
Add include path of a more recent version of fuzzylite, which is required to build it with gcc 12.2.0
a651f3d13e
|
2023-09-16 05:13:16 +00:00 |
|
Ivan Savenko
|
823ffa7a07
|
Always use ResourcePath for referencing images and animations
|
2023-09-04 18:22:34 +03:00 |
|
Ivan Savenko
|
ce20d913e0
|
Fix checking PlayerColor's for validness
|
2023-08-27 01:35:38 +03:00 |
|
Andrii Danylchenko
|
274bf739b8
|
BattleAI: damage cache and switch to different model of spells evaluation
|
2023-08-26 13:06:51 +03:00 |
|
Ivan Savenko
|
62cd8b12d4
|
Converted several namespace enums to enum class
|
2023-08-25 13:38:02 +03:00 |
|
Ivan Savenko
|
87957e74c1
|
Replaced boost::thread_specific_ptr with thread_local
|
2023-08-23 16:32:29 +03:00 |
|
Andrii Danylchenko
|
60f0a4553a
|
NKAI: fix freeze on army gathering
|
2023-08-06 09:03:29 +03:00 |
|
Andrii Danylchenko
|
ccfc6f5716
|
NKAI: increase towns priority, buy heroes more often
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
f1a9ae99ee
|
NKAI: various behavior fixes, undo max_gold_preasure
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
fb7477047a
|
NKAI: loosen gold presure on build system.
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
6490c65490
|
nkai: fix freezes
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
c93bb0a502
|
nkai: fixes and skill rewards
|
2023-07-31 22:01:11 +03:00 |
|
Tomasz Zieliński
|
e483f06e0f
|
Remove unused variable
|
2023-07-31 22:01:11 +03:00 |
|
Tomasz Zieliński
|
5bffea0aac
|
Use new interface
|
2023-07-31 22:01:11 +03:00 |
|
Andrii Danylchenko
|
0fd118d3ce
|
NKAI: gold reward
|
2023-07-31 22:01:11 +03:00 |
|