# The Toolbox

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

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

**Page:** 18

---

## [Translating itype\_id into screen name](https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841)

<div class="topic-metadata">

**Author:** [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Replies:** 1\
**Last updated:** [November 10, 2015, 6:43pm UTC](https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841 "2015-11-10T18:43:47Z")

</div>

I have some code in which I have itype\_ids which I want to print to the screen using ityp::nname. In itype.h there is a mention of a master itype map in which I can look up itypes by itype\_ids, but I can’t find it. Anyon…

---

## [How to edit vision range?](https://discourse.cataclysmdda.org/t/how-to-edit-vision-range/10831)

<div class="topic-metadata">

**Author:** [@Vulpes\_Inculta](https://discourse.cataclysmdda.org/u/Vulpes_Inculta)\
**Replies:** 3\
**Last updated:** [November 9, 2015, 10:30pm UTC](https://discourse.cataclysmdda.org/t/how-to-edit-vision-range/10831 "2015-11-09T22:30:20Z")

</div>

Hello there! Hope I’m posting this in the right forum. My goal is to proportionally reduce (for about 20%) maximum vision distance of both player and all monsters and NPCs. I want vision ranges to fit my preferred zoom …

---

## [The \_WIN32\_WINNT value does not match NTDDI\_VERSION](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790)

<div class="topic-metadata">

**Author:** [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Replies:** 5\
**Last updated:** [November 3, 2015, 5:38pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790 "2015-11-03T17:38:19Z")

</div>

Hello guys, I’ve been trying to compile the CDDA sources but I keep running into the same problem. Building with ‘make’ didn’t give me a specific source, but building with codeblocks gave me this snippet: #ifdef NTDDI…

---

## [CVD Machine =/= Ball Mill](https://discourse.cataclysmdda.org/t/cvd-machine-ball-mill/10694)

<div class="topic-metadata">

**Author:** [@Karicter](https://discourse.cataclysmdda.org/u/Karicter)\
**Replies:** 3\
**Last updated:** [October 18, 2015, 11:09pm UTC](https://discourse.cataclysmdda.org/t/cvd-machine-ball-mill/10694 "2015-10-18T23:09:12Z")

</div>

So, if anyone is still tracking the my SHTF mod, you may have noticed with several peoples help, I was able to get the ball mill to work in game. HOWEVER; It works in the recipe only as a carried item. Now, I tried usi…

---

## [Adding new iuse function](https://discourse.cataclysmdda.org/t/adding-new-iuse-function/10686)

<div class="topic-metadata">

**Author:** [@Osobist](https://discourse.cataclysmdda.org/u/Osobist)\
**Replies:** 7\
**Last updated:** [October 16, 2015, 1:43pm UTC](https://discourse.cataclysmdda.org/t/adding-new-iuse-function/10686 "2015-10-16T13:43:01Z")

</div>

Greetings. I have a question - is there any mean to add new iuse function in mod without main gamedata being involved, so it could work only when mod is activated. For example: we have a two variants of the talking doll…

---

## [Adding flag to items dropped by killed zeds](https://discourse.cataclysmdda.org/t/adding-flag-to-items-dropped-by-killed-zeds/10673)

<div class="topic-metadata">

**Author:** [@Valiant](https://discourse.cataclysmdda.org/u/Valiant)\
**Replies:** 11\
**Last updated:** [October 14, 2015, 2:37pm UTC](https://discourse.cataclysmdda.org/t/adding-flag-to-items-dropped-by-killed-zeds/10673 "2015-10-14T14:37:32Z")

</div>

Is it possible to add flag to items only if they are dropped by killed zeds?

---

## [Overriding parts of existing json files with a mod?](https://discourse.cataclysmdda.org/t/overriding-parts-of-existing-json-files-with-a-mod/10685)

<div class="topic-metadata">

**Author:** [@scorpion451](https://discourse.cataclysmdda.org/u/scorpion451)\
**Replies:** 1\
**Last updated:** [October 13, 2015, 11:09pm UTC](https://discourse.cataclysmdda.org/t/overriding-parts-of-existing-json-files-with-a-mod/10685 "2015-10-13T23:09:16Z")

</div>

Short version: Anyone care to teach a man to fish make json-patching mods? I have a personal set of tweaks to one of the json’s that I’d like to package and share as a trial run for a more elaborate mod I’m thinking of …

---

## [Compiling error (RESOLVED) (I'm an idiot)](https://discourse.cataclysmdda.org/t/compiling-error-resolved-im-an-idiot/10668)

<div class="topic-metadata">

**Author:** [@Karicter](https://discourse.cataclysmdda.org/u/Karicter)\
**Replies:** 7\
**Last updated:** [October 13, 2015, 3:50am UTC](https://discourse.cataclysmdda.org/t/compiling-error-resolved-im-an-idiot/10668 "2015-10-13T03:50:19Z")

</div>

In my many attempts over the past 24 hours, I can’t seem to figure out compiling my doctored version of catadda to get the machines to finally work. I was using the method discussed on the wiki, or at least what seemed …

---

## [Assistance and advice regarding ammo type overlap](https://discourse.cataclysmdda.org/t/assistance-and-advice-regarding-ammo-type-overlap/10609)

<div class="topic-metadata">

**Author:** [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Replies:** 10\
**Last updated:** [September 29, 2015, 1:19pm UTC](https://discourse.cataclysmdda.org/t/assistance-and-advice-regarding-ammo-type-overlap/10609 "2015-09-29T13:19:48Z")

</div>

So, I’m think once my current remaining PR is dealt with, I might see if I can take the initiative of implementing ammo type overlap. In theory it should be feasible to do, but I’d want advice and suggestions on how this…

---

## [Snippets and notes](https://discourse.cataclysmdda.org/t/snippets-and-notes/10585)

<div class="topic-metadata">

**Author:** [@zveroboy](https://discourse.cataclysmdda.org/u/zveroboy)\
**Replies:** 3\
**Last updated:** [September 25, 2015, 6:15pm UTC](https://discourse.cataclysmdda.org/t/snippets-and-notes/10585 "2015-09-25T18:15:35Z")

</div>

hi everyone! I did mod there is the notes of a new type (used books.json and snippets.json), but all of notes aare contain the same text, which stands first in snippets.json, not different. How do I fix this?

---

## [Engine power calculation](https://discourse.cataclysmdda.org/t/engine-power-calculation/10557)

<div class="topic-metadata">

**Author:** [@Steelmaniac](https://discourse.cataclysmdda.org/u/Steelmaniac)\
**Replies:** 6\
**Last updated:** [September 24, 2015, 2:36am UTC](https://discourse.cataclysmdda.org/t/engine-power-calculation/10557 "2015-09-24T02:36:48Z")

</div>

So I was wondering how was the power of engines along with their speed and all calculated in game cause it doesnt make sense that a 150 kg motorbike that has a 1100cc v twin can only reach 66km/h without destroying the e…

---

## [\[json\] How to make items spawn in certain places?](https://discourse.cataclysmdda.org/t/json-how-to-make-items-spawn-in-certain-places/10490)

<div class="topic-metadata">

**Author:** [@Faerindel](https://discourse.cataclysmdda.org/u/Faerindel)\
**Replies:** 4\
**Last updated:** [September 20, 2015, 3:52pm UTC](https://discourse.cataclysmdda.org/t/json-how-to-make-items-spawn-in-certain-places/10490 "2015-09-20T15:52:20Z")

</div>

Okay, I’m trying to mod in a military anti-materiel rifle. I want it to spawn at military outposts, bunkers, bases and helicopter crashes. From what I collected from docs, this is achieved by adding its id to certain it…

---

## [Morale-boosting trait -- mod or build?](https://discourse.cataclysmdda.org/t/morale-boosting-trait-mod-or-build/10530)

<div class="topic-metadata">

**Author:** [@zackj44](https://discourse.cataclysmdda.org/u/zackj44)\
**Replies:** 4\
**Last updated:** [September 16, 2015, 12:20am UTC](https://discourse.cataclysmdda.org/t/morale-boosting-trait-mod-or-build/10530 "2015-09-16T00:20:27Z")

</div>

Hi, I’d like to add a trait that provides a constant morale boost. I’ve tried to look at the wiki, but I haven’t made a lot of progress with the Lua page. I asked on IRC, but I was met with ‘just take optimist’. For th…

---

## [How to add a trait that seeks flags in items](https://discourse.cataclysmdda.org/t/how-to-add-a-trait-that-seeks-flags-in-items/10436)

<div class="topic-metadata">

**Author:** [@FrankyPlaysGames](https://discourse.cataclysmdda.org/u/FrankyPlaysGames)\
**Replies:** 2\
**Last updated:** [August 31, 2015, 8:49am UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-trait-that-seeks-flags-in-items/10436 "2015-08-31T08:49:43Z")

</div>

Hopefully that title isn’t too herpderp, I’m trying my hand at a mod for the second time and want to actually do something. Basically, I’m looking to create a flag that I can add to weapons and clothing to give a morale…

---

## [Linker Errors with Code Blocks](https://discourse.cataclysmdda.org/t/linker-errors-with-code-blocks/10383)

<div class="topic-metadata">

**Author:** [@Mattaclysm](https://discourse.cataclysmdda.org/u/Mattaclysm)\
**Replies:** 1\
**Last updated:** [August 27, 2015, 2:54am UTC](https://discourse.cataclysmdda.org/t/linker-errors-with-code-blocks/10383 "2015-08-27T02:54:22Z")

</div>

Hey all, I’m having some difficulty getting the game to compile in Code::Blocks for the Release (SDL) target. I renamed my existing WinDepend folder and copied the bundled libraries into the Cataclysm source directory, …

---

## [Mod\_stat("stat", mod) vs. mod\_"stat"(mod)](https://discourse.cataclysmdda.org/t/mod-stat-stat-mod-vs-mod-stat-mod/10401)

<div class="topic-metadata">

**Author:** [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Replies:** 3\
**Last updated:** [August 26, 2015, 8:54am UTC](https://discourse.cataclysmdda.org/t/mod-stat-stat-mod-vs-mod-stat-mod/10401 "2015-08-26T08:54:29Z")

</div>

Basically right now we have two different ways to mod a lot of our stats, either through “mod\_fatigue(X)” or through “mod\_stat(“fatigue”, X)”. I was wondering if I should be working to compress everything down into just …

---

## [Where to find the "id" for the actions?](https://discourse.cataclysmdda.org/t/where-to-find-the-id-for-the-actions/10396)

<div class="topic-metadata">

**Author:** [@Darkness13](https://discourse.cataclysmdda.org/u/Darkness13)\
**Replies:** 2\
**Last updated:** [August 25, 2015, 10:13am UTC](https://discourse.cataclysmdda.org/t/where-to-find-the-id-for-the-actions/10396 "2015-08-25T10:13:38Z")

</div>

I opened the “soundset.json” edited by other people and I see the followings: { “id” : “close\_door”, “variant” : “t\_window\_domestic”, “volume” : 100, “file” : “percy-duke\_opening-curtains.wav” }, I wonder where ca…

---

## [CLion](https://discourse.cataclysmdda.org/t/clion/10365)

<div class="topic-metadata">

**Author:** [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)\
**Replies:** 2\
**Last updated:** [August 20, 2015, 1:56am UTC](https://discourse.cataclysmdda.org/t/clion/10365 "2015-08-20T01:56:30Z")

</div>

Ok. we have CLion(or not?) support. Should i make new registration or somebody already register few licenses and can give me one? May be Kevin need to register ~20 licenses for all developers? https://www.jetbrains.co…

---

## [Adding new funnels (unable to get it working)](https://discourse.cataclysmdda.org/t/adding-new-funnels-unable-to-get-it-working/10318)

<div class="topic-metadata">

**Author:** [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Replies:** 4\
**Last updated:** [August 12, 2015, 7:43pm UTC](https://discourse.cataclysmdda.org/t/adding-new-funnels-unable-to-get-it-working/10318 "2015-08-12T19:43:30Z")

</div>

So, I’ve been trying and failing to add an additional funnel trap for something someone suggested ( http://smf.cataclysmdda.com/index.php?topic=11037.0 ). I’ve looked at the source and it seems all I SHOULD need is to e…

---

## [TILES and SDLTILES builds diff](https://discourse.cataclysmdda.org/t/tiles-and-sdltiles-builds-diff/10313)

<div class="topic-metadata">

**Author:** [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)\
**Replies:** 2\
**Last updated:** [August 12, 2015, 11:17am UTC](https://discourse.cataclysmdda.org/t/tiles-and-sdltiles-builds-diff/10313 "2015-08-12T11:17:40Z")

</div>

What difference between TILES and SDLTILES defines? Guess this is can be useful on Windows build. CURSES=draw text by Windows draw system(i don’t know name). SDLTILES=draw text by SDL, not use tiles. TILES=draw text …

---

## [Baby's First Weapon Addition](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678)

<div class="topic-metadata">

**Author:** [@Shopkeeper](https://discourse.cataclysmdda.org/u/Shopkeeper)\
**Replies:** 4\
**Last updated:** [August 7, 2015, 6:19pm UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678 "2015-08-07T18:19:31Z")

</div>

I decided to try and get my feet wet with Cataclysm and GitHub by creating a custom weapon. So, I took a look at the CDDA Raw JSON, then clobbered together a weapon and associated recipe using the .50 caliber rifle as a …

---

## [Adding and using additional skills (yet more questions)](https://discourse.cataclysmdda.org/t/adding-and-using-additional-skills-yet-more-questions/10265)

<div class="topic-metadata">

**Author:** [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Replies:** 4\
**Last updated:** [August 6, 2015, 3:16am UTC](https://discourse.cataclysmdda.org/t/adding-and-using-additional-skills-yet-more-questions/10265 "2015-08-06T03:16:34Z")

</div>

Is there any way to implement the addition of a new skill via a mod? It seems that while I’ve been able to add a new skill and make it available for investing points, recipes fail to acknowledge that the skill exists. E…

---

## [Implementing items holding creatures](https://discourse.cataclysmdda.org/t/implementing-items-holding-creatures/10240)

<div class="topic-metadata">

**Author:** [@jaked122](https://discourse.cataclysmdda.org/u/jaked122)\
**Replies:** 5\
**Last updated:** [August 5, 2015, 1:27am UTC](https://discourse.cataclysmdda.org/t/implementing-items-holding-creatures/10240 "2015-08-05T01:27:39Z")

</div>

Now I’m writing this for a pokemon mod, but it would be adventageous if it was possible to put your cat into a cat-carrier so that driving doesn’t result in predominantly dead pets(my poor dog) I’m having an issue imple…

---

## [Manhack deactivation](https://discourse.cataclysmdda.org/t/manhack-deactivation/10233)

<div class="topic-metadata">

**Author:** [@jaked122](https://discourse.cataclysmdda.org/u/jaked122)\
**Replies:** 4\
**Last updated:** [August 2, 2015, 7:01pm UTC](https://discourse.cataclysmdda.org/t/manhack-deactivation/10233 "2015-08-02T19:01:18Z")

</div>

I’m currently working on a Pokemon mod for cataclysm(because we definitely need it), and I am having a difficult time finding what enables friendly manhacks to be deactivated and picked up. Can someone tell me which sou…

---

## [Visual Studio 2013 or Visual Studio 2015, can't compile either way](https://discourse.cataclysmdda.org/t/visual-studio-2013-or-visual-studio-2015-cant-compile-either-way/9994)

<div class="topic-metadata">

**Author:** [@Iunnrais](https://discourse.cataclysmdda.org/u/Iunnrais)\
**Replies:** 3\
**Last updated:** [July 31, 2015, 10:12pm UTC](https://discourse.cataclysmdda.org/t/visual-studio-2013-or-visual-studio-2015-cant-compile-either-way/9994 "2015-07-31T22:12:11Z")

</div>

The docs suggest that the Visual Studio 2013 compiler will not be able to compile cdda correctly, but that Visual Studio 2015 will. However, Visual Studio 2015 has… issues, when it comes to using SDL 2, and it seems lik…

---

## [How is the effect of recoil calculated?](https://discourse.cataclysmdda.org/t/how-is-the-effect-of-recoil-calculated/10121)

<div class="topic-metadata">

**Author:** [@SteelBlueWolf](https://discourse.cataclysmdda.org/u/SteelBlueWolf)\
**Replies:** 4\
**Last updated:** [July 22, 2015, 6:53am UTC](https://discourse.cataclysmdda.org/t/how-is-the-effect-of-recoil-calculated/10121 "2015-07-22T06:53:46Z")

</div>

I have been looking through ranged.cpp but I can’t find anything about what exactly recoil does and how a round’s recoil value affects those calculations. What file is that code in?

---

## [Guns too loud?](https://discourse.cataclysmdda.org/t/guns-too-loud/10028)

<div class="topic-metadata">

**Author:** [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Replies:** 1\
**Last updated:** [July 11, 2015, 2:06pm UTC](https://discourse.cataclysmdda.org/t/guns-too-loud/10028 "2015-07-11T14:06:37Z")

</div>

I added a pistol chambered in 9mm to the game and it makes 176 noise when fired. Seems kind of high, is this normal?

---

## [New Region Types](https://discourse.cataclysmdda.org/t/new-region-types/10029)

<div class="topic-metadata">

**Author:** [@Survivor\_Kane](https://discourse.cataclysmdda.org/u/Survivor_Kane)\
**Replies:** 0\
**Last updated:** [July 11, 2015, 2:59am UTC](https://discourse.cataclysmdda.org/t/new-region-types/10029 "2015-07-11T02:59:46Z")

</div>

How would one (if possible) go about implementing a new region type for world creation using a mod?

---

## [Help with Beginning/Making/Editing a Tileset](https://discourse.cataclysmdda.org/t/help-with-beginning-making-editing-a-tileset/9970)

<div class="topic-metadata">

**Author:** [@FatherTed](https://discourse.cataclysmdda.org/u/FatherTed)\
**Replies:** 13\
**Last updated:** [July 7, 2015, 7:40pm UTC](https://discourse.cataclysmdda.org/t/help-with-beginning-making-editing-a-tileset/9970 "2015-07-07T19:40:16Z")

</div>

Edit: WARNING: A lot of repetitive text ahead. Check the lowest posts for the most relevent (if out of context) info. If you want help on making tilesets, StopSignal has made a great guide amongst my ramblings. Edit2: I…

---

## [Question about .json item groups](https://discourse.cataclysmdda.org/t/question-about-json-item-groups/9956)

<div class="topic-metadata">

**Author:** [@Sunshine](https://discourse.cataclysmdda.org/u/Sunshine)\
**Replies:** 4\
**Last updated:** [July 5, 2015, 11:41pm UTC](https://discourse.cataclysmdda.org/t/question-about-json-item-groups/9956 "2015-07-05T23:41:36Z")

</div>

I have a quick question about item groups. Is there a way to have a reference to another item group within a list of items. For example this: \[spoiler\] { "type" : "item\_group", "id" : "forest", "items":\[ …

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

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