Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Smooth Stone Jobs: Not Nearest  (Read 583 times)

Draco18s

  • Bay Watcher
    • View Profile
Smooth Stone Jobs: Not Nearest
« on: February 25, 2008, 05:49:00 pm »

code:

###############
#.............#
#.............#
#..############
..>#<<......>>#  stairs 1, 2, 3 from left to right
..>#<<......>>#
#..############
#.............#
#.............#
###############

Central area walls have been designated for smoothing, stairs 1 lead to 3 under the area.

Stoneworker took a south wall side to smooth, when he was done he took the wall directly to the north.  Then the wall directly south to the right of the previous wall, then the north wall.

This caused him to walk back and forth (and at 15 FPS that took a while) instead of him just smoothing ONE SIDE by taking the nearest designation (ah la mining).

[ February 25, 2008: Message edited by: Draco18s ]

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Smooth Stone Jobs: Not Nearest
« Reply #1 on: February 25, 2008, 09:49:00 pm »

Didn't you just admonish somebody for not using code tags?  I suppose this case is only related, rather than identical.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Draco18s

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #2 on: February 25, 2008, 10:02:00 pm »

quote:
Originally posted by Toady One:
<STRONG>Didn't you just admonish somebody for not using code tags?</STRONG>

I totally did, only to mess up mine.  I don't know why, but everytime I do

Code: [Select]
I forget that /, Gah.  I may be a grammer and spelling nazi, but I do make mistakes (I also always seem to hit "quote" instead of "edit"....).

And I don't stick around for the "view post" thing after posting ussually, so I didn't even see it.

[ February 25, 2008: Message edited by: Draco18s ]

Logged

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #3 on: February 26, 2008, 02:27:00 am »

Grammar.

numerobis

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #4 on: February 26, 2008, 04:21:00 am »

quote:
Originally posted by Draco18s:
<STRONG>taking the nearest designation (ah la mining).</STRONG>

Engravers do the same thing as miners, and that thing is sometimes boneheaded.  Like your example here.

For kicks, try digging two horizontal channels, one of them 50 tiles north of the other.

Logged

gimlisonofgloin

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #5 on: February 26, 2008, 05:18:00 am »

For Digging, Engraving, and Tree-cutting, the algorithm is pretty much the same.

The map is split up into blocks.

As an example:

111111222222
111111222222
111111222222
333333444444
333333444444
333333444444

Assignments are done per block, starting from top-left down to the lower-right corner. Any jobs that need to be done in block 1 will take precedent over blocks 2, 3, and 4... which is what you are experiencing.

Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #6 on: February 26, 2008, 09:27:00 am »

quote:
Originally posted by gimlisonofgloin:
<STRONG>Assignments are done per block, starting from top-left down to the lower-right corner. Any jobs that need to be done in block 1 will take precedent over blocks 2, 3, and 4... which is what you are experiencing.</STRONG>

Uh...I'm seeing jobs taken block 1, 3, 1, 3, 1, 3...unless it moves into 2, 4, 2, 4, 2, 4.

quote:
Originally posted by Kagus
<STRONG>Grammar.</STRONG>

Why...thanks!  I did say my spelling was atrocious (and my typing about as bad, four errors in this line alone).

Logged

briktal

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #7 on: February 26, 2008, 10:11:00 am »

Is this that "prefers to do stuff from the west" thing?  They do the one on the south, but then the one on the north is further west than the next one on the south.  There then might be another preference issue to explain why they don't go S N N S S N N etc and instead go S N S N S N etc.

Deathworks

[ February 26, 2008: Message edited by: briktal ]

Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #8 on: February 26, 2008, 10:53:00 am »

quote:
Originally posted by briktal:
<STRONG>Is this that "prefers to do stuff from the west" thing?</STRONG>

That's what's causing them to walk all the way around, but if they'd do a string of walls they'd only have to walk around ONCE.

Logged

gimlisonofgloin

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #9 on: February 26, 2008, 11:10:00 am »

quote:
Originally posted by Draco18s:
<STRONG>
Uh...I'm seeing jobs taken block 1, 3, 1, 3, 1, 3...unless it moves into 2, 4, 2, 4, 2, 4.</STRONG>

ooops

11113333
11113333
11113333
22224444
22224444
22224444

Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: Smooth Stone Jobs: Not Nearest
« Reply #10 on: February 26, 2008, 11:45:00 am »

quote:
Originally posted by gimlisonofgloin:
<STRONG>

ooops

11113333
11113333
11113333
22224444
22224444
22224444</STRONG>



Ok.... 1, 2, 1, 2, 1, 2...
Doesn't "1" have priority over "2"?
1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4 is what I'd expect to see.

Logged