<?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[Dedicated Server]]></title><description><![CDATA[<p>I was able to get the server to run as a dedicated server "hosted on a vps" with a little help from ags131.</p>
<p>In case anyone is interested, it's a bit complicated, but not impossible.:</p>
<p> </p>
<p>First you need to make sure you have a valid and working node setup including node, npm, and node-gyp. This was by far the most complicated part.  Once that was done, the rest was pretty smooth.</p>
<p> </p>
<p>Run steamcmd </p>
<p>force_install_dir /home/steam/screeps<br>login username<br>app_update 464350 -beta Server -betapassword the-password-here validate<br>exit</p>
<p> </p>
<p>edit the .screepsrc file in the server directory you just installed:</p>
<p>cd /home/steam/screeps/server/<br>nano .screepsrc</p>
<p> </p>
<p>Next you need to install greenworks. The copy that comes packaged with the server probably won't work for one or more of many reasons. </p>
<p>git clone <a href="https://github.com/greenheartgames/greenworks.git" rel="nofollow noreferrer">https://github.com/greenheartgames/greenworks.git</a><br>cd greenworks/<br>cd deps/<br>unzip ~/steamworks_sdk_137.zip # you have to get this from your steam developer account<br>mv sdk steamworks_sdk<br>cd ..</p>
<p>npm install<br>cp build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node</p>
<p> </p>
<p>Now this will give you a server that still won't run so it's time to rebuild things., then start the server. I combined these into a single script  for starting the server.</p>
<p>#!/bin/bash<br>cd /home/steam/steamcmd/<br>./steamcmd.sh +force_install_dir /home/steam/screeps +login user +app_update 464350 -beta Server -betapassword the-password-here validate +exit<br>cd /home/steam/screeps/server<br>cp /home/steam/greenworks/build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node<br>for M in modules/*/<br>do<br> pushd $M<br> rm node_modules -Rf<br> npm install<br> npm build<br> popd<br>done<br>pushd modules/driver/native/<br>node-gyp configure<br>node-gyp build<br>popd<br>rm logs/* -Rf<br>node modules/launcher/bin/screeps.js start</p>
<p> </p>
<p>The script effectively has to download the server every time because of the rebulid, The rebuild it because it just downloaded it. The process doesn't take too long though and it ensures a running, updated, server every time.</p>
<p>Even if screeps was on npm I would probably still do it this way as it most closely matches my other steam game server setups.</p>
<p>But just in case your trying to setup a server, this is what I did, and I hope it helps.</p>]]></description><link>http://screeps.com/forum/topic/523/dedicated-server</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 15:12:59 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/523.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Oct 2016 17:53:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dedicated Server on Invalid Date]]></title><description><![CDATA[<p>I was able to get the server to run as a dedicated server "hosted on a vps" with a little help from ags131.</p>
<p>In case anyone is interested, it's a bit complicated, but not impossible.:</p>
<p> </p>
<p>First you need to make sure you have a valid and working node setup including node, npm, and node-gyp. This was by far the most complicated part.  Once that was done, the rest was pretty smooth.</p>
<p> </p>
<p>Run steamcmd </p>
<p>force_install_dir /home/steam/screeps<br>login username<br>app_update 464350 -beta Server -betapassword the-password-here validate<br>exit</p>
<p> </p>
<p>edit the .screepsrc file in the server directory you just installed:</p>
<p>cd /home/steam/screeps/server/<br>nano .screepsrc</p>
<p> </p>
<p>Next you need to install greenworks. The copy that comes packaged with the server probably won't work for one or more of many reasons. </p>
<p>git clone <a href="https://github.com/greenheartgames/greenworks.git" rel="nofollow noreferrer">https://github.com/greenheartgames/greenworks.git</a><br>cd greenworks/<br>cd deps/<br>unzip ~/steamworks_sdk_137.zip # you have to get this from your steam developer account<br>mv sdk steamworks_sdk<br>cd ..</p>
<p>npm install<br>cp build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node</p>
<p> </p>
<p>Now this will give you a server that still won't run so it's time to rebuild things., then start the server. I combined these into a single script  for starting the server.</p>
<p>#!/bin/bash<br>cd /home/steam/steamcmd/<br>./steamcmd.sh +force_install_dir /home/steam/screeps +login user +app_update 464350 -beta Server -betapassword the-password-here validate +exit<br>cd /home/steam/screeps/server<br>cp /home/steam/greenworks/build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node<br>for M in modules/*/<br>do<br> pushd $M<br> rm node_modules -Rf<br> npm install<br> npm build<br> popd<br>done<br>pushd modules/driver/native/<br>node-gyp configure<br>node-gyp build<br>popd<br>rm logs/* -Rf<br>node modules/launcher/bin/screeps.js start</p>
<p> </p>
<p>The script effectively has to download the server every time because of the rebulid, The rebuild it because it just downloaded it. The process doesn't take too long though and it ensures a running, updated, server every time.</p>
<p>Even if screeps was on npm I would probably still do it this way as it most closely matches my other steam game server setups.</p>
<p>But just in case your trying to setup a server, this is what I did, and I hope it helps.</p>]]></description><link>http://screeps.com/forum/post/2567</link><guid isPermaLink="true">http://screeps.com/forum/post/2567</guid><dc:creator><![CDATA[coteyr]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Dedicated Server on Invalid Date]]></title><description><![CDATA[<p>What version of node are you using? For me on</p>
<pre>$ uname -a<br>Linux G5070 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux</pre>
<p>greenwork can't `npm install` work with neither of</p>
<pre>gyp ERR! node -v v6.9.1<br>gyp ERR! node-gyp -v v3.4.0</pre>
<p>nor</p>
<pre>gyp ERR! node -v v0.10.29<br>gyp ERR! node-gyp -v v0.12.2</pre>]]></description><link>http://screeps.com/forum/post/2568</link><guid isPermaLink="true">http://screeps.com/forum/post/2568</guid><dc:creator><![CDATA[akuukis]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Dedicated Server on Invalid Date]]></title><description><![CDATA[<p>Got greenwork to build, problem was too new steamworks_sdk. I updated your part<code class="language-bash"></code><br><code class="language-bash"></code></p>
<pre><code class="language-bash"># Remove everything related to node, so that `node`, `nodejs`, `npm`, `n` or `node-gyp` is not found.<br># Probably not the simplest way but it works.<br>curl -sL https://deb.nodesource.com/setup_6.x <span class="token operator">|</span> <span class="token function">sudo</span> -E <span class="token function">bash</span> - <span class="token function">sudo</span> <span class="token function">aptitude</span> <span class="token function">install</span> -y nodejs</code><br>sudo npm install npm@latest -g<br>sudo npm install node-gyp@latest -g<br><br>node -v # v6.9.1<br>npm -v # 3.10.9<br>node-gyp -v # v3.4</pre>
<pre><code class="language-bash">git clone <a href="https://github.com/greenheartgames/greenworks.git" rel="nofollow noreferrer">https://github.com/greenheartgames/greenworks.git</a><br>cd greenworks/deps/<br>unzip ~/path-to/steamworks_sdk_137.zip # It has to be v1.37 and you have to get this from your steam developer account<br>mv sdk steamworks_sdk<br>cd ..<br>npm install</code></pre>
<p> </p>]]></description><link>http://screeps.com/forum/post/2569</link><guid isPermaLink="true">http://screeps.com/forum/post/2569</guid><dc:creator><![CDATA[akuukis]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Dedicated Server on Invalid Date]]></title><description><![CDATA[<p>Also, you can skip the need to recompile greenworks by commenting out the require('greenworks') lines in the top ofmodules/backend/game/server.js and modules/backend/game/api/auth.js<br><br>This does not affect behavior at all since greenworks is only used if launched via steam or from the client.</p>]]></description><link>http://screeps.com/forum/post/2570</link><guid isPermaLink="true">http://screeps.com/forum/post/2570</guid><dc:creator><![CDATA[ags131]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>