# The Toolbox

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

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

**Page:** 20

---

## [How do i edit farm code](https://discourse.cataclysmdda.org/t/how-do-i-edit-farm-code/8669)

<div class="topic-metadata">

**Author:** [@sammyjudo](https://discourse.cataclysmdda.org/u/sammyjudo)\
**Replies:** 2\
**Last updated:** [January 19, 2015, 2:31am UTC](https://discourse.cataclysmdda.org/t/how-do-i-edit-farm-code/8669 "2015-01-19T02:31:24Z")

</div>

i want to create hydroponic farms and artificial nutrient hydroponic farms which respectively lower growth time to 10 and 1 days but need large amounts of electricity from a vehicle system. The problem is i dont know how…

---

## [Item creation: multiple ammo types; typical process for pricing of items](https://discourse.cataclysmdda.org/t/item-creation-multiple-ammo-types-typical-process-for-pricing-of-items/8666)

<div class="topic-metadata">

**Author:** [@ThinkInvisible](https://discourse.cataclysmdda.org/u/ThinkInvisible)\
**Replies:** 3\
**Last updated:** [January 18, 2015, 6:20pm UTC](https://discourse.cataclysmdda.org/t/item-creation-multiple-ammo-types-typical-process-for-pricing-of-items/8666 "2015-01-18T18:20:00Z")

</div>

Is there any way to allow an item to shoot multiple types of ammo? Is it as simple as "ammo": \["type1", "type2"\]? Also, the game balance file doesn’t say a thing about many of the stats. In particular, I’m having troubl…

---

## [Crafting a material in a can seperate from that can](https://discourse.cataclysmdda.org/t/crafting-a-material-in-a-can-seperate-from-that-can/8647)

<div class="topic-metadata">

**Author:** [@SaltyJustice](https://discourse.cataclysmdda.org/u/SaltyJustice)\
**Replies:** 1\
**Last updated:** [January 17, 2015, 10:21pm UTC](https://discourse.cataclysmdda.org/t/crafting-a-material-in-a-can-seperate-from-that-can/8647 "2015-01-17T22:21:01Z")

</div>

Long time follower, first time poster. Blah blah. Here’s my issue in the mod I’m making: I want the player to be able to craft an item using soda, which is typically found inside a can. However, when I specify the vario…

---

## [Custom Scenarios, Mapgen and Spawn-points](https://discourse.cataclysmdda.org/t/custom-scenarios-mapgen-and-spawn-points/8583)

<div class="topic-metadata">

**Author:** [@Lord\_Frigid](https://discourse.cataclysmdda.org/u/Lord_Frigid)\
**Replies:** 2\
**Last updated:** [January 15, 2015, 5:10pm UTC](https://discourse.cataclysmdda.org/t/custom-scenarios-mapgen-and-spawn-points/8583 "2015-01-15T17:10:11Z")

</div>

What I’m hoping to achieve: to make a custom Scenario, which Spawns the character inside of a small, custom-built Shack either in, or preferably an Overmap tile or two away from a Swamp. What I’ve actually done: I’ve su…

---

## ["FOLDABLE" tag](https://discourse.cataclysmdda.org/t/foldable-tag/8624)

<div class="topic-metadata">

**Author:** [@Malkeus](https://discourse.cataclysmdda.org/u/Malkeus)\
**Replies:** 2\
**Last updated:** [January 15, 2015, 6:15am UTC](https://discourse.cataclysmdda.org/t/foldable-tag/8624 "2015-01-15T06:15:50Z")

</div>

Have you ever seen a circus as they set up? All the boxy trucks unfold into the rides and games, like mediocre transformers. I’m pretty sure having stuff unfold from a vehicle is impossible, but we have this nifty FOLDAB…

---

## [Adding items and professions](https://discourse.cataclysmdda.org/t/adding-items-and-professions/8557)

<div class="topic-metadata">

**Author:** [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Replies:** 4\
**Last updated:** [January 9, 2015, 3:18am UTC](https://discourse.cataclysmdda.org/t/adding-items-and-professions/8557 "2015-01-09T03:18:39Z")

</div>

I’m going to try my hand at adding some new items and professions into the game. All I have to do to accomplish this is edit the existing .json files correct? If I wanted to make it available to others how do I go about…

---

## [Help with makeing cmbs needed](https://discourse.cataclysmdda.org/t/help-with-makeing-cmbs-needed/8531)

<div class="topic-metadata">

**Author:** [@nickspaceman](https://discourse.cataclysmdda.org/u/nickspaceman)\
**Replies:** 1\
**Last updated:** [January 6, 2015, 11:06pm UTC](https://discourse.cataclysmdda.org/t/help-with-makeing-cmbs-needed/8531 "2015-01-06T23:06:31Z")

</div>

right so I wanted to make a new cmb (mosty for my self :|) and im not really sure what .jsons you need to do so I looked at the one in the /items and the one in the main json folder but I couldn’t find the data for said …

---

## [Mutations and Traits help](https://discourse.cataclysmdda.org/t/mutations-and-traits-help/8519)

<div class="topic-metadata">

**Author:** [@Artyom177](https://discourse.cataclysmdda.org/u/Artyom177)\
**Replies:** 3\
**Last updated:** [January 5, 2015, 4:01am UTC](https://discourse.cataclysmdda.org/t/mutations-and-traits-help/8519 "2015-01-05T04:01:45Z")

</div>

I am trying to make a mutation that gives some effect. Kinda like how the “Long tail” mutation gives you extra dodge. But I was looking through the mutation.json file and couldn’t find anything that deals with that. So t…

---

## [DDA's style (viz. astyle)](https://discourse.cataclysmdda.org/t/ddas-style-viz-astyle/8517)

<div class="topic-metadata">

**Author:** [@Brandon\_K](https://discourse.cataclysmdda.org/u/Brandon_K)\
**Replies:** 0\
**Last updated:** [January 5, 2015, 2:14am UTC](https://discourse.cataclysmdda.org/t/ddas-style-viz-astyle/8517 "2015-01-05T02:14:56Z")

</div>

Can I ask why the decision was made to apply --indent-classes? With longer signatures (nevermind const or noexcept) the first of the below pushes things pretty far into the right margin. class foo { public: …

---

## [Compiling with Visual Studio 2013](https://discourse.cataclysmdda.org/t/compiling-with-visual-studio-2013/8137)

<div class="topic-metadata">

**Author:** [@hawk66](https://discourse.cataclysmdda.org/u/hawk66)\
**Replies:** 3\
**Last updated:** [January 5, 2015, 2:04am UTC](https://discourse.cataclysmdda.org/t/compiling-with-visual-studio-2013/8137 "2015-01-05T02:04:09Z")

</div>

There is a https://github.com/CleverRaven/Cataclysm-DDA/tree/master/msvc120 Visual Studio 2012/2013 solution but is has a lot of compile errors (I’ve choosen the non-SDL config). Is the solution currently out of date? W…

---

## [Sling pouches](https://discourse.cataclysmdda.org/t/sling-pouches/8286)

<div class="topic-metadata">

**Author:** [@Zoev](https://discourse.cataclysmdda.org/u/Zoev)\
**Replies:** 0\
**Last updated:** [December 13, 2014, 4:48pm UTC](https://discourse.cataclysmdda.org/t/sling-pouches/8286 "2014-12-13T16:48:54Z")

</div>

I’m working on a quick mod for the latest build and the only issue I’m currently having is that of the sling pouch. I want this item to work like the quiver does for arrows, but it seems that the quiver is written to fun…

---

## [Mod Folder File Heirarchy? And other questions](https://discourse.cataclysmdda.org/t/mod-folder-file-heirarchy-and-other-questions/8226)

<div class="topic-metadata">

**Author:** [@gentlefish](https://discourse.cataclysmdda.org/u/gentlefish)\
**Replies:** 5\
**Last updated:** [December 11, 2014, 11:24pm UTC](https://discourse.cataclysmdda.org/t/mod-folder-file-heirarchy-and-other-questions/8226 "2014-12-11T23:24:31Z")

</div>

I remember reading in the compilation section of the wiki that Data has a file/directory hierarchy - files are loaded (usually) top-down and files before directories. So anything with dependencies N directories should be…

---

## [Monster Attributes](https://discourse.cataclysmdda.org/t/monster-attributes/8254)

<div class="topic-metadata">

**Author:** [@MorCel\_374](https://discourse.cataclysmdda.org/u/MorCel_374)\
**Replies:** 4\
**Last updated:** [December 10, 2014, 5:30pm UTC](https://discourse.cataclysmdda.org/t/monster-attributes/8254 "2014-12-10T17:30:19Z")

</div>

I plan on making a mod specifically for those who want either fast-zombies-low-health, or slow-zombies-high-health etc. Can someone give me the monster attribute list? Seems like game.(monster\_type).health won’t work.

---

## [Snippets on furniture](https://discourse.cataclysmdda.org/t/snippets-on-furniture/8019)

<div class="topic-metadata">

**Author:** [@Snaaty](https://discourse.cataclysmdda.org/u/Snaaty)\
**Replies:** 2\
**Last updated:** [December 8, 2014, 2:01pm UTC](https://discourse.cataclysmdda.org/t/snippets-on-furniture/8019 "2014-12-08T14:01:46Z")

</div>

Hello, I am curious, is it possible to utilize the “snippets-infrastructure” on furniture as well? Specifically, I was thinking about a graveyard with tombstones, which should have “random” descriptions on them.

---

## [E-ink tracking](https://discourse.cataclysmdda.org/t/e-ink-tracking/8193)

<div class="topic-metadata">

**Author:** [@TheFlame52](https://discourse.cataclysmdda.org/u/TheFlame52)\
**Replies:** 8\
**Last updated:** [December 6, 2014, 4:39pm UTC](https://discourse.cataclysmdda.org/t/e-ink-tracking/8193 "2014-12-06T16:39:59Z")

</div>

So I want to add it so that you can track your vehicle through your E-ink, but I don’t know what I should add. I found the code that lets you track it through your PDA but I’m unsure how to modify that to add the E-ink.

---

## [Martial arts and buffs](https://discourse.cataclysmdda.org/t/martial-arts-and-buffs/8189)

<div class="topic-metadata">

**Author:** [@Purplewisp](https://discourse.cataclysmdda.org/u/Purplewisp)\
**Replies:** 5\
**Last updated:** [December 5, 2014, 8:11pm UTC](https://discourse.cataclysmdda.org/t/martial-arts-and-buffs/8189 "2014-12-05T20:11:48Z")

</div>

So I am trying to make a few new martial arts. Most of it is very easy and straight forward. What do I need to do to make a buff that is stationary and triggers when you don’t move?

---

## [Recalculation of tool charges before usage (especially crafting)](https://discourse.cataclysmdda.org/t/recalculation-of-tool-charges-before-usage-especially-crafting/7960)

<div class="topic-metadata">

**Author:** [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Replies:** 1\
**Last updated:** [December 5, 2014, 7:46pm UTC](https://discourse.cataclysmdda.org/t/recalculation-of-tool-charges-before-usage-especially-crafting/7960 "2014-12-05T19:46:12Z")

</div>

I’m making a vehicle power mod for tools. Currently I have a hacky implementation where I set fake item charges for all modded tools whenever jumper cable active item function ticks. This works most of the time, but can …

---

## [Of seeds, ammo, and itypes.h](https://discourse.cataclysmdda.org/t/of-seeds-ammo-and-itypes-h/8161)

<div class="topic-metadata">

**Author:** [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Replies:** 1\
**Last updated:** [December 2, 2014, 8:24am UTC](https://discourse.cataclysmdda.org/t/of-seeds-ammo-and-itypes-h/8161 "2014-12-02T08:24:31Z")

</div>

So I’m looking into overhauling farming, primarily by adjusting the time it takes different crops to grow. I’d like to add a mingrow and maxgrow attribute to seeds that determine what day (adjusted for season length opti…

---

## [Overmap Specials in cities](https://discourse.cataclysmdda.org/t/overmap-specials-in-cities/8146)

<div class="topic-metadata">

**Author:** [@Whaley](https://discourse.cataclysmdda.org/u/Whaley)\
**Replies:** 2\
**Last updated:** [December 1, 2014, 3:05am UTC](https://discourse.cataclysmdda.org/t/overmap-specials-in-cities/8146 "2014-12-01T03:05:57Z")

</div>

Lets say I want to have a 2x2 overmap tile special appear in a city, not on the edge or far away. Can that be done without creating strange road segments/buildings that don’t line up quite right? variables like city dis…

---

## [Noise](https://discourse.cataclysmdda.org/t/noise/8135)

<div class="topic-metadata">

**Author:** [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Replies:** 8\
**Last updated:** [December 1, 2014, 1:12am UTC](https://discourse.cataclysmdda.org/t/noise/8135 "2014-12-01T01:12:46Z")

</div>

Err… where is the code for making noise and how much of it there is? Specifically for firearms. I can’t find anything in the ranged or the ammo jsons.

---

## [Colors](https://discourse.cataclysmdda.org/t/colors/8112)

<div class="topic-metadata">

**Author:** [@Whaley](https://discourse.cataclysmdda.org/u/Whaley)\
**Replies:** 3\
**Last updated:** [November 28, 2014, 8:41pm UTC](https://discourse.cataclysmdda.org/t/colors/8112 "2014-11-28T20:41:23Z")

</div>

Can someone point me in the right direction of where the colors are defined? I found a json in raw called colors, but it doesn’t contain some of the building colors (Yellow with Magenta Background, Etc.) Also, is it pos…

---

## [Fixing grow\_plant in map.cpp](https://discourse.cataclysmdda.org/t/fixing-grow-plant-in-map-cpp/8113)

<div class="topic-metadata">

**Author:** [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Replies:** 0\
**Last updated:** [November 28, 2014, 8:04pm UTC](https://discourse.cataclysmdda.org/t/fixing-grow-plant-in-map-cpp/8113 "2014-11-28T20:04:24Z")

</div>

Hey, so I was looking through that function as I’d like to give different seeds different maturity rates to make farming more viable, but I noticed a TODO in there. It seems like plants are doing something kind of weird …

---

## [Stronger platings for cars?](https://discourse.cataclysmdda.org/t/stronger-platings-for-cars/8014)

<div class="topic-metadata">

**Author:** [@DrNightmares](https://discourse.cataclysmdda.org/u/DrNightmares)\
**Replies:** 18\
**Last updated:** [November 27, 2014, 5:11pm UTC](https://discourse.cataclysmdda.org/t/stronger-platings-for-cars/8014 "2014-11-27T17:11:52Z")

</div>

I’m thinking of making a metal plating even stronger than the hard plating, due to its inability to hold up when driving through forests…and other cars. Say. What if I quintuple the stats of hard plating and rename it …

---

## [On units](https://discourse.cataclysmdda.org/t/on-units/8080)

<div class="topic-metadata">

**Author:** [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Replies:** 2\
**Last updated:** [November 26, 2014, 10:20pm UTC](https://discourse.cataclysmdda.org/t/on-units/8080 "2014-11-26T22:20:36Z")

</div>

I don’t get weight units and prices. How much is “4300” units of weight expressed ingame in pounds/kilograms? And for prices, what does “29000” mean?

---

## [Editing professions?](https://discourse.cataclysmdda.org/t/editing-professions/8071)

<div class="topic-metadata">

**Author:** [@Sunflash](https://discourse.cataclysmdda.org/u/Sunflash)\
**Replies:** 1\
**Last updated:** [November 26, 2014, 5:52am UTC](https://discourse.cataclysmdda.org/t/editing-professions/8071 "2014-11-26T05:52:52Z")

</div>

okay okay so im probably an idiot and missed the thread, but a quick search came up empty. How would one go about tweaking various parts of the built-in/mod-added professions? Im wanting to make some changes to the ro…

---

## [Better Storage mod?](https://discourse.cataclysmdda.org/t/better-storage-mod/8010)

<div class="topic-metadata">

**Author:** [@DrNightmares](https://discourse.cataclysmdda.org/u/DrNightmares)\
**Replies:** 6\
**Last updated:** [November 23, 2014, 11:49am UTC](https://discourse.cataclysmdda.org/t/better-storage-mod/8010 "2014-11-23T11:49:28Z")

</div>

I have a mobile house weighting in at 36,000 pounds, 32,500 volume of spaces. It’s a bit annoying how the pick-up menus is. For instance, I want to find a gun I threw into one of my storage space in my house’s storage s…

---

## [How to Add Monsters?](https://discourse.cataclysmdda.org/t/how-to-add-monsters/7972)

<div class="topic-metadata">

**Author:** [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Replies:** 15\
**Last updated:** [November 21, 2014, 7:04am UTC](https://discourse.cataclysmdda.org/t/how-to-add-monsters/7972 "2014-11-21T07:04:01Z")

</div>

I’m currently setting up a mod that’ll add a handful of monsters that should spawn anywhere, but really, really, really rarely. How do I go about doing that? …also I can’t seem to get the mod listing for testing… Not s…

---

## [Testing json changes](https://discourse.cataclysmdda.org/t/testing-json-changes/7946)

<div class="topic-metadata">

**Author:** [@veri745](https://discourse.cataclysmdda.org/u/veri745)\
**Replies:** 1\
**Last updated:** [November 19, 2014, 5:00am UTC](https://discourse.cataclysmdda.org/t/testing-json-changes/7946 "2014-11-19T05:00:43Z")

</div>

I attempted to change the “survivor utility belt” item from a torso item to the legs. Upon reloading my current save, the item in my inventory still says it covers the torso. How do I make that update, or do I need to …

---

## [TODOs in vehicle.cpp](https://discourse.cataclysmdda.org/t/todos-in-vehicle-cpp/7934)

<div class="topic-metadata">

**Author:** [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Replies:** 4\
**Last updated:** [November 18, 2014, 7:59pm UTC](https://discourse.cataclysmdda.org/t/todos-in-vehicle-cpp/7934 "2014-11-18T19:59:19Z")

</div>

Does anyone know who added the TODO comments for the “find proper weight” in total\_mass and the folding vehicle section? I’d like to take a crack at them, but I’m still a little shaky codewise, so I’d like to discuss it …

---

## [Various questions on mutations and Lua](https://discourse.cataclysmdda.org/t/various-questions-on-mutations-and-lua/7838)

<div class="topic-metadata">

**Author:** [@ThinkInvisible](https://discourse.cataclysmdda.org/u/ThinkInvisible)\
**Replies:** 3\
**Last updated:** [November 12, 2014, 4:02am UTC](https://discourse.cataclysmdda.org/t/various-questions-on-mutations-and-lua/7838 "2014-11-12T04:02:21Z")

</div>

So I’ve been wanting to add a few mutations for a while now, but I’ve run across a few interlinked problems: Some of these mutations don’t really fit C:DDA’s style, although they could be explained realistically - shoul…

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

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