Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005013Dwarf FortressDwarf Mode -- Interface, Building Constructionpublic2012-01-10 13:572012-12-25 07:57
flamoot 
 
lowtweakalways
newopen 
LinuxLinuxSlackware 13.0
0.31.25 
 
0005013: Some movement-blocking buildings (windows) can be built diagonally, others (statues) can't
OK. Here's an example. Let's say you've got

...
===
===

Where the three .'s at the top are open spaces and the six ='s are rock. So you dig out the middle column

...
= =
= =

I hope this is fixed-width. Well, if you can imagine, now you can build a bridge or a floor on the second period, that is, at the top of the column you dug out. But if you try to build anything on the first or third period, diagonally adjacent to the floor you dug out south of the chasm, you get "needs walkable perimeter". You have to have floor to the north, south, east or west of a construction over open space, but not to the northwest, northeast, southwest or southeast.

I saw this another time, the first time, when it made even less sense. Hanging things over open space might need more than the corner connected, eh, but it was like a building or something that said needs non-economic material, I think, when there was a diagonal space it could have been reached through.

So please don't close this right away. Because I'll try to find my original example and note it here. Like I said it makes less sense and this points to not everything being changed to use eight directions when Toady One changed to that everywhere else in the game

tl;dr: Some checks for a path only use four directions not eight. This happens other places but mostly when building
See description
Sorry about this. ilu

flamoot
No tags attached.
Issue History
2012-01-10 13:57flamootNew Issue
2012-01-10 14:38flamootNote Added: 0019340
2012-01-10 15:10flamootNote Added: 0019341
2012-01-10 15:10flamootNote Deleted: 0019341
2012-01-10 15:10flamootNote Edited: 0019340bug_revision_view_page.php?bugnote_id=0019340#r7224
2012-01-10 15:51Logical2uDescription Updatedbug_revision_view_page.php?rev_id=7226#r7226
2012-01-10 15:52Logical2uNote Added: 0019342
2012-01-10 15:52Logical2uDescription Updatedbug_revision_view_page.php?rev_id=7227#r7227
2012-01-10 16:12FootkerchiefDescription Updatedbug_revision_view_page.php?rev_id=7228#r7228
2012-01-10 16:16FootkerchiefDescription Updatedbug_revision_view_page.php?rev_id=7229#r7229
2012-01-10 16:18FootkerchiefNote Added: 0019343
2012-01-10 16:18FootkerchiefTag Attached: AWAITING UPDATE
2012-01-10 17:14flamootNote Added: 0019344
2012-01-10 17:16flamootNote Edited: 0019344bug_revision_view_page.php?bugnote_id=0019344#r7231
2012-01-11 02:10flamootNote Added: 0019347
2012-01-11 02:11flamootNote Edited: 0019347bug_revision_view_page.php?bugnote_id=0019347#r7237
2012-01-11 02:13flamootNote Edited: 0019347bug_revision_view_page.php?bugnote_id=0019347#r7238
2012-01-11 02:13flamootNote Edited: 0019347bug_revision_view_page.php?bugnote_id=0019347#r7239
2012-01-11 03:22flamootNote Added: 0019348
2012-01-11 03:25flamootNote Added: 0019349
2012-01-11 04:36flamootNote Edited: 0019349bug_revision_view_page.php?bugnote_id=0019349#r7241
2012-01-11 07:46flamootNote Added: 0019350
2012-01-11 07:46flamootNote Edited: 0019350bug_revision_view_page.php?bugnote_id=0019350#r7243
2012-01-13 04:13flamootNote Added: 0019371
2012-01-13 05:10KogutNote Added: 0019373
2012-01-13 05:10KogutTag Attached: Not a bug
2012-01-13 07:00FootkerchiefNote Added: 0019375
2012-01-13 07:00FootkerchiefTag Detached: Not a bug
2012-01-13 07:00FootkerchiefNote Edited: 0019375bug_revision_view_page.php?bugnote_id=0019375#r7254
2012-01-13 07:00FootkerchiefNote Edited: 0019375bug_revision_view_page.php?bugnote_id=0019375#r7255
2012-01-13 08:32flamootNote Added: 0019376
2012-01-13 08:49DwarfuNote Added: 0019377
2012-01-13 09:19flamootNote Added: 0019379
2012-01-13 09:20flamootNote Added: 0019380
2012-01-13 09:21flamootNote Deleted: 0019380
2012-01-13 09:21flamootNote Edited: 0019379bug_revision_view_page.php?bugnote_id=0019379#r7257
2012-01-13 09:22flamootNote Edited: 0019379bug_revision_view_page.php?bugnote_id=0019379#r7258
2012-01-13 09:24flamootNote Added: 0019381
2012-01-13 10:03FootkerchiefSummarySome path finding still uses the old four directions only => Some movement-blocking buildings (windows) can be built diagonally, others (statues) can't
2012-01-13 13:32flamootNote Added: 0019385
2012-01-14 07:25flamootNote Added: 0019387
2012-01-14 07:26flamootNote Edited: 0019387bug_revision_view_page.php?bugnote_id=0019387#r7262
2012-01-14 07:27flamootNote Edited: 0019387bug_revision_view_page.php?bugnote_id=0019387#r7263
2012-01-14 07:27flamootNote Edited: 0019387bug_revision_view_page.php?bugnote_id=0019387#r7264
2012-12-25 07:57DwarfuTag Detached: AWAITING UPDATE

