Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question: Restrict Traffic  (Read 1298 times)

krag123

  • Bay Watcher
    • View Profile
Question: Restrict Traffic
« on: June 23, 2011, 02:57:10 pm »

Restrict traffic does not seem to prevent my dwarfs from walking in areas i do not want them to.  How do i clear out area's without killing the dwarfs?
Logged
Join my Mini Trooper Raid Army:
http://rolens-rangers.minitroopers.com

dwarfhoplite

  • Bay Watcher
  • Gentledwarves, prepare for Glory!
    • View Profile
Re: Question: Restrict Traffic
« Reply #1 on: June 23, 2011, 03:32:34 pm »

make unwanted areas restrict, not low traffic.
If that doesnt work you can always use burrows
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Question: Restrict Traffic
« Reply #2 on: June 23, 2011, 03:45:52 pm »

Traffic restrictions do not prevent dwarves from walking into an area.  They just bias the pathfinding algorithm to try to avoid that area if possible.  Traffic zones don't control where dwarves go, just what path they take to get there.

Burrows don't prevent dwarves from entering an area.  A dwarf assigned to a burrow won't be able to use any object or building outside the burrow, but there's no restriction on where he walks.

The only way to reliably prevent dwarves from entering an area is to physically block the area with walls or locked doors, making it impossible for dwarves to go there.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

Aachen

  • Bay Watcher
  • Wenzo Pilgrim cancels job: unstuck in time.
    • View Profile
Re: Question: Restrict Traffic
« Reply #3 on: June 23, 2011, 03:46:53 pm »

If you're restricting traffic, you've got to provide them with an alternate route that is not restricted. Also, the traffic designations are based on weights, so if the alternate route is still calculated to be longer, they'll path through the restricted- or low-traffic areas. Finally, if the alternate route can't handle the amount of traffic it's taking (i. e., dwarves are heaping up and getting into tangles), some commuters will likely end up repathing through that area.

You can, in your init files, modify the weights used for traffic designations.
Logged
Quote from: Rithol Camus
There is but one truly serious philosophical problem and that is magma.

Quote from: Chinua Achebe
.... For Cliché is pauperized Ecstasy.

celem

  • Bay Watcher
    • View Profile
Re: Question: Restrict Traffic
« Reply #4 on: June 23, 2011, 05:23:25 pm »

You can, in your init files, modify the weights used for traffic designations.

Dont get too carried away, really high numbers causes nasty lag.
Logged
Marksdwarf Pillboxes
I wish I had something cool to say about this.  Because it's really cool.

Farmerbob

  • Bay Watcher
    • View Profile
Re: Question: Restrict Traffic
« Reply #5 on: June 24, 2011, 12:14:37 am »

If you look closely, you will see that high traffic is not the default.  If you want dwarves to prefer a certain path, you can also designate for high traffic, meaning dwarves will go out of their way to use the path you choose for them.

This might be useful for routing dwarves on patrols next to fortifications or windows.
« Last Edit: June 24, 2011, 04:47:06 pm by Farmerbob »
Logged
How did I miss the existence of this thread?
(Don't attempt to answer that.  Down that path lies ... well I was going to say madness but you all run towards madness as if it was made from chocolate and puppies.  Just forget I said anything.)

LuckyLuigi

  • Bay Watcher
  • Never Ever Savescum
    • View Profile
Re: Question: Restrict Traffic
« Reply #6 on: June 24, 2011, 06:53:28 am »

Designating highways is much more effective in decreasing pathfinding load than designating roadblocks.
Also, make your highways at least 2 tiles wide, preferably 3.
Logged
Check out Time Denee's brilliant DF comics of Bronzemurder and Oilfurnace.

Batdwarf Forever !