# Help adding a new place\_special

**URL:** https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218
**Category:** The Garage
**Created:** [February 26, 2014, 11:34am UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218 "2014-02-26T11:34:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Iosyn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/iosyn/32/35_2.png) [@Iosyn](https://discourse.cataclysmdda.org/u/Iosyn)
#### Post date: [February 26, 2014, 11:34am UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/1 "2014-02-26T11:34:44Z")

</div>

Hey folks. trying add a new furniture item similar to the toilet, a water dispenser.  
Unfortunately everything I’ve tried so far seems to fail horribly.

Getting a furn\_set error, any ideas? Does the furniture item itself need to be in the furniture.json?

---

<div class="post-metadata">

### Author: ![Soyweiser](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soyweiser/32/37_2.png) [@Soyweiser](https://discourse.cataclysmdda.org/u/Soyweiser)
#### Post date: [February 26, 2014, 4:52pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/2 "2014-02-26T16:52:05Z")

</div>

CODE or GTFO. 😉

No idea how to add new furniture, but showing us what you tried so far in code should help. (Or, better, make a branch on github and link towards that).

---

<div class="post-metadata">

### Author: ![Iosyn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/iosyn/32/35_2.png) [@Iosyn](https://discourse.cataclysmdda.org/u/Iosyn)
#### Post date: [February 26, 2014, 5:40pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/3 "2014-02-26T17:40:33Z")

</div>

[Git1](https://github.com/IOSYN/Cataclysm-DDA/commit/1acf5f68e155fd4957f330e358a474af49c0042a%5B/url)  
[Git2](https://github.com/IOSYN/Cataclysm-DDA/commit/c634edc86f935bfcf5441989b8e587260ae7c1d4)  
[Git3.](https://github.com/IOSYN/Cataclysm-DDA/commit/f28cf34f4e8c9f264e96e83c4618bfedde07941f)

`
src/mapgen.cpp:10850:20: error: use of undeclared identifier 'f_cooler'
    furn_set(x, y, f_cooler);`

Think I need to add the cooler furniture item to the furniture.json? Not a clue.

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [February 26, 2014, 5:43pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/4 "2014-02-26T17:43:29Z")

</div>

[quote=“Iosyn, post:3, topic:5218”][Git1](https://github.com/IOSYN/Cataclysm-DDA/commit/1acf5f68e155fd4957f330e358a474af49c0042a%5B/url)  
[Git2](https://github.com/IOSYN/Cataclysm-DDA/commit/c634edc86f935bfcf5441989b8e587260ae7c1d4)  
[Git3.](https://github.com/IOSYN/Cataclysm-DDA/commit/f28cf34f4e8c9f264e96e83c4618bfedde07941f)

`
src/mapgen.cpp:10850:20: error: use of undeclared identifier 'f_cooler'
    furn_set(x, y, f_cooler);`

Think I need to add the cooler furniture item to the furniture.json? Not a clue.[/quote]

Yeah, probably. (Never made furniture, but in general registering your Stuff in its file tends to help.)

---

<div class="post-metadata">

### Author: ![ClockworkZombie](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@ClockworkZombie](https://discourse.cataclysmdda.org/u/ClockworkZombie)
#### Post date: [February 26, 2014, 6:16pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/5 "2014-02-26T18:16:35Z")

</div>

It looks like you’re using f\_cooler to define the furniture item, but that’s not been defined in mapdata or the furnlist - I believe that adding it to the JSON should auto-include it in the furnlist, but you may also need to update the big list in mapdata.

edit - typed f\_toilet instead of f\_cooler

---

<div class="post-metadata">

### Author: ![BevapDin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bevapdin/32/228_2.png) [@BevapDin](https://discourse.cataclysmdda.org/u/BevapDin)
#### Post date: [February 26, 2014, 6:20pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/6 "2014-02-26T18:20:30Z")

</div>

Use “f\_cooler” instead of f\_cooler.

f\_cooler is a variable that gets set when the furniture is loaded from json. “f\_cooler” works the same, it is transformed into the proper furniture id when it’s actually used.

---

<div class="post-metadata">

### Author: ![Iosyn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/iosyn/32/35_2.png) [@Iosyn](https://discourse.cataclysmdda.org/u/Iosyn)
#### Post date: [February 26, 2014, 6:57pm UTC](https://discourse.cataclysmdda.org/t/help-adding-a-new-place-special/5218/7 "2014-02-26T18:57:00Z")

</div>

[quote=“BevapDin, post:6, topic:5218”]Use “f\_cooler” instead of f\_cooler.

f\_cooler is a variable that gets set when the furniture is loaded from json. “f\_cooler” works the same, it is transformed into the proper furniture id when it’s actually used.[/quote]

ORZ.

Mega thanks guys, will edit and test pronto.
