<?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[This is my code for role.claimer, and it doesn&#x27;t work, any idea?]]></title><description><![CDATA[<p>So the creep moves towards the controller, but then it stands still without claiming it...
This is the code</p>
<p>var roleClaimer = {</p>
<pre><code>run: function(creep) { 
    creep.memory.target = 'E1S42';
    if(creep.room.name != creep.memory.target){
        var getMeOut = creep.room.findExitTo(creep.memory.target);
        creep.moveTo(creep.pos.findClosestByRange(getMeOut));
    }
    else{
        creep.moveTo(creep.room.controller);
        creep.claimController(creep.room.controller); 
    }
}    
</code></pre>
<p>};</p>
<p>module.exports = roleClaimer;</p>
]]></description><link>http://screeps.com/forum/topic/2948/this-is-my-code-for-role-claimer-and-it-doesn-t-work-any-idea</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 00:30:22 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2948.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Apr 2020 11:36:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p>So the creep moves towards the controller, but then it stands still without claiming it...
This is the code</p>
<p>var roleClaimer = {</p>
<pre><code>run: function(creep) { 
    creep.memory.target = 'E1S42';
    if(creep.room.name != creep.memory.target){
        var getMeOut = creep.room.findExitTo(creep.memory.target);
        creep.moveTo(creep.pos.findClosestByRange(getMeOut));
    }
    else{
        creep.moveTo(creep.room.controller);
        creep.claimController(creep.room.controller); 
    }
}    
</code></pre>
<p>};</p>
<p>module.exports = roleClaimer;</p>
]]></description><link>http://screeps.com/forum/post/14916</link><guid isPermaLink="true">http://screeps.com/forum/post/14916</guid><dc:creator><![CDATA[CharlyCreeper]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p>check the return code of the <a href="https://docs.screeps.com/api/#Creep.claimController" rel="nofollow">creep.claimController</a> function, it will tell you why its failing.</p>
<pre><code>var result =  creep.claimController(creep.room.controller); 
console.log(creep + &quot; tried to claim controller, got result &quot; + result);
</code></pre>
<p>OK	0	The operation has been scheduled successfully.</p>
<p>ERR_NOT_OWNER	-1	
You are not the owner of this creep.</p>
<p>ERR_BUSY	-4	
The creep is still being spawned.</p>
<p>ERR_INVALID_TARGET	-7	
The target is not a valid neutral controller object.</p>
<p>ERR_FULL	-8	
You cannot claim more than 3 rooms in the Novice Area.</p>
<p>ERR_NOT_IN_RANGE	-9	
The target is too far away.</p>
<p>ERR_NO_BODYPART	-12	
There are no CLAIM body parts in this creep’s body.</p>
<p>ERR_GCL_NOT_ENOUGH	-15	
Your Global Control Level is not enough.</p>
]]></description><link>http://screeps.com/forum/post/14917</link><guid isPermaLink="true">http://screeps.com/forum/post/14917</guid><dc:creator><![CDATA[Geir1983]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p>Thx, I'll try</p>
]]></description><link>http://screeps.com/forum/post/14918</link><guid isPermaLink="true">http://screeps.com/forum/post/14918</guid><dc:creator><![CDATA[CharlyCreeper]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/1396">@geir1983</a>
Ok, so I don't have enough gcl, do you know how can I increase it? I'm kinda noob <img
      src="http://screeps.com/forum/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=a1k070tfs06"
      class="not-responsive emoji emoji-android emoji--stuck_out_tongue"
      title=":P"
      alt="😛"
    /></p>
]]></description><link>http://screeps.com/forum/post/14927</link><guid isPermaLink="true">http://screeps.com/forum/post/14927</guid><dc:creator><![CDATA[CharlyCreeper]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p>You level up GCL (Global Control Level) by upgrading controller(s) w/ energy done by creeps, you can read more here:</p>
<p><a href="https://docs.screeps.com/control.html" rel="nofollow">https://docs.screeps.com/control.html</a></p>
]]></description><link>http://screeps.com/forum/post/14928</link><guid isPermaLink="true">http://screeps.com/forum/post/14928</guid><dc:creator><![CDATA[Donatzor]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p>Claiming a controller requires 600 available energy in your base.</p>
]]></description><link>http://screeps.com/forum/post/14937</link><guid isPermaLink="true">http://screeps.com/forum/post/14937</guid><dc:creator><![CDATA[PowerDuDe]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/4137">@powerdude</a> said in <a href="/forum/post/14937">This is my code for role.claimer, and it doesn't work, any idea?</a>:</p>
<blockquote>
<p>Claiming a controller requires 600 available energy in your base.</p>
</blockquote>
<p>Would you please explain how you arrived at that conclusion?<br />
Because it is a false statement, if left alone.</p>
]]></description><link>http://screeps.com/forum/post/14940</link><guid isPermaLink="true">http://screeps.com/forum/post/14940</guid><dc:creator><![CDATA[MrFaul]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/4095">@charlycreeper</a> When your controller reaches RCL8 you should also gain a GCL for the first time.</p>
<p>Develop a profitable remote mining operation, if done wrong remote mining wastes resources.</p>
<p>I looked at your base, you have a lot of possible savings that you can pump into your controller.<br />
But figuring that out is your job <img
      src="http://screeps.com/forum/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=a1k070tfs06"
      class="not-responsive emoji emoji-android emoji--wink"
      title=":wink:"
      alt="😉"
    /></p>
]]></description><link>http://screeps.com/forum/post/14942</link><guid isPermaLink="true">http://screeps.com/forum/post/14942</guid><dc:creator><![CDATA[MrFaul]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/85">@mrfaul</a> I misinterpreted the docs. It's just the cost of the claim bodypart.</p>
<p><img src="/forum/assets/uploads/files/1586785153084-998df3eb-8986-46c9-b506-4016a8bff408-image.png" alt="0_1586785152832_998df3eb-8986-46c9-b506-4016a8bff408-image.png" class="img-responsive img-markdown" /></p>
<p>But if you knew it was false already, why didn't say so?</p>
]]></description><link>http://screeps.com/forum/post/14944</link><guid isPermaLink="true">http://screeps.com/forum/post/14944</guid><dc:creator><![CDATA[PowerDuDe]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/4137">@powerdude</a> where is the learning in that <img
      src="http://screeps.com/forum/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=a1k070tfs06"
      class="not-responsive emoji emoji-android emoji--wink"
      title=":wink:"
      alt="😉"
    /></p>
]]></description><link>http://screeps.com/forum/post/14945</link><guid isPermaLink="true">http://screeps.com/forum/post/14945</guid><dc:creator><![CDATA[MrFaul]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/85">@mrfaul</a> well, that's not entirely true. I have a GCL of 2, when I reached RCL3. Atleast the game tells me when I join the public servers.</p>
]]></description><link>http://screeps.com/forum/post/14946</link><guid isPermaLink="true">http://screeps.com/forum/post/14946</guid><dc:creator><![CDATA[PowerDuDe]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/4137">@powerdude</a> said in <a href="/forum/post/14946">This is my code for role.claimer, and it doesn't work, any idea?</a>:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/85">@mrfaul</a> well, that's not entirely true. I have a GCL of 2, when I reached RCL3. Atleast the game tells me when I join the public servers.</p>
</blockquote>
<p>You already played a bit in 2017, control points for GCL are global every bit counts and is not lost.<br />
He really just started.</p>
]]></description><link>http://screeps.com/forum/post/14947</link><guid isPermaLink="true">http://screeps.com/forum/post/14947</guid><dc:creator><![CDATA[MrFaul]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to This is my code for role.claimer, and it doesn&#x27;t work, any idea? on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/85">@mrfaul</a> Ahh I see.</p>
]]></description><link>http://screeps.com/forum/post/14948</link><guid isPermaLink="true">http://screeps.com/forum/post/14948</guid><dc:creator><![CDATA[PowerDuDe]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>