Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hacking pathfinder question  (Read 730 times)

darius

  • Bay Watcher
  • ^^
    • View Profile
Hacking pathfinder question
« on: February 05, 2010, 12:23:27 pm »

What i want to do is to remove all water checks idealy making a underwater walking possible. (later combined with underwater race+ underwater buildings= fun... and numerous dwarves drowning :D ). What I don't understand is how pathing works. How does it not check water level but somehow manages to find that it's above 4. And it only does that pre path checking... If you already have path connecting (like through safe path) but it's longer than underwater dwarves go underwater (with my editing) also works for patrol paths, but not for normal moving.

Any 1 have any ideas?
Logged

eerr

  • Bay Watcher
    • View Profile
Re: Hacking pathfinder question
« Reply #1 on: February 05, 2010, 09:40:44 pm »

It sounds like you have at least two checks for water-filled tiles.

once calculating the path, and once for the path end.
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: Hacking pathfinder question
« Reply #2 on: February 05, 2010, 10:36:06 pm »

Is it possible that the game stores the tiles that have 4/7 water in an array of some sort to make it easier to tell if the tile's go or no-go for fish or land-only creatures and then just checks that?
Logged