<?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[Local Server Bugs]]></title><description><![CDATA[<p>Number one: when I first installed the server, I would get this error repeatedly in the server GUI. Restarting Steam fixed it, but it's a bit confusing why that should be so. A better error message than "initAPI() failure" would probably be sufficient.</p>
<pre>Loading mods from "D:\SteamLibrary\steamapps\common\Screeps\server\mods\mods.json"<br>Connecting to storage<br>Starting CLI server<br>STEAM_KEY environment variable is not found, trying to connect to local Steam client<br>Error: greenworks.initAPI() failure<br> at Object.startServer (D:\SteamLibrary\steamapps\common\Screeps\server\modules\backend\lib\game\server.js:95:19)<br> at common.storage._connect.then.then (D:\SteamLibrary\steamapps\common\Screeps\server\modules\backend\lib\index.js:16:28)<br> at _fulfilled (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:834:54)<br> at self.promiseDispatch.done (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:863:30)<br> at Promise.promise.promiseDispatch (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:796:13)<br> at D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:604:44<br> at runSingle (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:137:13)<br> at flush (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:125:13)<br> at _combinedTickCallback (internal/process/next_tick.js:67:7)<br> at process._tickCallback (internal/process/next_tick.js:98:9)</pre>
<p> </p>
<p>Number two: periodically, I see these errors. Best guess: sometimes the loader doesn't load the entire source file before trying to execute it.</p>
<pre>[7:32:29 PM]Script execution has been terminated: Unknown system error<br>[7:32:29 PM]Script execution has been terminated: Unknown system error<br>[7:33:04 PM]SyntaxError: Unexpected token )<br> at Object.module.exports.loop (main:120:9)<br> at __mainLoop:1:52<br> at ContextifyScript.Script.runInContext (vm.js:35:29)</pre>]]></description><link>http://screeps.com/forum/topic/481/local-server-bugs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 23:22:32 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/481.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Nov 2016 02:45:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Local Server Bugs on Invalid Date]]></title><description><![CDATA[<p>Number one: when I first installed the server, I would get this error repeatedly in the server GUI. Restarting Steam fixed it, but it's a bit confusing why that should be so. A better error message than "initAPI() failure" would probably be sufficient.</p>
<pre>Loading mods from "D:\SteamLibrary\steamapps\common\Screeps\server\mods\mods.json"<br>Connecting to storage<br>Starting CLI server<br>STEAM_KEY environment variable is not found, trying to connect to local Steam client<br>Error: greenworks.initAPI() failure<br> at Object.startServer (D:\SteamLibrary\steamapps\common\Screeps\server\modules\backend\lib\game\server.js:95:19)<br> at common.storage._connect.then.then (D:\SteamLibrary\steamapps\common\Screeps\server\modules\backend\lib\index.js:16:28)<br> at _fulfilled (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:834:54)<br> at self.promiseDispatch.done (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:863:30)<br> at Promise.promise.promiseDispatch (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:796:13)<br> at D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:604:44<br> at runSingle (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:137:13)<br> at flush (D:\SteamLibrary\steamapps\common\Screeps\server\modules\common\node_modules\q\q.js:125:13)<br> at _combinedTickCallback (internal/process/next_tick.js:67:7)<br> at process._tickCallback (internal/process/next_tick.js:98:9)</pre>
<p> </p>
<p>Number two: periodically, I see these errors. Best guess: sometimes the loader doesn't load the entire source file before trying to execute it.</p>
<pre>[7:32:29 PM]Script execution has been terminated: Unknown system error<br>[7:32:29 PM]Script execution has been terminated: Unknown system error<br>[7:33:04 PM]SyntaxError: Unexpected token )<br> at Object.module.exports.loop (main:120:9)<br> at __mainLoop:1:52<br> at ContextifyScript.Script.runInContext (vm.js:35:29)</pre>]]></description><link>http://screeps.com/forum/post/2321</link><guid isPermaLink="true">http://screeps.com/forum/post/2321</guid><dc:creator><![CDATA[Wyrframe]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Local Server Bugs on Invalid Date]]></title><description><![CDATA[<p>I'm also getting this bug:</p>
<pre class=" language-javascript"><code class=" language-javascript">STEAM_KEY environment variable is not found</code></pre>
<p>Restarting doesn't seem to help in my case. Running on Linux</p>]]></description><link>http://screeps.com/forum/post/2322</link><guid isPermaLink="true">http://screeps.com/forum/post/2322</guid><dc:creator><![CDATA[bonzaiferroni]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Local Server Bugs on Invalid Date]]></title><description><![CDATA[<p>Mine might be a bit different, here is the full output:<br><br></p>
<pre>Loading mods from "/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/mods/mods.json"<br>Connecting to storage<br>Starting CLI server<br>STEAM_KEY environment variable is not found, trying to connect to local Steam client<br>Error: Steam client is not running<br>at Object.startServer (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/lib/game/server.js:125:19)<br>at common.storage._connect.then.then (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/lib/index.js:16:28)<br>at _fulfilled (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:834:54)<br>at self.promiseDispatch.done (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:863:30)<br>at Promise.promise.promiseDispatch (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:796:13)<br>at /home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:604:44<br>at runSingle (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:137:13)<br>at flush (/home/bonzai/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:125:13)<br>at _combinedTickCallback (internal/process/next_tick.js:67:7)<br>at process._tickCallback (internal/process/next_tick.js:98:9)</pre>
<p> </p>]]></description><link>http://screeps.com/forum/post/2323</link><guid isPermaLink="true">http://screeps.com/forum/post/2323</guid><dc:creator><![CDATA[bonzaiferroni]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Local Server Bugs on Invalid Date]]></title><description><![CDATA[<p>I do have the steam client running by the way</p>]]></description><link>http://screeps.com/forum/post/2324</link><guid isPermaLink="true">http://screeps.com/forum/post/2324</guid><dc:creator><![CDATA[bonzaiferroni]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>