# Adding a custom basement that can spawn organically within the base game

**URL:** <https://discourse.cataclysmdda.org/t/adding-a-custom-basement-that-can-spawn-organically-within-the-base-game/21919>\
**Category:** The Toolbox\
**Tags:** mod\
**Created:** [November 11, 2019, 4:16am UTC](https://discourse.cataclysmdda.org/t/adding-a-custom-basement-that-can-spawn-organically-within-the-base-game/21919 "2019-11-11T04:16:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Odieman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/odieman/32/7453_2.png) [@Odieman](https://discourse.cataclysmdda.org/u/Odieman)\
**Post date:** [November 11, 2019, 4:16am UTC](https://discourse.cataclysmdda.org/t/adding-a-custom-basement-that-can-spawn-organically-within-the-base-game/21919/1 "2019-11-11T04:16:00Z")

</div>

Hello. I’m making a very small, basic mod that **does** effect the way the game generates cities. Basically, a custom basement that is specifically for a neckbeard.

I’ve tried doing this:

[https://pastebin.com/t0GCqJJC](https://pastebin.com/t0GCqJJC)

However, I’m at a loss on how I can inject my basement into the game without modifying core files. I’ve tried using some sort of add-on code that doesn’t do anything, it starts at line 94 in the pastebin.

Any help would be heaps appreciated. Thanks in advance.

Edit: After seeing the horrendous formatting, I’ve moved all the code to pastebin. Cheers.

---

<div class="post-metadata">

**Author:** ![snipercup](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/snipercup/32/6932_2.png) [@snipercup](https://discourse.cataclysmdda.org/u/snipercup)\
**Post date:** [November 11, 2019, 1:08pm UTC](https://discourse.cataclysmdda.org/t/adding-a-custom-basement-that-can-spawn-organically-within-the-base-game/21919/2 "2019-11-11T13:08:53Z")

</div>

Your basement looks okay. I’ve looked into a modding guide but it’s quite difficult to find 😕

I did find this but it’s a bit out of date:  
[http://cddawiki.chezzo.com/cdda\_wiki/index.php?title=Mod\_manager](http://cddawiki.chezzo.com/cdda_wiki/index.php?title=Mod_manager)

Using a mod allows you to enable and disable it trough the mod manager in-game.

I think your basement is a candidate for the mainline, why not submit it on Github and get it added?

---

<div class="post-metadata">

**Author:** ![Odieman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/odieman/32/7453_2.png) [@Odieman](https://discourse.cataclysmdda.org/u/Odieman)\
**Post date:** [November 11, 2019, 3:23pm UTC](https://discourse.cataclysmdda.org/t/adding-a-custom-basement-that-can-spawn-organically-within-the-base-game/21919/3 "2019-11-11T15:23:52Z")

</div>

Someone graciously messaged me on discord a solution, and since I’m vehemently against people just saying “Figured it out, thanks”, I’ll share it with everyone.

ralreegorganon: @Odieman You want a region overlay like this: [https://github.com/CleverRaven/Cataclysm-DDA/blob/1d6366e6881a1479d9874ac234709dc68f23f4a1/doc/REGION\_SETTINGS.md#region-overlay](https://github.com/CleverRaven/Cataclysm-DDA/blob/1d6366e6881a1479d9874ac234709dc68f23f4a1/doc/REGION_SETTINGS.md#region-overlay)

A region overlay does this, so if you want a custom overmap tile or whatever, something that you can sort of ‘inject’ into the base game without touching it, this seems to be the way. If I find out something different, I’ll be sure to edit this post. Otherwise, this is the proper method and any admins or moderators browsing this thread can lock it.