Notes
(0019340)
flamoot   
2012-01-10 14:38   
(edited on: 2012-01-10 15:10)
See no-one closed it yet

I knew this was real

But it is probably a duplicate of something

I forgot to mention. If you build statues in an L against a corner there are problems with getting the corner statue constructed that might be related to this

(0019342)
Logical2u   
2012-01-10 15:52   
Changed the text to fixed width - anyone can do this themselves, however, using the "code" html tag.
(0019343)
Footkerchief   
2012-01-10 16:18   
Yes, we're going to need another example. Diagonal connections don't support structures, so you shouldn't be able to build that hanging floor anyway.
(0019344)
flamoot   
2012-01-10 17:14   
(edited on: 2012-01-10 17:16)
Damn, I wish I remembered the other time this happened, then. There really was a less sensible case. Let me try a bunch of things and get back

In the meantime I hope this serves as a heads-up about the issue in general. It might pop up a few places

(0019347)
flamoot   
2012-01-11 02:10   
(edited on: 2012-01-11 02:13)
Got an idea: I will try doing just what I described but with the ground in place of the channels. See if it counts the diagonal as "walkable perimeter" in the same instance, for a bridge, when there's no need to -hang- it. Let's just see. It certainly sounds like the kind of thing I was trying to do when I saw this the other and worse time

In a cave I have some rock

OOO
OOO
OOX

Where O is rock and X is not

So I specced a hole

OOO
OXO
OOX

And I'll try putting my bridge on the middle X. I bet you it doesn't let me! I bet you it says needs walkable perimeter. Betcha this cigarette. Well, it's gone. Not sure what I meant by that anyway

Can you kind of see why I didn't report this the first time. It's kind of hard to reproduce. Most of the time you'd incidentally have a north-west-south-or-eastly-adjacent tile near the space anyway even if the diagonal connection was the one you noticed, or meant, or whatever. And I bet this is why they can't get statues into crowded corners properly.

And let me apologize: they inject me with tranquilizers that make it hard to be myself because I started a fire in a park when I was homeless and drunk then lied to the police about it when they showed up, so a friend gave me a lot of Ritalin today to help me feel better and it does :P

(0019348)
flamoot   
2012-01-11 03:22   
Guess what? It works. I mean, doesn't!

In my description, where "." meant "pit", consider it to mean "floor". The four diagonally adjacent tiles aren't considered walkable perimeter even for the purposes of sitting a bridge right on the ground. Try to place a Statue there, it says:

No access

How about a chest?

