# \[SPOILERS\] Urban Development

**URL:** https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068
**Category:** The Lab
**Tags:** mod
**Created:** [July 31, 2017, 7:56am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068 "2017-07-31T07:56:26Z")
**Posts on this page:** 9
**Page:** 2

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [October 4, 2017, 11:12am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/21 "2017-10-04T11:12:53Z")

</div>

> [@acidia](#):
>
> Give it a shot, because the entire pack of 50 buildings exceeds the max number of allowed specials I sent all of the build occurances to a min of 1.

It shouldn’t be the max occurrences that limit anything. The debug message should only happen if you set the minimum occurrences above the number that can actually, physically happen in game.

---

<div class="post-metadata">

### Author: ![chronicpayne](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chronicpayne/32/2640_2.png) [@chronicpayne](https://discourse.cataclysmdda.org/u/chronicpayne)
#### Post date: [October 6, 2017, 2:07am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/22 "2017-10-06T02:07:26Z")

</div>

This is fantastic work, loving the variation and new buildings.

---

<div class="post-metadata">

### Author: ![acidia](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/acidia/32/2347_2.png) [@acidia](https://discourse.cataclysmdda.org/u/acidia)
#### Post date: [October 6, 2017, 6:46am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/23 "2017-10-06T06:46:10Z")

</div>

> [@Coolthulhu](#):
>
> It shouldn’t be the max occurrences that limit anything. The debug message should only happen if you set the minimum occurrences above the number that can actually, physically happen in game.

I’m using “max number of allowed specials” as the physical max the om can support. The build that I created and tested all these would never generate a [0,1] occurances building after a certain number of specials were added. Not sure if it is still the case or if More Locations being used as a furniture dependency pushed number of mandatory specials over the limit.

Thanks for the support, let me know if there are buildings you really want to see.

---

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [October 7, 2017, 7:57pm UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/24 "2017-10-07T19:57:01Z")

</div>

> [@acidia](#):
>
> The build that I created and tested all these would never generate a [0,1] occurances building after a certain number of specials were added.

It works like this:  
If the number of mandatory specials is at or above maximum, only mandatory specials will be generated. If they can’t be generated on current overmap, they will be generated in nearby randomly selected ones.  
If the number of mandatory specials is well below maximum allowed, non-mandatory specials will be generated in free spots.

The mandatory slots are wasted on stupid shit like motels (2 minimum occurrences - to what end), like 5 campsites, cemeteries, road stops and so on. Once the maximum is reached, ALL non-mandatory specials are always dropped and never considered, then current mandatory specials stop being 100% mandatory and turn into “kinda important”.  
You could PR a drop in mandatory specials for things that shouldn’t be mandatory. Or you can keep working against the system by bumping mandatory specials above maximum, but then expect it to behave badly at times.

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [October 7, 2017, 9:13pm UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/25 "2017-10-07T21:13:07Z")

</div>

I believe minimum of 1 should only be set for quest related overmap specials (like prison or strange cabin), isn’t it?

* * *

I’ve reduced minimum occurrences of several overmap specials to 0 in #22103 ([https://github.com/CleverRaven/Cataclysm-DDA/pull/22103](https://github.com/CleverRaven/Cataclysm-DDA/pull/22103)):

- `Hotel` - (from 1 to 0);
- `Motel` - (from 2 to 0);
- `Gas Station` - (from 2 to 1);
- `FEMA Camp` - (from 2 to 0);
- `Radio Tower` - (from 1 to 0);
- `Public Works` - (from 1 to 0);
- `Apartments_Con` - (from 1 to 0);
- `Apartments_Mod` - (from 1 to 0);
- `Office Tower` - (from 1 to 0);
- `School` - (from 1 to 0);
- `Fungal Flowers` - (from 1 to 0);
- `Evac Shelter` - (from 5 to 1);
- `Mall` - (from 1 to 0);
- `power_station_large` - (from 1 to 0);
- `Home Improvement Superstore` - (from 1 to 0);
- `campsite` - (from 1 to 0);
- `campsite_cabin_incomplete` - (from 1 to 0);
- `campsite_field_biker` - (from 1 to 0);
- `campsite_a` - (from 2 to 0);
- `campsite_field_biker_destroyed` - (from 1 to 0);
- `rest_stop` - (from 1 to 0);
- `roadstop_a` - (from 1 to 0);
- `roadstop_b` - (from 1 to 0);
- `cemetery_religious` - (from 1 to 0);
- `Dairy Farm` - (from 1 to 0).

I’m not sure about some of the specials though. Public Works, FEMA Camp, School, Mall, power\_station\_large and Fungal Flowers should be probably left intact?

---

<div class="post-metadata">

### Author: ![acidia](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/acidia/32/2347_2.png) [@acidia](https://discourse.cataclysmdda.org/u/acidia)
#### Post date: [October 8, 2017, 6:13am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/26 "2017-10-08T06:13:56Z")

</div>

Figured since the current over map specials system doesn’t work for interior city generation, it’s only a temporary issue for urban development buildings. There are tons of things that could be addresses but the mod and use of over map specials only exists to demonstrate the buildings to prevent a giant pr.

---

<div class="post-metadata">

### Author: ![Midas](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/midas/32/1348_2.png) [@Midas](https://discourse.cataclysmdda.org/u/Midas)
#### Post date: [January 23, 2018, 8:07pm UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/27 "2018-01-23T20:07:03Z")

</div>

I love this mod, you’ve made an amazing work!  
But in my latest runs this mod seems to prohibit almost all map specials except labs. So the map looks like empty forests and fields with TONS of labs and very few specials.

---

<div class="post-metadata">

### Author: ![techincal](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@techincal](https://discourse.cataclysmdda.org/u/techincal)
#### Post date: [March 6, 2018, 11:19am UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/28 "2018-03-06T11:19:02Z")

</div>

Sewer / subway connections are broke, also bar in dense urban 38 has washing machines in windows (W letter is duplicated with palette).

---

<div class="post-metadata">

### Author: ![acidia](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/acidia/32/2347_2.png) [@acidia](https://discourse.cataclysmdda.org/u/acidia)
#### Post date: [May 17, 2018, 2:56pm UTC](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068/29 "2018-05-17T14:56:04Z")

</div>

Original post updated for the new buildings. If you would like to run the test city mod you can grab it from the below pull request.

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/23748>

[Previous page](https://discourse.cataclysmdda.org/t/spoilers-urban-development/14068.md?page=1)
