<?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[Unable to read other players segments using the RawMemory component]]></title><description><![CDATA[<p>My friend and I tried to set up a simple way of communication with the RawMemory component. When that didn't work I asked #help on slack and everyone was giving me similar code snippets (which all didn't work and were pretty similar to what we had done). I have been experimenting with this for a while now, but the feature just seems to be broken. I have posted one of the many code snippets down below. Any ideas/advise?</p>
<p>(sender side)</p>
<pre><code> RawMemory.segments[0] = JSON.stringify({ &quot;hello&quot;: &quot;world&quot; });
 RawMemory.setPublicSegments([0]);          
 RawMemory.setDefaultPublicSegment(0);
</code></pre>
<p>(receiver side)</p>
<pre><code> if (RawMemory.foreignSegment != undefined)
 {
     console.log(RawMemory.foreignSegment);
 }
 else
 {
     console.log(&quot;No segment&quot;);
     RawMemory.setActiveForeignSegment(&quot;HerrKai&quot;, 0);
 }</code></pre>
]]></description><link>http://screeps.com/forum/topic/2922/unable-to-read-other-players-segments-using-the-rawmemory-component</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 21:00:11 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2922.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Feb 2020 09:42:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>My friend and I tried to set up a simple way of communication with the RawMemory component. When that didn't work I asked #help on slack and everyone was giving me similar code snippets (which all didn't work and were pretty similar to what we had done). I have been experimenting with this for a while now, but the feature just seems to be broken. I have posted one of the many code snippets down below. Any ideas/advise?</p>
<p>(sender side)</p>
<pre><code> RawMemory.segments[0] = JSON.stringify({ &quot;hello&quot;: &quot;world&quot; });
 RawMemory.setPublicSegments([0]);          
 RawMemory.setDefaultPublicSegment(0);
</code></pre>
<p>(receiver side)</p>
<pre><code> if (RawMemory.foreignSegment != undefined)
 {
     console.log(RawMemory.foreignSegment);
 }
 else
 {
     console.log(&quot;No segment&quot;);
     RawMemory.setActiveForeignSegment(&quot;HerrKai&quot;, 0);
 }</code></pre>
]]></description><link>http://screeps.com/forum/post/14758</link><guid isPermaLink="true">http://screeps.com/forum/post/14758</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>I went to get your memory you posted, it continued to display undefined on both shards your on.  Not sure if that's because I've never configured RawMemory or if its just not setting for you for some reason.</p>
<p>On that note, if you are trying to post it on one shard and your friend trying to retrieve it on the other (window focused on Shard1 vs shard 3) then it wouldn't work afaik raw memory like normal memory is shard-specific.</p>
<p>Never played with rawMemory personally beyond interShard memory. So would have to play around with it to see.</p>
]]></description><link>http://screeps.com/forum/post/14759</link><guid isPermaLink="true">http://screeps.com/forum/post/14759</guid><dc:creator><![CDATA[Donatzor]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Sun, 23 Feb 2020 17:47:27 GMT]]></title><description><![CDATA[<p>Hey, thanks for your reply. I am actually executing this code on all shards at the same time.</p>
<p>Edit: If you do play around with it at some point and figure it out, feel free to reach out to me, cause I'd really like to know what the problem is. Either on this forum, slack or even via ingame message, whatever works for you.</p>
]]></description><link>http://screeps.com/forum/post/14760</link><guid isPermaLink="true">http://screeps.com/forum/post/14760</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Sun, 23 Feb 2020 17:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>Did you confirm its saving on your side as well by just looking at segment [0] from your code?</p>
]]></description><link>http://screeps.com/forum/post/14761</link><guid isPermaLink="true">http://screeps.com/forum/post/14761</guid><dc:creator><![CDATA[Donatzor]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>I tried out reading my own segments, as well as checking via the ingame gui (Memory&gt;Segments) and the data is there, yes.</p>
]]></description><link>http://screeps.com/forum/post/14762</link><guid isPermaLink="true">http://screeps.com/forum/post/14762</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/3959">@herrkai</a> Thanks for the report, I'll check it.</p>
]]></description><link>http://screeps.com/forum/post/14764</link><guid isPermaLink="true">http://screeps.com/forum/post/14764</guid><dc:creator><![CDATA[o4kapuk]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>Thank you in advance!</p>
]]></description><link>http://screeps.com/forum/post/14765</link><guid isPermaLink="true">http://screeps.com/forum/post/14765</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/3959">@herrkai</a> The fix is ready, it will be included in the next production update. Meanwhile, you may use any segment except 0, it should work as it is. Thank you again for reporting this edge case.</p>
]]></description><link>http://screeps.com/forum/post/14766</link><guid isPermaLink="true">http://screeps.com/forum/post/14766</guid><dc:creator><![CDATA[o4kapuk]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/183">@o4kapuk</a> Thank you for dealing with this so quickly! Will try <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/14770</link><guid isPermaLink="true">http://screeps.com/forum/post/14770</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/183">@o4kapuk</a> I tried using segment 1 and it instantly worked. Thank you very much!</p>
]]></description><link>http://screeps.com/forum/post/14774</link><guid isPermaLink="true">http://screeps.com/forum/post/14774</guid><dc:creator><![CDATA[HerrKai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unable to read other players segments using the RawMemory component on Invalid Date]]></title><description><![CDATA[<p>The fix is deployed, thank you again for the report.</p>
]]></description><link>http://screeps.com/forum/post/14782</link><guid isPermaLink="true">http://screeps.com/forum/post/14782</guid><dc:creator><![CDATA[o4kapuk]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>