<?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.findPath causing errors.]]></title><description><![CDATA[<p>Getting the following error when trying to call RoomPosition.findPathTo:</p>
<pre><code>TypeError: Cannot read property 'undefined' of undefined
    at Grid.setWalkableAt (/opt/PathFinding.js/src/core/Grid.js:117:18)
    at Room.findPath (/opt/engine/dist/game/rooms.js:552:12)
    at RoomPosition.findPathTo (/opt/engine/dist/game/rooms.js:742:19)
    at Room.Game.extensions.AI.extensions.library.mayoAPI.Room.getCachedPath (main:4483:76)
    at Creep.Game.extensions.AI.extensions.library.mayoAPI.Creep.moveByCachedPath (main:4788:44)
    at goMine (main:5123:19)
    at Object.miningRoutine [as routine] (main:5039:17)
    at Creep.do (main:3069:25)
    at Object.turn (main:2184:17)
</code></pre>
<p>Is this a server-side issue?</p>]]></description><link>http://screeps.com/forum/topic/1414/room-findpath-causing-errors</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:36:07 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/1414.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Aug 2015 20:09:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Room.findPath causing errors. on Invalid Date]]></title><description><![CDATA[<p>Getting the following error when trying to call RoomPosition.findPathTo:</p>
<pre><code>TypeError: Cannot read property 'undefined' of undefined
    at Grid.setWalkableAt (/opt/PathFinding.js/src/core/Grid.js:117:18)
    at Room.findPath (/opt/engine/dist/game/rooms.js:552:12)
    at RoomPosition.findPathTo (/opt/engine/dist/game/rooms.js:742:19)
    at Room.Game.extensions.AI.extensions.library.mayoAPI.Room.getCachedPath (main:4483:76)
    at Creep.Game.extensions.AI.extensions.library.mayoAPI.Creep.moveByCachedPath (main:4788:44)
    at goMine (main:5123:19)
    at Object.miningRoutine [as routine] (main:5039:17)
    at Creep.do (main:3069:25)
    at Object.turn (main:2184:17)
</code></pre>
<p>Is this a server-side issue?</p>]]></description><link>http://screeps.com/forum/post/6293</link><guid isPermaLink="true">http://screeps.com/forum/post/6293</guid><dc:creator><![CDATA[Vertigan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Room.findPath causing errors. on Invalid Date]]></title><description><![CDATA[<p>Seems the issue was on my end. I was feeding in a flag's .pos value, which was returning undefined for some reason : /</p>
<p>Still trying to figure out why the flag's room position is returning undefined.</p>]]></description><link>http://screeps.com/forum/post/6294</link><guid isPermaLink="true">http://screeps.com/forum/post/6294</guid><dc:creator><![CDATA[Vertigan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Room.findPath causing errors. on Invalid Date]]></title><description><![CDATA[<p>Flag.pos is undefined for the rooms you do not have presence in ( so that you can not spy on others with flags), however findPath to flag itself ( not it's position ) will work.</p>]]></description><link>http://screeps.com/forum/post/6295</link><guid isPermaLink="true">http://screeps.com/forum/post/6295</guid><dc:creator><![CDATA[DarkTrooper7]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Room.findPath causing errors. on Invalid Date]]></title><description><![CDATA[<p>Huh. I knew that flag.room was undefined if you weren't there, but didn't realize pos was as well.</p>
<p>This API-level fog of war probably has good reasoning behind it, but I wish it was more obvious in the docs. </p>
<p>Anyway, thanks Dark.</p>]]></description><link>http://screeps.com/forum/post/6296</link><guid isPermaLink="true">http://screeps.com/forum/post/6296</guid><dc:creator><![CDATA[Vertigan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Room.findPath causing errors. on Invalid Date]]></title><description><![CDATA[<p>As a rule of thumb: if it has findClosest method - it's not available <img
      src="http://screeps.com/forum/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a1k070tfs06"
      class="not-responsive emoji emoji-android emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>]]></description><link>http://screeps.com/forum/post/6297</link><guid isPermaLink="true">http://screeps.com/forum/post/6297</guid><dc:creator><![CDATA[DarkTrooper7]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>