Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Traffic areas  (Read 1972 times)

Melzer

  • Bay Watcher
  • [CAN_POST][CURIOUSBEAST_POSTER][FANCIFUL]
    • View Profile
Traffic areas
« on: February 28, 2012, 04:15:30 pm »

something about traffic areas you know? How to remove them, whats the difference between them, how they affect dwarves etc.
Logged

Loud Whispers

  • Bay Watcher
  • They said we have to aim higher, so we dug deeper.
    • View Profile
    • I APPLAUD YOU SIRRAH
Re: Traffic areas
« Reply #1 on: February 28, 2012, 04:17:57 pm »

Set a normal traffic designation to remove them. They control the pathing calculations of Dwarfs, nothing much else

ASCIt

  • Bay Watcher
  • ._.
    • View Profile
Re: Traffic areas
« Reply #2 on: February 28, 2012, 04:19:44 pm »

Yeah, and you can adjust the different levels to numbers from 1-100, depending on how distinct you want them.
Logged
This is a very dorfy thread, and you WILL read it.

NecroRebel

  • Bay Watcher
    • View Profile
Re: Traffic areas
« Reply #3 on: February 28, 2012, 04:25:19 pm »

Traffic areas affect how the pathfinding algorithm works. Basically, whenever a creature tries to get somewhere, it seeks through the passable tiles adjacent to it, the passable tiles adjacent to those, the passable tiles adjacent to those, and so on, until it has sought through every tile accessible to it. Then, it adds up the number of tiles between it and its target along every possible route and sends the dwarf along the one with the shortest path. Traffic designations affect how long a path is considered to be when the algorithm is deciding which is shortest. A 10-tile path that's set as normal traffic will have a "length value" of 20 under default settings, for instance, so a 15-tile path that's set as high traffic (with its "length value" of 15) would be taken preferentially. This doesn't affect the speed at which dwarves move along the pathways but rather means that given 2 equal-length paths to one point dwarves will usually take the higher-traffic one.

The short of it is, high traffic areas encourage dwarves to walk along paths in those areas, while low traffic areas encourage dwarves to avoid going through those areas.

To remove a high, low, or restricted traffic area, just paint a normal-traffic area over it. By default, everywhere is set as a normal traffic zone, and things can only have one traffic level set at once. Also, only dwarves respect traffic designations.
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!