# Crashy WIP - Multistory Buildings

**URL:** <https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312>\
**Category:** The Bunker\
**Created:** [March 2, 2013, 11:38pm UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312 "2013-03-02T23:38:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shades](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Shades](https://discourse.cataclysmdda.org/u/Shades)\
**Post date:** [March 2, 2013, 11:38pm UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/1 "2013-03-02T23:38:23Z")

</div>

After the brief discussion of other ways of nicer ways to show hostiles on levels above you DarklingWolf suggested I dig out the old z-level stuff I started for pre DDA Cataclysm. As I had some free time this weekend here it is mostly merged in and stuck in github.

This is not under mods right now because it’s not even working well enough to count as a mod, it’s very broken and crashy, even by my standards ;D

 ![](http://s7.postimage.org/9d3jav27v/1_baditems.png)

There are also a few ‘issues’ with how it displays things, first up in that item highlights are showing even for floors we aren’t on. Notice just above the look around cursor there is things in the wall, really they are in the door way on the ground floor where I broke in.

 ![](http://s7.postimage.org/h4k99f6d7/2_floor1.png)

Next up we can see me trying to jump out the window, here I just copied the standard trap messages but tell you the number of floors.  
Jumping down one story is boring though so…

 ![](http://s7.postimage.org/qb2jwpbln/3_higher.png)

Up we go 😃 Notice that the view looks the same as my tower blocks are generated empty other than the stair well and there is no way of showing how far down the outside world is. I made it grey (which could have also meant night 🙂 but that is the best I could think of. If anyone has any ideas please let me know.

 ![](http://s7.postimage.org/uixc5gd17/4_quickwaydown.png)

Turns out jumping that far was fatal, I may have overdone the damages somewhat. Also I notice there is no windows on the ground floor, would suck to live in those flats…

I’m fairly sure you can get melee attacked through floors too but I’ve not managed to get that to reproduce yet. Also if your high up and save sometimes the game crashes and destroys your world, it’s just a issue with the way I hacked in the submap support but haven’t gotten around to fixing it yet.

Really I think we need to rewrite the map code for this to work nicely, also sorry about the size of the images.

Things to do:

- stop it crashing
- make tower blocks generate sensible flats and only in cities (currently they replace all houses just so I can test it)
- look around doesn’t report sensible on open spaces
- items and traps are broken with reporting
- path finding between levels does not work
- think of a way to show how far down the ground is
- make lighting support z-levels
- should not be able to see into ground floor buildings from high up
- look up / down scrolling in look around
- display for hostiles on higher / lower ground
- better fall damage
- walkways
- bridges actually using z-levels so you can sail/swim under them
- see roofs of lower buildings (rather than the inside floor)

---

<div class="post-metadata">

**Author:** ![jimy](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jimy](https://discourse.cataclysmdda.org/u/jimy)\
**Post date:** [March 5, 2013, 1:08pm UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/2 "2013-03-05T13:08:38Z")

</div>

Wow, that’s really nice.  
I wish you good luck and I hope this once gets added to the main game, too!

(Of course if you want it)

---

<div class="post-metadata">

**Author:** ![Reservoir](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reservoir/32/28_2.png) [@Reservoir](https://discourse.cataclysmdda.org/u/Reservoir)\
**Post date:** [March 5, 2013, 6:47pm UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/3 "2013-03-05T18:47:55Z")

</div>

Appartaments. I want to have a fortress in a skycrapper. Best fortress 2013-2014-2015-2016-2017…

---

<div class="post-metadata">

**Author:** ![Jihelu](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Jihelu](https://discourse.cataclysmdda.org/u/Jihelu)\
**Post date:** [March 6, 2013, 12:05am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/4 "2013-03-06T00:05:31Z")

</div>

> [@Reservoir](#):
>
> Appartaments. I want to have a fortress in a skycrapper. Best fortress 2013-2014-2015-2016-2017…

I want to be able to build skyscrapers.  
three thousand stories tall. Elevator on the top  
Rope  
Railing to prevent flying things  
enough food up there to last a year  
power

---

<div class="post-metadata">

**Author:** ![AseaHeru](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aseaheru/32/8_2.png) [@AseaHeru](https://discourse.cataclysmdda.org/u/AseaHeru)\
**Post date:** [March 6, 2013, 1:43am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/5 "2013-03-06T01:43:26Z")

</div>

You might have to deforest the map for that…

---

<div class="post-metadata">

**Author:** ![DasNeko](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@DasNeko](https://discourse.cataclysmdda.org/u/DasNeko)\
**Post date:** [March 6, 2013, 2:03am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/6 "2013-03-06T02:03:02Z")

</div>

> [@AseaHeru](#):
>
> You might have to deforest the map for that…

I can just imagine you building the tower of babel… Then one day for whatever reason it will all just burn down into a pile of nails \>\_\<

---

<div class="post-metadata">

**Author:** ![Asra](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Asra](https://discourse.cataclysmdda.org/u/Asra)\
**Post date:** [March 6, 2013, 2:16am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/7 "2013-03-06T02:16:40Z")

</div>

Managing to get it to recognize damage below it is going to be hard. Are there any enemies that can set things on fire currently?

---

<div class="post-metadata">

**Author:** ![DasNeko](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@DasNeko](https://discourse.cataclysmdda.org/u/DasNeko)\
**Post date:** [March 6, 2013, 2:41am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/8 "2013-03-06T02:41:56Z")

</div>

> [@Asra](#):
>
> Managing to get it to recognize damage below it is going to be hard. Are there any enemies that can set things on fire currently?

Lightning storms can to my knowledge. At least got the advice to stay away from gas stations during storms.

---

<div class="post-metadata">

**Author:** ![Jihelu](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Jihelu](https://discourse.cataclysmdda.org/u/Jihelu)\
**Post date:** [March 6, 2013, 2:58am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/9 "2013-03-06T02:58:24Z")

</div>

> [@DasNeko](#):
>
> [quote=“Asra, post:7, topic:312”]Managing to get it to recognize damage below it is going to be hard. Are there any enemies that can set things on fire currently?

Lightning storms can to my knowledge. At least got the advice to stay away from gas stations during storms.[/quote]  
Lightning rod?

---

<div class="post-metadata">

**Author:** ![Sonny](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Sonny](https://discourse.cataclysmdda.org/u/Sonny)\
**Post date:** [March 6, 2013, 7:30am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/10 "2013-03-06T07:30:53Z")

</div>

+20 for this. I’ll be more than happy to throw a molotov and be able to fly out of 7th floor. Can you jump between houses? Parkour Expert would finally get some use.

---

<div class="post-metadata">

**Author:** ![Shades](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Shades](https://discourse.cataclysmdda.org/u/Shades)\
**Post date:** [March 6, 2013, 8:46am UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/11 "2013-03-06T08:46:12Z")

</div>

[quote=“Jihelu, post:4, topic:312”]I want to be able to build skyscrapers.  
three thousand stories tall. Elevator on the top[/quote]

Currently your only allowed 8 floors (and the ground floor), otherwise you run into the tutorial map (which for some reason is at z-levels 9 & 10)

> [@Sonny](#):
>
> +20 for this. I’ll be more than happy to throw a molotov and be able to fly out of 7th floor. Can you jump between houses? Parkour Expert would finally get some use.

Technically you could use construct to build between buildings although I’ve not tried it. You’ll get an issue if the buildings are directly next to each other though (as in adjacent submaps) as the ones in between don’t actually exist in the world.

---

<div class="post-metadata">

**Author:** ![AseaHeru](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aseaheru/32/8_2.png) [@AseaHeru](https://discourse.cataclysmdda.org/u/AseaHeru)\
**Post date:** [March 6, 2013, 7:52pm UTC](https://discourse.cataclysmdda.org/t/crashy-wip-multistory-buildings/312/12 "2013-03-06T19:52:12Z")

</div>

Parkour has a use. no cost for fences and such.
