Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [40d11] Soil and Stone types changing after Cave-In  (Read 1386 times)

haywire

  • Bay Watcher
    • View Profile
[40d11] Soil and Stone types changing after Cave-In
« on: May 17, 2009, 06:29:50 pm »

Issue:  Primary stone and soil types are affected by z-level changes, where Secondary stone types are not.  In this thread Primary refers to stone types visible at the "Choose Fortress Location" screen.  Secondary refers to the other stone types that are present in the form of veins and clusters within the Primary layer and trigger the "You have struck X!" message.

Behavior:  When a natural "Rough-hewn [Primary Stone Type] Wall" falls one or more z-levels it is transformed into the primary stone type for that level.  When a "[Soil Type] Wall" falls one or more z-levels it is transformed into the current level's soil type, or the lowest z-level occurring soil type for that square.  When a natural "Rough-hewn [Secondary Stone Type] Wall" falls one or more z-levels it remains unchanged.  Likewise, a natural "Rough-hewn [Secondary Stone Type] Cluster" will remain unaffected.


I originally came across this phenomenon when trying to drop a section of Rough Black Sand Wall several z-levels so that it would be closer to the Magma Glass Furnaces.  The following images illustrate what happened.  Note that the images are a profile cross-section.


1) The legend explaining what the different colors represent.  Note that light gray isn't included, but represents Subterranean Open Space.
Spoiler (click to show/hide)

2) First I dug an open shaft below the section I want to drop.
Spoiler (click to show/hide)

3) Then I dug everything away from around and above the area so that it would be unattached and Cave-In.
Spoiler (click to show/hide)

4) What I expected to find after the dust had settled.
Spoiler (click to show/hide)

5) What actually existed after the Cave-In.
Spoiler (click to show/hide)


I then tried dropping more than one z-level worth of soil:

1) The space below is cleared.
Spoiler (click to show/hide)

2) All attached area around and above are cleared.
Spoiler (click to show/hide)

3) What existed after the Cave-In.  When viewing from the Yellow Sand layer, the floor shows as a Yellow Sand floor.
Spoiler (click to show/hide)

4) What I had expected to find.
Spoiler (click to show/hide)


I then decided to try a larger sample area on a completely unmodded install of DF 40d11:

1) Legend
Spoiler (click to show/hide)

2) Layers as they were before any digging.
Spoiler (click to show/hide)

3) Areas mined out to cause the Cave-In.
Spoiler (click to show/hide)

4) The result of the Cave-in.
Spoiler (click to show/hide)

5) What logically should have been the result of the Cave-In.
Spoiler (click to show/hide)


I decided to report this behavior as a bug, as two different outcomes occur depending on if the section was Primary or Secondary, and that objects are having their material composition changed.  Bugs have been recorded (#000993) and fixed (#000540) that also involved squares changing material after certain activities, so I thought that perhaps this was not the intended behavior.  If this is the intended behavior of stone and soil to have different reactions then obviously this is only my opinion and is not a bug.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: [40d11] Soil and Stone types changing after Cave-In
« Reply #1 on: May 18, 2009, 05:47:54 pm »

Yeah, that's a bug.  I'll note it down.
Logged
The Toad, a Natural Resource:  Preserve yours today!