Dedicated Server and Client on Different Machines



  • I'm trying to run a dedicated server on one machine (Windows server 2012) through steam, and connect to it from my gaming machine (Windows 10) also through steam.  

    Steam will not let me run a second instance of the game on my gaming computer because it considers the dedicated server an instance of the game.  How can I get around this?  I don't want the dedicated server and game client running on the same computer.

     


  • Dev Team

    You have to install and launch your server as a standalone package using npm. See instructions here.



  • Thanks for the quick reply.  Now I'm getting an error running the console command npm install -g screeps:

    Here's the log from the console:

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Users\Administrator>npm install -g screeps
    npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher
    to avoid a RegExp DoS issue
    C:\Users\Administrator\AppData\Roaming\npm\screeps -> C:\Users\Administrator\App
    Data\Roaming\npm\node_modules\screeps\bin\screeps.js

    > weak@1.0.1 install C:\Users\Administrator\AppData\Roaming\npm\node_modules\scr
    eeps\node_modules\weak
    > node-gyp rebuild


    C:\Users\Administrator\AppData\Roaming\npm\node_modules\screeps\node_modules\wea
    k>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules
    \npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) e
    lse (node "" rebuild )
    gyp ERR! build error
    gyp ERR! stack Error: Command failed: reg query "HKLM\Software\Microsoft\MSBuild
    \ToolsVersions" /s /reg:32
    gyp ERR! stack 'reg' is not recognized as an internal or external command,
    gyp ERR! stack operable program or batch file.
    gyp ERR! stack
    gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++
    2008+ installed?
    gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
    -gyp\lib\build.js:134:25
    gyp ERR! stack at ChildProcess.exithandler (child_process.js:213:5)
    gyp ERR! stack at emitTwo (events.js:106:13)
    gyp ERR! stack at ChildProcess.emit (events.js:191:7)
    gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
    s.js:226:5)
    gyp ERR! System Windows_NT 6.3.9600
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
    s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\screeps\nod
    e_modules\weak
    gyp ERR! node -v v6.10.0
    gyp ERR! node-gyp -v v3.4.0
    gyp ERR! not ok

    > @screeps/driver@2.2.0 install C:\Users\Administrator\AppData\Roaming\npm\node_
    modules\screeps\node_modules\@screeps\driver
    > node-gyp rebuild -C native


    C:\Users\Administrator\AppData\Roaming\npm\node_modules\screeps\node_modules\@sc
    reeps\driver>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\n
    ode_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" r
    ebuild -C native ) else (node "" rebuild -C native )
    gyp ERR! build error
    gyp ERR! stack Error: Command failed: reg query "HKLM\Software\Microsoft\MSBuild
    \ToolsVersions" /s /reg:32
    gyp ERR! stack 'reg' is not recognized as an internal or external command,
    gyp ERR! stack operable program or batch file.
    gyp ERR! stack
    gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++
    2008+ installed?
    gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
    -gyp\lib\build.js:134:25
    gyp ERR! stack at ChildProcess.exithandler (child_process.js:213:5)
    gyp ERR! stack at emitTwo (events.js:106:13)
    gyp ERR! stack at ChildProcess.emit (events.js:191:7)
    gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
    s.js:226:5)
    gyp ERR! System Windows_NT 6.3.9600
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
    s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "-C" "
    native"
    gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\screeps\nod
    e_modules\@screeps\driver\native
    gyp ERR! node -v v6.10.0
    gyp ERR! node-gyp -v v3.4.0
    gyp ERR! not ok
    C:\Users\Administrator\AppData\Roaming\npm
    `-- (empty)

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 (node_modules\screeps
    \node_modules\weak):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 install: `node-gyp re
    build`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
    npm ERR! Windows_NT 6.3.9600
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
    node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "screeps"
    npm ERR! node v6.10.0
    npm ERR! npm v3.10.10
    npm ERR! code ELIFECYCLE

    npm ERR! @screeps/driver@2.2.0 install: `node-gyp rebuild -C native`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the @screeps/driver@2.2.0 install script 'node-gyp rebuild -C
    native'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the @screeps/driver packa
    ge,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! node-gyp rebuild -C native
    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR! npm bugs @screeps/driver
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR! npm owner ls @screeps/driver
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR! C:\Users\Administrator\npm-debug.log
    npm ERR! code 1

    -----------------------------------------------------------------------------------------

    And the errors from the log file:

    22842 error Windows_NT 6.3.9600
    22843 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "screeps"
    22844 error node v6.10.0
    22845 error npm v3.10.10
    22846 error code ELIFECYCLE
    22847 error @screeps/driver@2.2.0 install: `node-gyp rebuild -C native`
    22847 error Exit status 1
    22848 error Failed at the @screeps/driver@2.2.0 install script 'node-gyp rebuild -C native'.
    22848 error Make sure you have the latest version of node.js and npm installed.
    22848 error If you do, this is most likely a problem with the @screeps/driver package,
    22848 error not with npm itself.
    22848 error Tell the author that this fails on your system:
    22848 error node-gyp rebuild -C native
    22848 error You can get information on how to open an issue for this project with:
    22848 error npm bugs @screeps/driver
    22848 error Or if that isn't available, you can get their info via:
    22848 error npm owner ls @screeps/driver
    22848 error There is likely additional logging output above.
    22849 verbose exit [ 1, true ]

    -----------------------------------------------------------------------------------------

    I have the Microsoft Visual C++ 2008 Redistributable Installed (also 2010 and 2013).

    Any help is appreciated.  🙂



  • Fixed the issue.  First one is the system variable for C:\Windows\System32\ was missing.

    https://cryptomator.freshdesk.com/support/solutions/articles/16000003675--reg-is-not-recognized-as-an-internal-or-external-command

     

    Second issue I ran into was I needed to install a version of Visual Studio that included C++.  

    https://www.visualstudio.com/downloads/

    Once that was done I successfully installed and ran the Screeps server through powershell.