Mircea TheHonestCTO
dd7ea75b25
LIBRARY->resourceTypeHandler adjustments after develop merge
2025-10-01 18:25:23 +02:00
Mircea TheHonestCTO
6d370014b8
ResourceTrader.cpp remove mithril condition
2025-10-01 17:59:28 +02:00
Mircea TheHonestCTO
280d793a7b
ResourceTrader.cpp don't sell mithril
2025-10-01 17:53:48 +02:00
Mircea TheHonestCTO
bb7588852b
refactor AIMemory replacing getObj with getObjInstance to avoid unnecessary visibility filtering when just a simple iteration over objs is desired
2025-09-27 03:36:51 +02:00
Mircea TheHonestCTO
a836cd3aed
fix: time-of-check-to-time-of-use (TOCTOU) race condition in AIMemory::removeInvisibleObjects; a bit of refactoring in RecruitHeroBehavior and some todo comments for later on
2025-09-25 17:09:42 +02:00
Mircea TheHonestCTO
2b751d9705
clarify ResourceTrader TODO comment
2025-09-13 10:22:50 +02:00
Mircea TheHonestCTO
b8eb49bc82
finished removing thread local from NK2
2025-09-12 19:25:56 +02:00
Mircea TheHonestCTO
2f1c6946e3
remove unused TODO parameter from toString() calls; adjust ObjectIdRef constructor usage for clarity and consistency
2025-09-12 15:39:49 +02:00
Mircea TheHonestCTO
3aed53de3d
more thread_local removal work
2025-09-12 15:33:34 +02:00
Mircea TheHonestCTO
fe39537a5d
ResourceTrader comment for later on
2025-09-12 08:10:54 +02:00
Mircea TheHonestCTO
6df299d892
ResourceTrader improvements and testing finished
2025-09-12 08:08:18 +02:00
Mircea TheHonestCTO
1b5cacfc13
ResourceTrader improvements and testing WIP
2025-09-10 01:42:56 +02:00
Mircea TheHonestCTO
765780bdf8
fix CI build
2025-09-08 17:05:21 +02:00
Mircea TheHonestCTO
aea43de201
extract trading logic into ResourceTrader, test preparation WIP
2025-09-08 16:44:26 +02:00
Mircea TheHonestCTO
162e3dbd39
log adjustment
2025-09-07 17:09:45 +02:00
Mircea TheHonestCTO
6f33bfe302
feature: improve trading logic within makeTurn pass to avoid thousands of microtransactions; to focus on now's requirements but with long term in mind; to get some gold for the army as well (compared to 0 as before)
2025-09-07 15:08:20 +02:00
Mircea TheHonestCTO
b49ba08a45
more thread_local removal in NK2, still WIP
2025-09-05 18:10:14 +02:00
Mircea TheHonestCTO
9cdf74fb42
add pathfinderTurnStorageMisses to track how bucket size should be adjusted; modfied nk2ai-settings.json to simulate 3 clearer AI difficulty levels
2025-09-05 03:49:09 +02:00
Mircea TheHonestCTO
13b0a7ad4e
fix: regression: priority pass skip should not verify a new hero to be recruited if it's valid, of course it doesn't exist at that point
2025-09-04 19:54:39 +02:00
Mircea TheHonestCTO
2e49d6aca9
fix: skip pass and priority pass if hero is not valid anymore to as extra checks for lost heroes
2025-09-04 00:56:36 +02:00
Mircea TheHonestCTO
7a40981a95
overall refactoring, HeroPtr adjustments, AiNodeStorage remove unnecessary callback
2025-09-04 00:07:12 +02:00
Mircea TheHonestCTO
13bd7ed8f4
WIP remove thread_local CCallback in HeroPtr
2025-09-01 04:49:21 +02:00
Mircea TheHonestCTO
fa677eb243
WIP remove thread_local CCallback * ccTl
2025-08-30 20:15:03 +02:00
Mircea TheHonestCTO
e5724578b5
cleanup
2025-08-30 07:04:23 +02:00
Mircea TheHonestCTO
1b0b15063f
fix nullptr thread_local gw and cc: introduce SET_GLOBAL_STATE_TBB for tbb:parallel_for
2025-08-30 06:52:48 +02:00
Mircea TheHonestCTO
b1621cdf29
rename nkai-settings.json into nk2ai-settings.json for Nullkiller2
2025-08-24 23:39:34 +02:00
Mircea TheHonestCTO
54b3d17bcf
AINodeStorage.h NKAI #define to NK2AI
2025-08-24 21:15:34 +02:00
Mircea TheHonestCTO
58543f23cf
refactoring RecruitHeroBehavior + test sample; renamed more Nullkiller variables consistently
2025-08-24 09:12:34 +02:00
Mircea TheHonestCTO
f7f09ff325
simplification: remove nullkiller->dangerHitMap->updateHitMap() from RecruitHeroBehavior, BuyArmyBehavior and BuildingBehavior. Now it's called only once before getting into those decomposers;
...
simplification: remove partialUpdate bool from Nullkiller:updateState as it depends on pathfinderInvalidated anyway;
restructure goal/RecruitHeroBehavior to allow easier testing
2025-08-20 03:08:02 +02:00
Mircea TheHonestCTO
eb471ba01d
put trace if back
2025-08-19 19:29:28 +02:00
Mircea TheHonestCTO
daf24de3e9
better resources and mines gathering; include TODOs for all the things that need to be investigated
2025-08-17 16:20:25 +02:00
Mircea TheHonestCTO
d2d7bba02e
maxRoamingHeroesPerTown as configuration
2025-08-17 14:11:12 +02:00
Mircea TheHonestCTO
5c604ec57a
minor comments and todo
2025-08-17 12:41:26 +02:00
Mircea TheHonestCTO
a4a9927e9e
more cc renaming; BuildingID get level index and upgrades; Creatures renaming
2025-08-17 12:24:35 +02:00
Mircea TheHonestCTO
bf3d5627e0
Bring back cbc in CAdventureAI and rename the rest to cc
2025-08-16 20:17:18 +02:00
Mircea TheHonestCTO
6eb7bb2ca5
BuildAnalyzer.cpp cleanup and renaming
2025-08-16 19:49:48 +02:00
Mircea TheHonestCTO
af14b67bd0
AIGateway cbc static methods refactoring
2025-08-16 08:40:40 +02:00
Mircea TheHonestCTO
b8bf8714a1
consistent renaming of ai into aiGw or aiNk and cbc
2025-08-16 00:22:18 +02:00
Mircea TheHonestCTO
6b6298fa33
consistent renaming of ai into aiGw or aiNk and cbc
2025-08-15 18:58:14 +02:00
Mircea TheHonestCTO
9a09654a0f
consistent renaming of ai into aiGw or aiNk and cbc
2025-08-15 18:30:28 +02:00
Mircea TheHonestCTO
306f01610d
AIGateway.cpp thread_local vars consistent renaming
2025-08-15 17:47:21 +02:00
Mircea TheHonestCTO
e0ab4ee80a
mirror thehonestcto:feature/code-readability-improvements in Nullkiller2
2025-08-15 02:13:45 +02:00
Mircea TheHonestCTO
a9ecaca81f
squashed: BuildAnalyzer wip; Nulkiller decompose; Nulkiller makeTurnHelperPriorityPass; Nulkiller minor refactoring
2025-08-14 23:15:23 +02:00
Mircea TheHonestCTO
87417296aa
Nulkiller tracing player status method;
...
minor renaming
2025-08-14 04:17:58 +02:00
Mircea TheHonestCTO
3b5af91aa9
treat->threat typo renaming;
...
Nulkiller minor refactoring
2025-08-14 03:47:32 +02:00
Mircea TheHonestCTO
010cd920e3
Nulkiller minor refactoring
2025-08-14 03:29:55 +02:00
Mircea TheHonestCTO
76e91f7689
AIGateway.cpp extracting methods that can be isolated/static
2025-08-14 03:09:42 +02:00
Mircea TheHonestCTO
9c3cfd5478
nk2ai config
2025-08-13 18:47:59 +02:00
Mircea TheHonestCTO
2f5d90fdb3
nk2ai-settings.json
2025-08-13 18:44:08 +02:00
Mircea TheHonestCTO
64324f4821
change namespace
2025-08-13 17:16:27 +02:00