<?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[isActive() on Links is not working.]]></title><description><![CDATA[<p>IsActive() on Link structure return True while the structure is not active.<br>(Due to room level degradation)<br><br>In room E41S48<br>Link 5825b46c995ae8292897b33f (top left)<br>is inactive (marked in red)<br>as my room goes from level 8 to level 7.</p>
<p>But calling the function isActive() on the link return true.<br>Expected behavior: return false.</p>
<p>This makes it very hard to properly handle the situation.</p>
<p>---<br>Is there any other way to discriminate that a structure is not active than calling isActive() ?<br><br>Here below is the documentation for the method :<br><br></p>
<div>isActive()</div>
<div>Check whether this structure can be used. If room controller level is insufficient, then this method will return false, and the structure will be highlighted with red in the game.</div>]]></description><link>http://screeps.com/forum/topic/148/isactive-on-links-is-not-working</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 04:13:43 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/148.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Apr 2017 11:58:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to isActive() on Links is not working. on Invalid Date]]></title><description><![CDATA[<p>IsActive() on Link structure return True while the structure is not active.<br>(Due to room level degradation)<br><br>In room E41S48<br>Link 5825b46c995ae8292897b33f (top left)<br>is inactive (marked in red)<br>as my room goes from level 8 to level 7.</p>
<p>But calling the function isActive() on the link return true.<br>Expected behavior: return false.</p>
<p>This makes it very hard to properly handle the situation.</p>
<p>---<br>Is there any other way to discriminate that a structure is not active than calling isActive() ?<br><br>Here below is the documentation for the method :<br><br></p>
<div>isActive()</div>
<div>Check whether this structure can be used. If room controller level is insufficient, then this method will return false, and the structure will be highlighted with red in the game.</div>]]></description><link>http://screeps.com/forum/post/793</link><guid isPermaLink="true">http://screeps.com/forum/post/793</guid><dc:creator><![CDATA[Voronoi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to isActive() on Links is not working. on Invalid Date]]></title><description><![CDATA[<p>:waves:</p>
<p>Yes, you can write a client side version of isActive, if you wish. You can check the server side code for how that's done. </p>
<p>It's quite useful for pre RCL 8 rooms to avoid issues with inactive structures as you rightfully noticed.</p>]]></description><link>http://screeps.com/forum/post/794</link><guid isPermaLink="true">http://screeps.com/forum/post/794</guid><dc:creator><![CDATA[Atavus]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to isActive() on Links is not working. on Invalid Date]]></title><description><![CDATA[<p>FWIW I've dealt with that by checking for error codes.</p>
<p>If you try to send from an inactive link, it tells you RCL not enough or whatever that error is.</p>
<p>If you try to send to an inactive link, it tells you invalid target.</p>
<p>As the cost of isActive() is significant, I never actually call it.  I just look at the error codes and mark them as internally inactive the first time I get an error trying to use one.  Worst case you have 1 error returned when you try to do something, and in any case you never waste extra CPU polling isActive.</p>]]></description><link>http://screeps.com/forum/post/795</link><guid isPermaLink="true">http://screeps.com/forum/post/795</guid><dc:creator><![CDATA[Xist]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>