# Guys, i need some help

**URL:** <https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459>\
**Category:** The Lab\
**Created:** [March 30, 2019, 4:20am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459 "2019-03-30T04:20:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 4:20am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/1 "2019-03-30T04:20:54Z")

</div>

I’m trying to learn to create new things in the game, i’m trying to create a martial art and i getting this error:

01:16:27.842 ERROR : src/main\_menu.cpp:696 [bool main\_menu::new\_character\_tab()] Error: data/mods//DragonSlayer/martialarts.json: line 1:557: missing separator

```
            "description": "Strength and Damage increases with anger", "min_melee": 2, "flat_bonuses": [["damage" , "cut", "per", 1.0], ["damage", "bash", "str", 1.0]
                                                                                                                                                                                                                                            ^

```

I’m really confused to where the separator is missing, i tried to make it the same spacing and everything as the martialarts.json, can someone shed some light here.

---

<div class="post-metadata">

**Author:** ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Post date:** [March 30, 2019, 5:18am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/2 "2019-03-30T05:18:29Z")

</div>

Using what you gave, here’s what mine looks like, which works. It looks like you were missing a ‘]’ at the end of “flat bonuses”, so it was looking for a ‘,’ instead.

```auto
[
  {
    "type": "martial_art",
    "id": "blah_blah",
    "name": "blah blah",
    "description": "Strength and Damage increases with anger",
    "min_melee": 2,
    "flat_bonuses": [[ "damage", "cut", "per", 1.0], ["damage", "bash", "str", 1.0] ]
  }
]
```

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 5:53am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/3 "2019-03-30T05:53:19Z")

</div>

thanks you beatiful person

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 6:10am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/4 "2019-03-30T06:10:39Z")

</div>

i got another problem if i can have your help one more time

03:08:31.172 ERROR : src/main\_menu.cpp:696 [bool main\_menu::new\_character\_tab()] Error: data/mods//DragonSlayer/martialarts.json: line 1:721: expected pair separator ‘:’, not ‘"’

mage" , “cut”, “per”, 1.0], [“damage”, “bash”, “str”, 1.0], [“dodge”, “str”, “0.5”] ] ], “onmove\_buffs”: [ { “berserk\_onmove\_buff”, "  
^  
name" : “Berserk Block” “description”: “Your anger makes your moves faster making blocking easier.”, “min\_melee”: 2, “max\_stacks”: 5, “buff\_duration”: 4, "flat\_bonus

---

<div class="post-metadata">

**Author:** ![BushElito](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bushelito/32/4767_2.png) [@BushElito](https://discourse.cataclysmdda.org/u/BushElito)\
**Post date:** [March 30, 2019, 8:18am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/5 "2019-03-30T08:18:22Z")

</div>

Shouldn’t [“dodge”, “str”, “0.5”] be [“dodge”, “str”, 0.5]?

You know, I recommend putting your JSON into some kind of validator.

I use Visual Studio Code as it has a built-in JSON syntax highlight, but online tools can also work.

---

<div class="post-metadata">

**Author:** ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Post date:** [March 30, 2019, 9:46am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/6 "2019-03-30T09:46:59Z")

</div>

In the future, when asking for help, do try to format things a little nicer. It hurts my brain to look at what you’re posting. o\_o Putting the entire file up on github or putting the lines (if its short) between

```auto
[code] and [/code]
```

will make it show up as a code block in the comment, like I did earlier and am about to do again. It’s a lot easier to read that way.

Anyway, when you put “berserk\_onmove\_buff” and then a comma with a " it doesn’t like that. It’s expecting a colon to separate two things.

What I think you meant is . . .

```auto
“onmove_buffs”: [ 
  { 
    "id": “berserk_onmove_buff”,
    "name": “Berserk Block”,
    “description”: “Your anger makes your moves faster making blocking easier.”,
    “min_melee”: 2,
    “max_stacks”: 5,
    “buff_duration”: 4,
```

You were also missing a comma at the end of “Berserk Block”.

Also, yes, numbers shouldn’t be in quotes.

In the future, though, really, really, show the whole entry x\_x

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 30, 2019, 10:05am UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/7 "2019-03-30T10:05:53Z")