I can put a chest.

So go -figure-
(0019349)
flamoot   
2012-01-11 03:25   
(edited on: 2012-01-11 04:36)
Heck I went and told a friend about this [because I'm so excited!] even though he barely plays the game ever. I'll quote it here because the contents of this email are harmless and contain fun background about me, flamoot

Check it out. I've never had a DF bug stay open this long without
getting closed as a duplicate or misunderstood and closed or spoiled
by me talking on and on til I revealed I hacked a RAW and getting it
closed after all which reminds me I think my savegame bug was open
longer than this one but they closed it. I don't think they'll close
this one, so far it's not a duplicate and I think I proved it's real

http://www.bay12games.com/dwarves/mantisbt/view.php?id=5013 [^]

It helps to have other coders look at your stuff and I knew he'd
switched from 4 directions to 8 from the podcast so I figured there
are artifactual 4-direction behaviours, vestigial ones rather

I hope I'm right because it would mean I'm so smart

(0019350)
flamoot   
2012-01-11 07:46   
You guys are asking toady one if it's a bug, I can tell, or you are gonna anyway

This is so cool

Sorry about this again

(0019371)
flamoot   
2012-01-13 04:13   
ilu all
(0019373)
Kogut   
2012-01-13 05:10   
Not a bug as it is possible to build stuff only in four directions.

XW
WD

W - wall
D - dwarf
X - empty space

Dwarf will be unable to build wall in X
(0019375)
Footkerchief   
2012-01-13 07:00   
Are there any buildings/constructions that can be built diagonally? If not, I'm going to agree that this isn't a bug.

(0019376)
flamoot   
2012-01-13 08:32   
YES there are

Look up, it -did- let me build a chest in the diagonal hole

But -not- a statue or even a non-hanging bridge

Whether the bridge is hanging or not, checking that, could be an oversight, so that a bridge needs a face connected even if it's on ground, rather than a bug

But why can I -not- build a statue but -yes- a chest?
(0019377)
Dwarfu   
2012-01-13 08:49   
Chests do not block movement and can be built from the same square; statues block movement and can only be built from an adjacent square - and not from a diagonal.

I only tested the chest and statue mentioned here.
(0019379)
flamoot   
2012-01-13 09:19   
(edited on: 2012-01-13 09:22)
Well, is that a vestigial behaviour, anyway? Shouldn't we be able to make constructions from a diagonal in the eight-direction model?

What about a window? Oh sigh, I'll try it myself, I already have some. I'll try a few things. Phoo

(0019381)
flamoot   
2012-01-13 09:24   
As far as I can tell from dwarves who locked themselves out of places I was shutting off with a glass window, and if I recall, dwarves stand -next to- where the window is ordered, not -on- it. But I -can- build a window in a diagonal hole while I cannot build a wall or a statue both of which you -also- stand next to, to build

So?!
(0019385)
flamoot   
2012-01-13 13:32   
Note also that if you want to build statues around the perimeter of a room or just in an L shape in a corner, you can spec the statues all at once but they can deliver them in such an order as to make delivering the corner statue impossible... I don't believe it suspends construction, either, it just says need furniture hauling or almost completed, ah, forever, then when you remove the build order the statue that was meant to be there will appear one tile away. Which just, that's not intentional, is it?

It's symptomatic of this here bug
(0019387)
flamoot   
2012-01-14 07:25   
(edited on: 2012-01-14 07:27)
Windows block pathing like statues and walls so either you -shouldn't- be able to build them on a diagonal or you -should- be able to squeeze a statue into a corner between two blocks, like you can a window, at least

I can see the corner not allowing enough access to build a wall. But I'd -like- to be able to build walls diagonally too and I -think- we're supposed to be able to in the 8-direction model

Not being able to hang a floor over a chasm when it's connected at only a corner, that's probably not a bug (even if that correct behaviour is -caused by- this bug...)

On that I agree

(Oh, thanks for changing my summary. I think my old one is more comprehensive still, though)