# The Toolbox

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

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

**Page:** 14

---

## [Are power sources hard-coded?](https://discourse.cataclysmdda.org/t/are-power-sources-hard-coded/14672)

<div class="topic-metadata">

**Author:** [@ShadowDragon8685](https://discourse.cataclysmdda.org/u/ShadowDragon8685)\
**Replies:** 23\
**Last updated:** [December 19, 2017, 6:44am UTC](https://discourse.cataclysmdda.org/t/are-power-sources-hard-coded/14672 "2017-12-19T06:44:57Z")

</div>

I was trying to figure out how vehicular power sources worked by looking at the solars, but they seem to have a tag instead of any specific instructions regarding how they generate power. I was toying with the idea of a…

---

## [How does one mod drop lists and map locations?](https://discourse.cataclysmdda.org/t/how-does-one-mod-drop-lists-and-map-locations/14663)

<div class="topic-metadata">

**Author:** [@ShadowDragon8685](https://discourse.cataclysmdda.org/u/ShadowDragon8685)\
**Replies:** 1\
**Last updated:** [December 16, 2017, 2:47am UTC](https://discourse.cataclysmdda.org/t/how-does-one-mod-drop-lists-and-map-locations/14663 "2017-12-16T02:47:04Z")

</div>

This question is going to sound a little stupid, I know; how does one go about creating and adding locations to CDDA? Is there a simpler method than ASCII mapping in a text editor? And how does loot happen? Say, for exa…

---

## [Compiling with LUA in Visual Studio](https://discourse.cataclysmdda.org/t/compiling-with-lua-in-visual-studio/14621)

<div class="topic-metadata">

**Author:** [@Zanos](https://discourse.cataclysmdda.org/u/Zanos)\
**Replies:** 7\
**Last updated:** [December 8, 2017, 10:12pm UTC](https://discourse.cataclysmdda.org/t/compiling-with-lua-in-visual-studio/14621 "2017-12-08T22:12:55Z")

</div>

I’m having a problem getting LUA to work compiling the build in VS. I downloaded the LUA executables and put them on my path, and I can run lua53 just fine from the command line. I generate the cata\_bindings file and it …

---

## [The Minor JSON Questions Thread](https://discourse.cataclysmdda.org/t/the-minor-json-questions-thread/12858)

<div class="topic-metadata">

**Author:** [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Replies:** 125\
**Last updated:** [November 20, 2017, 6:04am UTC](https://discourse.cataclysmdda.org/t/the-minor-json-questions-thread/12858 "2017-11-20T06:04:55Z")

</div>

Because having a new thread for every small question is unreasonable. I hope this sticks.

---

## [Questions about recipe and comestible fields](https://discourse.cataclysmdda.org/t/questions-about-recipe-and-comestible-fields/14508)

<div class="topic-metadata">

**Author:** [@Pakislav](https://discourse.cataclysmdda.org/u/Pakislav)\
**Replies:** 0\
**Last updated:** [November 20, 2017, 1:41am UTC](https://discourse.cataclysmdda.org/t/questions-about-recipe-and-comestible-fields/14508 "2017-11-20T01:41:48Z")

</div>

---

## [A little Help with Engine modifications](https://discourse.cataclysmdda.org/t/a-little-help-with-engine-modifications/14243)

<div class="topic-metadata">

**Author:** [@endders2](https://discourse.cataclysmdda.org/u/endders2)\
**Replies:** 0\
**Last updated:** [September 18, 2017, 5:53am UTC](https://discourse.cataclysmdda.org/t/a-little-help-with-engine-modifications/14243 "2017-09-18T05:53:37Z")

</div>

I was wondering how / if you can modify a engines power. As its stands. I’m currently confused to as a few numbers I am getting with a motorcycle I made. I own 2 motorcycles, a 600cc, and a 1463cc respectively. I found…

---

## [Remove Vanilla scenarios via mods](https://discourse.cataclysmdda.org/t/remove-vanilla-scenarios-via-mods/14406)

<div class="topic-metadata">

**Author:** [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Replies:** 1\
**Last updated:** [October 29, 2017, 5:13am UTC](https://discourse.cataclysmdda.org/t/remove-vanilla-scenarios-via-mods/14406 "2017-10-29T05:13:57Z")

</div>

Short of creating a core mod, is there anyway of removing vanilla scenarios via mods. Like, for example, removed the helicopter crash scenario is the mod is enabled.

---

## [Newby Guide to Compiling (and Editing) With Code::Blocks](https://discourse.cataclysmdda.org/t/newby-guide-to-compiling-and-editing-with-code-blocks/1128)

<div class="topic-metadata">

**Author:** [@Flare](https://discourse.cataclysmdda.org/u/Flare)\
**Replies:** 29\
**Last updated:** [October 20, 2017, 6:59pm UTC](https://discourse.cataclysmdda.org/t/newby-guide-to-compiling-and-editing-with-code-blocks/1128 "2017-10-20T18:59:12Z")

</div>

Prior to beginning. Do note that melee.json, ranged.json, instruments.json, and recipes.json are accessible in cataclysm/data/raw folder. Once you compile the game, whatever is in the raw folder will be reloaded by the e…

---

## [Mutation and bionic effects?](https://discourse.cataclysmdda.org/t/mutation-and-bionic-effects/14382)

<div class="topic-metadata">

**Author:** [@veedanya](https://discourse.cataclysmdda.org/u/veedanya)\
**Replies:** 6\
**Last updated:** [October 20, 2017, 2:00pm UTC](https://discourse.cataclysmdda.org/t/mutation-and-bionic-effects/14382 "2017-10-20T14:00:52Z")

</div>

I’ve been digging through file after file trying to find information on the exact impacts of various mutations and bionics, but can’t find any info on them. Does anyone know where the information on their exact effects? …

---

## [First time contributing on GitHub, seeking guidance](https://discourse.cataclysmdda.org/t/first-time-contributing-on-github-seeking-guidance/14355)

<div class="topic-metadata">

**Author:** [@harison86](https://discourse.cataclysmdda.org/u/harison86)\
**Replies:** 1\
**Last updated:** [October 10, 2017, 4:44pm UTC](https://discourse.cataclysmdda.org/t/first-time-contributing-on-github-seeking-guidance/14355 "2017-10-10T16:44:13Z")

</div>

Hey, as the title says this is my first time actually contributing and I’m not feeling 100% on what I’m doing. Basically just started using GitHub today and I need to know if I’m doing everything right, if I have a good …

---

## [Not a Code issue, but a howto request](https://discourse.cataclysmdda.org/t/not-a-code-issue-but-a-howto-request/14356)

<div class="topic-metadata">

**Author:** [@deanec64](https://discourse.cataclysmdda.org/u/deanec64)\
**Replies:** 1\
**Last updated:** [October 10, 2017, 4:40pm UTC](https://discourse.cataclysmdda.org/t/not-a-code-issue-but-a-howto-request/14356 "2017-10-10T16:40:34Z")

</div>

I have the following platform that I’m wanting to compile for. https://docs.getchip.com/chip.html#welcome-to-the-chip-operating-system what I’m trying to figure out is howto compile it for this platform.will just compi…

---

## [Questions about generating items in Lua](https://discourse.cataclysmdda.org/t/questions-about-generating-items-in-lua/14316)

<div class="topic-metadata">

**Author:** [@CodeSeg](https://discourse.cataclysmdda.org/u/CodeSeg)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 5:11pm UTC](https://discourse.cataclysmdda.org/t/questions-about-generating-items-in-lua/14316 "2017-10-02T17:11:27Z")

</div>

Now I know how to use lua to define a use action function, and what I want to do next is to generate items dynamically in lua, is that possible? The first thing I thought is artifacts. They are generated dynamically in …

---

## [Questions about register\_iuse in LUA](https://discourse.cataclysmdda.org/t/questions-about-register-iuse-in-lua/14293)

<div class="topic-metadata">

**Author:** [@CodeSeg](https://discourse.cataclysmdda.org/u/CodeSeg)\
**Replies:** 2\
**Last updated:** [September 27, 2017, 1:27pm UTC](https://discourse.cataclysmdda.org/t/questions-about-register-iuse-in-lua/14293 "2017-09-27T13:27:36Z")

</div>

I’m very optimistic about LUA scripts in mods. So I’m trying to use LUA to create a new mod. I’m starting with “register\_iuse”, but I have some problem figuring out the details. If I defined a iuse function in Lua, then…

---

## [LUA Mapgen Problems](https://discourse.cataclysmdda.org/t/lua-mapgen-problems/13515)

<div class="topic-metadata">

**Author:** [@Catasteroid](https://discourse.cataclysmdda.org/u/Catasteroid)\
**Replies:** 24\
**Last updated:** [September 27, 2017, 11:57am UTC](https://discourse.cataclysmdda.org/t/lua-mapgen-problems/13515 "2017-09-27T11:57:56Z")

</div>

I’ve been experimenting with the LUA mapgen method to make an interesting procedural house with many potential variants and so far I’ve been met only by the same error from the game when attempting to generate the map; D…

---

## [Compiling on linux with tiles causes SDL issues](https://discourse.cataclysmdda.org/t/compiling-on-linux-with-tiles-causes-sdl-issues/14239)

<div class="topic-metadata">

**Author:** [@condortaco](https://discourse.cataclysmdda.org/u/condortaco)\
**Replies:** 2\
**Last updated:** [September 17, 2017, 10:22pm UTC](https://discourse.cataclysmdda.org/t/compiling-on-linux-with-tiles-causes-sdl-issues/14239 "2017-09-17T22:22:59Z")

</div>

I’m trying to compile on linux following the instructions here https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md#linux-native-sdl-builds. It compiles fine if I do it without tiles, but when I try mak…

---

## [NPC reads computer screen for PC](https://discourse.cataclysmdda.org/t/npc-reads-computer-screen-for-pc/14208)

<div class="topic-metadata">

**Author:** [@\_k1](https://discourse.cataclysmdda.org/u/_k1)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 2:35pm UTC](https://discourse.cataclysmdda.org/t/npc-reads-computer-screen-for-pc/14208 "2017-09-14T14:35:30Z")

</div>

A repost, as I found this board a more suitable place: NPC reads book for PC, but doesn’t help PC using computer console. I want to make NPC read screen for PC. In game.cpp, the function use\_computer checks illiteracy,…

---

## [Modifying Stats For Skills](https://discourse.cataclysmdda.org/t/modifying-stats-for-skills/14219)

<div class="topic-metadata">

**Author:** [@InaneOctopus](https://discourse.cataclysmdda.org/u/InaneOctopus)\
**Replies:** 7\
**Last updated:** [September 12, 2017, 2:18am UTC](https://discourse.cataclysmdda.org/t/modifying-stats-for-skills/14219 "2017-09-12T02:18:59Z")

</div>

Hello! I’m having difficulty changing how StatsforSkills is working and I’d appreciate some guidance. I’m currently running the MacOS tileset. I’ve tried going into the file tree and opening the main.lua file in the Sta…

---

## [JSONizing mapgen\_basement\_junk gun safe items, any advice?](https://discourse.cataclysmdda.org/t/jsonizing-mapgen-basement-junk-gun-safe-items-any-advice/14218)

<div class="topic-metadata">

**Author:** [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Replies:** 0\
**Last updated:** [September 10, 2017, 7:04pm UTC](https://discourse.cataclysmdda.org/t/jsonizing-mapgen-basement-junk-gun-safe-items-any-advice/14218 "2017-09-10T19:04:35Z")

</div>

Modifying this bit of code in src/mapgen\_functions.cpp mapgen\_basement\_junk: if( one\_in( 1600 ) ) { m-\>furn\_set( p, furn\_str\_id( "f\_gun\_safe\_el" ) ); if( one\_in( 2 ) ) { m…

---

## [Help understanding projectile/ammo effects and monster AI](https://discourse.cataclysmdda.org/t/help-understanding-projectile-ammo-effects-and-monster-ai/14176)

<div class="topic-metadata">

**Author:** [@Alec\_White](https://discourse.cataclysmdda.org/u/Alec_White)\
**Replies:** 0\
**Last updated:** [August 26, 2017, 6:42am UTC](https://discourse.cataclysmdda.org/t/help-understanding-projectile-ammo-effects-and-monster-ai/14176 "2017-08-26T06:42:46Z")

</div>

Where and how are defined projectiles/ammo effects? I saw that it has 1 method and one struct. One in ballistics.h and other in map.h. Is there any place with all the effects and what they do? And if I wanted to impleme…

---

## [Compiling SDL for Windows (CodeBlocks) \[Need Help\]](https://discourse.cataclysmdda.org/t/compiling-sdl-for-windows-codeblocks-need-help/12711)

<div class="topic-metadata">

**Author:** [@The13thRonin](https://discourse.cataclysmdda.org/u/The13thRonin)\
**Replies:** 3\
**Last updated:** [August 23, 2017, 7:25am UTC](https://discourse.cataclysmdda.org/t/compiling-sdl-for-windows-codeblocks-need-help/12711 "2017-08-23T07:25:36Z")

</div>

I am receiving the following errors when trying to compile. ||=== Build: Release (SDL) in Cataclysm (compiler: GNU GCC Compiler) ===| obj\\ReleaseSDL\\src\\cata\_tiles.o:cata\_tiles.cpp|| undefined reference to SDL\_SetRende…

---

## [Getting world data](https://discourse.cataclysmdda.org/t/getting-world-data/14007)

<div class="topic-metadata">

**Author:** [@Ioncloud](https://discourse.cataclysmdda.org/u/Ioncloud)\
**Replies:** 9\
**Last updated:** [July 27, 2017, 5:47pm UTC](https://discourse.cataclysmdda.org/t/getting-world-data/14007 "2017-07-27T17:47:29Z")

</div>

This post will sorta explain wtf: http://smf.cataclysmdda.com/index.php?topic=14581.0 Given that, I’m working on getting world data out of DDA and things were going along rather well when I came to this: http://imgur.co…

---

## [Help with furniture tag "FLAMABLE\_ASH"](https://discourse.cataclysmdda.org/t/help-with-furniture-tag-flamable-ash/14026)

<div class="topic-metadata">

**Author:** [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Replies:** 1\
**Last updated:** [July 23, 2017, 1:52pm UTC](https://discourse.cataclysmdda.org/t/help-with-furniture-tag-flamable-ash/14026 "2017-07-23T13:52:07Z")

</div>

Planning on adding the fire\_container tag to trashcans so you can have fire in them, what does the flamable\_ash tag do? Not sure I want to remove it not knowing what it does.

---

## [Sound issues](https://discourse.cataclysmdda.org/t/sound-issues/13938)

<div class="topic-metadata">

**Author:** [@Stein](https://discourse.cataclysmdda.org/u/Stein)\
**Replies:** 0\
**Last updated:** [June 29, 2017, 5:06pm UTC](https://discourse.cataclysmdda.org/t/sound-issues/13938 "2017-06-29T17:06:57Z")

</div>

Hi I am having some trouble with my compiled version of Cataclysm 0.C tiles. I am on a MX-linux (based on Debian) 32bit OS and I compiled with "make CCACHE=1 DYNAMIC\_LINKING=1 NATIVE=linux32 RELEASE=1 TILES=1 SOUND=1 L…

---

## [How to move the player](https://discourse.cataclysmdda.org/t/how-to-move-the-player/13907)

<div class="topic-metadata">

**Author:** [@Ioncloud](https://discourse.cataclysmdda.org/u/Ioncloud)\
**Replies:** 3\
**Last updated:** [June 23, 2017, 6:59pm UTC](https://discourse.cataclysmdda.org/t/how-to-move-the-player/13907 "2017-06-23T18:59:41Z")

</div>

I am attempting to move the player outside of the keyboard but am having difficulty locating the correct place to call to do so. plmove seems to be what moves the player; however, the method is private which I’m sure me…

---

## [Help with my first profession mod/code](https://discourse.cataclysmdda.org/t/help-with-my-first-profession-mod-code/13896)

<div class="topic-metadata">

**Author:** [@Logistic\_Tangent](https://discourse.cataclysmdda.org/u/Logistic_Tangent)\
**Replies:** 8\
**Last updated:** [June 23, 2017, 2:34am UTC](https://discourse.cataclysmdda.org/t/help-with-my-first-profession-mod-code/13896 "2017-06-23T02:34:25Z")

</div>

Hi all. I just started working on a profession based on Randall Flagg from the Stephen King novel The Stand and I had a few questions. The plan for the profession was to have it feel like a sociopathic nihilist with a b…

---

## [Gathering Visual Studio 2015 Compiling Errors](https://discourse.cataclysmdda.org/t/gathering-visual-studio-2015-compiling-errors/13877)

<div class="topic-metadata">

**Author:** [@Alec\_White](https://discourse.cataclysmdda.org/u/Alec_White)\
**Replies:** 0\
**Last updated:** [June 18, 2017, 7:21pm UTC](https://discourse.cataclysmdda.org/t/gathering-visual-studio-2015-compiling-errors/13877 "2017-06-18T19:21:47Z")

</div>

I’m currently trying to improve the COMPILING.md guide for Visual Studio 2015 and all it’s errors. I would like to ask please for your help, for any compiling errors, and in case it was solved, the fix that was used. C…

---

## [Need some help on techniques and gloves](https://discourse.cataclysmdda.org/t/need-some-help-on-techniques-and-gloves/13823)

<div class="topic-metadata">

**Author:** [@Dragometh](https://discourse.cataclysmdda.org/u/Dragometh)\
**Replies:** 2\
**Last updated:** [June 3, 2017, 7:40am UTC](https://discourse.cataclysmdda.org/t/need-some-help-on-techniques-and-gloves/13823 "2017-06-03T07:40:28Z")

</div>

Hey everyone! So, right now I’m working on a mod. Nothing big, just weapons. And with that, some questions came to me while I worked on it: 1 - Is there a way to make a technique that consumes ammo? 2 - Is there a way…

---

## [Make a monster ract to being damaged?](https://discourse.cataclysmdda.org/t/make-a-monster-ract-to-being-damaged/13818)

<div class="topic-metadata">

**Author:** [@John\_Candlebury](https://discourse.cataclysmdda.org/u/John_Candlebury)\
**Replies:** 3\
**Last updated:** [June 2, 2017, 10:22pm UTC](https://discourse.cataclysmdda.org/t/make-a-monster-ract-to-being-damaged/13818 "2017-06-02T22:22:51Z")

</div>

I’m halfway through making a moster whose gimmick is teleporting randomly and frequently. I would want for this same ability to have a higher chance to trigger after the monster has taken damage. Problem is that Im no…

---

## [LUA: Iterating through object instances in main loop at runtime?](https://discourse.cataclysmdda.org/t/lua-iterating-through-object-instances-in-main-loop-at-runtime/13798)

<div class="topic-metadata">

**Author:** [@JT1](https://discourse.cataclysmdda.org/u/JT1)\
**Replies:** 6\
**Last updated:** [May 31, 2017, 2:30am UTC](https://discourse.cataclysmdda.org/t/lua-iterating-through-object-instances-in-main-loop-at-runtime/13798 "2017-05-31T02:30:48Z")

</div>

I’d like to introduce a “capacitor” vehicle part in my mod, which is essentially just a “leaky” battery even at 100% condition which won’t leak while being charged, but I can’t see any means of accessing items at runtime…

---

## [JSON errors in Ninja mod](https://discourse.cataclysmdda.org/t/json-errors-in-ninja-mod/13711)

<div class="topic-metadata">

**Author:** [@Chezzo](https://discourse.cataclysmdda.org/u/Chezzo)\
**Replies:** 2\
**Last updated:** [May 13, 2017, 4:45pm UTC](https://discourse.cataclysmdda.org/t/json-errors-in-ninja-mod/13711 "2017-05-13T16:45:09Z")

</div>

Hi, I had to remove the awesome overmap stuff the Ninja mod had, and I’d really like to see it in the mod. Here is the error I am getting: \[image\] I saw this issue, and I removed all the rotate stuff, but I’m still ge…

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

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