Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [176.38a] Pathfinding and basic stairwells/shafts.  (Read 831 times)

Yroburus

  • Escaped Lunatic
    • View Profile
[176.38a] Pathfinding and basic stairwells/shafts.
« on: February 25, 2008, 09:25:00 pm »

A recent fortress design I have been working at uses an 'access shaft' which is the first thing to be excavated after embarking. It is a 7x7 square with the corners undug (like two 5x7 squares overlaying to make a fat plus symbol). The same room is mined out on the floors below, until it is several floors deep, with ramps or stairs connecting it in any of the outer tiles.

The dwarves cannot seem to pathfind their way back to the surface, or even up a single floor for that matter, once they are a few floors down. I tried turning them into a squad and ordering them up floor by floor, but to no avail. They can only ever seem to get 2-4 floors down before they get stuck.

[ February 25, 2008: Message edited by: Yroburus ]

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: [176.38a] Pathfinding and basic stairwells/shafts.
« Reply #1 on: February 26, 2008, 10:39:00 pm »

So they can walk down there but they can't walk back?  I can take a look at the save if you like.

toadyone@bay12games.com or somewhere downloadable
region folder in some kind of zip/rar/7z
any new objects that were added to the raw folder

Logged
The Toad, a Natural Resource:  Preserve yours today!

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: [176.38a] Pathfinding and basic stairwells/shafts.
« Reply #2 on: March 08, 2008, 04:57:00 am »

This isn't a bug but has more to do with the obscure way ramps function.  You need a wall next to the ramp that has a floor above it for the ramp to work.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Thassa

  • Bay Watcher
    • View Profile
Re: [176.38a] Pathfinding and basic stairwells/shafts.
« Reply #3 on: May 06, 2008, 11:19:00 am »

Oddly enough something similar just came up with me.  I dug a reservoir for my well, and this game I used ramps instead of stairs to keep any dwarves that fell in from drowning.. which wouldn't have worked to well, because the dwarf that dug out the reservoir couldn't find his way back out and nearly starved to death before I realized there was a problem.  This was the closest thing I could find to it in the forum.

If needed I still have the save game.

code:
 Upper level
WWWWWWWW
.......W
. d.d .W
WWWWWWWW

 Lower level
.......
.......
..u.u..
WWWWWWW

. = Floor
W = Wall
u and d = up and down ramps
space is channeled floor.


Logged
Dwarf Fortress players: Coming up with solutions for problems that haven't been implemented yet. 

Draco18s

  • Bay Watcher
    • View Profile
Re: [176.38a] Pathfinding and basic stairwells/shafts.
« Reply #4 on: May 06, 2008, 11:34:00 am »

quote:
Originally posted by Thassa:
code:
 Upper level
WWWWWWWW
.......W
. d.d .W
WWWWWWWW

 Lower level
.......
.......
..uXu..
WWWWWWW

. = Floor
W = Wall
u and d = up and down ramps
space is channeled floor.



X is your problem.  You need a wall here.  As it is, the ramps ramp into a wall.

Side (based on your layout) conceptual view:

code:

  #  <- wall at the top
../#  <- ramp


You need:
code:

  .
../#

Logged

Thassa

  • Bay Watcher
    • View Profile
Re: [176.38a] Pathfinding and basic stairwells/shafts.
« Reply #5 on: May 06, 2008, 12:31:00 pm »

OH!.. that makes sense.  No wonder it didn't work.  Well, next time I'll keep that in mind, since this time I just dug a hole through the wall to save the starving dwarf, then replaced the ramps with staircases.

Thanks for the help.   :)

Logged
Dwarf Fortress players: Coming up with solutions for problems that haven't been implemented yet.