Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: UI updates - simplify constructed stairs  (Read 1348 times)

Pillbo

  • Bay Watcher
    • View Profile
UI updates - simplify constructed stairs
« on: July 13, 2021, 12:48:55 pm »

With the UI updates it would be a good time to improve the way constructed stairs are built. Because you can't designate a construction on a tile without something to build it onto, right now you have to designate a staircase, wait for it to be built, then designate the next level, repeat until you're finished.  This is one of the most annoying things I regularly encounter in the game.

Making the constructed staircases designate-able across z levels with the click/drag wall updates would be a big improvement.
Logged

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: UI updates - simplify constructed stairs
« Reply #1 on: July 13, 2021, 05:39:37 pm »

Dec 21st 2020 Devblog:
"Stairs can now be designated in a way that puts an up stair at the bottom and a down stair at the top, with up-down stairs in between, without having to designate the top and bottom separately - just select one column and it handles it."
Logged

DwarfStar

  • Bay Watcher
    • View Profile
Re: UI updates - simplify constructed stairs
« Reply #2 on: July 14, 2021, 02:49:22 am »

I don’t think that addresses the same problem. The OP is talking about constructed stairs, I think, based on the description of the problem. Whereas, the dev blog post is about designations.

The problem with constructed stairs is that there is no way to extend them except one at a time, because you need a walkable spot to reach each Z level. With floors, you can lay down a whole field of them with only the edge immediately reachable, but the game allows that because the other floor pieces will all eventually become reachable.

Theres an issue though if you try to apply the floors’ liberal-placement concept to stairs. It would require multi Z level constructions. Not impossible but not currently something the interface can handle.

The other way would be to allow you to add a stair on top of a planned-but-incomplete tower of stairs. That could work, probably, but be tricky. The construction placement code could check if you’re building a stair above another stair, and then start the materials search from the lower one (since it’s currently reachable). This could get complicated as you build a potentially complex maze of staircases above where they are actually pathable-to. At some point you start to need to find paths through the sets of designated-but-unfinished stairs. Tricky, indeed.
Logged

Pillbo

  • Bay Watcher
    • View Profile
Re: UI updates - simplify constructed stairs
« Reply #3 on: July 14, 2021, 12:55:10 pm »

The OP is talking about constructed stairs

Exactly, [b -> C] menu stairs built from materials, not the [d] menu stairs that are dug.
Logged

DwarfStar

  • Bay Watcher
    • View Profile
Re: UI updates - simplify constructed stairs
« Reply #4 on: July 18, 2021, 03:11:52 am »

By the way, if you use DFHack, you can use planning mode to lay out a vertical tower of constructed stairs. The materials will be chosen according to the rules you set, as soon as each Z level becomes reachable.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: UI updates - simplify constructed stairs
« Reply #5 on: July 27, 2021, 12:18:52 pm »

The other way would be to allow you to add a stair on top of a planned-but-incomplete tower of stairs. That could work, probably, but be tricky. The construction placement code could check if you’re building a stair above another stair, and then start the materials search from the lower one (since it’s currently reachable). This could get complicated as you build a potentially complex maze of staircases above where they are actually pathable-to. At some point you start to need to find paths through the sets of designated-but-unfinished stairs. Tricky, indeed.
Rather than special-casing it for stairs, the "build construction" interface could be made to treat all planned constructions as being "finished" for the purpose of determining accessibility. For example, when the player goes to (b)uild -> (C)onstruction and selects one of the available types, iterate over all currently-planned Constructions and temporarily place specially-flagged Construction map tiles in their locations, then remove them all (and restore the original map tiles) once you exit out of the build menu.

This would result in a few extra delays (from having to update the map's path connectivity data), but it probably wouldn't be much worse than the delays that already happen when the game assembles the build item selection list (and has to determine the distance to every building material).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

DwarfStar

  • Bay Watcher
    • View Profile
Re: UI updates - simplify constructed stairs
« Reply #6 on: July 28, 2021, 12:02:40 am »

Yeah, totally agree. In fact, planning mode in DFHack is a perfectly fine existing solution to the problems I was talking about. I just didn’t realize it until a little while after I posted that.
Logged