# Need help with some technical stuff

**URL:** <https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461>\
**Category:** The Lab\
**Created:** [December 29, 2014, 2:58am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461 "2014-12-29T02:58:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjtrains](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rjtrains](https://discourse.cataclysmdda.org/u/rjtrains)\
**Post date:** [December 29, 2014, 2:58am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461/1 "2014-12-29T02:58:15Z")

</div>

Hi all!

Me and a friend of mine are planning to start a new mod after Christmas break, once he’s back in town, and we need some help. One of the basic premises of the mod is to make new layouts for current buildings, as well as making these locations really feel unique. However, we’re having problems locating certain location files. Specifically, locations such as prisons, gun stores, bars, etc.

We’ve tried looking in the json folder pertaining to buildings, but no files related to these locations are there.

Any help you can offer would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [December 29, 2014, 3:17am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461/2 "2014-12-29T03:17:52Z")

</div>

Most of the buildings are still hardcoded. mapgen and mapgenfunctions.cpp are where non-JSON buildings either are, or can be traced from.

---

<div class="post-metadata">

**Author:** ![rjtrains](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rjtrains](https://discourse.cataclysmdda.org/u/rjtrains)\
**Post date:** [December 29, 2014, 3:22am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461/3 "2014-12-29T03:22:12Z")

</div>

Thanks. Honestly, we were afraid this was the case. Still, it’s a start at least.

Is there any word on weather these buildings will be moved to .json format?

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [December 29, 2014, 3:42am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461/4 "2014-12-29T03:42:27Z")

</div>

We’d like to, but it’s a fairly low priority so there’s no particular timeframe. Sorry.

---

<div class="post-metadata">

**Author:** ![jokermatt999](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Post date:** [December 29, 2014, 8:14am UTC](https://discourse.cataclysmdda.org/t/need-help-with-some-technical-stuff/8461/5 "2014-12-29T08:14:31Z")

</div>

You can create additional layouts in json for those buildings however. If you look at the gunsmith.json you’ll see it replaces s\_gun, which is the id for gun stores. The hard coded map gen functions are in mapgen\_functions.cpp, and if you want to take a crack at translating them to json it’d be appreciated.

If you haven’t played around with adding json before, it’s really easy to test, as you just need to launch and load a game after adding a new json, and it’ll spit out debug info if there’s any issue.

One last thing: someone mentioned that more buildings should use carpets instead of flooring. It’s a good idea, I just haven’t had time to switch it out in some jsons, but something to keep in mind if you’re making new layouts.

Good luck, and feel free to ask if you have any more questions. 🙂
