# Coding Help

**URL:** <https://discourse.cataclysmdda.org/t/coding-help/1657>\
**Category:** The Toolbox\
**Created:** [June 8, 2013, 7:28pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657 "2013-06-08T19:28:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaintBucket](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@PaintBucket](https://discourse.cataclysmdda.org/u/PaintBucket)\
**Post date:** [June 8, 2013, 7:28pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/1 "2013-06-08T19:28:46Z")

</div>

I’m attempting to change the recipe of the revolver shotgun to actually include a revolver, so the revolver mechanism doesn’t just appear out of nowhere when you craft it. It isn’t working, can anyone tell me what’s wrong in the code?

[code] {  
“result”: “revolver\_shotgun”,  
“category”: “CC\_WEAPON”,  
“skill\_pri”: “gun”,  
“skill\_sec”: “mechanics”,  
“difficulty”: 2,  
“time”: 6000,  
“reversible”: false,  
“autolearn”: true,  
“tools”: [  
[  
[“hacksaw”, -1],  
[“toolset”, -1]  
],  
[  
[“goggles\_welding”, -1]  
],  
[  
[“welder”, 30],  
[“toolset”, 3]  
]  
],  
“components”: [  
[  
[“shotgun\_s”, 1]  
],  
[  
[“sig\_40”, 1],  
[“taurus\_38”, 1],  
[“sw\_619”, 1]  
]

```
                      ]
    },[/code]
```

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [June 8, 2013, 7:34pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/2 "2013-06-08T19:34:01Z")

</div>

What exactly is the problem you are experiencing? I don’t see any obvious problems with it at the moment.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [June 8, 2013, 7:41pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/3 "2013-06-08T19:41:48Z")

</div>

The scrap in the recipe is/was meant to be what you cobbled the revolving cylinder out of.

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [June 8, 2013, 7:44pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/4 "2013-06-08T19:44:53Z")

</div>

> [@The Darkling Wolf](#):
>
> The scrap in the recipe is/was meant to be what you cobbled the revolving cylinder out of.

Except at the moment there isn’t any scrap in the recipe, so that should probably be added back in if that’s the intended direction. 😛

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [June 8, 2013, 8:11pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/5 "2013-06-08T20:11:29Z")

</div>

Yeah, I’ve no idea when that was removed.

---

<div class="post-metadata">

**Author:** ![PaintBucket](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@PaintBucket](https://discourse.cataclysmdda.org/u/PaintBucket)\
**Post date:** [June 9, 2013, 11:10pm UTC](https://discourse.cataclysmdda.org/t/coding-help/1657/6 "2013-06-09T23:10:55Z")

</div>

Nevermind, I fixed it. It was actually a problem with another mod that didn’t work correctly.