</div>

Provide us the full code block from your martialarts.json file generating the error, we could help you deal with it 😉

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 8:50pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/8 "2019-03-30T20:50:46Z")

</div>

sorry for the misformat, very new here in the forum, i’ll be mindiful in the future.

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 8:53pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/9 "2019-03-30T20:53:40Z")

</div>

[https://pastebin.com/RfqhmtbL](https://pastebin.com/RfqhmtbL)

Here is the full code if you guys can give me pointers, i would be grateful.

---

<div class="post-metadata">

**Author:** ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Post date:** [March 30, 2019, 9:17pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/11 "2019-03-30T21:17:08Z")

</div>

It doesn’t, because “ondodge\_buffs” is duplicated.

I’d recommend that while you’re learning to fiddle with the files, you should copy and paste entries from the core game files and then edit them.

Jumping right in to your own martial art, something I’ve still never done, seems pretty complex. Particularly if you’re creating it from scratch instead of copying.

---

<div class="post-metadata">

**Author:** ![MamaLlama](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mamallama/32/7246_2.png) [@MamaLlama](https://discourse.cataclysmdda.org/u/MamaLlama)\
**Post date:** [March 30, 2019, 9:17pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/12 "2019-03-30T21:17:57Z")

</div>

If you’re not already using it Notepad++ has display support for JSON files with highlighting and folding. That would help you pick out these missing commas and brackets a lot easier on your own.

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 30, 2019, 9:51pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/13 "2019-03-30T21:51:12Z")

</div>

```
[
	{
		"type": "martial_art",
		"id": "berserker",
		"name": "Black Swordsman Style",
		"description": "Sword techniques used with two-handed swords.",
		"arm_block": 99,
		"leg_block": 99,
		"static_buffs": [
			{
				"id": "beserk_stationary_buff",
				"name": "BERSERKER!!!",
				"description": "Strength and Damage increases with anger",
				"min_melee": 2,
				"flat_bonuses": [
					
						[
							"damage",
							"cut",
							"per",
							1.0
						],
						[
							"damage",
							"bash",
							"str",
							1.0
						],
						[
							"dodge",
							"str",
							0.5
						]
					
				],
				"onmove_buffs": [
					{
						"name": "Berserk Block",
						"description": "Your anger makes your moves faster making blocking easier.",
						"min_melee": 2,
						"max_stacks": 5,
						"buff_duration": 4,
						"flat_bonuses": [
							[
								"dodge",
								-10.0
							]
						],
						"bonus_dodges": -1,
						"bonus_blocks": 2
					}
				],
				"ondodge_buffs": [
					{
						"name": "Berserk Dodge",
						"description": "Your anger makes your moves faster making dodging easier.",
						"min_melee": 2,
						"max_stacks": 5,
						"buff_duration": 4,
						"flat_bonuses": [
							[
								"dodge",
								-10.0
							]
						],
						"bonus_dodges": -1,
						"bonus_blocks": 2
					}
				],
				"onhit_buffs": [
					{
						"name": "Berserk Block 2",
						"description": "You go to the offensive not dodging a lot",
						"min_melee": 2,
						"max_stacks": 5,
						"buff_duration": 5,
						"flat_bonuses": [
							[
								"dodge",
								-5.0
							]
						],
						"bonus_dodges": -1.0,
						"bonus_blocks": 3
					}
				],
				" techniques ": [
					" black_slash ",
					" beserk_cut ",
					" beserk_chance ",
					" beserk_fury "
				],
				" weapons ": [
					" broadsword ",
					" dragon_slayer ",
					" zweihander_fake ",
					" zweihander_inferior ",
					" nodachi "
				]
			}
		]
	}
]

```

Well, with some modifications, it works now 😉

![image](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/c/cd0f53c93e8377da84f17d8505992b1eb4de509e.jpeg)

If you’re on PC, use the tool said by @MamaLlama. Or use QuickEdit on your smartphone to ease your work…

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 9:53pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/14 "2019-03-30T21:53:32Z")

