# I want a jug of water, but the game wants a bra and panties?

**URL:** <https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618>\
**Category:** The Toolbox\
**Created:** [September 16, 2018, 8:31am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618 "2018-09-16T08:31:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoninLawst](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/roninlawst/32/3126_2.png) [@RoninLawst](https://discourse.cataclysmdda.org/u/RoninLawst)\
**Post date:** [September 16, 2018, 8:31am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/1 "2018-09-16T08:31:30Z")

</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 gallon jug of water. Now when I try to start a new game I get this message.

```auto
 DEBUG : Error: data/mods//dda/../../json/professions.json: line 149:3: tried to start object, but found '}', not '{'

      "female": ["bra", "panties"]
    }
  }
  ^
   ,
  {
    "type": "profession",

 
 FUNCTION : bool main_menu::new_character_tab()
 FILE : src/main_menu.cpp
 LINE : 658

```

I’m new to coding, so I don’t know what went wrong. Here’s the bit of code I changed in the json file.

```auto
    "type": "profession",
    "ident": "unemployed",
    "name": "Survivor",
    "description": "Some would say that there's nothing particularly notable about you. But you've survived, and that's more than most could say right now.",
    "points": 0,
    "items": {
      "both": ["pants_cargo", "tshirt", "socks", "hoodie", "sneakers", "leather_belt", "pockknife", "bokken", "backpack", "cell_phone"],
        "entries": [
          { "item": "lighter", "charges": 30 },
          { "item": "jug_plastic", "ammo-item": "water_clean", "charges": 15 }
        ]
      },
      "male": ["boxer_briefs"],
      "female": ["bra", "panties"]
    }
  },
  {
```

Anyone with more experience know what I did wrong?

---

<div class="post-metadata">

**Author:** ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Post date:** [September 16, 2018, 8:40am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/2 "2018-09-16T08:40:15Z")

</div>

Not sure but it seems you forgot a `{` somewhere.

> [@RoninLawst](#):
>
> “female”: [“bra”, “panties”] }

Here I think you’re closing with a `}` but there’s no opening `{` .

---

<div class="post-metadata">

**Author:** ![RoninLawst](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/roninlawst/32/3126_2.png) [@RoninLawst](https://discourse.cataclysmdda.org/u/RoninLawst)\
**Post date:** [September 16, 2018, 8:47am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/3 "2018-09-16T08:47:56Z")

</div>

That’s the thing, I can’t find any instance where there’s a “female”: [“bra”, “panties”] }. The part I messed with worked just fine until I added this part.

`"entries": [
          { "item": "lighter", "charges": 30 },
          { "item": "jug_plastic", "ammo-item": "water_clean", "charges": 15 }
`

---

<div class="post-metadata">

**Author:** ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Post date:** [September 16, 2018, 8:59am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/4 "2018-09-16T08:59:52Z")

</div>

> [@RoninLawst](#):
>
> I can’t find any instance where there’s a “female”: [“bra”, “panties”] }

It’s just there in your bit of code, line 14

---

<div class="post-metadata">

**Author:** ![RoninLawst](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/roninlawst/32/3126_2.png) [@RoninLawst](https://discourse.cataclysmdda.org/u/RoninLawst)\
**Post date:** [September 16, 2018, 9:05am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/5 "2018-09-16T09:05:02Z")

</div>

> [@Fris0uman](#):
>
> It’s just there in your bit of code, line 14

That line is the same as it was before I started messing with the code. No, the problem seems to be this part.

```auto
        "entries": [
          { "item": "lighter", "charges": 30 },
          { "item": "jug_plastic", "ammo-item": "water_clean", "charges": 15 }
        ]
      },
```

Everything works fine when I get rid of that part.

---

<div class="post-metadata">

**Author:** ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)\
**Post date:** [September 16, 2018, 9:31am UTC](https://discourse.cataclysmdda.org/t/i-want-a-jug-of-water-but-the-game-wants-a-bra-and-panties/16618/6 "2018-09-16T09:31:32Z")

</div>

Looking at the json for profession it seems that the professions using `"entries":` inside `"both"` uses `"items":` to describe the first list of items.

```
"items": {
  "both": {
    "items": [
```

---

<div class="post-metadata">

**Author:** ![RoninLawst](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/roninlawst/32/3126_2.png) [@RoninLawst](https://discourse.cataclysmdda.org/u/RoninLawst)\
**Post date:** [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/7 "2018-09-16T09:43:18Z")

</div>

> [@Fris0uman](#):
>
> Looking at the json for profession it seems that the professions using `"entries":` inside `"both"` uses `"items":` to describe the first list of items.
> 
> ```auto
> "items": {
> "both": {
> "items": [
> 
> ```

Thanks man! It’s working now! Although, now I have another problem, my plastic jug is empty. Is there a way to fix the code so I spawn with it full of clean water?

```auto
          { "item": "jug_plastic", "ammo-item": "water_clean", "charges": 15 }
```

Edit: Nevermind! I got it working! Turns out I was using code for a gun instead of a container.

```auto
          { "item": "water_clean", "charges": 15, "container-item": "jug_plastic" }
```
