<?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[room.structureCacheKey]]></title><description><![CDATA[<p>Can we have a room property, structureCacheKey, with some value that's guaranteed to change if, and only if, a structure has been added to or removed from a room between the current tick and the previous?</p>
]]></description><link>http://screeps.com/forum/topic/2836/room-structurecachekey</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 04:49:37 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2836.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Oct 2019 16:27:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to room.structureCacheKey on Invalid Date]]></title><description><![CDATA[<p>Can we have a room property, structureCacheKey, with some value that's guaranteed to change if, and only if, a structure has been added to or removed from a room between the current tick and the previous?</p>
]]></description><link>http://screeps.com/forum/post/14329</link><guid isPermaLink="true">http://screeps.com/forum/post/14329</guid><dc:creator><![CDATA[Jumpp]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to room.structureCacheKey on Tue, 22 Oct 2019 16:32:09 GMT]]></title><description><![CDATA[<p>Or perhaps an EVENT_STRUCTURE_COMPLETED event in the room event log? (EVENT_BUILD is a crude tool for identifying freshly-built structures. It's hard to distinguish a constructionSite that was completed from one that was stepped on or removed)</p>
]]></description><link>http://screeps.com/forum/post/14330</link><guid isPermaLink="true">http://screeps.com/forum/post/14330</guid><dc:creator><![CDATA[Jumpp]]></dc:creator><pubDate>Tue, 22 Oct 2019 16:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to room.structureCacheKey on Invalid Date]]></title><description><![CDATA[<p>I have dreamed a lot about this to make an efficient room rebuilder.</p>
<p>I currently I check the structure count, construction site count, and RCL every tick (which is <em>very</em> efficient). Then I only run my room builder when those values change.</p>
<p>But there is a loop hole with construction sites completing and being placed in the same tick as a structure is destroyed.</p>
<p>Ruins closes that loop hole.</p>
<p>In short, every tick count the number of structures, number of construction sites, number of ruins, and RCL. If any of those change you need to look through the room for changes.</p>
<p>I think now that Ruins are here you could probably get a way with only checking every couple hundred ticks (unless you have hostiles in the room).</p>
]]></description><link>http://screeps.com/forum/post/14331</link><guid isPermaLink="true">http://screeps.com/forum/post/14331</guid><dc:creator><![CDATA[deft-code]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to room.structureCacheKey on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/49">@deft-code</a> said in <a href="/forum/post/14331">room.structureCacheKey</a>:</p>
<blockquote>
<p>Ruins closes that loop hole.</p>
</blockquote>
<p>Nukes don't leave behind ruins</p>
]]></description><link>http://screeps.com/forum/post/14348</link><guid isPermaLink="true">http://screeps.com/forum/post/14348</guid><dc:creator><![CDATA[Trepidimous]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to room.structureCacheKey on Wed, 27 Nov 2019 16:08:30 GMT]]></title><description><![CDATA[<p>EVENT_BUILD could be used to distinguish a completed build from a stomped/removed construction site if its info had a property that indicated success. A boolean that's true if the job were completed, maybe. Or the id of the completed structure. Or the amount of work yet to be done to complete the job. Or the position and structureType of the targeted thing.</p>
]]></description><link>http://screeps.com/forum/post/14579</link><guid isPermaLink="true">http://screeps.com/forum/post/14579</guid><dc:creator><![CDATA[Jumpp]]></dc:creator><pubDate>Wed, 27 Nov 2019 16:08:30 GMT</pubDate></item></channel></rss>