# The Toolbox

**URL:** https://discourse.cataclysmdda.org/c/game-talk/the-toolbox/21.md?page=22

[Latest](https://discourse.cataclysmdda.org/latest.md) · [Categories](https://discourse.cataclysmdda.org/categories.md) · [Tags](https://discourse.cataclysmdda.org/tags.md)

**Page:** 23

---

## [How do you add a new building using JSON](https://discourse.cataclysmdda.org/t/how-do-you-add-a-new-building-using-json/5049)

<div class="topic-metadata">

**Author:** [@werty1124](https://discourse.cataclysmdda.org/u/werty1124)\
**Replies:** 2\
**Last updated:** [February 14, 2014, 7:49pm UTC](https://discourse.cataclysmdda.org/t/how-do-you-add-a-new-building-using-json/5049 "2014-02-14T19:49:03Z")

</div>

I’ve been messing around in the experimental builds with the mod manager and I try was trying to add a new building. I have made a JSON file that has the building layout and all that stuff in it and I have added it in th…

---

## [Create death functions](https://discourse.cataclysmdda.org/t/create-death-functions/4946)

<div class="topic-metadata">

**Author:** [@hazerddex](https://discourse.cataclysmdda.org/u/hazerddex)\
**Replies:** 3\
**Last updated:** [February 14, 2014, 5:14pm UTC](https://discourse.cataclysmdda.org/t/create-death-functions/4946 "2014-02-14T17:14:24Z")

</div>

so i notice that the monsters json has death functions and wrom has a different one than blob how do i make these?

---

## [Multi-part buildings](https://discourse.cataclysmdda.org/t/multi-part-buildings/5065)

<div class="topic-metadata">

**Author:** [@Mad\_Jackal](https://discourse.cataclysmdda.org/u/Mad_Jackal)\
**Replies:** 1\
**Last updated:** [February 14, 2014, 5:06am UTC](https://discourse.cataclysmdda.org/t/multi-part-buildings/5065 "2014-02-14T05:06:37Z")

</div>

Let’s say I wanted to make a building with multiple parts to it, like the Hospital or Mansion. How would I go about doing it? I’m already familiar with how to add a single building to CDDA, I’m just not too clear on how…

---

## [A couple questions about how the mod manager works](https://discourse.cataclysmdda.org/t/a-couple-questions-about-how-the-mod-manager-works/4906)

<div class="topic-metadata">

**Author:** [@ClaytonRISING](https://discourse.cataclysmdda.org/u/ClaytonRISING)\
**Replies:** 8\
**Last updated:** [January 31, 2014, 3:14pm UTC](https://discourse.cataclysmdda.org/t/a-couple-questions-about-how-the-mod-manager-works/4906 "2014-01-31T15:14:34Z")

</div>

Alrighty, a couple questions about how the mod manager handles the files. The files in the mod folder, are they used exclusively or do they combine with the existing files? What I mean is, for example, say I were to ma…

---

## [NPC code applied in a different manner](https://discourse.cataclysmdda.org/t/npc-code-applied-in-a-different-manner/4913)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 3\
**Last updated:** [January 31, 2014, 9:34am UTC](https://discourse.cataclysmdda.org/t/npc-code-applied-in-a-different-manner/4913 "2014-01-31T09:34:29Z")

</div>

So I got an idea on how to make “roaming hordes” sorta work using a frankly ugly combination of two systems, the NPC system and the Fungal Bloom system. First up, have the game create a “Horde Master Zombie” Something bo…

---

## [How do i mod my turrets to target zombie dogs and zombears?](https://discourse.cataclysmdda.org/t/how-do-i-mod-my-turrets-to-target-zombie-dogs-and-zombears/4881)

<div class="topic-metadata">

**Author:** [@HunterAlpha1](https://discourse.cataclysmdda.org/u/HunterAlpha1)\
**Replies:** 6\
**Last updated:** [January 29, 2014, 11:16am UTC](https://discourse.cataclysmdda.org/t/how-do-i-mod-my-turrets-to-target-zombie-dogs-and-zombears/4881 "2014-01-29T11:16:18Z")

</div>

since the devs haven’t seen fit to fix this issue in recent experimentals despite repeated requests, i’d like to know how i can fix it in game. and maybe not just zdogs and zbears, but other critters as well. and pleas…

---

## [Robot apocalypse help](https://discourse.cataclysmdda.org/t/robot-apocalypse-help/4885)

<div class="topic-metadata">

**Author:** [@darkova](https://discourse.cataclysmdda.org/u/darkova)\
**Replies:** 1\
**Last updated:** [January 28, 2014, 7:22am UTC](https://discourse.cataclysmdda.org/t/robot-apocalypse-help/4885 "2014-01-28T07:22:56Z")

</div>

i want to try adding rare robot spawns to cities during dynamic spawn mode how would i go about it?

---

## [So how do coordinates work?](https://discourse.cataclysmdda.org/t/so-how-do-coordinates-work/4879)

<div class="topic-metadata">

**Author:** [@John\_Candlebury](https://discourse.cataclysmdda.org/u/John_Candlebury)\
**Replies:** 3\
**Last updated:** [January 27, 2014, 9:15pm UTC](https://discourse.cataclysmdda.org/t/so-how-do-coordinates-work/4879 "2014-01-27T21:15:19Z")

</div>

I was trying me hand at making houses, but I cant figure out how does the placement of the spawn lists actually works. For example most entries follow this format { “point”: “terrain”, “id”: “t\_dirt”, “x”: \[ 0,1 \] “y”: …

---

## [Help with JSON editing?](https://discourse.cataclysmdda.org/t/help-with-json-editing/4811)

<div class="topic-metadata">

**Author:** [@The\_Lone\_Badger](https://discourse.cataclysmdda.org/u/The_Lone_Badger)\
**Replies:** 1\
**Last updated:** [January 21, 2014, 8:57pm UTC](https://discourse.cataclysmdda.org/t/help-with-json-editing/4811 "2014-01-21T20:57:05Z")

</div>

I’m trying to get started on editing JSONs, and while most of it is self-explanatory sometimes I just can’t figure it out. Two from my early explorations into weapon creation: How do you control how much noise it make…

---

## [Can someone explain to me how to add new buildings?](https://discourse.cataclysmdda.org/t/can-someone-explain-to-me-how-to-add-new-buildings/4597)

<div class="topic-metadata">

**Author:** [@desrik](https://discourse.cataclysmdda.org/u/desrik)\
**Replies:** 2\
**Last updated:** [December 26, 2013, 7:49pm UTC](https://discourse.cataclysmdda.org/t/can-someone-explain-to-me-how-to-add-new-buildings/4597 "2013-12-26T19:49:26Z")

</div>

I tried by example, but I keep getting DEBUG messages. \_north not found. Cycles for each direction, sometimes multiple errors per direction. I was adding to mapgen\_functions.cpp and was basically using the abandoned stor…

---

## [FULL\_SCREEN\_HEIGHT behavior](https://discourse.cataclysmdda.org/t/full-screen-height-behavior/4617)

<div class="topic-metadata">

**Author:** [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)\
**Replies:** 0\
**Last updated:** [December 25, 2013, 8:21am UTC](https://discourse.cataclysmdda.org/t/full-screen-height-behavior/4617 "2013-12-25T08:21:04Z")

</div>

If i have even term height, full\_screen\_height will be 24 And if i have odd term height, full\_screen\_height will be 25 244 =\> 24 245 =\> 25 Why this var act like that?

---

## [Melee\_cut Monster attribute](https://discourse.cataclysmdda.org/t/melee-cut-monster-attribute/4474)

<div class="topic-metadata">

**Author:** [@Taraq](https://discourse.cataclysmdda.org/u/Taraq)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 6:37am UTC](https://discourse.cataclysmdda.org/t/melee-cut-monster-attribute/4474 "2013-12-19T06:37:19Z")

</div>

What exactly does the melee\_cut attribute specify? Is it a flat cutting damage bonus, or does it change rolled damage into cutting damage? I saw one mention of it in monster\_move.cpp, but I wasn’t sure what it was being …

---

## [Jenkins is mad at me](https://discourse.cataclysmdda.org/t/jenkins-is-mad-at-me/4136)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 10\
**Last updated:** [December 19, 2013, 6:36am UTC](https://discourse.cataclysmdda.org/t/jenkins-is-mad-at-me/4136 "2013-12-19T06:36:48Z")

</div>

…I don’t really know what’s wrong at this point, I’ve cleared up everything that the game said was broken, and Jenkins’ console log doesn’t make sense to me… My Foodstuffs Expansion PR \[code\]GitHub pull request #4451 o…

---

## [Having a Menu for Default Ingame Actions](https://discourse.cataclysmdda.org/t/having-a-menu-for-default-ingame-actions/4243)

<div class="topic-metadata">

**Author:** [@vultures](https://discourse.cataclysmdda.org/u/vultures)\
**Replies:** 5\
**Last updated:** [December 10, 2013, 1:57am UTC](https://discourse.cataclysmdda.org/t/having-a-menu-for-default-ingame-actions/4243 "2013-12-10T01:57:14Z")

</div>

Here’s what I’ve been up to… This is actually the idea Kevin Granade had written about, and I dunno if it has been discussed since. Methinks it would be cool to have a different route to default actions than via hot…

---

## [Headlight direction in Vehicles JSON?](https://discourse.cataclysmdda.org/t/headlight-direction-in-vehicles-json/4432)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 1\
**Last updated:** [December 8, 2013, 9:16pm UTC](https://discourse.cataclysmdda.org/t/headlight-direction-in-vehicles-json/4432 "2013-12-08T21:16:58Z")

</div>

How do I define that? Assuming that’s possible in the first place?

---

## [Changing skill gain](https://discourse.cataclysmdda.org/t/changing-skill-gain/4391)

<div class="topic-metadata">

**Author:** [@wobinichhier](https://discourse.cataclysmdda.org/u/wobinichhier)\
**Replies:** 0\
**Last updated:** [December 5, 2013, 11:22am UTC](https://discourse.cataclysmdda.org/t/changing-skill-gain/4391 "2013-12-05T11:22:06Z")

</div>

Hi folks, i\`ve been playing around with with the jsons recently, mainly buffing up the Zeds and such things and now I would like to change the maximal skill gain when doing actions like fighting, cooking and all that st…

---

## [\[WIP\] Exporting from map editor](https://discourse.cataclysmdda.org/t/wip-exporting-from-map-editor/4270)

<div class="topic-metadata">

**Author:** [@desrik](https://discourse.cataclysmdda.org/u/desrik)\
**Replies:** 2\
**Last updated:** [November 28, 2013, 5:14am UTC](https://discourse.cataclysmdda.org/t/wip-exporting-from-map-editor/4270 "2013-11-28T05:14:15Z")

</div>

I have started working on adding export functionality to the in-game map editor. Basically it will allow one to enter the map editor, target the top-left corner of the region to be exported, and pres the hotkey to dump t…

---

## [No repair flag?](https://discourse.cataclysmdda.org/t/no-repair-flag/4196)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 2\
**Last updated:** [November 26, 2013, 2:22am UTC](https://discourse.cataclysmdda.org/t/no-repair-flag/4196 "2013-11-26T02:22:09Z")

</div>

Would such a thing be possible to add? Right now it doesn’t have many uses but I’m working on expanded kevlar vests and the Ceramic Plates in most high-end vests can only be replaced. Also is there any way to set the pr…

---

## [Item/Thing Flags?](https://discourse.cataclysmdda.org/t/item-thing-flags/4109)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 3\
**Last updated:** [November 20, 2013, 8:52am UTC](https://discourse.cataclysmdda.org/t/item-thing-flags/4109 "2013-11-20T08:52:42Z")

</div>

What are they, what do they do, is there a manual somewhere? The only one I need currently is whatever tells the game a certain food can be eaten without risk of food poisoning, but I’d love to know what they are for the…

---

## [Thompson SMG Representation](https://discourse.cataclysmdda.org/t/thompson-smg-representation/3962)

<div class="topic-metadata">

**Author:** [@Anonymous1](https://discourse.cataclysmdda.org/u/Anonymous1)\
**Replies:** 8\
**Last updated:** [November 20, 2013, 1:33am UTC](https://discourse.cataclysmdda.org/t/thompson-smg-representation/3962 "2013-11-20T01:33:08Z")

</div>

\[size=8pt\]I am working on tests for the mod I would like to develop. This thread is in regards to the Thompson M1921 SMG. While I’m semi happy with what I have so far, I have hit a bit of a snag. I am not exactly sure ho…

---

## [Contained liquids in recipes?](https://discourse.cataclysmdda.org/t/contained-liquids-in-recipes/4038)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 10\
**Last updated:** [November 19, 2013, 2:56pm UTC](https://discourse.cataclysmdda.org/t/contained-liquids-in-recipes/4038 "2013-11-19T14:56:51Z")

</div>

How do I put that in? EG you disassemble a 6 pack of beer and you get 6 cans of beer.

---

## [Creating custom flags and flag effects for clothes](https://discourse.cataclysmdda.org/t/creating-custom-flags-and-flag-effects-for-clothes/4065)

<div class="topic-metadata">

**Author:** [@spitss](https://discourse.cataclysmdda.org/u/spitss)\
**Replies:** 3\
**Last updated:** [November 18, 2013, 12:56am UTC](https://discourse.cataclysmdda.org/t/creating-custom-flags-and-flag-effects-for-clothes/4065 "2013-11-18T00:56:32Z")

</div>

I have just been messing about with some of the json files and was wondering how do I create a custom flag and effect to apply to an item. For example say I made a pair of stilts, and wanted to add a flag that makes the…

---

## [The process appears in the background, but](https://discourse.cataclysmdda.org/t/the-process-appears-in-the-background-but/3902)

<div class="topic-metadata">

**Author:** [@ozy](https://discourse.cataclysmdda.org/u/ozy)\
**Replies:** 0\
**Last updated:** [November 10, 2013, 12:20pm UTC](https://discourse.cataclysmdda.org/t/the-process-appears-in-the-background-but/3902 "2013-11-10T12:20:18Z")

</div>

Hey everyone, I stumbled upon a strange issue while trying to build and run from the source on Windows. I managed to build successfully using Code::Blocks, but when I try to run the executable, no windowed application a…

---

## [Trying to increase Fur Pelt Drop on Moose](https://discourse.cataclysmdda.org/t/trying-to-increase-fur-pelt-drop-on-moose/3831)

<div class="topic-metadata">

**Author:** [@Turtlicious](https://discourse.cataclysmdda.org/u/Turtlicious)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 11:51pm UTC](https://discourse.cataclysmdda.org/t/trying-to-increase-fur-pelt-drop-on-moose/3831 "2013-11-05T23:51:11Z")

</div>

Right now, they only drop 1 fur which makes 1 leather. That is very very silly considering a moose is bigger then most people (and that squirrels will sometimes give out only 1 pelt.) So I’m peering through the .json and…

---

## [How do I Compile DDA with the Tilesets Working?](https://discourse.cataclysmdda.org/t/how-do-i-compile-dda-with-the-tilesets-working/3508)

<div class="topic-metadata">

**Author:** [@The13thRonin](https://discourse.cataclysmdda.org/u/The13thRonin)\
**Replies:** 3\
**Last updated:** [October 18, 2013, 4:28pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-compile-dda-with-the-tilesets-working/3508 "2013-10-18T16:28:40Z")

</div>

I use CodeBlocks… It compiles just fine but the Tileset doesn’t work and it reverts back to ASCII?

---

## [Tried MinGW to Compile DDA with Tile Support, No Luck?](https://discourse.cataclysmdda.org/t/tried-mingw-to-compile-dda-with-tile-support-no-luck/3513)

<div class="topic-metadata">

**Author:** [@The13thRonin](https://discourse.cataclysmdda.org/u/The13thRonin)\
**Replies:** 1\
**Last updated:** [October 14, 2013, 9:42pm UTC](https://discourse.cataclysmdda.org/t/tried-mingw-to-compile-dda-with-tile-support-no-luck/3513 "2013-10-14T21:42:46Z")

</div>

I have MinGW running… I typed: make NATIVE=32 TILES=1 and hit enter… No dice… Error says: fatal error: SDL\_image.h: No such file or directory

---

## [Data File formatting guide! Want to do basic modding? Look here:](https://discourse.cataclysmdda.org/t/data-file-formatting-guide-want-to-do-basic-modding-look-here/3403)

<div class="topic-metadata">

**Author:** [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Replies:** 3\
**Last updated:** [October 11, 2013, 12:13am UTC](https://discourse.cataclysmdda.org/t/data-file-formatting-guide-want-to-do-basic-modding-look-here/3403 "2013-10-11T00:13:20Z")

</div>

Hoping we can get people together to do a basic data file guide, containing all the info people might want to know to add stuff to the game! As we collect information, I’ll try to add it to the OP, and eventually I’ll st…

---

## [Debug system](https://discourse.cataclysmdda.org/t/debug-system/3249)

<div class="topic-metadata">

**Author:** [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Replies:** 1\
**Last updated:** [October 10, 2013, 10:29pm UTC](https://discourse.cataclysmdda.org/t/debug-system/3249 "2013-10-10T22:29:27Z")

</div>

I do something wrong with pointers and got seg.fault. Question: cataclysm has debug to out in file without stop the game? How to use it?

---

## [Rope and string conversion](https://discourse.cataclysmdda.org/t/rope-and-string-conversion/2929)

<div class="topic-metadata">

**Author:** [@Gatleos](https://discourse.cataclysmdda.org/u/Gatleos)\
**Replies:** 4\
**Last updated:** [September 4, 2013, 3:03pm UTC](https://discourse.cataclysmdda.org/t/rope-and-string-conversion/2929 "2013-09-04T15:03:27Z")

</div>

I’ve been bothered by this for a while: is there any reason that ropes and string have to be measured in lengths of 6" 3’ 6’ and 30’? It seems extremely clumsy, and creates a bunch of unnecessary crafting and disassembly…

---

## [How to make a Custom Character Template](https://discourse.cataclysmdda.org/t/how-to-make-a-custom-character-template/2817)

<div class="topic-metadata">

**Author:** [@Moon\_Dew](https://discourse.cataclysmdda.org/u/Moon_Dew)\
**Replies:** 8\
**Last updated:** [September 4, 2013, 1:12pm UTC](https://discourse.cataclysmdda.org/t/how-to-make-a-custom-character-template/2817 "2013-09-04T13:12:02Z")

</div>

I’m trying to create a “Just-for-fun” character with perfect twenty stats and no negative traits, but when I tried editing a character template I get nothing but a bunch of gibberish. Does anyone know how to make a new …

[Previous page](https://discourse.cataclysmdda.org/c/game-talk/the-toolbox/21.md?page=21)

[Next page](https://discourse.cataclysmdda.org/c/game-talk/the-toolbox/21.md?page=23)
