<?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[Unexpected Memory Behavior]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm new to the game and have been having some weird behavior with memory when spawning new creeps. I'll execute the following line from the console</p>
<pre>Game.spawns.Spawn1.createCreep([WORK,WORK,WORK,CARRY,CARRY,MOVE,MOVE],undefined,{job: 'wallrepair', collectMore: true})</pre>
<p>But when I check the memory of the new creep, job is 'builder', instead of 'wallrepair'.</p>
<p>I've tried a few things including changing the name of the variable from job to role, type ect. in addition tp using different string for 'wallrepair'. But every time, no matter what is typed in, the job, role, type is always 'builder'. Does anyone have any suggestions.</p>
<p> </p>
<p>Thanks</p>]]></description><link>http://screeps.com/forum/topic/342/unexpected-memory-behavior</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 07:09:00 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/342.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jan 2017 16:19:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unexpected Memory Behavior on Invalid Date]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm new to the game and have been having some weird behavior with memory when spawning new creeps. I'll execute the following line from the console</p>
<pre>Game.spawns.Spawn1.createCreep([WORK,WORK,WORK,CARRY,CARRY,MOVE,MOVE],undefined,{job: 'wallrepair', collectMore: true})</pre>
<p>But when I check the memory of the new creep, job is 'builder', instead of 'wallrepair'.</p>
<p>I've tried a few things including changing the name of the variable from job to role, type ect. in addition tp using different string for 'wallrepair'. But every time, no matter what is typed in, the job, role, type is always 'builder'. Does anyone have any suggestions.</p>
<p> </p>
<p>Thanks</p>]]></description><link>http://screeps.com/forum/post/1689</link><guid isPermaLink="true">http://screeps.com/forum/post/1689</guid><dc:creator><![CDATA[ekovacs]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unexpected Memory Behavior on Invalid Date]]></title><description><![CDATA[<p>My guess is, you have code looking like that somewhere:</p>
<p>if (creep.memory.role = 'builder')<br>instead of<br>if (creep.memory.role == 'builder')</p>]]></description><link>http://screeps.com/forum/post/1690</link><guid isPermaLink="true">http://screeps.com/forum/post/1690</guid><dc:creator><![CDATA[ben2]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unexpected Memory Behavior on Invalid Date]]></title><description><![CDATA[<p>That was it, Thanks</p>]]></description><link>http://screeps.com/forum/post/1691</link><guid isPermaLink="true">http://screeps.com/forum/post/1691</guid><dc:creator><![CDATA[ekovacs]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>