<?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[Renewing kills unspawned creeps]]></title><description><![CDATA[<p>I figured out why my creeps were disappearing. I'm able to "renew" creeps while they're still spawning by using a different spawn. The affect of this is in the screenshot attached (TTL goes from undefined to -17850488). When it spawns, the creep immediately disappears (no energy dropped).</p>
<p><img src="https://s3.amazonaws.com/forum-static.screeps.com/a3fcba91-a96d-4293-84b7-88abc6d0af8d.png"></p>
<p>See <a href="https://screeps.com/a/#!/history/W73N64?t=17850234" target="_blank" rel="nofollow noreferrer">https://screeps.com/a/#!/history/W73N64?t=17850234</a> - the bottom most spawn.</p>
<p>Players Icon &amp; Vaejor were able to help me pinpoint the engine code: <br><a href="https://github.com/screeps/engine/blob/master/src/game/structures.js#L1132" target="_blank" rel="nofollow noreferrer">https://github.com/screeps/engine/blob/master/src/game/structures.js#L1132</a> <br>&gt; This checks for if(this.spawning), which only checks the StructureSpawn, not the Creep.</p>
<p><a href="https://github.com/screeps/engine/blob/master/src/processor/intents/spawns/renew-creep.js" target="_blank" rel="nofollow noreferrer">https://github.com/screeps/engine/blob/master/src/processor/intents/spawns/renew-creep.js</a> <br>&gt; Same here</p>
<p>________________ <br>I'm no engine expert, but the discussion we had suggested that the check should be done twice. First is structures.js to check via the API for creep.spawning and return ERR_BUSY. The other is in the renew intent, to check whether the creep actually spawning. <br>________________</p>
<p>I've lost many good honest creeps to this. Please think of the creeps and fix this soon!</p>
<p>Dewey</p>]]></description><link>http://screeps.com/forum/topic/227/renewing-kills-unspawned-creeps</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 01:31:23 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/227.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Mar 2017 00:23:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Renewing kills unspawned creeps on Invalid Date]]></title><description><![CDATA[<p>I figured out why my creeps were disappearing. I'm able to "renew" creeps while they're still spawning by using a different spawn. The affect of this is in the screenshot attached (TTL goes from undefined to -17850488). When it spawns, the creep immediately disappears (no energy dropped).</p>
<p><img src="https://s3.amazonaws.com/forum-static.screeps.com/a3fcba91-a96d-4293-84b7-88abc6d0af8d.png"></p>
<p>See <a href="https://screeps.com/a/#!/history/W73N64?t=17850234" target="_blank" rel="nofollow noreferrer">https://screeps.com/a/#!/history/W73N64?t=17850234</a> - the bottom most spawn.</p>
<p>Players Icon &amp; Vaejor were able to help me pinpoint the engine code: <br><a href="https://github.com/screeps/engine/blob/master/src/game/structures.js#L1132" target="_blank" rel="nofollow noreferrer">https://github.com/screeps/engine/blob/master/src/game/structures.js#L1132</a> <br>&gt; This checks for if(this.spawning), which only checks the StructureSpawn, not the Creep.</p>
<p><a href="https://github.com/screeps/engine/blob/master/src/processor/intents/spawns/renew-creep.js" target="_blank" rel="nofollow noreferrer">https://github.com/screeps/engine/blob/master/src/processor/intents/spawns/renew-creep.js</a> <br>&gt; Same here</p>
<p>________________ <br>I'm no engine expert, but the discussion we had suggested that the check should be done twice. First is structures.js to check via the API for creep.spawning and return ERR_BUSY. The other is in the renew intent, to check whether the creep actually spawning. <br>________________</p>
<p>I've lost many good honest creeps to this. Please think of the creeps and fix this soon!</p>
<p>Dewey</p>]]></description><link>http://screeps.com/forum/post/1140</link><guid isPermaLink="true">http://screeps.com/forum/post/1140</guid><dc:creator><![CDATA[Dewey]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Renewing kills unspawned creeps on Invalid Date]]></title><description><![CDATA[<p>Associated pull request: <a href="https://github.com/screeps/engine/pull/30" rel="nofollow noreferrer">https://github.com/screeps/engine/pull/30</a></p>]]></description><link>http://screeps.com/forum/post/1141</link><guid isPermaLink="true">http://screeps.com/forum/post/1141</guid><dc:creator><![CDATA[Icon]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>