# The Toolbox

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

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

**Page:** 12

---

## [Game logic : timing / turns etc](https://discourse.cataclysmdda.org/t/game-logic-timing-turns-etc/16928)

<div class="topic-metadata">

**Author:** [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)\
**Replies:** 3\
**Last updated:** [October 8, 2018, 5:29pm UTC](https://discourse.cataclysmdda.org/t/game-logic-timing-turns-etc/16928 "2018-10-08T17:29:13Z")

</div>

I’ve made a few little games in Python and Godot, and I’m now considering a 2d top-down turn-based RPG. This is a step up in complexity for me, and I’m trying to visualise the game flow. C++ is scary and I can’t really…

---

## [Altering core bionics in a mod file](https://discourse.cataclysmdda.org/t/altering-core-bionics-in-a-mod-file/16814)

<div class="topic-metadata">

**Author:** [@Genn\_Faol](https://discourse.cataclysmdda.org/u/Genn_Faol)\
**Replies:** 1\
**Last updated:** [October 4, 2018, 2:15am UTC](https://discourse.cataclysmdda.org/t/altering-core-bionics-in-a-mod-file/16814 "2018-10-04T02:15:04Z")

</div>

Somewhat related to my previous topic, to which I found the solution myself, I am wondering how to modify the power cost of existing bionics in a mod file, rather than altering the core bionics.json file. This time, neit…

---

## [So I need few things JSONized](https://discourse.cataclysmdda.org/t/so-i-need-few-things-jsonized/16810)

<div class="topic-metadata">

**Author:** [@Uvi](https://discourse.cataclysmdda.org/u/Uvi)\
**Replies:** 8\
**Last updated:** [September 30, 2018, 3:29am UTC](https://discourse.cataclysmdda.org/t/so-i-need-few-things-jsonized/16810 "2018-09-30T03:29:16Z")

</div>

I’ll try to explain my situation first. I’m working on a mod which will add 4 new mutation trees: Crab, Rabbit, Snake and Chameleon. Actually, it is almost ready. Dreams, mutagens, recipes in different lab journals, ite…

---

## [\[SOLVED\] Overwriting vanilla entries via JSON Mods](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813)

<div class="topic-metadata">

**Author:** [@Genn\_Faol](https://discourse.cataclysmdda.org/u/Genn_Faol)\
**Replies:** 2\
**Last updated:** [September 29, 2018, 5:24pm UTC](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813 "2018-09-29T17:24:58Z")

</div>

Hey there. This is just a question from someone who has been absent from modding CDDA for a long time. I recently got back into it, I forgot a bunch of stuff, can’t find many of my old resources, and a quick search revea…

---

## [How to adjust amount of fluid spawns](https://discourse.cataclysmdda.org/t/how-to-adjust-amount-of-fluid-spawns/16604)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 10:08am UTC](https://discourse.cataclysmdda.org/t/how-to-adjust-amount-of-fluid-spawns/16604 "2018-09-25T10:08:19Z")

</div>

So, wanted to churn out a quick mod. Want to spawn some gasoline. Putting gasoline into an itemgroup is fine, but when the gas spawns it’s in a jerrycan with 10000 portions. This doesn’t really jive with the mod, beca…

---

## [The State of LUA in DDA](https://discourse.cataclysmdda.org/t/the-state-of-lua-in-dda/15291)

<div class="topic-metadata">

**Author:** [@GrumpyProgrammer](https://discourse.cataclysmdda.org/u/GrumpyProgrammer)\
**Replies:** 30\
**Last updated:** [September 22, 2018, 2:56pm UTC](https://discourse.cataclysmdda.org/t/the-state-of-lua-in-dda/15291 "2018-09-22T14:56:57Z")

</div>

I was led to believe the LUA in DDA was going the way of the dodo (https://github.com/CleverRaven/Cataclysm-DDA/issues/20819), but there also seems to be some currently active work on expanding the LUA infrastructure (ht…

---

## [Modding mutation questions](https://discourse.cataclysmdda.org/t/modding-mutation-questions/16656)

<div class="topic-metadata">

**Author:** [@Wondabarappa](https://discourse.cataclysmdda.org/u/Wondabarappa)\
**Replies:** 1\
**Last updated:** [September 18, 2018, 4:40pm UTC](https://discourse.cataclysmdda.org/t/modding-mutation-questions/16656 "2018-09-18T16:40:05Z")

</div>

I’m just starting out and have little grasp on how coding works. How does the code for mutations work? I see that some have visible stat changes but others that have clear effects in game have no details at all. for inst…

---

## [How to override item groups](https://discourse.cataclysmdda.org/t/how-to-override-item-groups/16630)

<div class="topic-metadata">

**Author:** [@Hirmuolio](https://discourse.cataclysmdda.org/u/Hirmuolio)\
**Replies:** 2\
**Last updated:** [September 17, 2018, 4:25pm UTC](https://discourse.cataclysmdda.org/t/how-to-override-item-groups/16630 "2018-09-17T16:25:16Z")

</div>

How to override item groups? The "override": true, that works for monster groups does nothing for item groups. "edit-mode": "override", does nothing too. New items are easily added but I want to also change the drop cha…

---

## [I want a jug of water, but the game wants a bra and panties?](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618)

<div class="topic-metadata">

**Author:** [@RoninLawst](https://discourse.cataclysmdda.org/u/RoninLawst)\
**Replies:** 6\
**Last updated:** [September 16, 2018, 9:43am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618 "2018-09-16T09:43:18Z")

</div>

Hey guys! I tried adding some things to the survivor profession to make it a self insert class, in which I’m dropped in with several things I own, and it worked up until I tried replacing the standard water bottle with a…

---

## [How to edit monster groups?](https://discourse.cataclysmdda.org/t/how-to-edit-monster-groups/16546)

<div class="topic-metadata">

**Author:** [@Hirmuolio](https://discourse.cataclysmdda.org/u/Hirmuolio)\
**Replies:** 6\
**Last updated:** [September 12, 2018, 11:42am UTC](https://discourse.cataclysmdda.org/t/how-to-edit-monster-groups/16546 "2018-09-12T11:42:48Z")

</div>

I’m trying to make a mod that edits the monster groups but I can’t get it working. Lets for example reduce child zombies in schools and add cocroaches instead. So I add a json file in the mod with the following content…

---

## [The way monster groups are structured differently from item groups](https://discourse.cataclysmdda.org/t/the-way-monster-groups-are-structured-differently-from-item-groups/16533)

<div class="topic-metadata">

**Author:** [@Hirmuolio](https://discourse.cataclysmdda.org/u/Hirmuolio)\
**Replies:** 2\
**Last updated:** [September 10, 2018, 6:35pm UTC](https://discourse.cataclysmdda.org/t/the-way-monster-groups-are-structured-differently-from-item-groups/16533 "2018-09-10T18:35:42Z")

</div>

Why are mosnter groups so different from item groups and would monster groups work better if they were more like item grouops. The item groups are often nested. For example ammo\_pistol\_common, ammo\_smg\_common, ammo\_rif…

---

## [Assigning bleed to multiple body parts](https://discourse.cataclysmdda.org/t/assigning-bleed-to-multiple-body-parts/16494)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 1\
**Last updated:** [September 7, 2018, 11:18pm UTC](https://discourse.cataclysmdda.org/t/assigning-bleed-to-multiple-body-parts/16494 "2018-09-07T23:18:57Z")

</div>

So I’m tinkering with a mod. Created a new monster\_attack. It causes bleed. This is what it looks like: "effects": \[ { "id": "bleed", "duration": 15, "bp": "TORSO"} \], Anyway, the problem with this is that I can …

---

## [Morale mod feasible via json only?](https://discourse.cataclysmdda.org/t/morale-mod-feasible-via-json-only/16436)

<div class="topic-metadata">

**Author:** [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)\
**Replies:** 3\
**Last updated:** [August 31, 2018, 5:52pm UTC](https://discourse.cataclysmdda.org/t/morale-mod-feasible-via-json-only/16436 "2018-08-31T17:52:51Z")

</div>

I want to make a mod that makes morale far more important, essentially making joy activities an essential part of every day, or making friends with NPCs/pets. The idea being that if the mental wellbeing of your survivor…

---

## [Attaching Basements](https://discourse.cataclysmdda.org/t/attaching-basements/16364)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 2\
**Last updated:** [August 25, 2018, 10:58am UTC](https://discourse.cataclysmdda.org/t/attaching-basements/16364 "2018-08-25T10:58:47Z")

</div>

I created a blackmarket pawnshop as part of my mod. I’ve also created a secret basement I want to be attached to that pawnshop 100% of the time. How do I do this? From what I can see of houses it’s stored in a .cpp so…

---

## [Guide to modding the Cataclysm! (WIP)](https://discourse.cataclysmdda.org/t/guide-to-modding-the-cataclysm-wip/15707)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 24\
**Last updated:** [August 19, 2018, 1:59pm UTC](https://discourse.cataclysmdda.org/t/guide-to-modding-the-cataclysm-wip/15707 "2018-08-19T13:59:18Z")

</div>

–This thread is meant to give a (hopefully) good reference to those who wish the mod C:DDA. I’m still learn a lot myself, so don’t expect it to be perfect, but I’ve learned quite a lot of things so far. There is a lot to…

---

## [Help with Mod needed - HalfHunger](https://discourse.cataclysmdda.org/t/help-with-mod-needed-halfhunger/16281)

<div class="topic-metadata">

**Author:** [@Androwski](https://discourse.cataclysmdda.org/u/Androwski)\
**Replies:** 17\
**Last updated:** [August 19, 2018, 1:19pm UTC](https://discourse.cataclysmdda.org/t/help-with-mod-needed-halfhunger/16281 "2018-08-19T13:19:05Z")

</div>

Hi, can you help me please with my first mod. I started on Github with that but I think this is maybe a better place. This is what I have: The error message is gone now. But how do i get this mod activated in my …

---

## [New Butchery System Question](https://discourse.cataclysmdda.org/t/new-butchery-system-question/16273)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 0\
**Last updated:** [August 17, 2018, 11:45pm UTC](https://discourse.cataclysmdda.org/t/new-butchery-system-question/16273 "2018-08-17T23:45:15Z")

</div>

I have been working on a mod. There’s a creature that, when butchered, is supposed to give an item. With the new butchery system, this item only gets harvested when you use the ‘Full Butchery’ option. I don’t want tha…

---

## [Debug mapgen variants](https://discourse.cataclysmdda.org/t/debug-mapgen-variants/16254)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 1\
**Last updated:** [August 16, 2018, 11:07pm UTC](https://discourse.cataclysmdda.org/t/debug-mapgen-variants/16254 "2018-08-16T23:07:52Z")

</div>

I’ve been using the debug menu - map editor - mapgen - pawn to spawn pawnshops. I’m trying to mod my own version of a pawn shop. Anyway, when you spawn a building like that it executes the way it would on normal mapge…

---

## [mods\["StatsThroughSkills"\] = MOD does what exactly? \[LUA\] \[OSX bug?\]](https://discourse.cataclysmdda.org/t/mods-statsthroughskills-mod-does-what-exactly-lua-osx-bug/16210)

<div class="topic-metadata">

**Author:** [@RogerWilco](https://discourse.cataclysmdda.org/u/RogerWilco)\
**Replies:** 4\
**Last updated:** [August 14, 2018, 12:07pm UTC](https://discourse.cataclysmdda.org/t/mods-statsthroughskills-mod-does-what-exactly-lua-osx-bug/16210 "2018-08-14T12:07:26Z")

</div>

I installed the game last week through homebrew on my Mac. I had one error while starting: Removing the offending line in main.lua makes the error go away. ( mods\[“StatsThroughSkills”\] = MOD ) I think it means that …

---

## [CDDA Development Visualization & Contributing](https://discourse.cataclysmdda.org/t/cdda-development-visualization-contributing/16050)

<div class="topic-metadata">

**Author:** [@Mussorgsky](https://discourse.cataclysmdda.org/u/Mussorgsky)\
**Replies:** 7\
**Last updated:** [August 2, 2018, 8:21am UTC](https://discourse.cataclysmdda.org/t/cdda-development-visualization-contributing/16050 "2018-08-02T08:21:02Z")

</div>

Hi all, I’m relatively new to Cataclysm and this forum but a long time programmer and rogue-like fanatic. I’ve been diving into the code nearly as much as I’ve been playing and having an absolute blast with both. I cam…

---

## [Questions about Creating maps](https://discourse.cataclysmdda.org/t/questions-about-creating-maps/16051)

<div class="topic-metadata">

**Author:** [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 2:26am UTC](https://discourse.cataclysmdda.org/t/questions-about-creating-maps/16051 "2018-08-01T02:26:33Z")

</div>

So, I’ve been working on learning how to add various things to the game through json. Right now I’m trying to understand creating a new building/map. I got compiled, but when I run the .jar it asks for my directory…

---

## [How do I mod the game?](https://discourse.cataclysmdda.org/t/how-do-i-mod-the-game/15672)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 120\
**Last updated:** [July 29, 2018, 2:26am UTC](https://discourse.cataclysmdda.org/t/how-do-i-mod-the-game/15672 "2018-07-29T02:26:04Z")

</div>

–Hmm. Well apparently I was told not to use one thread for several small questions. I guess I won’t do that then. Seemed like a good idea to me, but I’m just some random dude on the internet, and Kevin said not to. (Plus…

---

## [How to properly run json-format through cygwin?](https://discourse.cataclysmdda.org/t/how-to-properly-run-json-format-through-cygwin/15995)

<div class="topic-metadata">

**Author:** [@John\_Candlebury](https://discourse.cataclysmdda.org/u/John_Candlebury)\
**Replies:** 5\
**Last updated:** [July 27, 2018, 1:16pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-run-json-format-through-cygwin/15995 "2018-07-27T13:16:35Z")

</div>

I got the program compiled and everything. Its not an install problem. It seems however that the formatter changes every file from using “LF” to “CR LF” line endings. As a result the formatter is mostly useless as it c…

---

## [Starting with mods](https://discourse.cataclysmdda.org/t/starting-with-mods/15988)

<div class="topic-metadata">

**Author:** [@Jownky](https://discourse.cataclysmdda.org/u/Jownky)\
**Replies:** 17\
**Last updated:** [July 26, 2018, 6:25pm UTC](https://discourse.cataclysmdda.org/t/starting-with-mods/15988 "2018-07-26T18:25:55Z")

</div>

Hello, I’m fairly new and I would like to know how to make a mod or just simply implement a new gun into the game. I’ve already downloaded Git and Notepad++ just in case I need them. I would like to know which steps I …

---

## [Recipe with resulting item in container?](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935)

<div class="topic-metadata">

**Author:** [@Nick](https://discourse.cataclysmdda.org/u/Nick)\
**Replies:** 3\
**Last updated:** [July 19, 2018, 3:44am UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935 "2018-07-19T03:44:46Z")

</div>

is it possible to craft item inside a container? i was trying to make something like this: { “type” : “recipe”, “result”: { “item”: “meat”, “container-item”: “wrapper” }, “category”: “CC\_FOOD”, “subcategory”: “CSC\_F…

---

## [Is it possible to add more needs?](https://discourse.cataclysmdda.org/t/is-it-possible-to-add-more-needs/15902)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 11\
**Last updated:** [July 16, 2018, 7:11pm UTC](https://discourse.cataclysmdda.org/t/is-it-possible-to-add-more-needs/15902 "2018-07-16T19:11:19Z")

</div>

–I was thinking up some ideas for ROA and suddenly thought of the idea of certain characters needing to drink blood. This would only matter for certain traits or mutations a character has. It also isn’t meant to replace …

---

## [How do you add a tileset to mod items?](https://discourse.cataclysmdda.org/t/how-do-you-add-a-tileset-to-mod-items/15875)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 6:24am UTC](https://discourse.cataclysmdda.org/t/how-do-you-add-a-tileset-to-mod-items/15875 "2018-07-13T06:24:08Z")

</div>

I assume it would be possible to do this somehow. What I want is two things: That some stuff will be able to be linked to existing textures from existing tilesets (I can have the tickle monster look like a zombie from…

---

## [Mention about ID choices](https://discourse.cataclysmdda.org/t/mention-about-id-choices/15831)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 13\
**Last updated:** [July 8, 2018, 4:37am UTC](https://discourse.cataclysmdda.org/t/mention-about-id-choices/15831 "2018-07-08T04:37:47Z")

</div>

–I’m using the wrong computer, and as such don’t have the game’s files to directly reference, but I definitely remember some (seemingly) pretty weird ID choices for various things in the game. –For example: I don’t reme…

---

## [How do I add custom colors in the json?](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 6\
**Last updated:** [June 22, 2018, 4:26pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744 "2018-06-22T16:26:07Z")

</div>

–Just like it says on the tin. I want to make my plutonium gear orange, but it seems as if there is no option for that. Thus, I want to make my own custom colors to use. I’ve looked at colors.json and and attempted to re…

---

## [Github Questions!](https://discourse.cataclysmdda.org/t/github-questions/15722)

<div class="topic-metadata">

**Author:** [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Replies:** 7\
**Last updated:** [June 19, 2018, 4:38am UTC](https://discourse.cataclysmdda.org/t/github-questions/15722 "2018-06-19T04:38:13Z")

</div>

I’m new to Github and don’t know a lot of how it works. For example, I can’t seem to get rid of old junk in my master branch thingy.

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

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