# The Toolbox

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

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

**Page:** 10

---

## [How to spawn NPCs?](https://discourse.cataclysmdda.org/t/how-to-spawn-npcs/18750)

<div class="topic-metadata">

**Author:** [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Replies:** 6\
**Last updated:** [March 8, 2019, 11:30am UTC](https://discourse.cataclysmdda.org/t/how-to-spawn-npcs/18750 "2019-03-08T11:30:49Z")

</div>

/!\\ Possible spoiler ahead /!\\ I need help with #28157 (contains spoiler) To make it work I need to spawn NPC near the player, but what i’ve got so far crashes the game : std::shared\_ptr\<npc\> tmp = std::make…

---

## [Edit: Adding a Radiation Bionic?](https://discourse.cataclysmdda.org/t/edit-adding-a-radiation-bionic/19100)

<div class="topic-metadata">

**Author:** [@Tazeell](https://discourse.cataclysmdda.org/u/Tazeell)\
**Replies:** 3\
**Last updated:** [March 11, 2019, 5:17am UTC](https://discourse.cataclysmdda.org/t/edit-adding-a-radiation-bionic/19100 "2019-03-11T05:17:40Z")

</div>

Are there any bionics that cause radiation similar to the radioactivity mutation tree? Preferably a purely detrimental broken bionic. If not I’ll have to see if I can code one but figured I’d ask first.

---

## [Are Monster Upgrades Visible?](https://discourse.cataclysmdda.org/t/are-monster-upgrades-visible/19135)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 1:22pm UTC](https://discourse.cataclysmdda.org/t/are-monster-upgrades-visible/19135 "2019-03-09T13:22:35Z")

</div>

As in, is it possible for a monster to upgrade while in sight of the player, or does it check to ensure it’s out of LOS before changing? Also, for upgrades, does the half\_life value begin counting upon monster generatio…

---

## [Trying to find Amputation in the code](https://discourse.cataclysmdda.org/t/trying-to-find-amputation-in-the-code/19108)

<div class="topic-metadata">

**Author:** [@Tazeell](https://discourse.cataclysmdda.org/u/Tazeell)\
**Replies:** 3\
**Last updated:** [March 7, 2019, 7:53pm UTC](https://discourse.cataclysmdda.org/t/trying-to-find-amputation-in-the-code/19108 "2019-03-07T19:53:23Z")

</div>

So far I’ve been getting some custom classes actually working and stuff but I want to make some proper amputees. While a Fusion blaster arm with no power does somewhat cover that I haven’t had much luck finding whatever …

---

## [Help with flags and mods](https://discourse.cataclysmdda.org/t/help-with-flags-and-mods/19015)

<div class="topic-metadata">

**Author:** [@Heartwawy](https://discourse.cataclysmdda.org/u/Heartwawy)\
**Replies:** 7\
**Last updated:** [March 1, 2019, 5:24pm UTC](https://discourse.cataclysmdda.org/t/help-with-flags-and-mods/19015 "2019-03-01T17:24:46Z")

</div>

So, having little experience with coding, I am having trouble with adding the OVERSIZED flag to a modded item that is strapped to the torso (Aftershock’s Extradimensional Pack). Every time I add the flag into the mod’s j…

---

## [Running tests locally](https://discourse.cataclysmdda.org/t/running-tests-locally/18744)

<div class="topic-metadata">

**Author:** [@hydroplatypus](https://discourse.cataclysmdda.org/u/hydroplatypus)\
**Replies:** 4\
**Last updated:** [February 22, 2019, 2:34am UTC](https://discourse.cataclysmdda.org/t/running-tests-locally/18744 "2019-02-22T02:34:58Z")

</div>

I’m trying to get a branch ready for merge, but the pull request results are telling me that a few tests are failing, in an area I would not have expected my changes to impact at all. (I am working with missions, but fai…

---

## [So what tells the game that lava can be used as an alternative to fire?](https://discourse.cataclysmdda.org/t/so-what-tells-the-game-that-lava-can-be-used-as-an-alternative-to-fire/18848)

<div class="topic-metadata">

**Author:** [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)\
**Replies:** 8\
**Last updated:** [February 21, 2019, 10:59am UTC](https://discourse.cataclysmdda.org/t/so-what-tells-the-game-that-lava-can-be-used-as-an-alternative-to-fire/18848 "2019-02-21T10:59:24Z")

</div>

I want to know because I want to edit it to also act as a replacement for a charcoal forge.

---

## [How long does a ranged attack take?](https://discourse.cataclysmdda.org/t/how-long-does-a-ranged-attack-take/18812)

<div class="topic-metadata">

**Author:** [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)\
**Replies:** 3\
**Last updated:** [February 16, 2019, 9:23pm UTC](https://discourse.cataclysmdda.org/t/how-long-does-a-ranged-attack-take/18812 "2019-02-16T21:23:06Z")

</div>

In moves seconds or whatever if a ranged attack from a gun takes time how long is it? Note: this does not include aiming.

---

## [Creating a Gun : Loaded by default](https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807)

<div class="topic-metadata">

**Author:** [@Mantis](https://discourse.cataclysmdda.org/u/Mantis)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 8:53pm UTC](https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807 "2019-02-15T20:53:08Z")

</div>

In my little mod, I started to create a series of guns. I designed one of these guns as a throwaway gun, that’s not designed to be reloaded or unloaded at all. I can use the gun just fine, it shoots, it spawns. The iss…

---

## [How do you disable certain overmap terrain tiles?](https://discourse.cataclysmdda.org/t/how-do-you-disable-certain-overmap-terrain-tiles/18793)

<div class="topic-metadata">

**Author:** [@Fool](https://discourse.cataclysmdda.org/u/Fool)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 6:42am UTC](https://discourse.cataclysmdda.org/t/how-do-you-disable-certain-overmap-terrain-tiles/18793 "2019-02-15T06:42:54Z")

</div>

I’m making a mod that takes place in a world where the Cataclysm never happens (no zombies or monsters) but robots take over Earth (essentially bootleg Terminator in CDDA). I want to remove all overmap tiles related to …

---

## [Can I use LUA to actively replace an item with another?](https://discourse.cataclysmdda.org/t/can-i-use-lua-to-actively-replace-an-item-with-another/18673)

<div class="topic-metadata">

**Author:** [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)\
**Replies:** 6\
**Last updated:** [February 10, 2019, 2:57am UTC](https://discourse.cataclysmdda.org/t/can-i-use-lua-to-actively-replace-an-item-with-another/18673 "2019-02-10T02:57:06Z")

</div>

Is there a way to use a LUA to make a mod that automatically replaces all instances of an item in the world it is used in with a different item?

---

## [How is melee weapon attack speed calculated?](https://discourse.cataclysmdda.org/t/how-is-melee-weapon-attack-speed-calculated/18668)

<div class="topic-metadata">

**Author:** [@MaxTKOA](https://discourse.cataclysmdda.org/u/MaxTKOA)\
**Replies:** 7\
**Last updated:** [February 7, 2019, 3:08am UTC](https://discourse.cataclysmdda.org/t/how-is-melee-weapon-attack-speed-calculated/18668 "2019-02-07T03:08:28Z")

</div>

I’m just getting into modding CDDA, and I’ve been messing around with a few things, including melee weapons. I’m a bit confused as to how exactly the attack speed is calculated, though, because it’s not a stat included i…

---

## [Help understanding monster\_attacks](https://discourse.cataclysmdda.org/t/help-understanding-monster-attacks/18705)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 8:47pm UTC](https://discourse.cataclysmdda.org/t/help-understanding-monster-attacks/18705 "2019-02-06T20:47:55Z")

</div>

Creating new monster\_attacks. Couldn’t find documentation on these specific questions and couldn’t understand the code. Could someone explain how armor\_penetration and armor\_multiplier work? Within a monster\_attack, I…

---

## [How do I make an uncraftable recipe craftable?](https://discourse.cataclysmdda.org/t/how-do-i-make-an-uncraftable-recipe-craftable/18663)

<div class="topic-metadata">

**Author:** [@crazykiddeath](https://discourse.cataclysmdda.org/u/crazykiddeath)\
**Replies:** 16\
**Last updated:** [February 3, 2019, 6:54pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-make-an-uncraftable-recipe-craftable/18663 "2019-02-03T18:54:08Z")

</div>

I was hoping someone could give me a rundown on how to make uncraftable items craftable? If I was just adding a new item I don’t think I’d have too much trouble but I’m worried about messing something up when it comes to…

---

## [So how does the new add mod work?](https://discourse.cataclysmdda.org/t/so-how-does-the-new-add-mod-work/18669)

<div class="topic-metadata">

**Author:** [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)\
**Replies:** 0\
**Last updated:** [February 3, 2019, 4:45am UTC](https://discourse.cataclysmdda.org/t/so-how-does-the-new-add-mod-work/18669 "2019-02-03T04:45:13Z")

</div>

Or rather why am I unable to make the combat knife also have an add mod modifier giving an addition underbarrel slot.

---

## [Spawn liquid with mutation](https://discourse.cataclysmdda.org/t/spawn-liquid-with-mutation/18661)

<div class="topic-metadata">

**Author:** [@hunakos57](https://discourse.cataclysmdda.org/u/hunakos57)\
**Replies:** 1\
**Last updated:** [February 2, 2019, 8:11pm UTC](https://discourse.cataclysmdda.org/t/spawn-liquid-with-mutation/18661 "2019-02-02T20:11:35Z")

</div>

Created a simple mutation based on the spider one to create milk, but nor do I know how to pour it into a container nor how to spawn it with the container. (Only modified the mutation.json file, the rest of the codes are…

---

## [Currently-Broken Punt Gun Mod, help please!](https://discourse.cataclysmdda.org/t/currently-broken-punt-gun-mod-help-please/17253)

<div class="topic-metadata">

**Author:** [@Tefnut](https://discourse.cataclysmdda.org/u/Tefnut)\
**Replies:** 7\
**Last updated:** [February 2, 2019, 8:07pm UTC](https://discourse.cataclysmdda.org/t/currently-broken-punt-gun-mod-help-please/17253 "2019-02-02T20:07:57Z")

</div>

I dont know what ive done wrong thus far in particular, so if coumeone could walk me step-by-step through fixing this mess, i would appreciate it greatly Also, how is it for a first attempt? I just copied some vanilla…

---

## [Questions about monster\_faction](https://discourse.cataclysmdda.org/t/questions-about-monster-faction/18617)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 2\
**Last updated:** [January 31, 2019, 11:38am UTC](https://discourse.cataclysmdda.org/t/questions-about-monster-faction/18617 "2019-01-31T11:38:32Z")

</div>

Fooling around with what might become a new mod. o\_o Depends on my attention span. Anyway, looking at a new species/monster factions. Species looks like it’s just assigning a name to something, nothing difficult ther…

---

## [CPP / ncurses: How to highlight arbitrary supported color with arbitrary supported background?](https://discourse.cataclysmdda.org/t/cpp-ncurses-how-to-highlight-arbitrary-supported-color-with-arbitrary-supported-background/18606)

<div class="topic-metadata">

**Author:** [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 1:21pm UTC](https://discourse.cataclysmdda.org/t/cpp-ncurses-how-to-highlight-arbitrary-supported-color-with-arbitrary-supported-background/18606 "2019-01-30T13:21:07Z")

</div>

I’m having trouble figuring out how to have these color pairs for displaying weather overmap: (Foreground / Background) light\_blue / light\_gray blue / dark\_gray light\_green / light\_gray green / dark\_gray white / li…

---

## [Creature Sight range](https://discourse.cataclysmdda.org/t/creature-sight-range/18579)

<div class="topic-metadata">

**Author:** [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 6:19pm UTC](https://discourse.cataclysmdda.org/t/creature-sight-range/18579 "2019-01-28T18:19:56Z")

</div>

So I’ve recently tried to make a terrain flag that affect sight ranges of player and other creature. It works for player : when you step on terrain with the flag your sight is reduced to 1 tile, but when I spawn a monste…

---

## [Questions about overmap specials](https://discourse.cataclysmdda.org/t/questions-about-overmap-specials/18552)

<div class="topic-metadata">

**Author:** [@Hirmuolio](https://discourse.cataclysmdda.org/u/Hirmuolio)\
**Replies:** 4\
**Last updated:** [January 26, 2019, 10:42am UTC](https://discourse.cataclysmdda.org/t/questions-about-overmap-specials/18552 "2019-01-26T10:42:58Z")

</div>

Few questions about things in overmap specials json. "connections" : \[ { "point" : \[-1,0,0\], "terrain" : "road" }, \] This causes road to spawn from this thing and connect it to other things. What exactly does the "exi…

---

## [Multiple item actions possible in JSON](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535)

<div class="topic-metadata">

**Author:** [@Escaron](https://discourse.cataclysmdda.org/u/Escaron)\
**Replies:** 2\
**Last updated:** [January 24, 2019, 11:24pm UTC](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535 "2019-01-24T23:24:24Z")

</div>

Hello, is it possible for one item to have multiple action items specified? Like one drug having an ability to act as a weak painkiller and weak disinfectant? Is it possible to do this in JSON?

---

## [Looking for a way to limit map location spawns in custom mod](https://discourse.cataclysmdda.org/t/looking-for-a-way-to-limit-map-location-spawns-in-custom-mod/18417)

<div class="topic-metadata">

**Author:** [@sneeze-attack](https://discourse.cataclysmdda.org/u/sneeze-attack)\
**Replies:** 1\
**Last updated:** [January 18, 2019, 3:44pm UTC](https://discourse.cataclysmdda.org/t/looking-for-a-way-to-limit-map-location-spawns-in-custom-mod/18417 "2019-01-18T15:44:14Z")

</div>

I’m working on a mod that adds a custom start location (science bunker) that contains a vat of flavored/unflavored mutagen serum. My mod is here Everything is working great, except I am having an issue where I want to …

---

## [OpenGL Cataclysm Proposal](https://discourse.cataclysmdda.org/t/opengl-cataclysm-proposal/18300)

<div class="topic-metadata">

**Author:** [@Mussorgsky](https://discourse.cataclysmdda.org/u/Mussorgsky)\
**Replies:** 11\
**Last updated:** [January 24, 2019, 3:57am UTC](https://discourse.cataclysmdda.org/t/opengl-cataclysm-proposal/18300 "2019-01-24T03:57:01Z")

</div>

Ever since seeing the Voxel Cataclysm demo that was done a while back, the idea of a 3d display mode for the game has lurked in the back of my mind. Recently, I saw some discussion about how a 3d version of CDDA would…

---

## [How do you return Start Location using LUA](https://discourse.cataclysmdda.org/t/how-do-you-return-start-location-using-lua/18478)

<div class="topic-metadata">

**Author:** [@sneeze-attack](https://discourse.cataclysmdda.org/u/sneeze-attack)\
**Replies:** 4\
**Last updated:** [January 21, 2019, 8:28pm UTC](https://discourse.cataclysmdda.org/t/how-do-you-return-start-location-using-lua/18478 "2019-01-21T20:28:29Z")

</div>

Hi, I’m new to using programming languages, so please excuse my ignorance here, but how do you return the player’s starting location in a string format using LUA? I’m using dofile in my json mapgen to load a LUA script …

---

## [Github Question for non-dev](https://discourse.cataclysmdda.org/t/github-question-for-non-dev/18455)

<div class="topic-metadata">

**Author:** [@Daeros13](https://discourse.cataclysmdda.org/u/Daeros13)\
**Replies:** 1\
**Last updated:** [January 19, 2019, 11:32pm UTC](https://discourse.cataclysmdda.org/t/github-question-for-non-dev/18455 "2019-01-19T23:32:12Z")

</div>

Continuing the discussion from Github Questions!: So, before I do this, I need to verify that I am not pissing in someone else’s garden. Is it ok to add issues and requests to C:DDA repository without being a dev or ev…

---

## [Can't compile but error seems unrelated to changes I made \[Solved\]](https://discourse.cataclysmdda.org/t/cant-compile-but-error-seems-unrelated-to-changes-i-made-solved/18395)

<div class="topic-metadata">

**Author:** [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Replies:** 0\
**Last updated:** [January 16, 2019, 6:00pm UTC](https://discourse.cataclysmdda.org/t/cant-compile-but-error-seems-unrelated-to-changes-i-made-solved/18395 "2019-01-16T18:00:08Z")

</div>

So I made some changes In a few files to try and make a new flag that reduces sight to 1 when on tile. And I get this error in catabindings.cpp (cf. pic) when I try to compile. But I didn’t change anything in it. It seem…

---

## [Spawning items on rotated tiles](https://discourse.cataclysmdda.org/t/spawning-items-on-rotated-tiles/18238)

<div class="topic-metadata">

**Author:** [@hydroplatypus](https://discourse.cataclysmdda.org/u/hydroplatypus)\
**Replies:** 6\
**Last updated:** [January 8, 2019, 7:12pm UTC](https://discourse.cataclysmdda.org/t/spawning-items-on-rotated-tiles/18238 "2019-01-08T19:12:28Z")

</div>

I’m working on adding another mission into the game, where there is an end-mission function that spawns a bunch of items. However the tile I’m placing the items on (evac\_center\_19, the evac center storage room) can be ro…

---

## [Game Folder Gone? (OSX)](https://discourse.cataclysmdda.org/t/game-folder-gone-osx/18215)

<div class="topic-metadata">

**Author:** [@ByteOfBacon](https://discourse.cataclysmdda.org/u/ByteOfBacon)\
**Replies:** 1\
**Last updated:** [January 6, 2019, 11:44am UTC](https://discourse.cataclysmdda.org/t/game-folder-gone-osx/18215 "2019-01-06T11:44:43Z")

</div>

I recently got CDDA a few weeks ago, and have fallen in love with it. The depth, the nail-biting gameplay, all of it is great. I want to get into modding now, but I cannot find the Mods folder or the data folder anywhere…

---

## [How to add new CBMs](https://discourse.cataclysmdda.org/t/how-to-add-new-cbms/18213)

<div class="topic-metadata">

**Author:** [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Replies:** 2\
**Last updated:** [January 5, 2019, 5:32pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-cbms/18213 "2019-01-05T17:32:22Z")

</div>

So I checked Guide to adding new content to CDDA for first time modders , JSON\_INFO and JSON\_FLAGS and bionics.cpp. But I didn’t find what I was looking for. I’d like to add LED Tattoo as a cosmetic CBM that could also …

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

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