# Touhou-related Mod Questions

**URL:** <https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700>\
**Category:** The Toolbox\
**Created:** [October 10, 2016, 3:09am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700 "2016-10-10T03:09:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 10, 2016, 3:09am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/1 "2016-10-10T03:09:18Z")

</div>

I’ve been thinking about making custom professions based off of Touhou characters for a while now (which would save me all the trouble of having to debug myself the items whenever I start a new survivor named after a Touhou character). How easy would it be? Do I just go into an existing mod with custom professions, copy the json files, and edit them with notepad++? Do I always have to compile the game myself when making a mod (I’ve never compiled the game before, I’ve only used the CDDA launcher)?

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 10, 2016, 3:28am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/2 "2016-10-10T03:28:53Z")

</div>

[quote=“Taberone, post:1, topic:12700”]I’ve been thinking about making custom professions based off of Touhou characters for a while now (which would save me all the trouble of having to debug myself the items whenever I start a new survivor named after a Touhou character). How easy would it be? Do I just go into an existing mod with custom professions, copy the json files, and edit them with notepad++? Do I always have to compile the game myself when making a mod (I’ve never compiled the game before, I’ve only used the CDDA launcher)?

The custom professions won’t be exactly the same as Touhou, though. As close as you can get to a Touhou character in vanilla Cataclysm.[/quote]  
just copy a mod with professions and put the stuff you want in and change the name, easy and no compile nessesasy.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 10, 2016, 3:38am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/3 "2016-10-10T03:38:59Z")

</div>

Same thing for custom clothing/weapons/etc, where I just copy/paste/edit?

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 10, 2016, 3:51am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/4 "2016-10-10T03:51:12Z")

</div>

> [@Taberone](#):
>
> Same thing for custom clothing/weapons/etc, where I just copy/paste/edit?

Yes, most stuff is copy, paste, edit, profit.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [October 10, 2016, 5:14am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/5 "2016-10-10T05:14:28Z")

</div>

Nearly all items can be found in the json/item folder. Armor is split between tool armor and armor.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 15, 2016, 12:52am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/6 "2016-10-15T00:52:09Z")

</div>

Is there a limit to how many starting locations can be displayed? If I were to make it so that absolutely every single starting location was available, would the box for choosing starting locations be able to scroll down?

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 15, 2016, 12:53am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/7 "2016-10-15T00:53:45Z")

</div>

> [@Taberone](#):
>
> Is there a limit to how many starting locations can be displayed? If I were to make it so that absolutely every single starting location was available, would the box for choosing starting locations be able to scroll down?

I don’t think that has been tried before and without code knowledge the only answer is to try.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 15, 2016, 5:34am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/8 "2016-10-15T05:34:37Z")

</div>

> [@Noctifer](#):
>
> [quote=“Taberone, post:6, topic:12700”]Is there a limit to how many starting locations can be displayed? If I were to make it so that absolutely every single starting location was available, would the box for choosing starting locations be able to scroll down?

I don’t think that has been tried before and without code knowledge the only answer is to try.[/quote]

![](http://i.imgur.com/XHhQDBG.png) ![](http://i.imgur.com/Y196o5D.png)

Looks like it’s working so far. Only error so far is when I try to put in the island temple from the Arcana mod.

![](https://hisouten.koumakan.jp/images//d/d2/Swr-portrait-youmu.png) ![](http://i.imgur.com/2dQUpoE.png)

I currently have Yomou Konpaku mostly finished, with two new clothing items modded in. The dress being dark green and white is based off of the Touhou wiki’s description of Yomou. Yomou also has a profession trait that gives her Niten Ichi Ryu for added ass-kicking. Not exactly aiming for professions balanced for the core game here.

At the moment, playing as a male character only changes the underwear to boxer shorts and still leaves in everything else. Might be able to find equivalent clothing for players who want to be a genderswapped Yomou later on. Seems like adding in Touhou characters as professions isn’t too bad and difficult, but there’s other stuff I haven’t considered doing yet, like adding in custom weapons and possibly making them work with the game’s default martial arts styles, or getting any clothing from this mod to spawn naturally.

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 16, 2016, 8:36am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/9 "2016-10-16T08:36:58Z")

</div>

Using the time stopping cbms for a Sakuya profession would be sweet.

P.S: Youmu is my favorite 2hu.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 20, 2016, 5:34am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/10 "2016-10-20T05:34:51Z")

</div>

Is it acceptable for mods to require other mods? Theres a Seiga Kaku profession I finished recently that starts with one of the Arcana mod items, and some of the starting locations are from other mods too. Also, trying to do a Tenshi profession with a unique profession trait that gives a bonus to hit points. Are hit point bonuses from traits hardcoded?

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 20, 2016, 5:51am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/11 "2016-10-20T05:51:18Z")

</div>

> [@Taberone](#):
>
> Is it acceptable for mods to require other mods? Theres a Seiga Kaku profession I finished recently that starts with one of the Arcana mod items, and some of the starting locations are from other mods too. Also, trying to do a Tenshi profession with a unique profession trait that gives a bonus to hit points. Are hit point bonuses from traits hardcoded?

It’s OK for mods to have dependencies, just look at the tank mod for how to so this.

If by hit points you mean health points then just make the profession have a mutation that raises the hp.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 20, 2016, 1:31pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/12 "2016-10-20T13:31:46Z")

