[Bug] Cache needs to be invalidated after a certain point to reevaluate blocked exits
Closed this issue · 4 comments
alexanselmo commented
Exits can be temporarily blocked in the case of Novice zones and other potential obstructions. We need a way to invalidate the cache and reevaluate paths.
Lines 19 to 33 in f6868c5
tedivm commented
The cache automatically invalidates after 150 ticks (that's what the maxttl is for).
alexanselmo commented
Interesting, I was running into an issue where my creeps thought an exit was blocked, long after it had been unblocked. I'll dig in a little deeper and see where the true error lies.
tedivm commented
You may want to look at the costmatrix generation and caching code, as anything there would trickle up to the pathfinding layer.
alexanselmo commented
Ok, thanks. I'm going to close this issue until I can get a better understanding of where it went wrong.