# Guide to adding new content to CDDA for first time modders

**URL:** <https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781>\
**Category:** The Lab\
**Created:** [December 7, 2018, 5:53pm UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781 "2018-12-07T17:53:39Z")\
**Posts on this page:** 6\
**Page:** 4

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [September 26, 2019, 4:07pm UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/62 "2019-09-26T16:07:02Z")

</div>

blueprint\_requires are checked per tile/expansion, and I don’t think you can use a provides from the main camp or an expansion to satisfy a requires from a different expansion.

Advanced buildings would be welcome in the main game. Specifically, modern smokeless powder should be craftable via a recipe with a roughly 2 week crafting time that would be best done via NPC crafting in a specialty gunpowder mill expansion.

But a logging facility, recycler, or other advanced facility would be fine.

---

<div class="post-metadata">

**Author:** ![bobchaos](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bobchaos](https://discourse.cataclysmdda.org/u/bobchaos)\
**Post date:** [September 26, 2019, 5:09pm UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/63 "2019-09-26T17:09:41Z")

</div>

I suppose each of those buildings could include it’s own little solar array and transformer/capacitors. I could take a crack at smokeless powder but I’ll need to do research, the most modern gunpowder production method I know of involves cat urine o.O

Short term, I’d like to start with a fishing dock: It’s simple, a solid food source, and would be a first river type expansion.

---

<div class="post-metadata">

**Author:** ![TheSporewow](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thesporewow/32/6021_2.png) [@TheSporewow](https://discourse.cataclysmdda.org/u/TheSporewow)\
**Post date:** [November 2, 2020, 6:15am UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/64 "2020-11-02T06:15:45Z")

</div>

Hey so i apologize for reviving this topic however i’ve been searching for hours upon hours and i cant seem to figure out how to do what i want.

I want to rebalance the stats through kills mod thats integrated into the base game, i cant seem to find the files for it in the data or other game folders. And i don’t really know how to make a mod like that manually.

Help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)\
**Post date:** [November 2, 2020, 9:53am UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/65 "2020-11-02T09:53:38Z")

</div>

As far as I can tell, StK is an integrated “mod”, as in it works not on json but on code level instead. You’d need to dig game’s C++ code to understand how it works.

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [November 2, 2020, 11:28am UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/66 "2020-11-02T11:28:15Z")

</div>

No need to apologize - I’m willing to try to answer your development related questions.

Stats through Kills’ data files are in `data/mods/stats_through_kills`. Unfortunately, it’s implemented in the C++ code, so that doesn’t get you very far. It does show there is an option `STATS_THROUGH_KILLS`.

`grep`'ing through the code for `STATS_THROUGH_KILLS` gets some hits, and following those leads me to [https://github.com/CleverRaven/Cataclysm-DDA/blob/ac95f65dd008750531af8268d8422429c716fcc6/src/avatar.cpp#L1358](https://github.com/CleverRaven/Cataclysm-DDA/blob/ac95f65dd008750531af8268d8422429c716fcc6/src/avatar.cpp#L1358) through line 1448, which looks to be the main code. It looks like you can change the XP thresholds in the `std::array` on line 1449.

If you’re feeling really ambitious, you could also convert that static array to a JSON defined array read by an instance of `generic_factory`, but I’m not sure how comfortable you are with C++. Changing some values and recompiling is relatively straightforward, though. Good luck, and please ask if you need more help!

---

<div class="post-metadata">

**Author:** ![Eidolon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/eidolon/32/12913_2.png) [@Eidolon](https://discourse.cataclysmdda.org/u/Eidolon)\
**Post date:** [August 9, 2024, 12:58am UTC](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781/67 "2024-08-09T00:58:30Z")

</div>

So its been atleast 2 years since i been here. Is this guide up to date

[Previous page](https://discourse.cataclysmdda.org/t/guide-to-adding-new-content-to-cdda-for-first-time-modders/17781.md?page=3)
