View Issue Details

IDProjectCategoryView StatusLast Update
0005853Dwarf FortressDwarf Mode -- Buildings, Generalpublic2012-04-30 10:21
ReporterQuietust Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version0.34.07 
Summary0005853: Bridge Support logic incorrect for left corners
DescriptionIf a retracting bridge is not supported by a floor tile at any of its edges, it will deconstruct as soon as it realizes something is wrong (e.g. when digging nearby or trying to retract it).

However, the logic for ignoring the corner tiles is broken - the upper-left and lower-left corners provide support, but the 3rd-from-left tiles along the top and bottom do not provide support.

Intended "support" tiles for a 5x5 bridge ("B" = bridge, "+" = good, "x" = bad):

x+++++x
+BBBBB+
+BBBBB+
+BBBBB+
+BBBBB+
+BBBBB+
x+++++x


Actual "support" tiles for a 5x5 bridge ("B" = bridge, "+" = good, "x" = bad):

++x+++x
+BBBBB+
+BBBBB+
+BBBBB+
+BBBBB+
+BBBBB+
++x+++x
Additional InformationThis was originally discovered by angavrilov while examining parts of the code for constructing buildings (in order to figure out how to construct buildings within DFHack) - apparently, the code is using "x+1" instead of "x-1" for the upper-left and lower-left tiles.
TagsNo tags attached.

Relationships

related to 0009946 new Retracting bridges don't require support for construction, harmlessly deconstruct when checking support later 

Activities

Quietust

2012-04-30 10:21

reporter   ~0022403

I have a save file which individually tests every possible support tile for a 5x5 bridge - 24 bridges were built and linked to single lever (in case digging out their support tiles didn't trigger a collapse), and all appropriate tiles were designated for channeling.

If necessary, I will post it on DFFD.

Add Note

Note

Issue History

Date Modified Username Field Change
2012-04-30 10:17 Quietust New Issue
2012-04-30 10:21 Quietust Note Added: 0022403
2016-07-31 07:22 Loci Relationship added related to 0009946