# DEBUG: Submap at 1,2,3 has (X) fields but (y) field\_count

**URL:** <https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107>\
**Category:** The Garage\
**Created:** [March 10, 2015, 9:35am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107 "2015-03-10T09:35:44Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Lone\_Badger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_lone_badger/32/8063_2.png) [@The\_Lone\_Badger](https://discourse.cataclysmdda.org/u/The_Lone_Badger)\
**Post date:** [March 10, 2015, 9:35am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/1 "2015-03-10T09:35:44Z")

</div>

0.C-2844 (99b4f83)  
SDL  
Windows 7

I upgraded my few-weeks-old experimental to the latest experimental (O.C-2844) and played for a while. Suddenly I start getting messages of the form in the subject, e.g.  
DEBUG: Submap at 1,5,0 has 55 fields but 71 field\_count

I spacebar through the message. Next action I take there’s two messages. Then three. (Debug mode is off by the way) Effectively unplayable.  
Did I just get hit with an incompatible save?

[Save file](http://we.tl/WuQBUvTUKv)

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 10, 2015, 12:26pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/2 "2015-03-10T12:26:33Z")

</div>

Probably bad save, but it should be handled more nicely. I didn’t get the debug message while testing, so I left it as debug spam (it is moderately important).

EDIT:  
Do you have any “exotic” fields on the map? The fact that this bug occurs suggests that some field-creating effects aren’t doing their job, which will still negatively affect the performance of the game even after I remove the debug spam.

Thankfully it was the last thing KA101 merged yesterday, so the version just-before-the-last should work.

EDIT 2:  
While testing your save I also noticed a separate bug: when rocks count as ammo (Blazemod?), fire can spawn on them as if they were flammable. Will have to do away with this ugly ( is\_ammo() && is\_not\_arrow/water/etc. ) hack in flammable item check…

---

<div class="post-metadata">

**Author:** ![Codeslamer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/codeslamer/32/3433_2.png) [@Codeslamer](https://discourse.cataclysmdda.org/u/Codeslamer)\
**Post date:** [March 10, 2015, 3:42pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/3 "2015-03-10T15:42:47Z")

</div>

I got this too on version 2844. I killed a zombie on while it was on a bench and got an submap error. I also can’t get past the message. It just keeps repeating over and over.  
 ![](http://i.gyazo.com/3ad870a3b927707a21feb5b39a2ae602.png)

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 10, 2015, 3:55pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/4 "2015-03-10T15:55:43Z")

</div>

Get an earlier version for now (until 2845 comes out). Only 2844 is affected.

---

<div class="post-metadata">

**Author:** ![The\_Lone\_Badger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_lone_badger/32/8063_2.png) [@The\_Lone\_Badger](https://discourse.cataclysmdda.org/u/The_Lone_Badger)\
**Post date:** [March 10, 2015, 7:40pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/5 "2015-03-10T19:40:57Z")

</div>

> [@Coolthulhu](#):
>
> Get an earlier version for now (until 2845 comes out). Only 2844 is affected.

Great, thanks for the help.

---

<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:** [March 10, 2015, 10:36pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/6 "2015-03-10T22:36:44Z")

</div>

Tech issues on my end mean merging the fix has been pushed back a few builds. I’m grabbing it ASAP and will post when the fix goes live.

Update: Broken build for Code::Blocks, apparently wasn’t fixed after all. I can’t build mergetests, so can’t merge this. Sorry.

---

<div class="post-metadata">

**Author:** ![The\_Lone\_Badger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_lone_badger/32/8063_2.png) [@The\_Lone\_Badger](https://discourse.cataclysmdda.org/u/The_Lone_Badger)\
**Post date:** [March 11, 2015, 9:18am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/7 "2015-03-11T09:18:27Z")

</div>

Rolling back to 2843 does not fix the problem. 2840 does. (Haven’t tried 2841 and 2842).

---

<div class="post-metadata">

**Author:** ![simas](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@simas](https://discourse.cataclysmdda.org/u/simas)\
**Post date:** [March 11, 2015, 6:06pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/8 "2015-03-11T18:06:00Z")

</div>

if it helps i think this bugs out when it starts raining, at least 3 games it did start to pop out those messages when it started raining outside and i was in my hq all the time without any problems before

---

<div class="post-metadata">

**Author:** ![Sanarr](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sanarr](https://discourse.cataclysmdda.org/u/Sanarr)\
**Post date:** [March 11, 2015, 7:08pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/9 "2015-03-11T19:08:04Z")

</div>

Still get that debug messages in 2849. Cant wait for cure )

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 11, 2015, 7:28pm UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/10 "2015-03-11T19:28:09Z")

</div>

Due to technical problems (buggy compiler bundled with CodeBlocks), a big merge that was supposed to happen yesterday got delayed. For now play 2840 - not much changed since then.

Or maybe even the stable 0.C version. Currently the gameplay differences from stable are:

[ul][li] Tailoring kit can add wool lining (if you have used it in your save, you might not be able to go back)[/li]  
[li] Steel bolt recipe[/li]  
[li] Butchery products have more random drops (numbers of bones, meat etc. aren’t proportional, CMBs aren’t all-or-nothing)[/li]  
[li] Eating ketchup gives more nutrition[/li]  
[li] An option to set dynamic NPC spawn rate exists[/li]  
[li] Rain washes off blood/guts and gases (it’s the feature that caused the bug this thread is about) and causes much less lag than it did before[/li]  
[li] Grenades and similar items don’t work (also my fault, fix is waiting for merge)[/li][/ul]

Other than that it’s mostly technical changes.

---

<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:** [March 12, 2015, 1:30am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/11 "2015-03-12T01:30:27Z")

</div>

[quote=“Coolthulhu, post:10, topic:9107”]Due to technical problems (buggy compiler bundled with CodeBlocks), a big merge that was supposed to happen yesterday got delayed. For now play 2840 - not much changed since then.

Or maybe even the stable 0.C version. Currently the gameplay differences from stable are:

[ul][li] Tailoring kit can add wool lining (if you have used it in your save, you might not be able to go back)[/li]  
[li] Steel bolt recipe[/li]  
[li] Butchery products have more random drops (numbers of bones, meat etc. aren’t proportional, CMBs aren’t all-or-nothing)[/li]  
[li] Eating ketchup gives more nutrition[/li]  
[li] An option to set dynamic NPC spawn rate exists[/li]  
[li] Rain washes off blood/guts and gases (it’s the feature that caused the bug this thread is about) and causes much less lag than it did before[/li]  
[li] Grenades and similar items don’t work (also my fault, fix is waiting for merge)[/li][/ul]

Other than that it’s mostly technical changes.[/quote]

The compiler is significantly outdated, but since it’s the supported version we design to that spec. The compiler is not buggy. Thanks.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 12, 2015, 1:42am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/12 "2015-03-12T01:42:55Z")

</div>

> [@KA101](#):
>
> The compiler is significantly outdated, but since it’s the supported version we design to that spec. The compiler is not buggy. Thanks.

I recall someone explicitly calling it a bug and saying that version just before the one bundled doesn’t have the issue.

---

<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:** [March 12, 2015, 1:49am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/13 "2015-03-12T01:49:44Z")

</div>

> [@Coolthulhu](#):
>
> [quote=“KA101, post:11, topic:9107”]The compiler is significantly outdated, but since it’s the supported version we design to that spec. The compiler is not buggy. Thanks.

I recall someone explicitly calling it a bug and saying that version just before the one bundled doesn’t have the issue.[/quote]

Tell the C::B team, [they call 4.7.1 rock-solid and use it to build C::B itself](http://www.codeblocks.org/downloads/binaries), last I checked.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 12, 2015, 5:51am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/14 "2015-03-12T05:51:46Z")

</div>

Fix for the issue was merged.

---

<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:** [March 12, 2015, 6:41am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/15 "2015-03-12T06:41:30Z")

</div>

> [@Coolthulhu](#):
>
> Fix for the issue was merged.

You’re welcome.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [March 12, 2015, 6:46am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/16 "2015-03-12T06:46:25Z")

</div>

> [@KA101](#):
>
> You’re welcome.

Fine…

KA101 merged the fix.

---

<div class="post-metadata">

**Author:** ![The\_Lone\_Badger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_lone_badger/32/8063_2.png) [@The\_Lone\_Badger](https://discourse.cataclysmdda.org/u/The_Lone_Badger)\
**Post date:** [March 12, 2015, 7:41am UTC](https://discourse.cataclysmdda.org/t/debug-submap-at-1-2-3-has-x-fields-but-y-field-count/9107/17 "2015-03-12T07:41:16Z")

</div>

Shiny. Thank you all.