</div>

> [@Noctifer](#):
>
> [quote=“Taberone, post:10, topic:12700”]Is it acceptable for mods to require other mods? Theres a Seiga Kaku profession I finished recently that starts with one of the Arcana mod items, and some of the starting locations are from other mods too. Also, trying to do a Tenshi profession with a unique profession trait that gives a bonus to hit points. Are hit point bonuses from traits hardcoded?

It’s OK for mods to have dependencies, just look at the tank mod for how to so this.

If by hit points you mean health points then just make the profession have a mutation that raises the hp.[/quote]

The code for the bonus hp mutations doesn’t seem to have any numbers I can modify for the extra hp, though. Like Unbreakable, from mutations.json. Although I could just make Tenshi start with the Unbreakable mutation and give her an improved version of Thick Skin.

`{
        "type" : "mutation",
        "id" : "TOUGH3",
        "name" : "Unbreakable",
        "points" : 4,
        "description" : "Nothing can break you! You get a 40% bonus to all hit points.",
        "valid" : false,
        "cancels" : ["FLIMSY", "FLIMSY2", "FLIMSY3", "GLASSJAW"],
        "prereqs" : ["TOUGH2"]
    },`

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 20, 2016, 3:17pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/13 "2016-10-20T15:17:17Z")

</div>

You can’t modify the hp that it gives so you have to just give the profession the mutation.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [October 20, 2016, 5:55pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/14 "2016-10-20T17:55:48Z")

</div>

> [@Taberone](#):
>
> Yomou Konpaku(male)

---

<div class="post-metadata">

**Author:** ![Noctifer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/noctifer/32/458_2.png) [@Noctifer](https://discourse.cataclysmdda.org/u/Noctifer)\
**Post date:** [October 20, 2016, 6:16pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/15 "2016-10-20T18:16:44Z")

</div>

> [@Coolthulhu](#):
>
> [quote=“Taberone, post:8, topic:12700”]Yomou Konpaku(male)[/quote]

![](https://static.cosplay-it.com/78aa0da4-44fc-4aaf-90ac-c41cdf28270a.jpg)

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [October 26, 2016, 1:25pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/16 "2016-10-26T13:25:18Z")

</div>

Is there a way to modify or override the default martial arts styles so that they include custom weapons?

---

<div class="post-metadata">

**Author:** ![Chezzo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chezzo/32/429_2.png) [@Chezzo](https://discourse.cataclysmdda.org/u/Chezzo)\
**Post date:** [October 26, 2016, 2:51pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/17 "2016-10-26T14:51:00Z")

</div>

Yeah, add it to the “weapons” section of the json seen [here](https://github.com/CleverRaven/Cataclysm-DDA/blob/b388999580ce847e4dc1f6aa756d10cf87933a4b/data/json/martialarts.json#L223) for Krav Maga.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [November 7, 2016, 3:37am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/18 "2016-11-07T03:37:05Z")

</div>

![](http://i.imgur.com/q3Aq9Zi.png)

What exactly is causing this? It can’t be that I have two folders under data/mods named Touhou or anything since I only have one. I do have a .txt file in the Touhou folder that keeps track of the mod’s features and things to do next, though. Is that causing it?

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [November 8, 2016, 6:50pm UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/19 "2016-11-08T18:50:56Z")

</div>

You could have a duplicate file defining the mod.  
For example, you may have a backup of the file somewhere.

Try to find all files in the whole directory “data” that have “Touhou” anywhere in their content.

---

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [November 26, 2016, 6:36am UTC](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700/20 "2016-11-26T06:36:49Z")

</div>

Added in a new UPS-powered, laser shooting rifle with an integrated bayonet (One already exists in the vanilla game so I’m using that) as a built in modification. Tested it out and discovered that attempting to melee stuff with the integrated bayonet, even with 10 in all skills and 20 in all stats, results in “You swing wildly and miss” or “Your torso encumbrance throws you off balance” messages (21 Encumbrance). What exactly is causing the bayonet to be so inaccurate?

For reference, this is the vanilla “Integrated Bayonet” mod that the new rifle has, which can be seen [here](https://github.com/CleverRaven/Cataclysm-DDA/blob/b59c6079c79f33995c1b89f0e3847d31b448111c/data/json/items/gunmod/underbarrel.json):

` {
    "id": "inter_bayonet",
    "type": "GUNMOD",
    "name": "integrated bayonet",
    "description": "This is the bayonet integrated in the firearm.",
    "weight": 1,
    "volume": 1,
    "price": 4000,
    "to_hit": -1,
    "cutting": 10,
    "material": ["steel"],
    "symbol": ":",
    "color": "light_gray",
    "location": "underbarrel",
    "mod_targets": ["shotgun", "rifle"],
    "dispersion_modifier": 10,
    "mode_modifier": [[ "REACH", "bayonet", 2, [ "MELEE"] ] ],
    "flags": ["SLOW_WIELD", "IRREMOVABLE", "STAB"]
  },`

[Next page](https://discourse.cataclysmdda.org/t/touhou-related-mod-questions/12700.md?page=2)
