<?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[Return ERR_NO_PATH in more situations]]></title><description><![CDATA[<p><code>ERR_NO_PATH</code> can be returned by the following methods :</p>
<ul>
<li><em>Room.findExitTo</em>, <em>Game.map.findExitTo</em></li>
<li><em>Game.map.findRoute</em></li>
<li><em>Creep.moveTo</em>,  if a new path is being calculated</li>
</ul>
<p><code>ERR_NO_PATH</code> will <strong>NOT</strong> be returned in the following situations :</p>
<ul>
<li><em>RoomPosition.findPathTo</em>, if the target can't be reached</li>
<li><em>Creep.move</em>, <em>Creep.moveByPath</em> if trying to move onto an obstructed tile</li>
<li><em>Creep.moveTo</em>, if trying to move onto an obstructed tile while using a cached path</li>
</ul>
<p>I understand the two last points aren't really <em>pathfinding</em> errors, but I still would expect them to return <em>some kind</em> of error. And ERR_NO_PATH is at this time the best I see to describe the problem.</p>
<p>Still, about RoomPosition.findPathTo, why does it return an &quot;incomplete&quot; path instead of an error ? If I wanted to get &quot;within range&quot; of the target, I'd just pass the <code>range</code> option to the parameter.</p>
<p>Otherwise, did I miss something that would let me know when a creep's movement is being obstructed, or when FindPathTo returns an incomplete path ?</p>
]]></description><link>http://screeps.com/forum/topic/2425/return-err_no_path-in-more-situations</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 07:46:42 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2425.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Oct 2018 12:10:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Return ERR_NO_PATH in more situations on Invalid Date]]></title><description><![CDATA[<p><code>ERR_NO_PATH</code> can be returned by the following methods :</p>
<ul>
<li><em>Room.findExitTo</em>, <em>Game.map.findExitTo</em></li>
<li><em>Game.map.findRoute</em></li>
<li><em>Creep.moveTo</em>,  if a new path is being calculated</li>
</ul>
<p><code>ERR_NO_PATH</code> will <strong>NOT</strong> be returned in the following situations :</p>
<ul>
<li><em>RoomPosition.findPathTo</em>, if the target can't be reached</li>
<li><em>Creep.move</em>, <em>Creep.moveByPath</em> if trying to move onto an obstructed tile</li>
<li><em>Creep.moveTo</em>, if trying to move onto an obstructed tile while using a cached path</li>
</ul>
<p>I understand the two last points aren't really <em>pathfinding</em> errors, but I still would expect them to return <em>some kind</em> of error. And ERR_NO_PATH is at this time the best I see to describe the problem.</p>
<p>Still, about RoomPosition.findPathTo, why does it return an &quot;incomplete&quot; path instead of an error ? If I wanted to get &quot;within range&quot; of the target, I'd just pass the <code>range</code> option to the parameter.</p>
<p>Otherwise, did I miss something that would let me know when a creep's movement is being obstructed, or when FindPathTo returns an incomplete path ?</p>
]]></description><link>http://screeps.com/forum/post/11811</link><guid isPermaLink="true">http://screeps.com/forum/post/11811</guid><dc:creator><![CDATA[Estecka]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Return ERR_NO_PATH in more situations on Invalid Date]]></title><description><![CDATA[<p>Checking obstacles for players would be incorrect. There are a few cases when such check is excessive, like a creep stepping over a structure which will be destroyed at the next tick. These cases are more or less rare but still, it's breaking change.</p>
<p>As for your other questions, well, if you're asking this then you're probably experienced enough to migrate to <a href="https://docs.screeps.com/api/#PathFinder.search" rel="nofollow">PathFinder.search</a> which provides lots of necessary information (sooner or later, this happens to all of us).</p>
]]></description><link>http://screeps.com/forum/post/11812</link><guid isPermaLink="true">http://screeps.com/forum/post/11812</guid><dc:creator><![CDATA[o4kapuk]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>