more debug info
This commit is contained in:
		@@ -101,6 +101,7 @@ public class AStarPathFinder extends AbstractNodeCostSearch implements Helper {
 | 
			
		||||
            }
 | 
			
		||||
            if (goal.isInGoal(currentNodePos)) {
 | 
			
		||||
                currentlyRunning = null;
 | 
			
		||||
                displayChatMessageRaw("Took " + (System.currentTimeMillis() - startTime) + "ms, " + numMovementsConsidered + " movements considered");
 | 
			
		||||
                return Optional.of(new Path(startNode, currentNode, numNodes));
 | 
			
		||||
            }
 | 
			
		||||
            //long constructStart = System.nanoTime();
 | 
			
		||||
@@ -193,7 +194,7 @@ public class AStarPathFinder extends AbstractNodeCostSearch implements Helper {
 | 
			
		||||
                bestDist = dist;
 | 
			
		||||
            }
 | 
			
		||||
            if (dist > MIN_DIST_PATH * MIN_DIST_PATH) { // square the comparison since distFromStartSq is squared
 | 
			
		||||
                displayChatMessageRaw("Took " + (System.currentTimeMillis() - startTime) + "ms, A* cost coefficient " + COEFFICIENTS[i]);
 | 
			
		||||
                displayChatMessageRaw("Took " + (System.currentTimeMillis() - startTime) + "ms, A* cost coefficient " + COEFFICIENTS[i] + ", " + numMovementsConsidered + " movements considered");
 | 
			
		||||
                if (COEFFICIENTS[i] >= 3) {
 | 
			
		||||
                    System.out.println("Warning: cost coefficient is greater than three! Probably means that");
 | 
			
		||||
                    System.out.println("the path I found is pretty terrible (like sneak-bridging for dozens of blocks)");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user