</div>

axema thanks very much, can you give me some pointers to what i did wrong or what program i may use, i using the regular notepad and seeing the code through pastebin

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 9:54pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/15 "2019-03-30T21:54:08Z")

</div>

you’re predicted my questions O:  
thanks once again

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 30, 2019, 9:54pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/16 "2019-03-30T21:54:35Z")

</div>

Regular notepad is garbage… If you’re up for modding, use NotePad++ 😉

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 9:57pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/17 "2019-03-30T21:57:52Z")

</div>

learning something new everyday  
I’ll try to become good at coding and make an awesome mod for the community.

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 9:59pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/18 "2019-03-30T21:59:29Z")

</div>

the next thing i going to see if i can make is a recipe and a gun, the shooty shooty type.

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 30, 2019, 10:01pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/19 "2019-03-30T22:01:12Z")

</div>

Well, good luck about that 🙂

---

<div class="post-metadata">

**Author:** ![estevao6](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/estevao6/32/4974_2.png) [@estevao6](https://discourse.cataclysmdda.org/u/estevao6)\
**Post date:** [March 30, 2019, 11:23pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/20 "2019-03-30T23:23:17Z")

</div>

sorry to bother again, trying to do the technique json and again something happens is saying that is expecting ‘’:" but getting " " ", in the part  
[[“damage”, “bash”, 3.0],

Being before bash the problem again i’m basing myself of the techniques.json the original and i get this thing again

[https://pastebin.com/AfuCe3CV](https://pastebin.com/AfuCe3CV)

here is the full code, is it a problem with spacing?

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 30, 2019, 11:29pm UTC](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459/21 "2019-03-30T23:29:03Z")

</div>

```
[
	{
		"type": "technique",
		"id": "beserk_slash",
		"name": "beserk slash",
		"min_melee": 4,
		"mult_bonuses": [
			[
				"movecost",
				1.5
			],
			[
				"damage",
				"bash",
				3.0
			],
			[
				"damage",
				"cut",
				3,
				0
			]
		],
		"messages": [
			"you slash %s with the burning power of your rage",
			"<npcname> strikes % with the burning power of your rage"
		]
	},
	{
		"type": "technique",
		"id": "beserk_sweep",
		"name": "beserk sweep",
		"min_melee": 5,
		"down_dur": 2,
		"messages": [
			"Your strike knocks %s off balance",
			"<npcname>'s strike knocks %s off balance"
		]
	},
	{
		"type": "technique",
		"id": "beserk_chance",
		"name": "beserk chance",
		"min_melee": 3,
		"crit_tec": true,
		"mult_bonuses": [
			[
				"damage",
				"bash",
				2.0
			],
			[
				"damage",
				"cut",
				2.0
			]
		],
		"messages": [
			"You stun %s after finding an opening in his attack",
			"<npcname> stuns %s after finding an opening in his attack"
		],
		"stun_dur": 3
	},
	{
		"type": "technique",
		"id": "beserk_fury",
		"name": "Beserk Fury",
		"min_melee": 6,
		"req_buffs": [
			"beserk_sweep"
		],
		"messages": [
			"You strike %s beheading it",
			"<npcname> strikes %s beheading it"
		],
		"mult_bonuses": [
			[
				"movecost",
				0.5
			],
			[
				"damage",
				"bash",
				3.0
			],
			[
				"damage",
				"cut",
				3.0
			]
		],
		"stun_dur": 3
	},
	{
		"type": "technique",
		"id": "beserk_feint",
		"name": "Beserk Feint",
		"melee_allowed": true,
		"min_melee": 2,
		"defensive": true,
		"miss_recovery": true,
		"mult_bonuses": [
			[
				"movecost",
				0.5
			]
		],
		"messages": [
			"You feint %s",
			"<npcname> feint at %s"
		]
	}
]

```

No, your problem is the usage of commas. Try to read the error from the debug and skim through the line code…

[Next page](https://discourse.cataclysmdda.org/t/guys-i-need-some-help/19459.md?page=2)
