1
DF Suggestions / Designate Minecart route as riding route.
« on: May 27, 2013, 04:38:26 pm »
I'm surprised that this wasn't suggested before.
My idea here is that you can designate a minecart route as passenger route.
When dwarf tries to reach its destination through pathfinding (assuming A* pathfinding algorithm). Once it encounter a stop that part of a desginate Minecart route, it will take that route into consideration based on an assumed speed on the route (say, assume the cart always travels at 0.25 tiles/tick).
For multiple dwarfs using the same stop, each successful path using the stop will increase that stop's pathing cost by a certain amount (so you don't get all your fortress dwarf waiting at the stop because the route using that stop is the "shortest" for them all).
So, you can setup a kind of minecart network that allow you to shuttle dwarfs over long distance automatically (they'll take a cart to get there if it's a shorter route, or the only route).
My idea here is that you can designate a minecart route as passenger route.
When dwarf tries to reach its destination through pathfinding (assuming A* pathfinding algorithm). Once it encounter a stop that part of a desginate Minecart route, it will take that route into consideration based on an assumed speed on the route (say, assume the cart always travels at 0.25 tiles/tick).
For multiple dwarfs using the same stop, each successful path using the stop will increase that stop's pathing cost by a certain amount (so you don't get all your fortress dwarf waiting at the stop because the route using that stop is the "shortest" for them all).
So, you can setup a kind of minecart network that allow you to shuttle dwarfs over long distance automatically (they'll take a cart to get there if it's a shorter route, or the only route).