Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: One way hallways in .34?  (Read 4633 times)

nbp

  • Bay Watcher
    • View Profile
Re: One way hallways in .34?
« Reply #30 on: December 07, 2012, 09:07:11 am »

Sadly there aren't really any good/efficient ways of making 1-way corridors right now other then has been pointed out already. The best way right now is to use a hatch+pressure plate, so that anything approaching from one side triggers the plate and can't get through (a similar method to that used in a goblin grinder).

I would _love_ to have a way to force one-way pathing.  I often want to allow creatures into my fort, be they liasons, hordes of the undead, invading armies of goblins, or almost anything else.  But any time I leave a valid path between the inside of the fort and the outside, it's just a matter of time until some idiot decides that he needs to go fetch a sock or something from the dangerous, zombie and goblin infested wasteland outside.  Even with everyone restricted to a civilian burrow, random recruits freshly added to the military wander outside.  Even when I forbid everything, some idiot merchant quietly drops a set of clothes behind a tree in a valley somewhere when I'm not looking, just to screw everything up.  If I could set up a one way path into the fort that would act as an entrance, but not an exit, I'd be so much happier.
Make an airlock at your entrance (so have two raising bridges with a fair amount of space between them). You can then put either the trade depot for traders or harmless kittens to lure sieges. Then you just open the outer layer without opening the inner one, wait until whatever you want is inside the the outer layer, then close the outer and open the inner. It allows you to easily control what gets in without there ever being a complete path to the outside that your dwarves can get out through.

I have a protected caravan entrance, with an airlock that I don't even need.  The caravan entrance is safe.  Liasons and migrants are my biggest problem right now.  There doesn't seem to be a reliable way to force them to spawn at the protected entrance, so I need to open up to let them in.  And I don't think they will path into an airlock - they need a complete path into the fort.
Logged

TKGP

  • Bay Watcher
    • View Profile
Re: One way hallways in .34?
« Reply #31 on: December 07, 2012, 09:38:23 am »

Liasons and migrants are my biggest problem right now.  There doesn't seem to be a reliable way to force them to spawn at the protected entrance, so I need to open up to let them in.  And I don't think they will path into an airlock - they need a complete path into the fort.
I'm not so sure about liaisons (presumably they just path directly to the mayor, if possible), but migrants try to get to a meeting area. Open the outer door, designate a meeting area inside, and then once they're all in press a in the zone settings to make it inactive (so your dwarves don't try to hang out in the airlock when it's open). Alternately you could just make a burrow and temporarily assign all new dwarves to it.
Logged
Quote from: tomio175
Quote from: Mrhappyface
Well if COD players all have ADHD, and Minecrafters autism, then what do DF players all have?
Cave adaption.

Damiac

  • Bay Watcher
    • View Profile
Re: One way hallways in .34?
« Reply #32 on: December 07, 2012, 10:16:44 am »

Just had a though on this while reading the tread. Utterly untested and based on the implimentation details of the path finding algorithm

Code: [Select]
############################
...HLHHHHHHHHHHHHHHHHHHHH...
...H####################H...
...HHHHHHHHHHHHHHHHHHHHLH...
############################

. = Floor
# = Wall
L = Low traffic zone
H = High traffic zone

Route cost is the same in both directions but depending on how the path finding explores different paths i could see it prefering one route for one direction and the other route for the other direction.

Someone else may need to do the science, I dont have a computer with DF on with me.

What if you took this idea, but take the walls out of the center, and just use a couple of low traffic zones, like so:

Code: [Select]
############################
...LHHHHHHHHHHHHHHHHHHHHH...
...HLHLHLHHHLLLHHHHLHLHHHLH...
...HHHHHHHHHHHHHHHHHHHHHL...
############################

So dwarves going east-west will prefer the bottom route, then go up to the middle at the end.  Dwarves going west-east should do the same with the top route.  Generally, the middle will only be used for avoiding other dwarves going too slow on the preferred route.  Maybe making the middle all medium traffic would accomplish the same thing, I'm not sure.
I think it'd only be useful for aesthetic reasons, if you prefer to see dwarves going one way on one side of the tunnel, and one way on the other side, since you'd probably get the same speed of traffic flow you'd see with an easier to set up high traffic middle. 

Again, this does nothing for the idea of a true 1 way corridor, but I think that's impossible, unfortunately
Logged
Pages: 1 2 [3]