Mircea TheHonestCTO
|
1900e03b47
|
nullkiller2: Replace hasBuiltSomeTradeBuilding() with hasBuiltResourceMarketplace()
|
2025-11-18 18:18:35 +01:00 |
|
Mircea TheHonestCTO
|
3c7abd988e
|
nullkiller2: revert NK2AI_TRACE_LEVEL to 0 for merge in develop
|
2025-11-16 17:59:23 +01:00 |
|
Mircea TheHonestCTO
|
e2851e9d00
|
nullkiller2: simplify hero name display by removing expensive getNameTranslated
|
2025-11-16 17:57:31 +01:00 |
|
Mircea TheHonestCTO
|
69d24111df
|
nullkiller2: remove commented out code, plus formatting the affected file
|
2025-11-16 17:55:33 +01:00 |
|
Mircea TheHonestCTO
|
6888cf0f5f
|
nullkiller2: add scroll count to reward size calculation in priority evaluator to mirror PR from NK1
|
2025-11-15 17:39:05 +01:00 |
|
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
|
4bdf1f915b
|
pass EGameResID by const reference in goldApproximate function
|
2025-10-01 17:54:48 +02:00 |
|
Mircea TheHonestCTO
|
280d793a7b
|
ResourceTrader.cpp don't sell mithril
|
2025-10-01 17:53:48 +02:00 |
|
Mircea TheHonestCTO
|
55feee16de
|
fix: pass tasks by reference in RecruitHeroBehavior
|
2025-09-27 04:27:52 +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
|
bb6e60c61a
|
comment
|
2025-09-13 13:03:18 +02:00 |
|
Mircea TheHonestCTO
|
2b751d9705
|
clarify ResourceTrader TODO comment
|
2025-09-13 10:22:50 +02:00 |
|
Mircea TheHonestCTO
|
12ed2e9780
|
clang formatting DefenceBehavior
|
2025-09-13 04:24:29 +02:00 |
|
Mircea TheHonestCTO
|
1d5cb2c8b8
|
clang formatting RecruitHeroBehavior
|
2025-09-12 20:25:23 +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
|
76a4a59662
|
simplify TRADE goal description in AbstractGoal.cpp without thread_local CCallback
|
2025-09-12 15:33:12 +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
|
e7e88533cb
|
fix vtable / cmake for NK2 testing
|
2025-09-09 03:46:18 +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
|
3c5d94fda3
|
leave TODO for 2 potential bugs regarding whirlpool exploration and not only
|
2025-09-08 16:43:07 +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
|
16cdee82fd
|
removed operator bool() from HeroPtr so we can consistently use isVerified() like in most of the other places
|
2025-09-06 06:41:50 +02:00 |
|
Mircea TheHonestCTO
|
b49ba08a45
|
more thread_local removal in NK2, still WIP
|
2025-09-05 18:10:14 +02:00 |
|
Mircea TheHonestCTO
|
844d6c0b78
|
AIPathfinder remove unused init method
|
2025-09-05 05:08:24 +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
|
19076ee29d
|
fix AINodeStorage::calculateChainInfo using invalid/unverified/lost heroes which lead to multiple issues down the line in makeTurn
|
2025-09-04 00:03:42 +02:00 |
|
Mircea TheHonestCTO
|
47edbb7825
|
fix Cannot get object with id %d. Object was removed. Game crashing if AI loses a hero in a fight where humans don't see the map
|
2025-09-02 11:08:31 +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
|
e2c80f03a1
|
remove thread_local AIGateway * aiGwTl
|
2025-08-30 18:10:33 +02:00 |
|
Mircea TheHonestCTO
|
3aedb44280
|
todo to investigate
|
2025-08-30 12:10:34 +02:00 |
|
Mircea TheHonestCTO
|
ebdd044838
|
delete unused code
|
2025-08-30 08:51:44 +02:00 |
|
Mircea TheHonestCTO
|
d081c6c54e
|
nothing to trigger CI/CD again, dummy download failure in the last run
|
2025-08-30 08:44:54 +02:00 |
|
Mircea TheHonestCTO
|
9698c58c0a
|
comment out SetGlobalState logs for now, left for local inspection
|
2025-08-30 07:59:05 +02:00 |
|
Mircea TheHonestCTO
|
1e2ed620f7
|
thread local refactoring
|
2025-08-30 07:27:07 +02:00 |
|
Mircea TheHonestCTO
|
deeb995d77
|
cleanup unnecessary AIGateway reference in CGoal.h
|
2025-08-30 07:13:46 +02:00 |
|
Mircea TheHonestCTO
|
e5724578b5
|
cleanup
|
2025-08-30 07:04:23 +02:00 |
|
Mircea TheHonestCTO
|
98e0a3de6e
|
revert fix for nullptr w NK2AI_TRACE_LEVEL due to thread local issues
|
2025-08-30 06:55:30 +02:00 |
|
Mircea TheHonestCTO
|
12076a03fd
|
NK2AI_TRACE_LEVEL 0 -> 2 because it should be safe now after the thread local fix
|
2025-08-30 06:53:26 +02:00 |
|