Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Direction build.  (Read 963 times)

Arclacke

  • Bay Watcher
  • Losing is fun!
    • View Profile
Direction build.
« on: September 15, 2011, 10:31:02 pm »

Is VERY annoying when you order a dwarf to build a wall and the fucking dwarf get stuck inside, with a opcional commando you can set the direction to build.
Sorry for bad english.
Logged

Bohandas

  • Bay Watcher
  • Discordia Vobis Com Et Cum Spiritum
    • View Profile
Re: Direction build.
« Reply #1 on: September 16, 2011, 12:08:01 am »

Good idea.
Logged
NEW Petition to stop the anti-consumer, anti-worker, Trans-Pacific Partnership agreement
What is TPP
----------------------
Remember, no one can tell you who you are except an emotionally unattached outside observer making quantifiable measurements.
----------------------
Έπαινος Ερις

Valdrax

  • Bay Watcher
  • HUGE ELF (bluh bluh)
    • View Profile
Re: Direction build.
« Reply #2 on: September 16, 2011, 04:57:42 am »

In general, I think miners, masons, etc. should do a simple pathfinding check to see if they could get to food & water after they finished a job before doing it and then try the surrounding squares if not.
Logged
The history of a good fortress is not written in blood, it's painted on the walls by the hand of a melancholy orphan.

Bohandas

  • Bay Watcher
  • Discordia Vobis Com Et Cum Spiritum
    • View Profile
Re: Direction build.
« Reply #3 on: September 16, 2011, 10:36:21 am »

In general, I think miners, masons, etc. should do a simple pathfinding check to see if they could get to food & water after they finished a job before doing it and then try the surrounding squares if not.

But a directional setting might be simpler programming wise and/or in terms of CPU usage.
Logged
NEW Petition to stop the anti-consumer, anti-worker, Trans-Pacific Partnership agreement
What is TPP
----------------------
Remember, no one can tell you who you are except an emotionally unattached outside observer making quantifiable measurements.
----------------------
Έπαινος Ερις

peskyninja

  • Bay Watcher
  • Natural de-selector
    • View Profile
Re: Direction build.
« Reply #4 on: September 16, 2011, 07:09:18 pm »

indeed much more simple.the first choice will only be possible without forcing our computer to commit seppuko when toady change the pathfinding method.
Logged
Burn the land and boil the sea. You can't take the sky from me

Thou son of a b*tch wilt not ever make subjects of Christian sons; we have no fear of your army, by land and by sea we will battle with thee, f**k thy mother.

rampaging-poet

  • Bay Watcher
    • View Profile
Re: Direction build.
« Reply #5 on: September 16, 2011, 07:25:18 pm »

A simple solution to this problem was proposed in one of the big pathfinding threads.  The basic idea was to try and path to the tile the construction is being built on and then actually move to the square right before it in the path.  That way dwarves would always build constructions from the nearest side, making them much less likely to wall themselves in without the need for player intervention.
Logged
Lame excuse? 'Having a drink instead' is the dwarfiest reason to not get something done, short of accidentally flooding your home with magma. Or intentionally flooding your home with magma.

Bohandas

  • Bay Watcher
  • Discordia Vobis Com Et Cum Spiritum
    • View Profile
Re: Direction build.
« Reply #6 on: September 16, 2011, 07:29:04 pm »

A simple solution to this problem was proposed in one of the big pathfinding threads.  The basic idea was to try and path to the tile the construction is being built on and then actually move to the square right before it in the path.  That way dwarves would always build constructions from the nearest side, making them much less likely to wall themselves in without the need for player intervention.

That sounds like a very good idea too!
Logged
NEW Petition to stop the anti-consumer, anti-worker, Trans-Pacific Partnership agreement
What is TPP
----------------------
Remember, no one can tell you who you are except an emotionally unattached outside observer making quantifiable measurements.
----------------------
Έπαινος Ερις

Valdrax

  • Bay Watcher
  • HUGE ELF (bluh bluh)
    • View Profile
Re: Direction build.
« Reply #7 on: September 16, 2011, 07:58:42 pm »

A simple solution to this problem was proposed in one of the big pathfinding threads.  The basic idea was to try and path to the tile the construction is being built on and then actually move to the square right before it in the path.  That way dwarves would always build constructions from the nearest side, making them much less likely to wall themselves in without the need for player intervention.
A much simpler solution.  And it would also finally stop that irritating situation where a miner trying to dig a shortcut between two tunnels decides to stop digging from one side and walk all the way around to the other side before taking down the last tile.
Logged
The history of a good fortress is not written in blood, it's painted on the walls by the hand of a melancholy orphan.