Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pathfinding when digging is way off  (Read 386 times)

Rollory

  • Bay Watcher
    • View Profile
Pathfinding when digging is way off
« on: November 04, 2007, 04:42:00 pm »

Situation:

...
###
@.#

where @ is my miner, inside the cliff face, approaching the outside.  If I designate one of the tiles between him and the outside to dig, he will attempt to pathfind his way to one of the outside tiles so as to start digging from there, even though a much closer adjacent location is available.  Usually this means running around half the map.  It means I have to build doors and hatches and lock him in so as to force him to dig it out properly.

Logged

Mephisto

  • Bay Watcher
    • View Profile
Re: Pathfinding when digging is way off
« Reply #1 on: November 04, 2007, 05:11:00 pm »

There's another thread around here somewhere about this. Dwarves prefer to dig from the west above anything else. If not west, they'll go to the east. If both of those are blocked, they'll dig from the north, and if all other cardinal directions are blocked, then south. Can't remember the diagonals, though.
Logged

TheSpaceMan

  • Bay Watcher
    • View Profile
    • http://www.digital-lifeform.com
Re: Pathfinding when digging is way off
« Reply #2 on: November 04, 2007, 05:13:00 pm »

Probably a old dwarven tradition.
Logged
Poking around with a DFParser.
Bodypart names, creatures names in one easily overviewable place.

Oh my new (old) picture?

Nesoo

  • Bay Watcher
    • View Profile
Re: Pathfinding when digging is way off
« Reply #3 on: November 04, 2007, 08:07:00 pm »

I remember reading that post. I think the diagonals were based on the cardinals. In order of preference: NW (prefer W over E, N over S), NE, SW, SE.
Logged
000508 □ [dwarf mode][flows] flooding over a full pond will kill the fish inside

Draco18s

  • Bay Watcher
    • View Profile
Re: Pathfinding when digging is way off
« Reply #4 on: November 05, 2007, 11:40:00 pm »

quote:
Originally posted by Nesoo:
<STRONG>I remember reading that post. I think the diagonals were based on the cardinals. In order of preference: NW (prefer W over E, N over S), NE, SW, SE.</STRONG>

Yup, that's what I observed and posted (in several places).

Logged