Only the road pathfinder doesn't check the actual cost, so that can't be the problem here.Rubidium wrote:Building bridges can be cheaper than actually building road there. 'newai' got some code to prevent building unnecessary bridges even though it's more expensive.
No, _estimate_multiplier is for making it non-perfect. max_length_multiplier is for setting the maximum route length (in tiles) the pathfinder will find. The maximum route the pathfinder will findZutty wrote:*sob*Sometimes bug fixing drives me to the very brink of insanity.
Yexo can you tell me what max_length_multiplier means?...
Is it something to do with making the pathfinder sub-admissable? i.e. that a value > 1 means the RPF prefers faster completion to cheaper cost.Code: Select all
function Road::InitializePath(sources, goals, max_length_multiplier = 0, max_length_offset = 10000)
Code: Select all
max_route_length (in tiles) = DistanceManhattan(source, goal) * max_length_multiplier + max_length_offset;