<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases]]></title><description><![CDATA[<p>So basically here's what a friend of mine and me managed to dig up:</p>
<p>Accessing anything under <code>ruin.store</code> of a ruin made from abandoned structures <em>that did not have any storage before</em> throws an exception from inside the API code. For now ruins of <code>STRUCTURE_RAMPART</code>, <code>STRUCTURE_WALL</code>, <code>STRUCTURE_EXTRACTOR</code>, and <code>STRUCTURE_OBSERVER</code> are confirmed to throw this errors.</p>
<p>Room: <a href="https://screeps.com/a/#!/room/shard1/E46S11" rel="nofollow">https://screeps.com/a/#!/room/shard1/E46S11</a></p>
<p>Structures that throw the exceptions: any of the ruins from outer rampart ring, ruins from extractor, and from observer.</p>
<p>Error in question:</p>
<pre><code class="language-txt">TypeError: Cannot convert undefined or null to object
    at Function.entries (&lt;anonymous&gt;)
    at new &lt;anonymous&gt; (&lt;runtime&gt;:41413:16)
    at Object._storeGetter [as store] (&lt;runtime&gt;:41322:12)
    at Object.get [as store] (eval at exports.defineGameObjectProperties (&lt;runtime&gt;:1093:9), &lt;anonymous&gt;:7:61)
    at filter (role.builder:423:26)
    at arrayFilter (&lt;runtime&gt;:2665:13)
    at Function.filter (&lt;runtime&gt;:7590:14)
    at Object.find (&lt;runtime&gt;:14280:24)
    at Object.harvest (role.builder:420:32)
</code></pre>
<p>Code block throwing the exception:</p>
<pre><code>    // look for ruins with stuff
    var ruins = creep.room.find(FIND_RUINS, {
        filter: function(r)
        {
            return r.store[RESOURCE_ENERGY] &gt; 0;
        }
    });</code></pre>
]]></description><link>http://screeps.com/forum/topic/2828/breaking-bug-accessing-anything-in-store-of-abandoned-ruins-throws-exception-in-some-cases</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 22:08:41 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2828.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Oct 2019 21:11:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Fri, 18 Oct 2019 21:15:15 GMT]]></title><description><![CDATA[<p>So basically here's what a friend of mine and me managed to dig up:</p>
<p>Accessing anything under <code>ruin.store</code> of a ruin made from abandoned structures <em>that did not have any storage before</em> throws an exception from inside the API code. For now ruins of <code>STRUCTURE_RAMPART</code>, <code>STRUCTURE_WALL</code>, <code>STRUCTURE_EXTRACTOR</code>, and <code>STRUCTURE_OBSERVER</code> are confirmed to throw this errors.</p>
<p>Room: <a href="https://screeps.com/a/#!/room/shard1/E46S11" rel="nofollow">https://screeps.com/a/#!/room/shard1/E46S11</a></p>
<p>Structures that throw the exceptions: any of the ruins from outer rampart ring, ruins from extractor, and from observer.</p>
<p>Error in question:</p>
<pre><code class="language-txt">TypeError: Cannot convert undefined or null to object
    at Function.entries (&lt;anonymous&gt;)
    at new &lt;anonymous&gt; (&lt;runtime&gt;:41413:16)
    at Object._storeGetter [as store] (&lt;runtime&gt;:41322:12)
    at Object.get [as store] (eval at exports.defineGameObjectProperties (&lt;runtime&gt;:1093:9), &lt;anonymous&gt;:7:61)
    at filter (role.builder:423:26)
    at arrayFilter (&lt;runtime&gt;:2665:13)
    at Function.filter (&lt;runtime&gt;:7590:14)
    at Object.find (&lt;runtime&gt;:14280:24)
    at Object.harvest (role.builder:420:32)
</code></pre>
<p>Code block throwing the exception:</p>
<pre><code>    // look for ruins with stuff
    var ruins = creep.room.find(FIND_RUINS, {
        filter: function(r)
        {
            return r.store[RESOURCE_ENERGY] &gt; 0;
        }
    });</code></pre>
]]></description><link>http://screeps.com/forum/post/14282</link><guid isPermaLink="true">http://screeps.com/forum/post/14282</guid><dc:creator><![CDATA[Orlet]]></dc:creator><pubDate>Fri, 18 Oct 2019 21:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Invalid Date]]></title><description><![CDATA[<p>Seeing the same issue.</p>
]]></description><link>http://screeps.com/forum/post/14285</link><guid isPermaLink="true">http://screeps.com/forum/post/14285</guid><dc:creator><![CDATA[explicit]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Invalid Date]]></title><description><![CDATA[<p>Yeah - reported to o4 on slack on patch day. Kinda hoping it just goes away when the original ruins expire.</p>
]]></description><link>http://screeps.com/forum/post/14291</link><guid isPermaLink="true">http://screeps.com/forum/post/14291</guid><dc:creator><![CDATA[Tigga]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Invalid Date]]></title><description><![CDATA[<p>It should be solved now, please confirm.</p>
]]></description><link>http://screeps.com/forum/post/14292</link><guid isPermaLink="true">http://screeps.com/forum/post/14292</guid><dc:creator><![CDATA[o4kapuk]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Invalid Date]]></title><description><![CDATA[<p>Can confirm that it is fixed in the original room. Thanks</p>
]]></description><link>http://screeps.com/forum/post/14298</link><guid isPermaLink="true">http://screeps.com/forum/post/14298</guid><dc:creator><![CDATA[RavenX8]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [breaking bug] Accessing anything in .store of abandoned ruins throws exception in some cases on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/183">@o4kapuk</a> confirm it is working.</p>
]]></description><link>http://screeps.com/forum/post/14300</link><guid isPermaLink="true">http://screeps.com/forum/post/14300</guid><dc:creator><![CDATA[Orlet]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>