# Pitfill bug? (split from Tips/Tricks/Questions)

**URL:** <https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483>\
**Category:** The Garage\
**Created:** [December 31, 2014, 6:53am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483 "2014-12-31T06:53:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ember](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Ember](https://discourse.cataclysmdda.org/u/Ember)\
**Post date:** [December 31, 2014, 6:53am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/1 "2014-12-31T06:53:58Z")

</div>

so I’ve found a farm and decided to set up a base here, however there’s a bunch of pits in front of the farmhouse and shed, how do i get rid of them? the fill pit option is grayed out and i do have a shovel that should be able to do the job

---

<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:** [December 31, 2014, 7:07am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/2 "2014-12-31T07:07:17Z")

</div>

> [@Ember](#):
>
> so I’ve found a farm and decided to set up a base here, however there’s a bunch of pits in front of the farmhouse and shed, how do i get rid of them? the fill pit option is grayed out and i do have a shovel that should be able to do the job

Quick check: is the terrain when you farlook (😉 at it marked as a pit, or is there just the trap? If it’s the terrain, then I’m not sure what’s wrong, but it’s possible that we could be tossing trap flags w/o the terrain mod, which led to non-fillable pits when I did a quick spot-check.

---

<div class="post-metadata">

**Author:** ![Ember](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Ember](https://discourse.cataclysmdda.org/u/Ember)\
**Post date:** [December 31, 2014, 7:15am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/3 "2014-12-31T07:15:34Z")

</div>

using (😉 it seems to be only marked as a pit

when I examine the pit it says it looks too dangerous to mess with. best leave it alone

Edit: since its a bug i shall also mention this is in version 2a99218

---

<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:** [December 31, 2014, 7:29am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/4 "2014-12-31T07:29:31Z")

</div>

[quote=“Ember, post:3, topic:8483”]using (😉 it seems to be only marked as a pit

when I examine the pit it says it looks too dangerous to mess with. best leave it alone[/quote]

Yeah, that’s the standard for traps that can’t be disarmed by hand. I checked the dirt lot terrain and those pits were fillable. What shovel are you using? Trowels and digging sticks can’t effectively fill pits.

(Haven’t had traps come up in the farmhouse tile, and on my dev build the dirt lot pits are fillable with an entrenching tool. Is this the “farm” or a “dirt lot” tile on the map?)

---

<div class="post-metadata">

**Author:** ![Ember](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Ember](https://discourse.cataclysmdda.org/u/Ember)\
**Post date:** [December 31, 2014, 7:33am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/5 "2014-12-31T07:33:59Z")

</div>

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

screenshot of the farm with the traps, not the farmhouse im at currently though, but i had the same issue when i took that screenshot, if you wish i can provide the save if its needed

im using a standard shovel with a digging quality of 3

---

<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:** [December 31, 2014, 7:56am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/6 "2014-12-31T07:56:57Z")

</div>

[quote=“Ember, post:5, topic:8483”]

 ![](http://i.imgur.com/2KjjOVz.png)  
screenshot of the farm with the traps, not the farmhouse im at currently though, but i had the same issue when i took that screenshot, if you wish i can provide the save if its needed

im using a standard shovel with a digging quality of 3[/quote]

OK. I’ve just looked and that’s a rare farm you’ve got. Betting an issue with the mapgen code; the save might be handy to verify but I don’t think we’ll need it.

What I think is happening is that mapgen code calls add\_trap, which adds the fact that there’s a pit _trap_ there (the part that makes you fall in) without calling ter\_set to add the pit _terrain_, which can be filled, covered, spiked, glassed, or combinations thereof. So you’ve a Dangerous Pit that doesn’t actually exist.

Bad news is that even digging a real pit and filling that in won’t clear the _pit trap_: I just checked. You’re authorized to use the debug menu to remove the pit traps; dig & fill shallow ones if you like as a time-compensation but it’s not mandatory. I’ll see if I can throw a fix up real quick-like.

And thanks for reporting.

---

<div class="post-metadata">

**Author:** ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)\
**Post date:** [January 2, 2015, 7:39pm UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/7 "2015-01-02T19:39:15Z")

</div>

unrelated to bug report sorry

> (click to show/hide) screenshot of the farm with the traps, not the farmhouse im at currently though, but i had the same issue when i took that screenshot, if you wish i can provide the save if its needed
> 
> im using a standard shovel with a digging quality of 3

whats this!!! the epic return of goggles mcboggles? or is that just a standard one size fits all female character… I have no way to know since game doesn’t like macs V.V. sorry if overly nooby there.

---

<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:** [January 3, 2015, 1:29am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/8 "2015-01-03T01:29:10Z")

</div>

Rivet merged the fix last night, and that’s a generi-char unfortunately.

We have tileset code to support mutations & gear getting paperdolled onto the char, and I’m all in favor of a different sprite (someone pointed out _curtseying_ is not a good post-apoc stance), though. Just needs the arting and the PR.

(I’d merge variable ethnicity, but that seems like it’d need either a 0-point trait (potential flamewars) or a specific chargen option. Not the easiest to code.)

---

<div class="post-metadata">

**Author:** ![SKiPPY](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/skippy/32/123_2.png) [@SKiPPY](https://discourse.cataclysmdda.org/u/SKiPPY)\
**Post date:** [February 9, 2015, 3:59am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/9 "2015-02-09T03:59:52Z")

</div>

Unfortunately, I ran into the same bug while playing on the 0.B stable release (windows Tiles/SDL).

Why does the code generate a pit as both a terrain feature and as a trap? unless modified, the pit is no more of a trap than a clean window frame; its only purpose is to slow down potential enemies. It is only when the player modifies the pit that it becomes a trap, i.e. when they add spikes or glass shards to the bottom of the pit.

Therefore, may I suggest that you remove the mapgen code that calls for add\_trap? I would do it myself, but I only know basic code logic, not the actual C++ language that the game uses.

---

<div class="post-metadata">

**Author:** ![Barhandar](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@Barhandar](https://discourse.cataclysmdda.org/u/Barhandar)\
**Post date:** [February 9, 2015, 7:27am UTC](https://discourse.cataclysmdda.org/t/pitfill-bug-split-from-tips-tricks-questions/8483/10 "2015-02-09T07:27:18Z")

</div>

[quote=“SKiPPY, post:9, topic:8483”]Unfortunately, I ran into the same bug while playing on the 0.B stable release (windows Tiles/SDL).

Why does the code generate a pit as both a terrain feature and as a trap? unless modified, the pit is no more of a trap than a clean window frame; its only purpose is to slow down potential enemies. It is only when the player modifies the pit that it becomes a trap, i.e. when they add spikes or glass shards to the bottom of the pit.

Therefore, may I suggest that you remove the mapgen code that calls for add\_trap? I would do it myself, but I only know basic code logic, not the actual C++ language that the game uses.[/quote]  
Because enemies take damage when they fall into pits, unlike the window frames. And taking damage requires them to have a trap.
