I can't figure out how to use a costmatrix effectively
-
I've populated a costmatrix with some costs. How can these two lines possibly log a cost of 255? Shouldn't any location with a cost of 255 be unpathable?
const path = somecreep.pos.findPathTo(destination, {costCallback:()=>cm});
somecreep.log('move: '+JSON.stringify(path[0])+' with cm cost '+cm.get(path[0].x,path[0].y));
-
This matter is now a bug report in the tech/bug forum.